...

Source file src/google.golang.org/api/healthcare/v1beta1/healthcare-gen.go

Documentation: google.golang.org/api/healthcare/v1beta1

     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 healthcare provides access to the Cloud Healthcare API.
     8  //
     9  // For product documentation, see: https://cloud.google.com/healthcare
    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/healthcare/v1beta1"
    27  //	...
    28  //	ctx := context.Background()
    29  //	healthcareService, err := healthcare.NewService(ctx)
    30  //
    31  // In this example, Google Application Default Credentials are used for
    32  // authentication. For information on how to create and obtain Application
    33  // Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
    34  //
    35  // # Other authentication options
    36  //
    37  // By default, all available scopes (see "Constants") are used to authenticate.
    38  // To restrict scopes, use [google.golang.org/api/option.WithScopes]:
    39  //
    40  //	healthcareService, err := healthcare.NewService(ctx, option.WithScopes(healthcare.CloudPlatformScope))
    41  //
    42  // To use an API key for authentication (note: some APIs do not support API
    43  // keys), use [google.golang.org/api/option.WithAPIKey]:
    44  //
    45  //	healthcareService, err := healthcare.NewService(ctx, option.WithAPIKey("AIza..."))
    46  //
    47  // To use an OAuth token (e.g., a user token obtained via a three-legged OAuth
    48  // flow, use [google.golang.org/api/option.WithTokenSource]:
    49  //
    50  //	config := &oauth2.Config{...}
    51  //	// ...
    52  //	token, err := config.Exchange(ctx, ...)
    53  //	healthcareService, err := healthcare.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
    54  //
    55  // See [google.golang.org/api/option.ClientOption] for details on options.
    56  package healthcare // import "google.golang.org/api/healthcare/v1beta1"
    57  
    58  import (
    59  	"bytes"
    60  	"context"
    61  	"encoding/json"
    62  	"errors"
    63  	"fmt"
    64  	"io"
    65  	"net/http"
    66  	"net/url"
    67  	"strconv"
    68  	"strings"
    69  
    70  	googleapi "google.golang.org/api/googleapi"
    71  	internal "google.golang.org/api/internal"
    72  	gensupport "google.golang.org/api/internal/gensupport"
    73  	option "google.golang.org/api/option"
    74  	internaloption "google.golang.org/api/option/internaloption"
    75  	htransport "google.golang.org/api/transport/http"
    76  )
    77  
    78  // Always reference these packages, just in case the auto-generated code
    79  // below doesn't.
    80  var _ = bytes.NewBuffer
    81  var _ = strconv.Itoa
    82  var _ = fmt.Sprintf
    83  var _ = json.NewDecoder
    84  var _ = io.Copy
    85  var _ = url.Parse
    86  var _ = gensupport.MarshalJSON
    87  var _ = googleapi.Version
    88  var _ = errors.New
    89  var _ = strings.Replace
    90  var _ = context.Canceled
    91  var _ = internaloption.WithDefaultEndpoint
    92  var _ = internal.Version
    93  
    94  const apiId = "healthcare:v1beta1"
    95  const apiName = "healthcare"
    96  const apiVersion = "v1beta1"
    97  const basePath = "https://healthcare.googleapis.com/"
    98  const basePathTemplate = "https://healthcare.UNIVERSE_DOMAIN/"
    99  const mtlsBasePath = "https://healthcare.mtls.googleapis.com/"
   100  
   101  // OAuth2 scopes used by this API.
   102  const (
   103  	// Read, write and manage healthcare data
   104  	CloudHealthcareScope = "https://www.googleapis.com/auth/cloud-healthcare"
   105  
   106  	// See, edit, configure, and delete your Google Cloud data and see the email
   107  	// address for your Google Account.
   108  	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
   109  )
   110  
   111  // NewService creates a new Service.
   112  func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
   113  	scopesOption := internaloption.WithDefaultScopes(
   114  		"https://www.googleapis.com/auth/cloud-healthcare",
   115  		"https://www.googleapis.com/auth/cloud-platform",
   116  	)
   117  	// NOTE: prepend, so we don't override user-specified scopes.
   118  	opts = append([]option.ClientOption{scopesOption}, opts...)
   119  	opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
   120  	opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
   121  	opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
   122  	opts = append(opts, internaloption.EnableNewAuthLibrary())
   123  	client, endpoint, err := htransport.NewClient(ctx, opts...)
   124  	if err != nil {
   125  		return nil, err
   126  	}
   127  	s, err := New(client)
   128  	if err != nil {
   129  		return nil, err
   130  	}
   131  	if endpoint != "" {
   132  		s.BasePath = endpoint
   133  	}
   134  	return s, nil
   135  }
   136  
   137  // New creates a new Service. It uses the provided http.Client for requests.
   138  //
   139  // Deprecated: please use NewService instead.
   140  // To provide a custom HTTP client, use option.WithHTTPClient.
   141  // If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
   142  func New(client *http.Client) (*Service, error) {
   143  	if client == nil {
   144  		return nil, errors.New("client is nil")
   145  	}
   146  	s := &Service{client: client, BasePath: basePath}
   147  	s.Projects = NewProjectsService(s)
   148  	return s, nil
   149  }
   150  
   151  type Service struct {
   152  	client    *http.Client
   153  	BasePath  string // API endpoint base URL
   154  	UserAgent string // optional additional User-Agent fragment
   155  
   156  	Projects *ProjectsService
   157  }
   158  
   159  func (s *Service) userAgent() string {
   160  	if s.UserAgent == "" {
   161  		return googleapi.UserAgent
   162  	}
   163  	return googleapi.UserAgent + " " + s.UserAgent
   164  }
   165  
   166  func NewProjectsService(s *Service) *ProjectsService {
   167  	rs := &ProjectsService{s: s}
   168  	rs.Locations = NewProjectsLocationsService(s)
   169  	return rs
   170  }
   171  
   172  type ProjectsService struct {
   173  	s *Service
   174  
   175  	Locations *ProjectsLocationsService
   176  }
   177  
   178  func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
   179  	rs := &ProjectsLocationsService{s: s}
   180  	rs.Datasets = NewProjectsLocationsDatasetsService(s)
   181  	rs.Services = NewProjectsLocationsServicesService(s)
   182  	return rs
   183  }
   184  
   185  type ProjectsLocationsService struct {
   186  	s *Service
   187  
   188  	Datasets *ProjectsLocationsDatasetsService
   189  
   190  	Services *ProjectsLocationsServicesService
   191  }
   192  
   193  func NewProjectsLocationsDatasetsService(s *Service) *ProjectsLocationsDatasetsService {
   194  	rs := &ProjectsLocationsDatasetsService{s: s}
   195  	rs.AnnotationStores = NewProjectsLocationsDatasetsAnnotationStoresService(s)
   196  	rs.ConsentStores = NewProjectsLocationsDatasetsConsentStoresService(s)
   197  	rs.DataMapperWorkspaces = NewProjectsLocationsDatasetsDataMapperWorkspacesService(s)
   198  	rs.DicomStores = NewProjectsLocationsDatasetsDicomStoresService(s)
   199  	rs.FhirStores = NewProjectsLocationsDatasetsFhirStoresService(s)
   200  	rs.Hl7V2Stores = NewProjectsLocationsDatasetsHl7V2StoresService(s)
   201  	rs.Operations = NewProjectsLocationsDatasetsOperationsService(s)
   202  	return rs
   203  }
   204  
   205  type ProjectsLocationsDatasetsService struct {
   206  	s *Service
   207  
   208  	AnnotationStores *ProjectsLocationsDatasetsAnnotationStoresService
   209  
   210  	ConsentStores *ProjectsLocationsDatasetsConsentStoresService
   211  
   212  	DataMapperWorkspaces *ProjectsLocationsDatasetsDataMapperWorkspacesService
   213  
   214  	DicomStores *ProjectsLocationsDatasetsDicomStoresService
   215  
   216  	FhirStores *ProjectsLocationsDatasetsFhirStoresService
   217  
   218  	Hl7V2Stores *ProjectsLocationsDatasetsHl7V2StoresService
   219  
   220  	Operations *ProjectsLocationsDatasetsOperationsService
   221  }
   222  
   223  func NewProjectsLocationsDatasetsAnnotationStoresService(s *Service) *ProjectsLocationsDatasetsAnnotationStoresService {
   224  	rs := &ProjectsLocationsDatasetsAnnotationStoresService{s: s}
   225  	rs.Annotations = NewProjectsLocationsDatasetsAnnotationStoresAnnotationsService(s)
   226  	return rs
   227  }
   228  
   229  type ProjectsLocationsDatasetsAnnotationStoresService struct {
   230  	s *Service
   231  
   232  	Annotations *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService
   233  }
   234  
   235  func NewProjectsLocationsDatasetsAnnotationStoresAnnotationsService(s *Service) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService {
   236  	rs := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsService{s: s}
   237  	return rs
   238  }
   239  
   240  type ProjectsLocationsDatasetsAnnotationStoresAnnotationsService struct {
   241  	s *Service
   242  }
   243  
   244  func NewProjectsLocationsDatasetsConsentStoresService(s *Service) *ProjectsLocationsDatasetsConsentStoresService {
   245  	rs := &ProjectsLocationsDatasetsConsentStoresService{s: s}
   246  	rs.AttributeDefinitions = NewProjectsLocationsDatasetsConsentStoresAttributeDefinitionsService(s)
   247  	rs.ConsentArtifacts = NewProjectsLocationsDatasetsConsentStoresConsentArtifactsService(s)
   248  	rs.Consents = NewProjectsLocationsDatasetsConsentStoresConsentsService(s)
   249  	rs.UserDataMappings = NewProjectsLocationsDatasetsConsentStoresUserDataMappingsService(s)
   250  	return rs
   251  }
   252  
   253  type ProjectsLocationsDatasetsConsentStoresService struct {
   254  	s *Service
   255  
   256  	AttributeDefinitions *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsService
   257  
   258  	ConsentArtifacts *ProjectsLocationsDatasetsConsentStoresConsentArtifactsService
   259  
   260  	Consents *ProjectsLocationsDatasetsConsentStoresConsentsService
   261  
   262  	UserDataMappings *ProjectsLocationsDatasetsConsentStoresUserDataMappingsService
   263  }
   264  
   265  func NewProjectsLocationsDatasetsConsentStoresAttributeDefinitionsService(s *Service) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsService {
   266  	rs := &ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsService{s: s}
   267  	return rs
   268  }
   269  
   270  type ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsService struct {
   271  	s *Service
   272  }
   273  
   274  func NewProjectsLocationsDatasetsConsentStoresConsentArtifactsService(s *Service) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsService {
   275  	rs := &ProjectsLocationsDatasetsConsentStoresConsentArtifactsService{s: s}
   276  	return rs
   277  }
   278  
   279  type ProjectsLocationsDatasetsConsentStoresConsentArtifactsService struct {
   280  	s *Service
   281  }
   282  
   283  func NewProjectsLocationsDatasetsConsentStoresConsentsService(s *Service) *ProjectsLocationsDatasetsConsentStoresConsentsService {
   284  	rs := &ProjectsLocationsDatasetsConsentStoresConsentsService{s: s}
   285  	return rs
   286  }
   287  
   288  type ProjectsLocationsDatasetsConsentStoresConsentsService struct {
   289  	s *Service
   290  }
   291  
   292  func NewProjectsLocationsDatasetsConsentStoresUserDataMappingsService(s *Service) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsService {
   293  	rs := &ProjectsLocationsDatasetsConsentStoresUserDataMappingsService{s: s}
   294  	return rs
   295  }
   296  
   297  type ProjectsLocationsDatasetsConsentStoresUserDataMappingsService struct {
   298  	s *Service
   299  }
   300  
   301  func NewProjectsLocationsDatasetsDataMapperWorkspacesService(s *Service) *ProjectsLocationsDatasetsDataMapperWorkspacesService {
   302  	rs := &ProjectsLocationsDatasetsDataMapperWorkspacesService{s: s}
   303  	return rs
   304  }
   305  
   306  type ProjectsLocationsDatasetsDataMapperWorkspacesService struct {
   307  	s *Service
   308  }
   309  
   310  func NewProjectsLocationsDatasetsDicomStoresService(s *Service) *ProjectsLocationsDatasetsDicomStoresService {
   311  	rs := &ProjectsLocationsDatasetsDicomStoresService{s: s}
   312  	rs.DicomWeb = NewProjectsLocationsDatasetsDicomStoresDicomWebService(s)
   313  	rs.Studies = NewProjectsLocationsDatasetsDicomStoresStudiesService(s)
   314  	return rs
   315  }
   316  
   317  type ProjectsLocationsDatasetsDicomStoresService struct {
   318  	s *Service
   319  
   320  	DicomWeb *ProjectsLocationsDatasetsDicomStoresDicomWebService
   321  
   322  	Studies *ProjectsLocationsDatasetsDicomStoresStudiesService
   323  }
   324  
   325  func NewProjectsLocationsDatasetsDicomStoresDicomWebService(s *Service) *ProjectsLocationsDatasetsDicomStoresDicomWebService {
   326  	rs := &ProjectsLocationsDatasetsDicomStoresDicomWebService{s: s}
   327  	rs.Studies = NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesService(s)
   328  	return rs
   329  }
   330  
   331  type ProjectsLocationsDatasetsDicomStoresDicomWebService struct {
   332  	s *Service
   333  
   334  	Studies *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService
   335  }
   336  
   337  func NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesService(s *Service) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService {
   338  	rs := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService{s: s}
   339  	rs.Series = NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService(s)
   340  	return rs
   341  }
   342  
   343  type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService struct {
   344  	s *Service
   345  
   346  	Series *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService
   347  }
   348  
   349  func NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService(s *Service) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService {
   350  	rs := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService{s: s}
   351  	rs.Instances = NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService(s)
   352  	return rs
   353  }
   354  
   355  type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService struct {
   356  	s *Service
   357  
   358  	Instances *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService
   359  }
   360  
   361  func NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService(s *Service) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService {
   362  	rs := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService{s: s}
   363  	return rs
   364  }
   365  
   366  type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService struct {
   367  	s *Service
   368  }
   369  
   370  func NewProjectsLocationsDatasetsDicomStoresStudiesService(s *Service) *ProjectsLocationsDatasetsDicomStoresStudiesService {
   371  	rs := &ProjectsLocationsDatasetsDicomStoresStudiesService{s: s}
   372  	rs.Series = NewProjectsLocationsDatasetsDicomStoresStudiesSeriesService(s)
   373  	return rs
   374  }
   375  
   376  type ProjectsLocationsDatasetsDicomStoresStudiesService struct {
   377  	s *Service
   378  
   379  	Series *ProjectsLocationsDatasetsDicomStoresStudiesSeriesService
   380  }
   381  
   382  func NewProjectsLocationsDatasetsDicomStoresStudiesSeriesService(s *Service) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesService {
   383  	rs := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesService{s: s}
   384  	rs.Instances = NewProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesService(s)
   385  	return rs
   386  }
   387  
   388  type ProjectsLocationsDatasetsDicomStoresStudiesSeriesService struct {
   389  	s *Service
   390  
   391  	Instances *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesService
   392  }
   393  
   394  func NewProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesService(s *Service) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesService {
   395  	rs := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesService{s: s}
   396  	rs.Bulkdata = NewProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataService(s)
   397  	rs.Frames = NewProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesService(s)
   398  	return rs
   399  }
   400  
   401  type ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesService struct {
   402  	s *Service
   403  
   404  	Bulkdata *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataService
   405  
   406  	Frames *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesService
   407  }
   408  
   409  func NewProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataService(s *Service) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataService {
   410  	rs := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataService{s: s}
   411  	return rs
   412  }
   413  
   414  type ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataService struct {
   415  	s *Service
   416  }
   417  
   418  func NewProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesService(s *Service) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesService {
   419  	rs := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesService{s: s}
   420  	return rs
   421  }
   422  
   423  type ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesService struct {
   424  	s *Service
   425  }
   426  
   427  func NewProjectsLocationsDatasetsFhirStoresService(s *Service) *ProjectsLocationsDatasetsFhirStoresService {
   428  	rs := &ProjectsLocationsDatasetsFhirStoresService{s: s}
   429  	rs.Fhir = NewProjectsLocationsDatasetsFhirStoresFhirService(s)
   430  	return rs
   431  }
   432  
   433  type ProjectsLocationsDatasetsFhirStoresService struct {
   434  	s *Service
   435  
   436  	Fhir *ProjectsLocationsDatasetsFhirStoresFhirService
   437  }
   438  
   439  func NewProjectsLocationsDatasetsFhirStoresFhirService(s *Service) *ProjectsLocationsDatasetsFhirStoresFhirService {
   440  	rs := &ProjectsLocationsDatasetsFhirStoresFhirService{s: s}
   441  	return rs
   442  }
   443  
   444  type ProjectsLocationsDatasetsFhirStoresFhirService struct {
   445  	s *Service
   446  }
   447  
   448  func NewProjectsLocationsDatasetsHl7V2StoresService(s *Service) *ProjectsLocationsDatasetsHl7V2StoresService {
   449  	rs := &ProjectsLocationsDatasetsHl7V2StoresService{s: s}
   450  	rs.Messages = NewProjectsLocationsDatasetsHl7V2StoresMessagesService(s)
   451  	return rs
   452  }
   453  
   454  type ProjectsLocationsDatasetsHl7V2StoresService struct {
   455  	s *Service
   456  
   457  	Messages *ProjectsLocationsDatasetsHl7V2StoresMessagesService
   458  }
   459  
   460  func NewProjectsLocationsDatasetsHl7V2StoresMessagesService(s *Service) *ProjectsLocationsDatasetsHl7V2StoresMessagesService {
   461  	rs := &ProjectsLocationsDatasetsHl7V2StoresMessagesService{s: s}
   462  	return rs
   463  }
   464  
   465  type ProjectsLocationsDatasetsHl7V2StoresMessagesService struct {
   466  	s *Service
   467  }
   468  
   469  func NewProjectsLocationsDatasetsOperationsService(s *Service) *ProjectsLocationsDatasetsOperationsService {
   470  	rs := &ProjectsLocationsDatasetsOperationsService{s: s}
   471  	return rs
   472  }
   473  
   474  type ProjectsLocationsDatasetsOperationsService struct {
   475  	s *Service
   476  }
   477  
   478  func NewProjectsLocationsServicesService(s *Service) *ProjectsLocationsServicesService {
   479  	rs := &ProjectsLocationsServicesService{s: s}
   480  	rs.Nlp = NewProjectsLocationsServicesNlpService(s)
   481  	return rs
   482  }
   483  
   484  type ProjectsLocationsServicesService struct {
   485  	s *Service
   486  
   487  	Nlp *ProjectsLocationsServicesNlpService
   488  }
   489  
   490  func NewProjectsLocationsServicesNlpService(s *Service) *ProjectsLocationsServicesNlpService {
   491  	rs := &ProjectsLocationsServicesNlpService{s: s}
   492  	return rs
   493  }
   494  
   495  type ProjectsLocationsServicesNlpService struct {
   496  	s *Service
   497  }
   498  
   499  // AccessDeterminationLogConfig: Configures consent audit log config for FHIR
   500  // create, read, update, and delete (CRUD) operations. Cloud audit log for
   501  // healthcare API must be enabled
   502  // (https://cloud.google.com/logging/docs/audit/configure-data-access#config-console-enable).
   503  // The consent-related logs are included as part of `protoPayload.metadata`.
   504  type AccessDeterminationLogConfig struct {
   505  	// LogLevel: Optional. Controls the amount of detail to include as part of the
   506  	// audit logs.
   507  	//
   508  	// Possible values:
   509  	//   "LOG_LEVEL_UNSPECIFIED" - No log level specified. This value is unused.
   510  	//   "DISABLED" - No additional consent-related logging is added to audit logs.
   511  	//   "MINIMUM" - The following information is included: * One of the following
   512  	// [`consentMode`](https://cloud.google.com/healthcare-api/docs/fhir-consent#aud
   513  	// it_logs) fields: (`off`|`emptyScope`|`enforced`|`btg`|`bypass`). * The
   514  	// accessor's request headers * The `log_level` of the
   515  	// AccessDeterminationLogConfig * The final consent evaluation (`PERMIT`,
   516  	// `DENY`, or `NO_CONSENT`) * A human-readable summary of the evaluation
   517  	//   "VERBOSE" - Includes `MINIMUM` and, for each resource owner, returns: *
   518  	// The resource owner's name * Most specific part of the `X-Consent-Scope`
   519  	// resulting in consensual determination * Timestamp of the applied enforcement
   520  	// leading to the decision * Enforcement version at the time the applicable
   521  	// consents were applied * The Consent resource name * The timestamp of the
   522  	// Consent resource used for enforcement * Policy type (`PATIENT` or `ADMIN`)
   523  	// Note that this mode adds some overhead to CRUD operations.
   524  	LogLevel string `json:"logLevel,omitempty"`
   525  	// ForceSendFields is a list of field names (e.g. "LogLevel") to
   526  	// unconditionally include in API requests. By default, fields with empty or
   527  	// default values are omitted from API requests. See
   528  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   529  	// details.
   530  	ForceSendFields []string `json:"-"`
   531  	// NullFields is a list of field names (e.g. "LogLevel") to include in API
   532  	// requests with the JSON null value. By default, fields with empty values are
   533  	// omitted from API requests. See
   534  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   535  	NullFields []string `json:"-"`
   536  }
   537  
   538  func (s *AccessDeterminationLogConfig) MarshalJSON() ([]byte, error) {
   539  	type NoMethod AccessDeterminationLogConfig
   540  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   541  }
   542  
   543  // Action: Specifies a selection of tags and an `Action` to apply to each one.
   544  type Action struct {
   545  	// CleanImageTag: Inspect image and transform sensitive burnt-in text. Doesn't
   546  	// apply to elements nested in a sequence, which revert to `Keep`. Supported
   547  	// tags
   548  	// (http://dicom.nema.org/medical/dicom/2018e/output/chtml/part06/chapter_6.html):
   549  	// PixelData
   550  	CleanImageTag *ImageConfig `json:"cleanImageTag,omitempty"`
   551  	// CleanTextTag: Inspect text and transform sensitive text. Configurable via
   552  	// TextConfig. Supported Value Representations: AE, LO, LT, PN, SH, ST, UC, UT,
   553  	// DA, DT, AS
   554  	CleanTextTag *CleanTextTag `json:"cleanTextTag,omitempty"`
   555  	// DeleteTag: Delete tag.
   556  	DeleteTag *DeleteTag `json:"deleteTag,omitempty"`
   557  	// KeepTag: Keep tag unchanged.
   558  	KeepTag *KeepTag `json:"keepTag,omitempty"`
   559  	// Queries: Select all tags with the listed tag IDs, names, or Value
   560  	// Representations (VRs). Examples: ID: "00100010" Keyword: "PatientName" VR:
   561  	// "PN"
   562  	Queries []string `json:"queries,omitempty"`
   563  	// RecurseTag: Recursively apply DICOM de-id to tags nested in a sequence.
   564  	// Supported [Value Representation]
   565  	// (http://dicom.nema.org/medical/dicom/2018e/output/chtml/part05/sect_6.2.html#table_6.2-1):
   566  	// SQ
   567  	RecurseTag *RecurseTag `json:"recurseTag,omitempty"`
   568  	// RegenUidTag: Replace UID with a new generated UID. Supported [Value
   569  	// Representation]
   570  	// (http://dicom.nema.org/medical/dicom/2018e/output/chtml/part05/sect_6.2.html#table_6.2-1):
   571  	// UI
   572  	RegenUidTag *RegenUidTag `json:"regenUidTag,omitempty"`
   573  	// RemoveTag: Replace with empty tag.
   574  	RemoveTag *RemoveTag `json:"removeTag,omitempty"`
   575  	// ResetTag: Reset tag to a placeholder value.
   576  	ResetTag *ResetTag `json:"resetTag,omitempty"`
   577  	// ForceSendFields is a list of field names (e.g. "CleanImageTag") to
   578  	// unconditionally include in API requests. By default, fields with empty or
   579  	// default values are omitted from API requests. See
   580  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   581  	// details.
   582  	ForceSendFields []string `json:"-"`
   583  	// NullFields is a list of field names (e.g. "CleanImageTag") to include in API
   584  	// requests with the JSON null value. By default, fields with empty values are
   585  	// omitted from API requests. See
   586  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   587  	NullFields []string `json:"-"`
   588  }
   589  
   590  func (s *Action) MarshalJSON() ([]byte, error) {
   591  	type NoMethod Action
   592  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   593  }
   594  
   595  // ActivateConsentRequest: Activates the latest revision of the specified
   596  // Consent by committing a new revision with `state` updated to `ACTIVE`. If
   597  // the latest revision of the given Consent is in the `ACTIVE` state, no new
   598  // revision is committed. A FAILED_PRECONDITION error occurs if the latest
   599  // revision of the given consent is in the `REJECTED` or `REVOKED` state.
   600  type ActivateConsentRequest struct {
   601  	// ConsentArtifact: Required. The resource name of the Consent artifact that
   602  	// contains documentation of the user's consent, of the form
   603  	// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentS
   604  	// tores/{consent_store_id}/consentArtifacts/{consent_artifact_id}`. If the
   605  	// draft Consent had a Consent artifact, this Consent artifact overwrites it.
   606  	ConsentArtifact string `json:"consentArtifact,omitempty"`
   607  	// ExpireTime: Timestamp in UTC of when this Consent is considered expired.
   608  	ExpireTime string `json:"expireTime,omitempty"`
   609  	// Ttl: The time to live for this Consent from when it is marked as active.
   610  	Ttl string `json:"ttl,omitempty"`
   611  	// ForceSendFields is a list of field names (e.g. "ConsentArtifact") to
   612  	// unconditionally include in API requests. By default, fields with empty or
   613  	// default values are omitted from API requests. See
   614  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   615  	// details.
   616  	ForceSendFields []string `json:"-"`
   617  	// NullFields is a list of field names (e.g. "ConsentArtifact") to include in
   618  	// API requests with the JSON null value. By default, fields with empty values
   619  	// are omitted from API requests. See
   620  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   621  	NullFields []string `json:"-"`
   622  }
   623  
   624  func (s *ActivateConsentRequest) MarshalJSON() ([]byte, error) {
   625  	type NoMethod ActivateConsentRequest
   626  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   627  }
   628  
   629  // AdminConsents: List of admin Consent resources to be applied.
   630  type AdminConsents struct {
   631  	// Names: The versioned names of the admin Consent resource(s), in the format
   632  	// `projects/{project_id}/locations/{location}/datasets/{dataset_id}/fhirStores/
   633  	// {fhir_store_id}/fhir/Consent/{resource_id}/_history/{version_id}`. For FHIR
   634  	// stores with `disable_resource_versioning=true`, the format is
   635  	// `projects/{project_id}/locations/{location}/datasets/{dataset_id}/fhirStores/
   636  	// {fhir_store_id}/fhir/Consent/{resource_id}`.
   637  	Names []string `json:"names,omitempty"`
   638  	// ForceSendFields is a list of field names (e.g. "Names") to unconditionally
   639  	// include in API requests. By default, fields with empty or default values are
   640  	// omitted from API requests. See
   641  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   642  	// details.
   643  	ForceSendFields []string `json:"-"`
   644  	// NullFields is a list of field names (e.g. "Names") to include in API
   645  	// requests with the JSON null value. By default, fields with empty values are
   646  	// omitted from API requests. See
   647  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   648  	NullFields []string `json:"-"`
   649  }
   650  
   651  func (s *AdminConsents) MarshalJSON() ([]byte, error) {
   652  	type NoMethod AdminConsents
   653  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   654  }
   655  
   656  // AnalyzeEntitiesRequest: The request to analyze healthcare entities in a
   657  // document.
   658  type AnalyzeEntitiesRequest struct {
   659  	// AlternativeOutputFormat: Optional. Alternative output format to be generated
   660  	// based on the results of analysis.
   661  	//
   662  	// Possible values:
   663  	//   "ALTERNATIVE_OUTPUT_FORMAT_UNSPECIFIED" - No alternative output format is
   664  	// specified.
   665  	//   "FHIR_BUNDLE" - FHIR bundle output.
   666  	AlternativeOutputFormat string `json:"alternativeOutputFormat,omitempty"`
   667  	// DocumentContent: document_content is a document to be annotated.
   668  	DocumentContent string `json:"documentContent,omitempty"`
   669  	// LicensedVocabularies: A list of licensed vocabularies to use in the request,
   670  	// in addition to the default unlicensed vocabularies.
   671  	//
   672  	// Possible values:
   673  	//   "LICENSED_VOCABULARY_UNSPECIFIED" - No licensed vocabulary specified.
   674  	//   "ICD10CM" - ICD-10-CM vocabulary
   675  	//   "SNOMEDCT_US" - SNOMED CT (US version) vocabulary
   676  	LicensedVocabularies []string `json:"licensedVocabularies,omitempty"`
   677  	// ForceSendFields is a list of field names (e.g. "AlternativeOutputFormat") to
   678  	// unconditionally include in API requests. By default, fields with empty or
   679  	// default values are omitted from API requests. See
   680  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   681  	// details.
   682  	ForceSendFields []string `json:"-"`
   683  	// NullFields is a list of field names (e.g. "AlternativeOutputFormat") to
   684  	// include in API requests with the JSON null value. By default, fields with
   685  	// empty values are omitted from API requests. See
   686  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   687  	NullFields []string `json:"-"`
   688  }
   689  
   690  func (s *AnalyzeEntitiesRequest) MarshalJSON() ([]byte, error) {
   691  	type NoMethod AnalyzeEntitiesRequest
   692  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   693  }
   694  
   695  // AnalyzeEntitiesResponse: Includes recognized entity mentions and
   696  // relationships between them.
   697  type AnalyzeEntitiesResponse struct {
   698  	// Entities: The union of all the candidate entities that the entity_mentions
   699  	// in this response could link to. These are UMLS concepts or normalized
   700  	// mention content.
   701  	Entities []*Entity `json:"entities,omitempty"`
   702  	// EntityMentions: The `entity_mentions` field contains all the annotated
   703  	// medical entities that were mentioned in the provided document.
   704  	EntityMentions []*EntityMention `json:"entityMentions,omitempty"`
   705  	// FhirBundle: The FHIR bundle (`R4` (http://hl7.org/fhir/R4/bundle.html)) that
   706  	// includes all the entities, the entity mentions, and the relationships in
   707  	// JSON format.
   708  	FhirBundle string `json:"fhirBundle,omitempty"`
   709  	// Relationships: relationships contains all the binary relationships that were
   710  	// identified between entity mentions within the provided document.
   711  	Relationships []*EntityMentionRelationship `json:"relationships,omitempty"`
   712  
   713  	// ServerResponse contains the HTTP response code and headers from the server.
   714  	googleapi.ServerResponse `json:"-"`
   715  	// ForceSendFields is a list of field names (e.g. "Entities") to
   716  	// unconditionally include in API requests. By default, fields with empty or
   717  	// default values are omitted from API requests. See
   718  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   719  	// details.
   720  	ForceSendFields []string `json:"-"`
   721  	// NullFields is a list of field names (e.g. "Entities") to include in API
   722  	// requests with the JSON null value. By default, fields with empty values are
   723  	// omitted from API requests. See
   724  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   725  	NullFields []string `json:"-"`
   726  }
   727  
   728  func (s *AnalyzeEntitiesResponse) MarshalJSON() ([]byte, error) {
   729  	type NoMethod AnalyzeEntitiesResponse
   730  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   731  }
   732  
   733  // Annotation: An annotation record.
   734  type Annotation struct {
   735  	// AnnotationSource: Required. Details of the source.
   736  	AnnotationSource *AnnotationSource `json:"annotationSource,omitempty"`
   737  	// CustomData: Additional information for this annotation record, such as
   738  	// annotator and verifier information or study campaign.
   739  	CustomData map[string]string `json:"customData,omitempty"`
   740  	// ImageAnnotation: Annotations for images. For example, bounding polygons.
   741  	ImageAnnotation *ImageAnnotation `json:"imageAnnotation,omitempty"`
   742  	// Name: Identifier. Resource name of the Annotation, of the form
   743  	// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotati
   744  	// onStores/{annotation_store_id}/annotations/{annotation_id}`.
   745  	Name string `json:"name,omitempty"`
   746  	// ResourceAnnotation: Annotations for resource. For example, classification
   747  	// tags.
   748  	ResourceAnnotation *ResourceAnnotation `json:"resourceAnnotation,omitempty"`
   749  	// TextAnnotation: Annotations for sensitive texts. For example, a range that
   750  	// describes the location of sensitive text.
   751  	TextAnnotation *SensitiveTextAnnotation `json:"textAnnotation,omitempty"`
   752  
   753  	// ServerResponse contains the HTTP response code and headers from the server.
   754  	googleapi.ServerResponse `json:"-"`
   755  	// ForceSendFields is a list of field names (e.g. "AnnotationSource") to
   756  	// unconditionally include in API requests. By default, fields with empty or
   757  	// default values are omitted from API requests. See
   758  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   759  	// details.
   760  	ForceSendFields []string `json:"-"`
   761  	// NullFields is a list of field names (e.g. "AnnotationSource") to include in
   762  	// API requests with the JSON null value. By default, fields with empty values
   763  	// are omitted from API requests. See
   764  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   765  	NullFields []string `json:"-"`
   766  }
   767  
   768  func (s *Annotation) MarshalJSON() ([]byte, error) {
   769  	type NoMethod Annotation
   770  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   771  }
   772  
   773  // AnnotationConfig: Specifies how to store annotations during
   774  // de-identification operation.
   775  type AnnotationConfig struct {
   776  	// AnnotationStoreName: The name of the annotation store, in the form
   777  	// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotati
   778  	// onStores/{annotation_store_id}`). * The destination annotation store must be
   779  	// in the same project as the source data. De-identifying data across multiple
   780  	// projects is not supported. * The destination annotation store must exist
   781  	// when using DeidentifyDicomStore or DeidentifyFhirStore. DeidentifyDataset
   782  	// automatically creates the destination annotation store.
   783  	AnnotationStoreName string `json:"annotationStoreName,omitempty"`
   784  	// StoreQuote: If set to true, the sensitive texts are included in
   785  	// SensitiveTextAnnotation of Annotation.
   786  	StoreQuote bool `json:"storeQuote,omitempty"`
   787  	// ForceSendFields is a list of field names (e.g. "AnnotationStoreName") to
   788  	// unconditionally include in API requests. By default, fields with empty or
   789  	// default values are omitted from API requests. See
   790  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   791  	// details.
   792  	ForceSendFields []string `json:"-"`
   793  	// NullFields is a list of field names (e.g. "AnnotationStoreName") to include
   794  	// in API requests with the JSON null value. By default, fields with empty
   795  	// values are omitted from API requests. See
   796  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   797  	NullFields []string `json:"-"`
   798  }
   799  
   800  func (s *AnnotationConfig) MarshalJSON() ([]byte, error) {
   801  	type NoMethod AnnotationConfig
   802  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   803  }
   804  
   805  // AnnotationSource: AnnotationSource holds the source information of the
   806  // annotation.
   807  type AnnotationSource struct {
   808  	// CloudHealthcareSource: Cloud Healthcare API resource.
   809  	CloudHealthcareSource *CloudHealthcareSource `json:"cloudHealthcareSource,omitempty"`
   810  	// ForceSendFields is a list of field names (e.g. "CloudHealthcareSource") to
   811  	// unconditionally include in API requests. By default, fields with empty or
   812  	// default values are omitted from API requests. See
   813  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   814  	// details.
   815  	ForceSendFields []string `json:"-"`
   816  	// NullFields is a list of field names (e.g. "CloudHealthcareSource") to
   817  	// include in API requests with the JSON null value. By default, fields with
   818  	// empty values are omitted from API requests. See
   819  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   820  	NullFields []string `json:"-"`
   821  }
   822  
   823  func (s *AnnotationSource) MarshalJSON() ([]byte, error) {
   824  	type NoMethod AnnotationSource
   825  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   826  }
   827  
   828  // AnnotationStore: An Annotation store that can store annotation resources
   829  // such as labels and tags for text, image and audio.
   830  type AnnotationStore struct {
   831  	// Labels: Optional. User-supplied key-value pairs used to organize Annotation
   832  	// stores. Label keys must be between 1 and 63 characters long, have a UTF-8
   833  	// encoding of maximum 128 bytes, and must conform to the following PCRE
   834  	// regular expression: \p{Ll}\p{Lo}{0,62} Label values must be between 1 and 63
   835  	// characters long, have a UTF-8 encoding of maximum 128 bytes, and must
   836  	// conform to the following PCRE regular expression:
   837  	// [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a
   838  	// given store.
   839  	Labels map[string]string `json:"labels,omitempty"`
   840  	// Name: Identifier. Resource name of the Annotation store, of the form
   841  	// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotati
   842  	// onStores/{annotation_store_id}`.
   843  	Name string `json:"name,omitempty"`
   844  
   845  	// ServerResponse contains the HTTP response code and headers from the server.
   846  	googleapi.ServerResponse `json:"-"`
   847  	// ForceSendFields is a list of field names (e.g. "Labels") to unconditionally
   848  	// include in API requests. By default, fields with empty or default values are
   849  	// omitted from API requests. See
   850  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   851  	// details.
   852  	ForceSendFields []string `json:"-"`
   853  	// NullFields is a list of field names (e.g. "Labels") to include in API
   854  	// requests with the JSON null value. By default, fields with empty values are
   855  	// omitted from API requests. See
   856  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   857  	NullFields []string `json:"-"`
   858  }
   859  
   860  func (s *AnnotationStore) MarshalJSON() ([]byte, error) {
   861  	type NoMethod AnnotationStore
   862  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   863  }
   864  
   865  // ApplyAdminConsentsRequest: Request to apply the admin Consent resources for
   866  // the specified FHIR store.
   867  type ApplyAdminConsentsRequest struct {
   868  	// NewConsentsList: A new list of admin Consent resources to be applied. Any
   869  	// existing enforced Consents, which are specified in
   870  	// `consent_config.enforced_admin_consents` of the FhirStore, that are not part
   871  	// of this list will be disabled. An empty list is equivalent to clearing or
   872  	// disabling all Consents enforced on the FHIR store. When a FHIR store has
   873  	// `disable_resource_versioning=true` and this list contains a Consent resource
   874  	// that exists in `consent_config.enforced_admin_consents`, the method enforces
   875  	// any updates to the existing resource since the last enforcement. If the
   876  	// existing resource hasn't been updated since the last enforcement, the
   877  	// resource is unaffected. After the method finishes, the resulting consent
   878  	// enforcement model is determined by the contents of the Consent resource(s)
   879  	// when the method was called: * When `disable_resource_versioning=true`, the
   880  	// result is identical to the current resource(s) in the FHIR store. * When
   881  	// `disable_resource_versioning=false`, the result is based on the historical
   882  	// version(s) of the Consent resource(s) at the point in time when the method
   883  	// was called. At most 200 Consents can be specified.
   884  	NewConsentsList *AdminConsents `json:"newConsentsList,omitempty"`
   885  	// ValidateOnly: If true, the method only validates Consent resources to make
   886  	// sure they are supported. Otherwise, the method applies the aggregate consent
   887  	// information to update the enforcement model and reindex the FHIR resources.
   888  	// If all Consent resources can be applied successfully, the
   889  	// ApplyAdminConsentsResponse is returned containing the following fields: *
   890  	// `consent_apply_success` to indicate the number of Consent resources applied.
   891  	// * `affected_resources` to indicate the number of resources that might have
   892  	// had their consent access changed. If, however, one or more Consent resources
   893  	// are unsupported or cannot be applied, the method fails and
   894  	// ApplyAdminConsentsErrorDetail is is returned with details about the
   895  	// unsupported Consent resources.
   896  	ValidateOnly bool `json:"validateOnly,omitempty"`
   897  	// ForceSendFields is a list of field names (e.g. "NewConsentsList") to
   898  	// unconditionally include in API requests. By default, fields with empty or
   899  	// default values are omitted from API requests. See
   900  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   901  	// details.
   902  	ForceSendFields []string `json:"-"`
   903  	// NullFields is a list of field names (e.g. "NewConsentsList") to include in
   904  	// API requests with the JSON null value. By default, fields with empty values
   905  	// are omitted from API requests. See
   906  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   907  	NullFields []string `json:"-"`
   908  }
   909  
   910  func (s *ApplyAdminConsentsRequest) MarshalJSON() ([]byte, error) {
   911  	type NoMethod ApplyAdminConsentsRequest
   912  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   913  }
   914  
   915  // ApplyAdminConsentsResponse: Response when all admin Consent resources in
   916  // scope were processed and all affected resources were reindexed successfully.
   917  // This structure will be included in the response when the operation finishes
   918  // successfully.
   919  type ApplyAdminConsentsResponse struct {
   920  	// AffectedResources: The number of resources (including the Consent resources)
   921  	// that may have consent access change.
   922  	AffectedResources int64 `json:"affectedResources,omitempty,string"`
   923  	// ConsentApplySuccess: If `validate_only=false` in ApplyAdminConsentsRequest,
   924  	// this counter contains the number of Consent resources that were successfully
   925  	// applied. Otherwise, it is the number of Consent resources that are
   926  	// supported.
   927  	ConsentApplySuccess int64 `json:"consentApplySuccess,omitempty,string"`
   928  	// FailedResources: The number of resources (including the Consent resources)
   929  	// that ApplyAdminConsents failed to re-index.
   930  	FailedResources int64 `json:"failedResources,omitempty,string"`
   931  	// ForceSendFields is a list of field names (e.g. "AffectedResources") to
   932  	// unconditionally include in API requests. By default, fields with empty or
   933  	// default values are omitted from API requests. See
   934  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   935  	// details.
   936  	ForceSendFields []string `json:"-"`
   937  	// NullFields is a list of field names (e.g. "AffectedResources") to include in
   938  	// API requests with the JSON null value. By default, fields with empty values
   939  	// are omitted from API requests. See
   940  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   941  	NullFields []string `json:"-"`
   942  }
   943  
   944  func (s *ApplyAdminConsentsResponse) MarshalJSON() ([]byte, error) {
   945  	type NoMethod ApplyAdminConsentsResponse
   946  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   947  }
   948  
   949  // ApplyConsentsRequest: Request to apply the Consent resources for the
   950  // specified FHIR store.
   951  type ApplyConsentsRequest struct {
   952  	// PatientScope: Optional. Scope down to a list of patients.
   953  	PatientScope *PatientScope `json:"patientScope,omitempty"`
   954  	// TimeRange: Optional. Scope down to patients whose most recent consent
   955  	// changes are in the time range. Can only be used with a versioning store
   956  	// (i.e. when disable_resource_versioning is set to false).
   957  	TimeRange *TimeRange `json:"timeRange,omitempty"`
   958  	// ValidateOnly: Optional. If true, the method only validates Consent resources
   959  	// to make sure they are supported. When the operation completes,
   960  	// ApplyConsentsResponse is returned where `consent_apply_success` and
   961  	// `consent_apply_failure` indicate supported and unsupported (or invalid)
   962  	// Consent resources, respectively. Otherwise, the method propagates the
   963  	// aggregate consensual information to the patient's resources. Upon success,
   964  	// `affected_resources` in the ApplyConsentsResponse indicates the number of
   965  	// resources that may have consensual access changed.
   966  	ValidateOnly bool `json:"validateOnly,omitempty"`
   967  	// ForceSendFields is a list of field names (e.g. "PatientScope") to
   968  	// unconditionally include in API requests. By default, fields with empty or
   969  	// default values are omitted from API requests. See
   970  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   971  	// details.
   972  	ForceSendFields []string `json:"-"`
   973  	// NullFields is a list of field names (e.g. "PatientScope") to include in API
   974  	// requests with the JSON null value. By default, fields with empty values are
   975  	// omitted from API requests. See
   976  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   977  	NullFields []string `json:"-"`
   978  }
   979  
   980  func (s *ApplyConsentsRequest) MarshalJSON() ([]byte, error) {
   981  	type NoMethod ApplyConsentsRequest
   982  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   983  }
   984  
   985  // ApplyConsentsResponse: Response when all Consent resources in scope were
   986  // processed and all affected resources were reindexed successfully. This
   987  // structure is included in the response when the operation finishes
   988  // successfully.
   989  type ApplyConsentsResponse struct {
   990  	// AffectedResources: The number of resources (including the Consent resources)
   991  	// that may have consensual access change.
   992  	AffectedResources int64 `json:"affectedResources,omitempty,string"`
   993  	// ConsentApplyFailure: If `validate_only = false` in ApplyConsentsRequest,
   994  	// this counter is the number of Consent resources that were failed to apply.
   995  	// Otherwise, it is the number of Consent resources that are not supported or
   996  	// invalid.
   997  	ConsentApplyFailure int64 `json:"consentApplyFailure,omitempty,string"`
   998  	// ConsentApplySuccess: If `validate_only = false` in ApplyConsentsRequest,
   999  	// this counter is the number of Consent resources that were successfully
  1000  	// applied. Otherwise, it is the number of Consent resources that are
  1001  	// supported.
  1002  	ConsentApplySuccess int64 `json:"consentApplySuccess,omitempty,string"`
  1003  	// FailedResources: The number of resources (including the Consent resources)
  1004  	// that ApplyConsents failed to re-index.
  1005  	FailedResources int64 `json:"failedResources,omitempty,string"`
  1006  	// ForceSendFields is a list of field names (e.g. "AffectedResources") to
  1007  	// unconditionally include in API requests. By default, fields with empty or
  1008  	// default values are omitted from API requests. See
  1009  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1010  	// details.
  1011  	ForceSendFields []string `json:"-"`
  1012  	// NullFields is a list of field names (e.g. "AffectedResources") to include in
  1013  	// API requests with the JSON null value. By default, fields with empty values
  1014  	// are omitted from API requests. See
  1015  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1016  	NullFields []string `json:"-"`
  1017  }
  1018  
  1019  func (s *ApplyConsentsResponse) MarshalJSON() ([]byte, error) {
  1020  	type NoMethod ApplyConsentsResponse
  1021  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1022  }
  1023  
  1024  // ArchiveUserDataMappingRequest: Archives the specified User data mapping.
  1025  type ArchiveUserDataMappingRequest struct {
  1026  }
  1027  
  1028  // ArchiveUserDataMappingResponse: Archives the specified User data mapping.
  1029  type ArchiveUserDataMappingResponse struct {
  1030  	// ServerResponse contains the HTTP response code and headers from the server.
  1031  	googleapi.ServerResponse `json:"-"`
  1032  }
  1033  
  1034  // Attribute: An attribute value for a Consent or User data mapping. Each
  1035  // Attribute must have a corresponding AttributeDefinition in the consent store
  1036  // that defines the default and allowed values.
  1037  type Attribute struct {
  1038  	// AttributeDefinitionId: Indicates the name of an attribute defined in the
  1039  	// consent store.
  1040  	AttributeDefinitionId string `json:"attributeDefinitionId,omitempty"`
  1041  	// Values: The value of the attribute. Must be an acceptable value as defined
  1042  	// in the consent store. For example, if the consent store defines "data type"
  1043  	// with acceptable values "questionnaire" and "step-count", when the attribute
  1044  	// name is data type, this field must contain one of those values.
  1045  	Values []string `json:"values,omitempty"`
  1046  	// ForceSendFields is a list of field names (e.g. "AttributeDefinitionId") to
  1047  	// unconditionally include in API requests. By default, fields with empty or
  1048  	// default values are omitted from API requests. See
  1049  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1050  	// details.
  1051  	ForceSendFields []string `json:"-"`
  1052  	// NullFields is a list of field names (e.g. "AttributeDefinitionId") to
  1053  	// include in API requests with the JSON null value. By default, fields with
  1054  	// empty values are omitted from API requests. See
  1055  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1056  	NullFields []string `json:"-"`
  1057  }
  1058  
  1059  func (s *Attribute) MarshalJSON() ([]byte, error) {
  1060  	type NoMethod Attribute
  1061  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1062  }
  1063  
  1064  // AttributeDefinition: A client-defined consent attribute.
  1065  type AttributeDefinition struct {
  1066  	// AllowedValues: Required. Possible values for the attribute. The number of
  1067  	// allowed values must not exceed 500. An empty list is invalid. The list can
  1068  	// only be expanded after creation.
  1069  	AllowedValues []string `json:"allowedValues,omitempty"`
  1070  	// Category: Required. The category of the attribute. The value of this field
  1071  	// cannot be changed after creation.
  1072  	//
  1073  	// Possible values:
  1074  	//   "CATEGORY_UNSPECIFIED" - No category specified. This option is invalid.
  1075  	//   "RESOURCE" - Specify this category when this attribute describes the
  1076  	// properties of resources. For example, data anonymity or data type.
  1077  	//   "REQUEST" - Specify this category when this attribute describes the
  1078  	// properties of requests. For example, requester's role or requester's
  1079  	// organization.
  1080  	Category string `json:"category,omitempty"`
  1081  	// ConsentDefaultValues: Optional. Default values of the attribute in Consents.
  1082  	// If no default values are specified, it defaults to an empty value.
  1083  	ConsentDefaultValues []string `json:"consentDefaultValues,omitempty"`
  1084  	// DataMappingDefaultValue: Optional. Default value of the attribute in User
  1085  	// data mappings. If no default value is specified, it defaults to an empty
  1086  	// value. This field is only applicable to attributes of the category
  1087  	// `RESOURCE`.
  1088  	DataMappingDefaultValue string `json:"dataMappingDefaultValue,omitempty"`
  1089  	// Description: Optional. A description of the attribute.
  1090  	Description string `json:"description,omitempty"`
  1091  	// Name: Identifier. Resource name of the Attribute definition, of the form
  1092  	// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentS
  1093  	// tores/{consent_store_id}/attributeDefinitions/{attribute_definition_id}`.
  1094  	// Cannot be changed after creation.
  1095  	Name string `json:"name,omitempty"`
  1096  
  1097  	// ServerResponse contains the HTTP response code and headers from the server.
  1098  	googleapi.ServerResponse `json:"-"`
  1099  	// ForceSendFields is a list of field names (e.g. "AllowedValues") to
  1100  	// unconditionally include in API requests. By default, fields with empty or
  1101  	// default values are omitted from API requests. See
  1102  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1103  	// details.
  1104  	ForceSendFields []string `json:"-"`
  1105  	// NullFields is a list of field names (e.g. "AllowedValues") to include in API
  1106  	// requests with the JSON null value. By default, fields with empty values are
  1107  	// omitted from API requests. See
  1108  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1109  	NullFields []string `json:"-"`
  1110  }
  1111  
  1112  func (s *AttributeDefinition) MarshalJSON() ([]byte, error) {
  1113  	type NoMethod AttributeDefinition
  1114  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1115  }
  1116  
  1117  // AuditConfig: Specifies the audit configuration for a service. The
  1118  // configuration determines which permission types are logged, and what
  1119  // identities, if any, are exempted from logging. An AuditConfig must have one
  1120  // or more AuditLogConfigs. If there are AuditConfigs for both `allServices`
  1121  // and a specific service, the union of the two AuditConfigs is used for that
  1122  // service: the log_types specified in each AuditConfig are enabled, and the
  1123  // exempted_members in each AuditLogConfig are exempted. Example Policy with
  1124  // multiple AuditConfigs: { "audit_configs": [ { "service": "allServices",
  1125  // "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [
  1126  // "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type":
  1127  // "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com",
  1128  // "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type":
  1129  // "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For
  1130  // sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
  1131  // logging. It also exempts `jose@example.com` from DATA_READ logging, and
  1132  // `aliya@example.com` from DATA_WRITE logging.
  1133  type AuditConfig struct {
  1134  	// AuditLogConfigs: The configuration for logging of each type of permission.
  1135  	AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"`
  1136  	// Service: Specifies a service that will be enabled for audit logging. For
  1137  	// example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices`
  1138  	// is a special value that covers all services.
  1139  	Service string `json:"service,omitempty"`
  1140  	// ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to
  1141  	// unconditionally include in API requests. By default, fields with empty or
  1142  	// default values are 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. "AuditLogConfigs") to include in
  1147  	// API requests with the JSON null value. By default, fields with empty values
  1148  	// are 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 *AuditConfig) MarshalJSON() ([]byte, error) {
  1154  	type NoMethod AuditConfig
  1155  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1156  }
  1157  
  1158  // AuditLogConfig: Provides the configuration for logging a type of
  1159  // permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ",
  1160  // "exempted_members": [ "user:jose@example.com" ] }, { "log_type":
  1161  // "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while
  1162  // exempting jose@example.com from DATA_READ logging.
  1163  type AuditLogConfig struct {
  1164  	// ExemptedMembers: Specifies the identities that do not cause logging for this
  1165  	// type of permission. Follows the same format of Binding.members.
  1166  	ExemptedMembers []string `json:"exemptedMembers,omitempty"`
  1167  	// LogType: The log type that this config enables.
  1168  	//
  1169  	// Possible values:
  1170  	//   "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this.
  1171  	//   "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy
  1172  	//   "DATA_WRITE" - Data writes. Example: CloudSQL Users create
  1173  	//   "DATA_READ" - Data reads. Example: CloudSQL Users list
  1174  	LogType string `json:"logType,omitempty"`
  1175  	// ForceSendFields is a list of field names (e.g. "ExemptedMembers") to
  1176  	// unconditionally include in API requests. By default, fields with empty or
  1177  	// default values are omitted from API requests. See
  1178  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1179  	// details.
  1180  	ForceSendFields []string `json:"-"`
  1181  	// NullFields is a list of field names (e.g. "ExemptedMembers") to include in
  1182  	// API requests with the JSON null value. By default, fields with empty values
  1183  	// are omitted from API requests. See
  1184  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1185  	NullFields []string `json:"-"`
  1186  }
  1187  
  1188  func (s *AuditLogConfig) MarshalJSON() ([]byte, error) {
  1189  	type NoMethod AuditLogConfig
  1190  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1191  }
  1192  
  1193  // BatchGetMessagesResponse: Gets multiple messages in a specified HL7v2 store.
  1194  type BatchGetMessagesResponse struct {
  1195  	// Messages: The returned Messages. See `MessageView` for populated fields.
  1196  	Messages []*Message `json:"messages,omitempty"`
  1197  
  1198  	// ServerResponse contains the HTTP response code and headers from the server.
  1199  	googleapi.ServerResponse `json:"-"`
  1200  	// ForceSendFields is a list of field names (e.g. "Messages") to
  1201  	// unconditionally include in API requests. By default, fields with empty or
  1202  	// default values are omitted from API requests. See
  1203  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1204  	// details.
  1205  	ForceSendFields []string `json:"-"`
  1206  	// NullFields is a list of field names (e.g. "Messages") to include in API
  1207  	// requests with the JSON null value. By default, fields with empty values are
  1208  	// omitted from API requests. See
  1209  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1210  	NullFields []string `json:"-"`
  1211  }
  1212  
  1213  func (s *BatchGetMessagesResponse) MarshalJSON() ([]byte, error) {
  1214  	type NoMethod BatchGetMessagesResponse
  1215  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1216  }
  1217  
  1218  // Binding: Associates `members`, or principals, with a `role`.
  1219  type Binding struct {
  1220  	// Condition: The condition that is associated with this binding. If the
  1221  	// condition evaluates to `true`, then this binding applies to the current
  1222  	// request. If the condition evaluates to `false`, then this binding does not
  1223  	// apply to the current request. However, a different role binding might grant
  1224  	// the same role to one or more of the principals in this binding. To learn
  1225  	// which resources support conditions in their IAM policies, see the IAM
  1226  	// documentation
  1227  	// (https://cloud.google.com/iam/help/conditions/resource-policies).
  1228  	Condition *Expr `json:"condition,omitempty"`
  1229  	// Members: Specifies the principals requesting access for a Google Cloud
  1230  	// resource. `members` can have the following values: * `allUsers`: A special
  1231  	// identifier that represents anyone who is on the internet; with or without a
  1232  	// Google account. * `allAuthenticatedUsers`: A special identifier that
  1233  	// represents anyone who is authenticated with a Google account or a service
  1234  	// account. Does not include identities that come from external identity
  1235  	// providers (IdPs) through identity federation. * `user:{emailid}`: An email
  1236  	// address that represents a specific Google account. For example,
  1237  	// `alice@example.com` . * `serviceAccount:{emailid}`: An email address that
  1238  	// represents a Google service account. For example,
  1239  	// `my-other-app@appspot.gserviceaccount.com`. *
  1240  	// `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
  1241  	// identifier for a Kubernetes service account
  1242  	// (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
  1243  	// For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. *
  1244  	// `group:{emailid}`: An email address that represents a Google group. For
  1245  	// example, `admins@example.com`. * `domain:{domain}`: The G Suite domain
  1246  	// (primary) that represents all the users of that domain. For example,
  1247  	// `google.com` or `example.com`. *
  1248  	// `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/sub
  1249  	// ject/{subject_attribute_value}`: A single identity in a workforce identity
  1250  	// pool. *
  1251  	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
  1252  	// group/{group_id}`: All workforce identities in a group. *
  1253  	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
  1254  	// attribute.{attribute_name}/{attribute_value}`: All workforce identities with
  1255  	// a specific attribute value. *
  1256  	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
  1257  	// *`: All identities in a workforce identity pool. *
  1258  	// `principal://iam.googleapis.com/projects/{project_number}/locations/global/wo
  1259  	// rkloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single
  1260  	// identity in a workload identity pool. *
  1261  	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
  1262  	// /workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool
  1263  	// group. *
  1264  	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
  1265  	// /workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}
  1266  	// `: All identities in a workload identity pool with a certain attribute. *
  1267  	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
  1268  	// /workloadIdentityPools/{pool_id}/*`: All identities in a workload identity
  1269  	// pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus
  1270  	// unique identifier) representing a user that has been recently deleted. For
  1271  	// example, `alice@example.com?uid=123456789012345678901`. If the user is
  1272  	// recovered, this value reverts to `user:{emailid}` and the recovered user
  1273  	// retains the role in the binding. *
  1274  	// `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
  1275  	// unique identifier) representing a service account that has been recently
  1276  	// deleted. For example,
  1277  	// `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the
  1278  	// service account is undeleted, this value reverts to
  1279  	// `serviceAccount:{emailid}` and the undeleted service account retains the
  1280  	// role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email
  1281  	// address (plus unique identifier) representing a Google group that has been
  1282  	// recently deleted. For example,
  1283  	// `admins@example.com?uid=123456789012345678901`. If the group is recovered,
  1284  	// this value reverts to `group:{emailid}` and the recovered group retains the
  1285  	// role in the binding. *
  1286  	// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool
  1287  	// _id}/subject/{subject_attribute_value}`: Deleted single identity in a
  1288  	// workforce identity pool. For example,
  1289  	// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-po
  1290  	// ol-id/subject/my-subject-attribute-value`.
  1291  	Members []string `json:"members,omitempty"`
  1292  	// Role: Role that is assigned to the list of `members`, or principals. For
  1293  	// example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview
  1294  	// of the IAM roles and permissions, see the IAM documentation
  1295  	// (https://cloud.google.com/iam/docs/roles-overview). For a list of the
  1296  	// available pre-defined roles, see here
  1297  	// (https://cloud.google.com/iam/docs/understanding-roles).
  1298  	Role string `json:"role,omitempty"`
  1299  	// ForceSendFields is a list of field names (e.g. "Condition") to
  1300  	// unconditionally include in API requests. By default, fields with empty or
  1301  	// default values are omitted from API requests. See
  1302  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1303  	// details.
  1304  	ForceSendFields []string `json:"-"`
  1305  	// NullFields is a list of field names (e.g. "Condition") to include in API
  1306  	// requests with the JSON null value. By default, fields with empty values are
  1307  	// omitted from API requests. See
  1308  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1309  	NullFields []string `json:"-"`
  1310  }
  1311  
  1312  func (s *Binding) MarshalJSON() ([]byte, error) {
  1313  	type NoMethod Binding
  1314  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1315  }
  1316  
  1317  // BlobStorageInfo: BlobStorageInfo contains details about the data stored in
  1318  // Blob Storage for the referenced resource. Note: Storage class is only valid
  1319  // for DICOM and hence will only be populated for DICOM resources.
  1320  type BlobStorageInfo struct {
  1321  	// SizeBytes: Size in bytes of data stored in Blob Storage.
  1322  	SizeBytes int64 `json:"sizeBytes,omitempty,string"`
  1323  	// StorageClass: The storage class in which the Blob data is stored.
  1324  	//
  1325  	// Possible values:
  1326  	//   "BLOB_STORAGE_CLASS_UNSPECIFIED" - If unspecified in CreateDataset, the
  1327  	// StorageClass defaults to STANDARD. If unspecified in UpdateDataset and the
  1328  	// StorageClass is set in the field mask, an InvalidRequest error is thrown.
  1329  	//   "STANDARD" - This stores the Object in Blob Standard Storage:
  1330  	// https://cloud.google.com/storage/docs/storage-classes#standard
  1331  	//   "NEARLINE" - This stores the Object in Blob Nearline Storage:
  1332  	// https://cloud.google.com/storage/docs/storage-classes#nearline
  1333  	//   "COLDLINE" - This stores the Object in Blob Coldline Storage:
  1334  	// https://cloud.google.com/storage/docs/storage-classes#coldline
  1335  	//   "ARCHIVE" - This stores the Object in Blob Archive Storage:
  1336  	// https://cloud.google.com/storage/docs/storage-classes#archive
  1337  	StorageClass string `json:"storageClass,omitempty"`
  1338  	// StorageClassUpdateTime: The time at which the storage class was updated.
  1339  	// This is used to compute early deletion fees of the resource.
  1340  	StorageClassUpdateTime string `json:"storageClassUpdateTime,omitempty"`
  1341  	// ForceSendFields is a list of field names (e.g. "SizeBytes") to
  1342  	// unconditionally include in API requests. By default, fields with empty or
  1343  	// default values are omitted from API requests. See
  1344  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1345  	// details.
  1346  	ForceSendFields []string `json:"-"`
  1347  	// NullFields is a list of field names (e.g. "SizeBytes") to include in API
  1348  	// requests with the JSON null value. By default, fields with empty values are
  1349  	// omitted from API requests. See
  1350  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1351  	NullFields []string `json:"-"`
  1352  }
  1353  
  1354  func (s *BlobStorageInfo) MarshalJSON() ([]byte, error) {
  1355  	type NoMethod BlobStorageInfo
  1356  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1357  }
  1358  
  1359  // BlobStorageSettings: Settings for data stored in Blob storage.
  1360  type BlobStorageSettings struct {
  1361  	// BlobStorageClass: The Storage class in which the Blob data is stored.
  1362  	//
  1363  	// Possible values:
  1364  	//   "BLOB_STORAGE_CLASS_UNSPECIFIED" - If unspecified in CreateDataset, the
  1365  	// StorageClass defaults to STANDARD. If unspecified in UpdateDataset and the
  1366  	// StorageClass is set in the field mask, an InvalidRequest error is thrown.
  1367  	//   "STANDARD" - This stores the Object in Blob Standard Storage:
  1368  	// https://cloud.google.com/storage/docs/storage-classes#standard
  1369  	//   "NEARLINE" - This stores the Object in Blob Nearline Storage:
  1370  	// https://cloud.google.com/storage/docs/storage-classes#nearline
  1371  	//   "COLDLINE" - This stores the Object in Blob Coldline Storage:
  1372  	// https://cloud.google.com/storage/docs/storage-classes#coldline
  1373  	//   "ARCHIVE" - This stores the Object in Blob Archive Storage:
  1374  	// https://cloud.google.com/storage/docs/storage-classes#archive
  1375  	BlobStorageClass string `json:"blobStorageClass,omitempty"`
  1376  	// ForceSendFields is a list of field names (e.g. "BlobStorageClass") to
  1377  	// unconditionally include in API requests. By default, fields with empty or
  1378  	// default values are omitted from API requests. See
  1379  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1380  	// details.
  1381  	ForceSendFields []string `json:"-"`
  1382  	// NullFields is a list of field names (e.g. "BlobStorageClass") to include in
  1383  	// API requests with the JSON null value. By default, fields with empty values
  1384  	// are omitted from API requests. See
  1385  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1386  	NullFields []string `json:"-"`
  1387  }
  1388  
  1389  func (s *BlobStorageSettings) MarshalJSON() ([]byte, error) {
  1390  	type NoMethod BlobStorageSettings
  1391  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1392  }
  1393  
  1394  // BoundingPoly: A bounding polygon for the detected image annotation.
  1395  type BoundingPoly struct {
  1396  	// Label: A description of this polygon.
  1397  	Label string `json:"label,omitempty"`
  1398  	// Vertices: List of the vertices of this polygon.
  1399  	Vertices []*Vertex `json:"vertices,omitempty"`
  1400  	// ForceSendFields is a list of field names (e.g. "Label") to unconditionally
  1401  	// include in API requests. By default, fields with empty or default values are
  1402  	// omitted from API requests. See
  1403  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1404  	// details.
  1405  	ForceSendFields []string `json:"-"`
  1406  	// NullFields is a list of field names (e.g. "Label") to include in API
  1407  	// requests with the JSON null value. By default, fields with empty values are
  1408  	// omitted from API requests. See
  1409  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1410  	NullFields []string `json:"-"`
  1411  }
  1412  
  1413  func (s *BoundingPoly) MarshalJSON() ([]byte, error) {
  1414  	type NoMethod BoundingPoly
  1415  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1416  }
  1417  
  1418  // CancelOperationRequest: The request message for Operations.CancelOperation.
  1419  type CancelOperationRequest struct {
  1420  }
  1421  
  1422  // CharacterMaskConfig: Mask a string by replacing its characters with a fixed
  1423  // character.
  1424  type CharacterMaskConfig struct {
  1425  	// MaskingCharacter: Character to mask the sensitive values. If not supplied,
  1426  	// defaults to "*".
  1427  	MaskingCharacter string `json:"maskingCharacter,omitempty"`
  1428  	// ForceSendFields is a list of field names (e.g. "MaskingCharacter") to
  1429  	// unconditionally include in API requests. By default, fields with empty or
  1430  	// default values are omitted from API requests. See
  1431  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1432  	// details.
  1433  	ForceSendFields []string `json:"-"`
  1434  	// NullFields is a list of field names (e.g. "MaskingCharacter") to include in
  1435  	// API requests with the JSON null value. By default, fields with empty values
  1436  	// are omitted from API requests. See
  1437  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1438  	NullFields []string `json:"-"`
  1439  }
  1440  
  1441  func (s *CharacterMaskConfig) MarshalJSON() ([]byte, error) {
  1442  	type NoMethod CharacterMaskConfig
  1443  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1444  }
  1445  
  1446  // CharacterMaskField: Replace field value with masking character. Supported
  1447  // types (https://www.hl7.org/fhir/datatypes.html): Code, Decimal, HumanName,
  1448  // Id, LanguageCode, Markdown, Oid, String, Uri, Uuid, Xhtml.
  1449  type CharacterMaskField struct {
  1450  }
  1451  
  1452  // CheckDataAccessRequest: Checks if a particular data_id of a User data
  1453  // mapping in the given consent store is consented for a given use.
  1454  type CheckDataAccessRequest struct {
  1455  	// ConsentList: Optional. Specific Consents to evaluate the access request
  1456  	// against. These Consents must have the same `user_id` as the evaluated User
  1457  	// data mapping, must exist in the current `consent_store`, and have a `state`
  1458  	// of either `ACTIVE` or `DRAFT`. A maximum of 100 Consents can be provided
  1459  	// here. If no selection is specified, the access request is evaluated against
  1460  	// all `ACTIVE` unexpired Consents with the same `user_id` as the evaluated
  1461  	// User data mapping.
  1462  	ConsentList *ConsentList `json:"consentList,omitempty"`
  1463  	// DataId: Required. The unique identifier of the resource to check access for.
  1464  	// This identifier must correspond to a User data mapping in the given consent
  1465  	// store.
  1466  	DataId string `json:"dataId,omitempty"`
  1467  	// RequestAttributes: The values of request attributes associated with this
  1468  	// access request.
  1469  	RequestAttributes map[string]string `json:"requestAttributes,omitempty"`
  1470  	// ResponseView: Optional. The view for CheckDataAccessResponse. If
  1471  	// unspecified, defaults to `BASIC` and returns `consented` as `TRUE` or
  1472  	// `FALSE`.
  1473  	//
  1474  	// Possible values:
  1475  	//   "RESPONSE_VIEW_UNSPECIFIED" - No response view specified. The API will
  1476  	// default to the BASIC view.
  1477  	//   "BASIC" - Only the `consented` field is populated in
  1478  	// CheckDataAccessResponse.
  1479  	//   "FULL" - All fields within CheckDataAccessResponse are populated. When set
  1480  	// to `FULL`, all `ACTIVE` Consents are evaluated even if a matching policy is
  1481  	// found during evaluation.
  1482  	ResponseView string `json:"responseView,omitempty"`
  1483  	// ForceSendFields is a list of field names (e.g. "ConsentList") to
  1484  	// unconditionally include in API requests. By default, fields with empty or
  1485  	// default values are omitted from API requests. See
  1486  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1487  	// details.
  1488  	ForceSendFields []string `json:"-"`
  1489  	// NullFields is a list of field names (e.g. "ConsentList") to include in API
  1490  	// requests with the JSON null value. By default, fields with empty values are
  1491  	// omitted from API requests. See
  1492  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1493  	NullFields []string `json:"-"`
  1494  }
  1495  
  1496  func (s *CheckDataAccessRequest) MarshalJSON() ([]byte, error) {
  1497  	type NoMethod CheckDataAccessRequest
  1498  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1499  }
  1500  
  1501  // CheckDataAccessResponse: Checks if a particular data_id of a User data
  1502  // mapping in the given consent store is consented for a given use.
  1503  type CheckDataAccessResponse struct {
  1504  	// ConsentDetails: The resource names of all evaluated Consents mapped to their
  1505  	// evaluation.
  1506  	ConsentDetails map[string]ConsentEvaluation `json:"consentDetails,omitempty"`
  1507  	// Consented: Whether the requested resource is consented for the given use.
  1508  	Consented bool `json:"consented,omitempty"`
  1509  
  1510  	// ServerResponse contains the HTTP response code and headers from the server.
  1511  	googleapi.ServerResponse `json:"-"`
  1512  	// ForceSendFields is a list of field names (e.g. "ConsentDetails") to
  1513  	// unconditionally include in API requests. By default, fields with empty or
  1514  	// default values are omitted from API requests. See
  1515  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1516  	// details.
  1517  	ForceSendFields []string `json:"-"`
  1518  	// NullFields is a list of field names (e.g. "ConsentDetails") to include in
  1519  	// API requests with the JSON null value. By default, fields with empty values
  1520  	// are omitted from API requests. See
  1521  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1522  	NullFields []string `json:"-"`
  1523  }
  1524  
  1525  func (s *CheckDataAccessResponse) MarshalJSON() ([]byte, error) {
  1526  	type NoMethod CheckDataAccessResponse
  1527  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1528  }
  1529  
  1530  // CleanDescriptorsOption: This option is based on the DICOM Standard's Clean
  1531  // Descriptors Option
  1532  // (http://dicom.nema.org/medical/dicom/2018e/output/chtml/part15/sect_E.3.5.html),
  1533  // and the `CleanText` `Action` is applied to all the specified fields. When
  1534  // cleaning text, the process attempts to transform phrases matching any of the
  1535  // tags marked for removal (action codes D, Z, X, and U) in the Basic Profile
  1536  // (http://dicom.nema.org/medical/dicom/2018e/output/chtml/part15/chapter_E.html).
  1537  // These contextual phrases are replaced with the token "[CTX]". This option
  1538  // uses an additional infoType during inspection.
  1539  type CleanDescriptorsOption struct {
  1540  }
  1541  
  1542  // CleanTextField: Inspect text and transform sensitive text. Configure using
  1543  // TextConfig. Supported types (https://www.hl7.org/fhir/datatypes.html): Code,
  1544  // Date, DateTime, Decimal, HumanName, Id, LanguageCode, Markdown, Oid, String,
  1545  // Uri, Uuid, Xhtml.
  1546  type CleanTextField struct {
  1547  }
  1548  
  1549  // CleanTextTag: Inspect text and transform sensitive text. Configurable using
  1550  // TextConfig. Supported [Value Representations]
  1551  // (http://dicom.nema.org/medical/dicom/2018e/output/chtml/part05/sect_6.2.html#table_6.2-1):
  1552  // AE, LO, LT, PN, SH, ST, UC, UT, DA, DT, AS
  1553  type CleanTextTag struct {
  1554  }
  1555  
  1556  // CloudHealthcareSource: Cloud Healthcare API resource.
  1557  type CloudHealthcareSource struct {
  1558  	// Name: Full path of a Cloud Healthcare API resource.
  1559  	Name string `json:"name,omitempty"`
  1560  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  1561  	// include in API requests. By default, fields with empty or default values are
  1562  	// omitted from API requests. See
  1563  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1564  	// details.
  1565  	ForceSendFields []string `json:"-"`
  1566  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  1567  	// with the JSON null value. By default, fields with empty values are omitted
  1568  	// from API requests. See
  1569  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1570  	NullFields []string `json:"-"`
  1571  }
  1572  
  1573  func (s *CloudHealthcareSource) MarshalJSON() ([]byte, error) {
  1574  	type NoMethod CloudHealthcareSource
  1575  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1576  }
  1577  
  1578  // ConfigureSearchRequest: Request to configure the search parameters for the
  1579  // specified FHIR store.
  1580  type ConfigureSearchRequest struct {
  1581  	// CanonicalUrls: The canonical URLs of the search parameters that are intended
  1582  	// to be used for the FHIR store. See
  1583  	// https://www.hl7.org/fhir/references.html#canonical for explanation on FHIR
  1584  	// canonical urls
  1585  	CanonicalUrls []string `json:"canonicalUrls,omitempty"`
  1586  	// ValidateOnly: If `validate_only` is set to true, the method will compile all
  1587  	// the search parameters without actually setting the search config for the
  1588  	// store and triggering the reindex.
  1589  	ValidateOnly bool `json:"validateOnly,omitempty"`
  1590  	// ForceSendFields is a list of field names (e.g. "CanonicalUrls") to
  1591  	// unconditionally include in API requests. By default, fields with empty or
  1592  	// default values are omitted from API requests. See
  1593  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1594  	// details.
  1595  	ForceSendFields []string `json:"-"`
  1596  	// NullFields is a list of field names (e.g. "CanonicalUrls") to include in API
  1597  	// requests with the JSON null value. By default, fields with empty values are
  1598  	// omitted from API requests. See
  1599  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1600  	NullFields []string `json:"-"`
  1601  }
  1602  
  1603  func (s *ConfigureSearchRequest) MarshalJSON() ([]byte, error) {
  1604  	type NoMethod ConfigureSearchRequest
  1605  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1606  }
  1607  
  1608  // Consent: Represents a user's consent.
  1609  type Consent struct {
  1610  	// ConsentArtifact: Required. The resource name of the Consent artifact that
  1611  	// contains proof of the end user's consent, of the form
  1612  	// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentS
  1613  	// tores/{consent_store_id}/consentArtifacts/{consent_artifact_id}`.
  1614  	ConsentArtifact string `json:"consentArtifact,omitempty"`
  1615  	// ExpireTime: Timestamp in UTC of when this Consent is considered expired.
  1616  	ExpireTime string `json:"expireTime,omitempty"`
  1617  	// Metadata: Optional. User-supplied key-value pairs used to organize Consent
  1618  	// resources. Metadata keys must: - be between 1 and 63 characters long - have
  1619  	// a UTF-8 encoding of maximum 128 bytes - begin with a letter - consist of up
  1620  	// to 63 characters including lowercase letters, numeric characters,
  1621  	// underscores, and dashes Metadata values must be: - be between 1 and 63
  1622  	// characters long - have a UTF-8 encoding of maximum 128 bytes - consist of up
  1623  	// to 63 characters including lowercase letters, numeric characters,
  1624  	// underscores, and dashes No more than 64 metadata entries can be associated
  1625  	// with a given consent.
  1626  	Metadata map[string]string `json:"metadata,omitempty"`
  1627  	// Name: Identifier. Resource name of the Consent, of the form
  1628  	// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentS
  1629  	// tores/{consent_store_id}/consents/{consent_id}`. Cannot be changed after
  1630  	// creation.
  1631  	Name string `json:"name,omitempty"`
  1632  	// Policies: Optional. Represents a user's consent in terms of the resources
  1633  	// that can be accessed and under what conditions.
  1634  	Policies []*GoogleCloudHealthcareV1beta1ConsentPolicy `json:"policies,omitempty"`
  1635  	// RevisionCreateTime: Output only. The timestamp that the revision was
  1636  	// created.
  1637  	RevisionCreateTime string `json:"revisionCreateTime,omitempty"`
  1638  	// RevisionId: Output only. The revision ID of the Consent. The format is an
  1639  	// 8-character hexadecimal string. Refer to a specific revision of a Consent by
  1640  	// appending `@{revision_id}` to the Consent's resource name.
  1641  	RevisionId string `json:"revisionId,omitempty"`
  1642  	// State: Required. Indicates the current state of this Consent.
  1643  	//
  1644  	// Possible values:
  1645  	//   "STATE_UNSPECIFIED" - No state specified. Treated as ACTIVE only at the
  1646  	// time of resource creation.
  1647  	//   "ACTIVE" - The Consent is active and is considered when evaluating a
  1648  	// user's consent on resources.
  1649  	//   "ARCHIVED" - The archived state is currently not being used.
  1650  	//   "REVOKED" - A revoked Consent is not considered when evaluating a user's
  1651  	// consent on resources.
  1652  	//   "DRAFT" - A draft Consent is not considered when evaluating a user's
  1653  	// consent on resources unless explicitly specified.
  1654  	//   "REJECTED" - When a draft Consent is rejected by a user, it is set to a
  1655  	// rejected state. A rejected Consent is not considered when evaluating a
  1656  	// user's consent on resources.
  1657  	State string `json:"state,omitempty"`
  1658  	// Ttl: Input only. The time to live for this Consent from when it is created.
  1659  	Ttl string `json:"ttl,omitempty"`
  1660  	// UserId: Required. User's UUID provided by the client.
  1661  	UserId string `json:"userId,omitempty"`
  1662  
  1663  	// ServerResponse contains the HTTP response code and headers from the server.
  1664  	googleapi.ServerResponse `json:"-"`
  1665  	// ForceSendFields is a list of field names (e.g. "ConsentArtifact") to
  1666  	// unconditionally include in API requests. By default, fields with empty or
  1667  	// default values are omitted from API requests. See
  1668  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1669  	// details.
  1670  	ForceSendFields []string `json:"-"`
  1671  	// NullFields is a list of field names (e.g. "ConsentArtifact") to include in
  1672  	// API requests with the JSON null value. By default, fields with empty values
  1673  	// are omitted from API requests. See
  1674  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1675  	NullFields []string `json:"-"`
  1676  }
  1677  
  1678  func (s *Consent) MarshalJSON() ([]byte, error) {
  1679  	type NoMethod Consent
  1680  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1681  }
  1682  
  1683  // ConsentAccessorScope: The accessor scope that describes who can access, for
  1684  // what purpose, in which environment.
  1685  type ConsentAccessorScope struct {
  1686  	// Actor: An individual, group, or access role that identifies the accessor or
  1687  	// a characteristic of the accessor. This can be a resource ID (such as
  1688  	// `{resourceType}/{id}`) or an external URI. This value must be present.
  1689  	Actor string `json:"actor,omitempty"`
  1690  	// Environment: An abstract identifier that describes the environment or
  1691  	// conditions under which the accessor is acting. Can be "*" if it applies to
  1692  	// all environments.
  1693  	Environment string `json:"environment,omitempty"`
  1694  	// Purpose: The intent of data use. Can be "*" if it applies to all purposes.
  1695  	Purpose string `json:"purpose,omitempty"`
  1696  	// ForceSendFields is a list of field names (e.g. "Actor") to unconditionally
  1697  	// include in API requests. By default, fields with empty or default values are
  1698  	// omitted from API requests. See
  1699  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1700  	// details.
  1701  	ForceSendFields []string `json:"-"`
  1702  	// NullFields is a list of field names (e.g. "Actor") to include in API
  1703  	// requests with the JSON null value. By default, fields with empty values are
  1704  	// omitted from API requests. See
  1705  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1706  	NullFields []string `json:"-"`
  1707  }
  1708  
  1709  func (s *ConsentAccessorScope) MarshalJSON() ([]byte, error) {
  1710  	type NoMethod ConsentAccessorScope
  1711  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1712  }
  1713  
  1714  // ConsentArtifact: Documentation of a user's consent.
  1715  type ConsentArtifact struct {
  1716  	// ConsentContentScreenshots: Optional. Screenshots, PDFs, or other binary
  1717  	// information documenting the user's consent.
  1718  	ConsentContentScreenshots []*Image `json:"consentContentScreenshots,omitempty"`
  1719  	// ConsentContentVersion: Optional. An string indicating the version of the
  1720  	// consent information shown to the user.
  1721  	ConsentContentVersion string `json:"consentContentVersion,omitempty"`
  1722  	// GuardianSignature: Optional. A signature from a guardian.
  1723  	GuardianSignature *Signature `json:"guardianSignature,omitempty"`
  1724  	// Metadata: Optional. Metadata associated with the Consent artifact. For
  1725  	// example, the consent locale or user agent version.
  1726  	Metadata map[string]string `json:"metadata,omitempty"`
  1727  	// Name: Identifier. Resource name of the Consent artifact, of the form
  1728  	// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentS
  1729  	// tores/{consent_store_id}/consentArtifacts/{consent_artifact_id}`. Cannot be
  1730  	// changed after creation.
  1731  	Name string `json:"name,omitempty"`
  1732  	// UserId: Required. User's UUID provided by the client.
  1733  	UserId string `json:"userId,omitempty"`
  1734  	// UserSignature: Optional. User's signature.
  1735  	UserSignature *Signature `json:"userSignature,omitempty"`
  1736  	// WitnessSignature: Optional. A signature from a witness.
  1737  	WitnessSignature *Signature `json:"witnessSignature,omitempty"`
  1738  
  1739  	// ServerResponse contains the HTTP response code and headers from the server.
  1740  	googleapi.ServerResponse `json:"-"`
  1741  	// ForceSendFields is a list of field names (e.g. "ConsentContentScreenshots")
  1742  	// to unconditionally include in API requests. By default, fields with empty or
  1743  	// default values are omitted from API requests. See
  1744  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1745  	// details.
  1746  	ForceSendFields []string `json:"-"`
  1747  	// NullFields is a list of field names (e.g. "ConsentContentScreenshots") to
  1748  	// include in API requests with the JSON null value. By default, fields with
  1749  	// empty values are omitted from API requests. See
  1750  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1751  	NullFields []string `json:"-"`
  1752  }
  1753  
  1754  func (s *ConsentArtifact) MarshalJSON() ([]byte, error) {
  1755  	type NoMethod ConsentArtifact
  1756  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1757  }
  1758  
  1759  // ConsentConfig: Configures whether to enforce consent for the FHIR store and
  1760  // which consent enforcement version is being used.
  1761  type ConsentConfig struct {
  1762  	// AccessDeterminationLogConfig: Optional. Specifies how the server logs the
  1763  	// consent-aware requests. If not specified, the
  1764  	// `AccessDeterminationLogConfig.LogLevel.MINIMUM` option is used.
  1765  	AccessDeterminationLogConfig *AccessDeterminationLogConfig `json:"accessDeterminationLogConfig,omitempty"`
  1766  	// AccessEnforced: Optional. If set to true, when accessing FHIR resources, the
  1767  	// consent headers will be verified against consents given by patients. See the
  1768  	// ConsentEnforcementVersion for the supported consent headers.
  1769  	AccessEnforced bool `json:"accessEnforced,omitempty"`
  1770  	// ConsentHeaderHandling: Optional. Different options to configure the
  1771  	// behaviour of the server when handling the `X-Consent-Scope` header.
  1772  	ConsentHeaderHandling *ConsentHeaderHandling `json:"consentHeaderHandling,omitempty"`
  1773  	// EnforcedAdminConsents: The versioned names of the enforced admin Consent
  1774  	// resource(s), in the format
  1775  	// `projects/{project_id}/locations/{location}/datasets/{dataset_id}/fhirStores/
  1776  	// {fhir_store_id}/fhir/Consent/{resource_id}/_history/{version_id}`. For FHIR
  1777  	// stores with `disable_resource_versioning=true`, the format is
  1778  	// `projects/{project_id}/locations/{location}/datasets/{dataset_id}/fhirStores/
  1779  	// {fhir_store_id}/fhir/Consent/{resource_id}`. This field can only be updated
  1780  	// using ApplyAdminConsents.
  1781  	EnforcedAdminConsents []string `json:"enforcedAdminConsents,omitempty"`
  1782  	// Version: Required. Specifies which consent enforcement version is being used
  1783  	// for this FHIR store. This field can only be set once by either
  1784  	// CreateFhirStore or UpdateFhirStore. After that, you must call ApplyConsents
  1785  	// to change the version.
  1786  	//
  1787  	// Possible values:
  1788  	//   "CONSENT_ENFORCEMENT_VERSION_UNSPECIFIED" - Users must specify an
  1789  	// enforcement version or an error is returned.
  1790  	//   "V1" - Enforcement version 1. See the [FHIR Consent resources in the Cloud
  1791  	// Healthcare API](https://cloud.google.com/healthcare-api/docs/fhir-consent)
  1792  	// guide for more details.
  1793  	Version string `json:"version,omitempty"`
  1794  	// ForceSendFields is a list of field names (e.g.
  1795  	// "AccessDeterminationLogConfig") to unconditionally include in API requests.
  1796  	// By default, fields with empty or default values are omitted from API
  1797  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  1798  	// for more details.
  1799  	ForceSendFields []string `json:"-"`
  1800  	// NullFields is a list of field names (e.g. "AccessDeterminationLogConfig") to
  1801  	// include in API requests with the JSON null value. By default, fields with
  1802  	// empty values are omitted from API requests. See
  1803  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1804  	NullFields []string `json:"-"`
  1805  }
  1806  
  1807  func (s *ConsentConfig) MarshalJSON() ([]byte, error) {
  1808  	type NoMethod ConsentConfig
  1809  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1810  }
  1811  
  1812  // ConsentEvaluation: The detailed evaluation of a particular Consent.
  1813  type ConsentEvaluation struct {
  1814  	// EvaluationResult: The evaluation result.
  1815  	//
  1816  	// Possible values:
  1817  	//   "EVALUATION_RESULT_UNSPECIFIED" - No evaluation result specified. This
  1818  	// option is invalid.
  1819  	//   "NOT_APPLICABLE" - The Consent is not applicable to the requested access
  1820  	// determination. For example, the Consent does not apply to the user for which
  1821  	// the access determination is requested, or it has a `state` of `REVOKED`, or
  1822  	// it has expired.
  1823  	//   "NO_MATCHING_POLICY" - The Consent does not have a policy that matches the
  1824  	// `resource_attributes` of the evaluated resource.
  1825  	//   "NO_SATISFIED_POLICY" - The Consent has at least one policy that matches
  1826  	// the `resource_attributes` of the evaluated resource, but no
  1827  	// `authorization_rule` was satisfied.
  1828  	//   "HAS_SATISFIED_POLICY" - The Consent has at least one policy that matches
  1829  	// the `resource_attributes` of the evaluated resource, and at least one
  1830  	// `authorization_rule` was satisfied.
  1831  	EvaluationResult string `json:"evaluationResult,omitempty"`
  1832  	// ForceSendFields is a list of field names (e.g. "EvaluationResult") to
  1833  	// unconditionally include in API requests. By default, fields with empty or
  1834  	// default values are omitted from API requests. See
  1835  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1836  	// details.
  1837  	ForceSendFields []string `json:"-"`
  1838  	// NullFields is a list of field names (e.g. "EvaluationResult") to include in
  1839  	// API requests with the JSON null value. By default, fields with empty values
  1840  	// are omitted from API requests. See
  1841  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1842  	NullFields []string `json:"-"`
  1843  }
  1844  
  1845  func (s *ConsentEvaluation) MarshalJSON() ([]byte, error) {
  1846  	type NoMethod ConsentEvaluation
  1847  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1848  }
  1849  
  1850  // ConsentHeaderHandling: How the server handles the consent header.
  1851  type ConsentHeaderHandling struct {
  1852  	// Profile: Optional. Specifies the default server behavior when the header is
  1853  	// empty. If not specified, the `ScopeProfile.PERMIT_EMPTY_SCOPE` option is
  1854  	// used.
  1855  	//
  1856  	// Possible values:
  1857  	//   "SCOPE_PROFILE_UNSPECIFIED" - If not specified, the default value
  1858  	// `PERMIT_EMPTY_SCOPE` is used.
  1859  	//   "PERMIT_EMPTY_SCOPE" - When no consent scopes are provided (for example,
  1860  	// if there's an empty or missing header), then consent check is disabled,
  1861  	// similar to when `access_enforced` is `false`. You can use audit logs to
  1862  	// differentiate these two cases by looking at the value of
  1863  	// `protopayload.metadata.consentMode`. If consents scopes are present, they
  1864  	// must be valid and within the allowed limits, otherwise the request will be
  1865  	// rejected with a `4xx` code.
  1866  	//   "REQUIRED_ON_READ" - The consent header must be non-empty when performing
  1867  	// read and search operations, otherwise the request is rejected with a `4xx`
  1868  	// code. Additionally, invalid consent scopes or scopes exceeding the allowed
  1869  	// limits are rejected.
  1870  	Profile string `json:"profile,omitempty"`
  1871  	// ForceSendFields is a list of field names (e.g. "Profile") to unconditionally
  1872  	// include in API requests. By default, fields with empty or default values are
  1873  	// omitted from API requests. See
  1874  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1875  	// details.
  1876  	ForceSendFields []string `json:"-"`
  1877  	// NullFields is a list of field names (e.g. "Profile") to include in API
  1878  	// requests with the JSON null value. By default, fields with empty values are
  1879  	// omitted from API requests. See
  1880  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1881  	NullFields []string `json:"-"`
  1882  }
  1883  
  1884  func (s *ConsentHeaderHandling) MarshalJSON() ([]byte, error) {
  1885  	type NoMethod ConsentHeaderHandling
  1886  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1887  }
  1888  
  1889  // ConsentList: List of resource names of Consent resources.
  1890  type ConsentList struct {
  1891  	// Consents: The resource names of the Consents to evaluate against, of the
  1892  	// form
  1893  	// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentS
  1894  	// tores/{consent_store_id}/consents/{consent_id}`.
  1895  	Consents []string `json:"consents,omitempty"`
  1896  	// ForceSendFields is a list of field names (e.g. "Consents") to
  1897  	// unconditionally include in API requests. By default, fields with empty or
  1898  	// default values are omitted from API requests. See
  1899  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1900  	// details.
  1901  	ForceSendFields []string `json:"-"`
  1902  	// NullFields is a list of field names (e.g. "Consents") to include in API
  1903  	// requests with the JSON null value. By default, fields with empty values are
  1904  	// omitted from API requests. See
  1905  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1906  	NullFields []string `json:"-"`
  1907  }
  1908  
  1909  func (s *ConsentList) MarshalJSON() ([]byte, error) {
  1910  	type NoMethod ConsentList
  1911  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1912  }
  1913  
  1914  // ConsentStore: Represents a consent store.
  1915  type ConsentStore struct {
  1916  	// DefaultConsentTtl: Optional. Default time to live for Consents created in
  1917  	// this store. Must be at least 24 hours. Updating this field will not affect
  1918  	// the expiration time of existing consents.
  1919  	DefaultConsentTtl string `json:"defaultConsentTtl,omitempty"`
  1920  	// EnableConsentCreateOnUpdate: Optional. If `true`, UpdateConsent creates the
  1921  	// Consent if it does not already exist. If unspecified, defaults to `false`.
  1922  	EnableConsentCreateOnUpdate bool `json:"enableConsentCreateOnUpdate,omitempty"`
  1923  	// Labels: Optional. User-supplied key-value pairs used to organize consent
  1924  	// stores. Label keys must be between 1 and 63 characters long, have a UTF-8
  1925  	// encoding of maximum 128 bytes, and must conform to the following PCRE
  1926  	// regular expression: \p{Ll}\p{Lo}{0,62}. Label values must be between 1 and
  1927  	// 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must
  1928  	// conform to the following PCRE regular expression:
  1929  	// [\p{Ll}\p{Lo}\p{N}_-]{0,63}. No more than 64 labels can be associated with a
  1930  	// given store. For more information:
  1931  	// https://cloud.google.com/healthcare/docs/how-tos/labeling-resources
  1932  	Labels map[string]string `json:"labels,omitempty"`
  1933  	// Name: Resource name of the consent store, of the form
  1934  	// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentS
  1935  	// tores/{consent_store_id}`. Cannot be changed after creation.
  1936  	Name string `json:"name,omitempty"`
  1937  
  1938  	// ServerResponse contains the HTTP response code and headers from the server.
  1939  	googleapi.ServerResponse `json:"-"`
  1940  	// ForceSendFields is a list of field names (e.g. "DefaultConsentTtl") to
  1941  	// unconditionally include in API requests. By default, fields with empty or
  1942  	// default values are omitted from API requests. See
  1943  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1944  	// details.
  1945  	ForceSendFields []string `json:"-"`
  1946  	// NullFields is a list of field names (e.g. "DefaultConsentTtl") to include in
  1947  	// API requests with the JSON null value. By default, fields with empty values
  1948  	// are omitted from API requests. See
  1949  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1950  	NullFields []string `json:"-"`
  1951  }
  1952  
  1953  func (s *ConsentStore) MarshalJSON() ([]byte, error) {
  1954  	type NoMethod ConsentStore
  1955  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1956  }
  1957  
  1958  // ContextualDeidConfig: Fields that don't match a KeepField or CleanTextField
  1959  // `action` in the BASIC profile are collected into a contextual phrase list.
  1960  // For fields that match a CleanTextField `action` in FieldMetadata or
  1961  // ProfileType, the process attempts to transform phrases matching these
  1962  // contextual entries. These contextual phrases are replaced with the token
  1963  // "[CTX]". This feature uses an additional InfoType during inspection.
  1964  type ContextualDeidConfig struct {
  1965  }
  1966  
  1967  // CreateMessageRequest: Creates a new message.
  1968  type CreateMessageRequest struct {
  1969  	// Message: Required. HL7v2 message.
  1970  	Message *Message `json:"message,omitempty"`
  1971  	// ForceSendFields is a list of field names (e.g. "Message") to unconditionally
  1972  	// include in API requests. By default, fields with empty or default values are
  1973  	// omitted from API requests. See
  1974  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1975  	// details.
  1976  	ForceSendFields []string `json:"-"`
  1977  	// NullFields is a list of field names (e.g. "Message") to include in API
  1978  	// requests with the JSON null value. By default, fields with empty values are
  1979  	// omitted from API requests. See
  1980  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1981  	NullFields []string `json:"-"`
  1982  }
  1983  
  1984  func (s *CreateMessageRequest) MarshalJSON() ([]byte, error) {
  1985  	type NoMethod CreateMessageRequest
  1986  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1987  }
  1988  
  1989  // CryptoHashConfig: Pseudonymization method that generates surrogates via
  1990  // cryptographic hashing. Uses SHA-256. Outputs a base64-encoded representation
  1991  // of the hashed output. For example,
  1992  // `L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=`.
  1993  type CryptoHashConfig struct {
  1994  	// CryptoKey: An AES 128/192/256 bit key. Causes the hash to be computed based
  1995  	// on this key. A default key is generated for each Deidentify operation and is
  1996  	// used when neither crypto_key nor kms_wrapped is specified. Must not be set
  1997  	// if kms_wrapped is set.
  1998  	CryptoKey string `json:"cryptoKey,omitempty"`
  1999  	// KmsWrapped: KMS wrapped key. Must not be set if crypto_key is set.
  2000  	KmsWrapped *KmsWrappedCryptoKey `json:"kmsWrapped,omitempty"`
  2001  	// ForceSendFields is a list of field names (e.g. "CryptoKey") to
  2002  	// unconditionally include in API requests. By default, fields with empty or
  2003  	// default values are omitted from API requests. See
  2004  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2005  	// details.
  2006  	ForceSendFields []string `json:"-"`
  2007  	// NullFields is a list of field names (e.g. "CryptoKey") to include in API
  2008  	// requests with the JSON null value. By default, fields with empty values are
  2009  	// omitted from API requests. See
  2010  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2011  	NullFields []string `json:"-"`
  2012  }
  2013  
  2014  func (s *CryptoHashConfig) MarshalJSON() ([]byte, error) {
  2015  	type NoMethod CryptoHashConfig
  2016  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2017  }
  2018  
  2019  // CryptoHashField: Replace field value with a hash of that value. Supported
  2020  // types (https://www.hl7.org/fhir/datatypes.html): Code, Decimal, HumanName,
  2021  // Id, LanguageCode, Markdown, Oid, String, Uri, Uuid, Xhtml.
  2022  type CryptoHashField struct {
  2023  }
  2024  
  2025  // Dataset: A message representing a health dataset. A health dataset
  2026  // represents a collection of healthcare data pertaining to one or more
  2027  // patients. This may include multiple modalities of healthcare data, such as
  2028  // electronic medical records or medical imaging data.
  2029  type Dataset struct {
  2030  	// Name: Identifier. Resource name of the dataset, of the form
  2031  	// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`.
  2032  	Name string `json:"name,omitempty"`
  2033  	// TimeZone: The default timezone used by this dataset. Must be a either a
  2034  	// valid IANA time zone name such as "America/New_York" or empty, which
  2035  	// defaults to UTC. This is used for parsing times in resources, such as HL7
  2036  	// messages, where no explicit timezone is specified.
  2037  	TimeZone string `json:"timeZone,omitempty"`
  2038  
  2039  	// ServerResponse contains the HTTP response code and headers from the server.
  2040  	googleapi.ServerResponse `json:"-"`
  2041  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  2042  	// include in API requests. By default, fields with empty or default values are
  2043  	// omitted from API requests. See
  2044  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2045  	// details.
  2046  	ForceSendFields []string `json:"-"`
  2047  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  2048  	// with the JSON null value. By default, fields with empty values are omitted
  2049  	// from API requests. See
  2050  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2051  	NullFields []string `json:"-"`
  2052  }
  2053  
  2054  func (s *Dataset) MarshalJSON() ([]byte, error) {
  2055  	type NoMethod Dataset
  2056  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2057  }
  2058  
  2059  // DateShiftConfig: Shift a date forward or backward in time by a random amount
  2060  // which is consistent for a given patient and crypto key combination.
  2061  type DateShiftConfig struct {
  2062  	// CryptoKey: An AES 128/192/256 bit key. The date shift is computed based on
  2063  	// this key and the patient ID. If the patient ID is empty for a DICOM
  2064  	// resource, the date shift is computed based on this key and the study
  2065  	// instance UID. If crypto_key is not set, then kms_wrapped is used to
  2066  	// calculate the date shift. If neither is set, a default key is generated for
  2067  	// each de-identify operation. Must not be set if kms_wrapped is set.
  2068  	CryptoKey string `json:"cryptoKey,omitempty"`
  2069  	// KmsWrapped: KMS wrapped key. If kms_wrapped is not set, then crypto_key is
  2070  	// used to calculate the date shift. If neither is set, a default key is
  2071  	// generated for each de-identify operation. Must not be set if crypto_key is
  2072  	// set.
  2073  	KmsWrapped *KmsWrappedCryptoKey `json:"kmsWrapped,omitempty"`
  2074  	// ForceSendFields is a list of field names (e.g. "CryptoKey") to
  2075  	// unconditionally include in API requests. By default, fields with empty or
  2076  	// default values are omitted from API requests. See
  2077  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2078  	// details.
  2079  	ForceSendFields []string `json:"-"`
  2080  	// NullFields is a list of field names (e.g. "CryptoKey") to include in API
  2081  	// requests with the JSON null value. By default, fields with empty values are
  2082  	// omitted from API requests. See
  2083  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2084  	NullFields []string `json:"-"`
  2085  }
  2086  
  2087  func (s *DateShiftConfig) MarshalJSON() ([]byte, error) {
  2088  	type NoMethod DateShiftConfig
  2089  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2090  }
  2091  
  2092  // DateShiftField: Shift the date by a randomized number of days. See date
  2093  // shifting (https://cloud.google.com/dlp/docs/concepts-date-shifting) for more
  2094  // information. Supported types (https://www.hl7.org/fhir/datatypes.html):
  2095  // Date, DateTime.
  2096  type DateShiftField struct {
  2097  }
  2098  
  2099  // DeidentifiedStoreDestination: Contains configuration for streaming
  2100  // de-identified FHIR export.
  2101  type DeidentifiedStoreDestination struct {
  2102  	// Config: The configuration to use when de-identifying resources that are
  2103  	// added to this store.
  2104  	Config *DeidentifyConfig `json:"config,omitempty"`
  2105  	// Store: The full resource name of a Cloud Healthcare FHIR store, for example,
  2106  	// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStor
  2107  	// es/{fhir_store_id}`.
  2108  	Store string `json:"store,omitempty"`
  2109  	// ForceSendFields is a list of field names (e.g. "Config") to unconditionally
  2110  	// include in API requests. By default, fields with empty or default values are
  2111  	// omitted from API requests. See
  2112  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2113  	// details.
  2114  	ForceSendFields []string `json:"-"`
  2115  	// NullFields is a list of field names (e.g. "Config") to include in API
  2116  	// requests with the JSON null value. By default, fields with empty values are
  2117  	// omitted from API requests. See
  2118  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2119  	NullFields []string `json:"-"`
  2120  }
  2121  
  2122  func (s *DeidentifiedStoreDestination) MarshalJSON() ([]byte, error) {
  2123  	type NoMethod DeidentifiedStoreDestination
  2124  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2125  }
  2126  
  2127  // DeidentifyConfig: Configures de-id options specific to different types of
  2128  // content. Each submessage customizes the handling of an
  2129  // https://tools.ietf.org/html/rfc6838 media type or subtype. Configs are
  2130  // applied in a nested manner at runtime.
  2131  type DeidentifyConfig struct {
  2132  	// Annotation: Configures how annotations, meaning that the location and
  2133  	// infoType of sensitive information findings, are created during
  2134  	// de-identification. If unspecified, no annotations are created.
  2135  	Annotation *AnnotationConfig `json:"annotation,omitempty"`
  2136  	// Dicom: Configures de-id of application/DICOM content. Deprecated. Use
  2137  	// `dicom_tag_config` instead.
  2138  	Dicom *DicomConfig `json:"dicom,omitempty"`
  2139  	// DicomTagConfig: Configures de-id of application/DICOM content.
  2140  	DicomTagConfig *DicomTagConfig `json:"dicomTagConfig,omitempty"`
  2141  	// Fhir: Configures de-id of application/FHIR content. Deprecated. Use
  2142  	// `fhir_field_config` instead.
  2143  	Fhir *FhirConfig `json:"fhir,omitempty"`
  2144  	// FhirFieldConfig: Configures de-id of application/FHIR content.
  2145  	FhirFieldConfig *FhirFieldConfig `json:"fhirFieldConfig,omitempty"`
  2146  	// Image: Configures the de-identification of image pixels in the
  2147  	// source_dataset. Deprecated. Use `dicom_tag_config.options.clean_image`
  2148  	// instead.
  2149  	Image *ImageConfig `json:"image,omitempty"`
  2150  	// OperationMetadata: Details about the work the de-identify operation
  2151  	// performed.
  2152  	OperationMetadata *DeidentifyOperationMetadata `json:"operationMetadata,omitempty"`
  2153  	// Text: Configures de-identification of text wherever it is found in the
  2154  	// source_dataset.
  2155  	Text *TextConfig `json:"text,omitempty"`
  2156  	// UseRegionalDataProcessing: Ensures in-flight data remains in the region of
  2157  	// origin during de-identification. Using this option results in a significant
  2158  	// reduction of throughput, and is not compatible with `LOCATION` or
  2159  	// `ORGANIZATION_NAME` infoTypes. If the deprecated DicomConfig or FhirConfig
  2160  	// are used, then `LOCATION` must be excluded within TextConfig, and must also
  2161  	// be excluded within ImageConfig if image redaction is required.
  2162  	UseRegionalDataProcessing bool `json:"useRegionalDataProcessing,omitempty"`
  2163  	// ForceSendFields is a list of field names (e.g. "Annotation") to
  2164  	// unconditionally include in API requests. By default, fields with empty or
  2165  	// default values are omitted from API requests. See
  2166  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2167  	// details.
  2168  	ForceSendFields []string `json:"-"`
  2169  	// NullFields is a list of field names (e.g. "Annotation") to include in API
  2170  	// requests with the JSON null value. By default, fields with empty values are
  2171  	// omitted from API requests. See
  2172  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2173  	NullFields []string `json:"-"`
  2174  }
  2175  
  2176  func (s *DeidentifyConfig) MarshalJSON() ([]byte, error) {
  2177  	type NoMethod DeidentifyConfig
  2178  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2179  }
  2180  
  2181  // DeidentifyDatasetRequest: Redacts identifying information from the specified
  2182  // dataset.
  2183  type DeidentifyDatasetRequest struct {
  2184  	// Config: Deidentify configuration. Only one of `config` and `gcs_config_uri`
  2185  	// can be specified.
  2186  	Config *DeidentifyConfig `json:"config,omitempty"`
  2187  	// DestinationDataset: Required. The name of the dataset resource to create and
  2188  	// write the redacted data to. * The destination dataset must not exist. * The
  2189  	// destination dataset must be in the same location as the source dataset.
  2190  	// De-identifying data across multiple locations is not supported.
  2191  	DestinationDataset string `json:"destinationDataset,omitempty"`
  2192  	// GcsConfigUri: Cloud Storage location to read the JSON
  2193  	// cloud.healthcare.deidentify.DeidentifyConfig from, overriding the default
  2194  	// config. Must be of the form `gs://{bucket_id}/path/to/object`. The Cloud
  2195  	// Storage location must grant the Cloud IAM role `roles/storage.objectViewer`
  2196  	// to the project's Cloud Healthcare Service Agent service account. Only one of
  2197  	// `config` and `gcs_config_uri` can be specified.
  2198  	GcsConfigUri string `json:"gcsConfigUri,omitempty"`
  2199  	// ForceSendFields is a list of field names (e.g. "Config") to unconditionally
  2200  	// include in API requests. By default, fields with empty or default values are
  2201  	// omitted from API requests. See
  2202  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2203  	// details.
  2204  	ForceSendFields []string `json:"-"`
  2205  	// NullFields is a list of field names (e.g. "Config") to include in API
  2206  	// requests with the JSON null value. By default, fields with empty values are
  2207  	// omitted from API requests. See
  2208  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2209  	NullFields []string `json:"-"`
  2210  }
  2211  
  2212  func (s *DeidentifyDatasetRequest) MarshalJSON() ([]byte, error) {
  2213  	type NoMethod DeidentifyDatasetRequest
  2214  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2215  }
  2216  
  2217  // DeidentifyDicomStoreRequest: Creates a new DICOM store with sensitive
  2218  // information de-identified.
  2219  type DeidentifyDicomStoreRequest struct {
  2220  	// Config: Deidentify configuration. Only one of `config` and `gcs_config_uri`
  2221  	// can be specified.
  2222  	Config *DeidentifyConfig `json:"config,omitempty"`
  2223  	// DestinationStore: Required. The name of the DICOM store to create and write
  2224  	// the redacted data to. For example,
  2225  	// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomSto
  2226  	// res/{dicom_store_id}`. * The destination dataset must exist. * The source
  2227  	// dataset and destination dataset must both reside in the same location.
  2228  	// De-identifying data across multiple locations is not supported. * The
  2229  	// destination DICOM store must not exist. * The caller must have the necessary
  2230  	// permissions to create the destination DICOM store.
  2231  	DestinationStore string `json:"destinationStore,omitempty"`
  2232  	// FilterConfig: Filter configuration.
  2233  	FilterConfig *DicomFilterConfig `json:"filterConfig,omitempty"`
  2234  	// GcsConfigUri: Cloud Storage location to read the JSON
  2235  	// cloud.healthcare.deidentify.DeidentifyConfig from, overriding the default
  2236  	// config. Must be of the form `gs://{bucket_id}/path/to/object`. The Cloud
  2237  	// Storage location must grant the Cloud IAM role `roles/storage.objectViewer`
  2238  	// to the project's Cloud Healthcare Service Agent service account. Only one of
  2239  	// `config` and `gcs_config_uri` can be specified.
  2240  	GcsConfigUri string `json:"gcsConfigUri,omitempty"`
  2241  	// ForceSendFields is a list of field names (e.g. "Config") to unconditionally
  2242  	// include in API requests. By default, fields with empty or default values are
  2243  	// omitted from API requests. See
  2244  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2245  	// details.
  2246  	ForceSendFields []string `json:"-"`
  2247  	// NullFields is a list of field names (e.g. "Config") to include in API
  2248  	// requests with the JSON null value. By default, fields with empty values are
  2249  	// omitted from API requests. See
  2250  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2251  	NullFields []string `json:"-"`
  2252  }
  2253  
  2254  func (s *DeidentifyDicomStoreRequest) MarshalJSON() ([]byte, error) {
  2255  	type NoMethod DeidentifyDicomStoreRequest
  2256  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2257  }
  2258  
  2259  // DeidentifyFhirStoreRequest: Creates a new FHIR store with sensitive
  2260  // information de-identified.
  2261  type DeidentifyFhirStoreRequest struct {
  2262  	// Config: Deidentify configuration. Only one of `config` and `gcs_config_uri`
  2263  	// can be specified.
  2264  	Config *DeidentifyConfig `json:"config,omitempty"`
  2265  	// DestinationStore: Required. The name of the FHIR store to create and write
  2266  	// the redacted data to. For example,
  2267  	// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStor
  2268  	// es/{fhir_store_id}`. * The destination dataset must exist. * The source
  2269  	// dataset and destination dataset must both reside in the same location.
  2270  	// De-identifying data across multiple locations is not supported. * The
  2271  	// destination FHIR store must exist. * The caller must have the
  2272  	// healthcare.fhirResources.update permission to write to the destination FHIR
  2273  	// store.
  2274  	DestinationStore string `json:"destinationStore,omitempty"`
  2275  	// GcsConfigUri: Cloud Storage location to read the JSON
  2276  	// cloud.healthcare.deidentify.DeidentifyConfig from, overriding the default
  2277  	// config. Must be of the form `gs://{bucket_id}/path/to/object`. The Cloud
  2278  	// Storage location must grant the Cloud IAM role `roles/storage.objectViewer`
  2279  	// to the project's Cloud Healthcare Service Agent service account. Only one of
  2280  	// `config` and `gcs_config_uri` can be specified.
  2281  	GcsConfigUri string `json:"gcsConfigUri,omitempty"`
  2282  	// ResourceFilter: A filter specifying the resources to include in the output.
  2283  	// If not specified, all resources are included in the output.
  2284  	ResourceFilter *FhirFilter `json:"resourceFilter,omitempty"`
  2285  	// SkipModifiedResources: If true, skips resources that are created or modified
  2286  	// after the de-identify operation is created.
  2287  	SkipModifiedResources bool `json:"skipModifiedResources,omitempty"`
  2288  	// ForceSendFields is a list of field names (e.g. "Config") to unconditionally
  2289  	// include in API requests. By default, fields with empty or default values are
  2290  	// omitted from API requests. See
  2291  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2292  	// details.
  2293  	ForceSendFields []string `json:"-"`
  2294  	// NullFields is a list of field names (e.g. "Config") to include in API
  2295  	// requests with the JSON null value. By default, fields with empty values are
  2296  	// omitted from API requests. See
  2297  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2298  	NullFields []string `json:"-"`
  2299  }
  2300  
  2301  func (s *DeidentifyFhirStoreRequest) MarshalJSON() ([]byte, error) {
  2302  	type NoMethod DeidentifyFhirStoreRequest
  2303  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2304  }
  2305  
  2306  // DeidentifyOperationMetadata: Details about the work the de-identify
  2307  // operation performed.
  2308  type DeidentifyOperationMetadata struct {
  2309  	// FhirOutput: Details about the FHIR store to write the output to.
  2310  	FhirOutput *FhirOutput `json:"fhirOutput,omitempty"`
  2311  	// ForceSendFields is a list of field names (e.g. "FhirOutput") to
  2312  	// unconditionally include in API requests. By default, fields with empty or
  2313  	// default values are omitted from API requests. See
  2314  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2315  	// details.
  2316  	ForceSendFields []string `json:"-"`
  2317  	// NullFields is a list of field names (e.g. "FhirOutput") to include in API
  2318  	// requests with the JSON null value. By default, fields with empty values are
  2319  	// omitted from API requests. See
  2320  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2321  	NullFields []string `json:"-"`
  2322  }
  2323  
  2324  func (s *DeidentifyOperationMetadata) MarshalJSON() ([]byte, error) {
  2325  	type NoMethod DeidentifyOperationMetadata
  2326  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2327  }
  2328  
  2329  // DeidentifySummary: Contains a detailed summary of the Deidentify operation.
  2330  type DeidentifySummary struct {
  2331  }
  2332  
  2333  // DeleteTag: Delete tag.
  2334  type DeleteTag struct {
  2335  }
  2336  
  2337  // Detail: Contains multiple sensitive information findings for each resource
  2338  // slice.
  2339  type Detail struct {
  2340  	Findings []*Finding `json:"findings,omitempty"`
  2341  	// ForceSendFields is a list of field names (e.g. "Findings") to
  2342  	// unconditionally include in API requests. By default, fields with empty or
  2343  	// default values are omitted from API requests. See
  2344  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2345  	// details.
  2346  	ForceSendFields []string `json:"-"`
  2347  	// NullFields is a list of field names (e.g. "Findings") to include in API
  2348  	// requests with the JSON null value. By default, fields with empty values are
  2349  	// omitted from API requests. See
  2350  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2351  	NullFields []string `json:"-"`
  2352  }
  2353  
  2354  func (s *Detail) MarshalJSON() ([]byte, error) {
  2355  	type NoMethod Detail
  2356  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2357  }
  2358  
  2359  // DicomConfig: Specifies the parameters needed for de-identification of DICOM
  2360  // stores.
  2361  type DicomConfig struct {
  2362  	// FilterProfile: Tag filtering profile that determines which tags to
  2363  	// keep/remove.
  2364  	//
  2365  	// Possible values:
  2366  	//   "TAG_FILTER_PROFILE_UNSPECIFIED" - No tag filtration profile provided.
  2367  	// Same as KEEP_ALL_PROFILE.
  2368  	//   "MINIMAL_KEEP_LIST_PROFILE" - Keep only the tags required to produce valid
  2369  	// DICOM objects.
  2370  	//   "ATTRIBUTE_CONFIDENTIALITY_BASIC_PROFILE" - Remove tags based on DICOM
  2371  	// Standard's Attribute Confidentiality Basic Profile (DICOM Standard Edition
  2372  	// 2018e)
  2373  	// http://dicom.nema.org/medical/dicom/2018e/output/chtml/part15/chapter_E.html.
  2374  	//   "KEEP_ALL_PROFILE" - Keep all tags.
  2375  	//   "DEIDENTIFY_TAG_CONTENTS" - Inspect within tag contents and replace
  2376  	// sensitive text. The process can be configured using the TextConfig. Applies
  2377  	// to all tags with the following Value Representation names: AE, LO, LT, PN,
  2378  	// SH, ST, UC, UT, DA, DT, AS
  2379  	FilterProfile string `json:"filterProfile,omitempty"`
  2380  	// KeepList: List of tags to keep. Remove all other tags.
  2381  	KeepList *TagFilterList `json:"keepList,omitempty"`
  2382  	// RemoveList: List of tags to remove. Keep all other tags.
  2383  	RemoveList *TagFilterList `json:"removeList,omitempty"`
  2384  	// SkipIdRedaction: If true, skip replacing StudyInstanceUID,
  2385  	// SeriesInstanceUID, SOPInstanceUID, and MediaStorageSOPInstanceUID and leave
  2386  	// them untouched. The Cloud Healthcare API regenerates these UIDs by default
  2387  	// based on the DICOM Standard's reasoning: "Whilst these UIDs cannot be mapped
  2388  	// directly to an individual out of context, given access to the original
  2389  	// images, or to a database of the original images containing the UIDs, it
  2390  	// would be possible to recover the individual's identity."
  2391  	// http://dicom.nema.org/medical/dicom/current/output/chtml/part15/sect_E.3.9.html
  2392  	SkipIdRedaction bool `json:"skipIdRedaction,omitempty"`
  2393  	// ForceSendFields is a list of field names (e.g. "FilterProfile") to
  2394  	// unconditionally include in API requests. By default, fields with empty or
  2395  	// default values are omitted from API requests. See
  2396  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2397  	// details.
  2398  	ForceSendFields []string `json:"-"`
  2399  	// NullFields is a list of field names (e.g. "FilterProfile") to include in API
  2400  	// requests with the JSON null value. By default, fields with empty values are
  2401  	// omitted from API requests. See
  2402  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2403  	NullFields []string `json:"-"`
  2404  }
  2405  
  2406  func (s *DicomConfig) MarshalJSON() ([]byte, error) {
  2407  	type NoMethod DicomConfig
  2408  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2409  }
  2410  
  2411  // DicomFilterConfig: Specifies the filter configuration for DICOM resources.
  2412  type DicomFilterConfig struct {
  2413  	// ResourcePathsGcsUri: The Cloud Storage location of the filter configuration
  2414  	// file. The `gcs_uri` must be in the format `gs://bucket/path/to/object`. The
  2415  	// filter configuration file must contain a list of resource paths separated by
  2416  	// newline characters (\n or \r\n). Each resource path must be in the format
  2417  	// "/studies/{studyUID}[/series/{seriesUID}[/instances/{instanceUID}]]" The
  2418  	// Cloud Healthcare API service account must have the
  2419  	// `roles/storage.objectViewer` Cloud IAM role for this Cloud Storage location.
  2420  	ResourcePathsGcsUri string `json:"resourcePathsGcsUri,omitempty"`
  2421  	// ForceSendFields is a list of field names (e.g. "ResourcePathsGcsUri") to
  2422  	// unconditionally include in API requests. By default, fields with empty or
  2423  	// default values are omitted from API requests. See
  2424  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2425  	// details.
  2426  	ForceSendFields []string `json:"-"`
  2427  	// NullFields is a list of field names (e.g. "ResourcePathsGcsUri") to include
  2428  	// in API requests with the JSON null value. By default, fields with empty
  2429  	// values are omitted from API requests. See
  2430  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2431  	NullFields []string `json:"-"`
  2432  }
  2433  
  2434  func (s *DicomFilterConfig) MarshalJSON() ([]byte, error) {
  2435  	type NoMethod DicomFilterConfig
  2436  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2437  }
  2438  
  2439  // DicomStore: Represents a DICOM store.
  2440  type DicomStore struct {
  2441  	// Labels: User-supplied key-value pairs used to organize DICOM stores. Label
  2442  	// keys must be between 1 and 63 characters long, have a UTF-8 encoding of
  2443  	// maximum 128 bytes, and must conform to the following PCRE regular
  2444  	// expression: \p{Ll}\p{Lo}{0,62} Label values are optional, must be between 1
  2445  	// and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must
  2446  	// conform to the following PCRE regular expression:
  2447  	// [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a
  2448  	// given store.
  2449  	Labels map[string]string `json:"labels,omitempty"`
  2450  	// Name: Identifier. Resource name of the DICOM store, of the form
  2451  	// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomSto
  2452  	// res/{dicom_store_id}`.
  2453  	Name string `json:"name,omitempty"`
  2454  	// NotificationConfig: Notification destination for new DICOM instances.
  2455  	// Supplied by the client.
  2456  	NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"`
  2457  	// StreamConfigs: Optional. A list of streaming configs used to configure the
  2458  	// destination of streaming exports for every DICOM instance insertion in this
  2459  	// DICOM store. After a new config is added to `stream_configs`, DICOM instance
  2460  	// insertions are streamed to the new destination. When a config is removed
  2461  	// from `stream_configs`, the server stops streaming to that destination. Each
  2462  	// config must contain a unique destination.
  2463  	StreamConfigs []*GoogleCloudHealthcareV1beta1DicomStreamConfig `json:"streamConfigs,omitempty"`
  2464  
  2465  	// ServerResponse contains the HTTP response code and headers from the server.
  2466  	googleapi.ServerResponse `json:"-"`
  2467  	// ForceSendFields is a list of field names (e.g. "Labels") to unconditionally
  2468  	// include in API requests. By default, fields with empty or default values are
  2469  	// omitted from API requests. See
  2470  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2471  	// details.
  2472  	ForceSendFields []string `json:"-"`
  2473  	// NullFields is a list of field names (e.g. "Labels") to include in API
  2474  	// requests with the JSON null value. By default, fields with empty values are
  2475  	// omitted from API requests. See
  2476  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2477  	NullFields []string `json:"-"`
  2478  }
  2479  
  2480  func (s *DicomStore) MarshalJSON() ([]byte, error) {
  2481  	type NoMethod DicomStore
  2482  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2483  }
  2484  
  2485  // DicomStoreMetrics: DicomStoreMetrics contains metrics describing a DICOM
  2486  // store.
  2487  type DicomStoreMetrics struct {
  2488  	// BlobStorageSizeBytes: Total blob storage bytes for all instances in the
  2489  	// store.
  2490  	BlobStorageSizeBytes int64 `json:"blobStorageSizeBytes,omitempty,string"`
  2491  	// InstanceCount: Number of instances in the store.
  2492  	InstanceCount int64 `json:"instanceCount,omitempty,string"`
  2493  	// Name: Resource name of the DICOM store, of the form
  2494  	// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomSto
  2495  	// res/{dicom_store_id}`.
  2496  	Name string `json:"name,omitempty"`
  2497  	// SeriesCount: Number of series in the store.
  2498  	SeriesCount int64 `json:"seriesCount,omitempty,string"`
  2499  	// StructuredStorageSizeBytes: Total structured storage bytes for all instances
  2500  	// in the store.
  2501  	StructuredStorageSizeBytes int64 `json:"structuredStorageSizeBytes,omitempty,string"`
  2502  	// StudyCount: Number of studies in the store.
  2503  	StudyCount int64 `json:"studyCount,omitempty,string"`
  2504  
  2505  	// ServerResponse contains the HTTP response code and headers from the server.
  2506  	googleapi.ServerResponse `json:"-"`
  2507  	// ForceSendFields is a list of field names (e.g. "BlobStorageSizeBytes") to
  2508  	// unconditionally include in API requests. By default, fields with empty or
  2509  	// default values are omitted from API requests. See
  2510  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2511  	// details.
  2512  	ForceSendFields []string `json:"-"`
  2513  	// NullFields is a list of field names (e.g. "BlobStorageSizeBytes") to include
  2514  	// in API requests with the JSON null value. By default, fields with empty
  2515  	// values are omitted from API requests. See
  2516  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2517  	NullFields []string `json:"-"`
  2518  }
  2519  
  2520  func (s *DicomStoreMetrics) MarshalJSON() ([]byte, error) {
  2521  	type NoMethod DicomStoreMetrics
  2522  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2523  }
  2524  
  2525  // DicomTagConfig: Specifies the parameters needed for the de-identification of
  2526  // DICOM stores.
  2527  type DicomTagConfig struct {
  2528  	// Actions: Specifies custom tag selections and `Actions` to apply to them.
  2529  	// Overrides `options` and `profile`. Conflicting `Actions` are applied in the
  2530  	// order given.
  2531  	Actions []*Action `json:"actions,omitempty"`
  2532  	// Options: Specifies additional options to apply, overriding the base
  2533  	// `profile`.
  2534  	Options *Options `json:"options,omitempty"`
  2535  	// ProfileType: Base profile type for handling DICOM tags.
  2536  	//
  2537  	// Possible values:
  2538  	//   "PROFILE_TYPE_UNSPECIFIED" - No profile provided. Same as
  2539  	// `ATTRIBUTE_CONFIDENTIALITY_BASIC_PROFILE`.
  2540  	//   "MINIMAL_KEEP_LIST_PROFILE" - Keep only the tags required to produce valid
  2541  	// DICOM objects.
  2542  	//   "ATTRIBUTE_CONFIDENTIALITY_BASIC_PROFILE" - Remove tags based on DICOM
  2543  	// Standard's [Attribute Confidentiality Basic Profile (DICOM Standard Edition
  2544  	// 2018e)](http://dicom.nema.org/medical/dicom/2018e/output/chtml/part15/chapter
  2545  	// _E.html).
  2546  	//   "KEEP_ALL_PROFILE" - Keep all tags.
  2547  	//   "DEIDENTIFY_TAG_CONTENTS" - Inspect tag contents and replace sensitive
  2548  	// text. The process can be configured using the TextConfig. Applies to all
  2549  	// tags with the following [Value Representations]
  2550  	// (http://dicom.nema.org/medical/dicom/2018e/output/chtml/part05/sect_6.2.html#table_6.2-1):
  2551  	// AE, LO, LT, PN, SH, ST, UC, UT, DA, DT, AS
  2552  	ProfileType string `json:"profileType,omitempty"`
  2553  	// ForceSendFields is a list of field names (e.g. "Actions") to unconditionally
  2554  	// include in API requests. By default, fields with empty or default values are
  2555  	// omitted from API requests. See
  2556  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2557  	// details.
  2558  	ForceSendFields []string `json:"-"`
  2559  	// NullFields is a list of field names (e.g. "Actions") to include in API
  2560  	// requests with the JSON null value. By default, fields with empty values are
  2561  	// omitted from API requests. See
  2562  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2563  	NullFields []string `json:"-"`
  2564  }
  2565  
  2566  func (s *DicomTagConfig) MarshalJSON() ([]byte, error) {
  2567  	type NoMethod DicomTagConfig
  2568  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2569  }
  2570  
  2571  // Empty: A generic empty message that you can re-use to avoid defining
  2572  // duplicated empty messages in your APIs. A typical example is to use it as
  2573  // the request or the response type of an API method. For instance: service Foo
  2574  // { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
  2575  type Empty struct {
  2576  	// ServerResponse contains the HTTP response code and headers from the server.
  2577  	googleapi.ServerResponse `json:"-"`
  2578  }
  2579  
  2580  // Entity: The candidate entities that an entity mention could link to.
  2581  type Entity struct {
  2582  	// EntityId: entity_id is a first class field entity_id uniquely identifies
  2583  	// this concept and its meta-vocabulary. For example, "UMLS/C0000970".
  2584  	EntityId string `json:"entityId,omitempty"`
  2585  	// PreferredTerm: preferred_term is the preferred term for this concept. For
  2586  	// example, "Acetaminophen". For ad hoc entities formed by normalization, this
  2587  	// is the most popular unnormalized string.
  2588  	PreferredTerm string `json:"preferredTerm,omitempty"`
  2589  	// VocabularyCodes: Vocabulary codes are first-class fields and differentiated
  2590  	// from the concept unique identifier (entity_id). vocabulary_codes contains
  2591  	// the representation of this concept in particular vocabularies, such as
  2592  	// ICD-10, SNOMED-CT and RxNORM. These are prefixed by the name of the
  2593  	// vocabulary, followed by the unique code within that vocabulary. For example,
  2594  	// "RXNORM/A10334543".
  2595  	VocabularyCodes []string `json:"vocabularyCodes,omitempty"`
  2596  	// ForceSendFields is a list of field names (e.g. "EntityId") to
  2597  	// unconditionally include in API requests. By default, fields with empty or
  2598  	// default values are omitted from API requests. See
  2599  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2600  	// details.
  2601  	ForceSendFields []string `json:"-"`
  2602  	// NullFields is a list of field names (e.g. "EntityId") to include in API
  2603  	// requests with the JSON null value. By default, fields with empty values are
  2604  	// omitted from API requests. See
  2605  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2606  	NullFields []string `json:"-"`
  2607  }
  2608  
  2609  func (s *Entity) MarshalJSON() ([]byte, error) {
  2610  	type NoMethod Entity
  2611  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2612  }
  2613  
  2614  // EntityMention: An entity mention in the document.
  2615  type EntityMention struct {
  2616  	// AdditionalInfo: Additional information about the entity mention. For
  2617  	// example, for an entity mention of type `DATE` this can be its more specific
  2618  	// date types from the following list: `ADMISSION_DATE`, `CONSULTATION_DATE`,
  2619  	// `DISCHARGE_DATE`, `SERVICE_DATE`, `VISIT_DATE`, `DIAGNOSIS_DATE`,
  2620  	// `MED_STARTED_DATE`, `MED_ENDED_DATE`, `NOTE_DATE`, `PROCEDURE_DATE`,
  2621  	// `RADIATION_STARTED_DATE`, `RADIATION_ENDED_DATE`, `STAGE_DATE`
  2622  	AdditionalInfo []*Feature `json:"additionalInfo,omitempty"`
  2623  	// CertaintyAssessment: The certainty assessment of the entity mention. Its
  2624  	// value is one of: LIKELY, SOMEWHAT_LIKELY, UNCERTAIN, SOMEWHAT_UNLIKELY,
  2625  	// UNLIKELY, CONDITIONAL
  2626  	CertaintyAssessment *Feature `json:"certaintyAssessment,omitempty"`
  2627  	// Confidence: The model's confidence in this entity mention annotation. A
  2628  	// number between 0 and 1.
  2629  	Confidence float64 `json:"confidence,omitempty"`
  2630  	// LinkedEntities: linked_entities are candidate ontological concepts that this
  2631  	// entity mention may refer to. They are sorted by decreasing confidence.
  2632  	LinkedEntities []*LinkedEntity `json:"linkedEntities,omitempty"`
  2633  	// MentionId: mention_id uniquely identifies each entity mention in a single
  2634  	// response.
  2635  	MentionId string `json:"mentionId,omitempty"`
  2636  	// Subject: The subject this entity mention relates to. Its value is one of:
  2637  	// PATIENT, FAMILY_MEMBER, OTHER
  2638  	Subject *Feature `json:"subject,omitempty"`
  2639  	// TemporalAssessment: How this entity mention relates to the subject
  2640  	// temporally. Its value is one of: CURRENT, CLINICAL_HISTORY, FAMILY_HISTORY,
  2641  	// UPCOMING, ALLERGY
  2642  	TemporalAssessment *Feature `json:"temporalAssessment,omitempty"`
  2643  	// Text: text is the location of the entity mention in the document.
  2644  	Text *TextSpan `json:"text,omitempty"`
  2645  	// Type: The semantic type of the entity: UNKNOWN_ENTITY_TYPE, ALONE,
  2646  	// ANATOMICAL_STRUCTURE, ASSISTED_LIVING, BF_RESULT, BM_RESULT, BM_UNIT,
  2647  	// BM_VALUE, BODY_FUNCTION, BODY_MEASUREMENT, COMPLIANT, DOESNOT_FOLLOWUP,
  2648  	// FAMILY, FOLLOWSUP, LABORATORY_DATA, LAB_RESULT, LAB_UNIT, LAB_VALUE,
  2649  	// MEDICAL_DEVICE, MEDICINE, MED_DOSE, MED_DURATION, MED_FORM, MED_FREQUENCY,
  2650  	// MED_ROUTE, MED_STATUS, MED_STRENGTH, MED_TOTALDOSE, MED_UNIT, NON_COMPLIANT,
  2651  	// OTHER_LIVINGSTATUS, PROBLEM, PROCEDURE, PROCEDURE_RESULT, PROC_METHOD,
  2652  	// REASON_FOR_NONCOMPLIANCE, SEVERITY, SUBSTANCE_ABUSE, UNCLEAR_FOLLOWUP.
  2653  	Type string `json:"type,omitempty"`
  2654  	// ForceSendFields is a list of field names (e.g. "AdditionalInfo") to
  2655  	// unconditionally include in API requests. By default, fields with empty or
  2656  	// default values are omitted from API requests. See
  2657  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2658  	// details.
  2659  	ForceSendFields []string `json:"-"`
  2660  	// NullFields is a list of field names (e.g. "AdditionalInfo") to include in
  2661  	// API requests with the JSON null value. By default, fields with empty values
  2662  	// are omitted from API requests. See
  2663  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2664  	NullFields []string `json:"-"`
  2665  }
  2666  
  2667  func (s *EntityMention) MarshalJSON() ([]byte, error) {
  2668  	type NoMethod EntityMention
  2669  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2670  }
  2671  
  2672  func (s *EntityMention) UnmarshalJSON(data []byte) error {
  2673  	type NoMethod EntityMention
  2674  	var s1 struct {
  2675  		Confidence gensupport.JSONFloat64 `json:"confidence"`
  2676  		*NoMethod
  2677  	}
  2678  	s1.NoMethod = (*NoMethod)(s)
  2679  	if err := json.Unmarshal(data, &s1); err != nil {
  2680  		return err
  2681  	}
  2682  	s.Confidence = float64(s1.Confidence)
  2683  	return nil
  2684  }
  2685  
  2686  // EntityMentionRelationship: Defines directed relationship from one entity
  2687  // mention to another.
  2688  type EntityMentionRelationship struct {
  2689  	// Confidence: The model's confidence in this annotation. A number between 0
  2690  	// and 1.
  2691  	Confidence float64 `json:"confidence,omitempty"`
  2692  	// ObjectId: object_id is the id of the object entity mention.
  2693  	ObjectId string `json:"objectId,omitempty"`
  2694  	// SubjectId: subject_id is the id of the subject entity mention.
  2695  	SubjectId string `json:"subjectId,omitempty"`
  2696  	// ForceSendFields is a list of field names (e.g. "Confidence") to
  2697  	// unconditionally include in API requests. By default, fields with empty or
  2698  	// default values are omitted from API requests. See
  2699  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2700  	// details.
  2701  	ForceSendFields []string `json:"-"`
  2702  	// NullFields is a list of field names (e.g. "Confidence") to include in API
  2703  	// requests with the JSON null value. By default, fields with empty values are
  2704  	// omitted from API requests. See
  2705  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2706  	NullFields []string `json:"-"`
  2707  }
  2708  
  2709  func (s *EntityMentionRelationship) MarshalJSON() ([]byte, error) {
  2710  	type NoMethod EntityMentionRelationship
  2711  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2712  }
  2713  
  2714  func (s *EntityMentionRelationship) UnmarshalJSON(data []byte) error {
  2715  	type NoMethod EntityMentionRelationship
  2716  	var s1 struct {
  2717  		Confidence gensupport.JSONFloat64 `json:"confidence"`
  2718  		*NoMethod
  2719  	}
  2720  	s1.NoMethod = (*NoMethod)(s)
  2721  	if err := json.Unmarshal(data, &s1); err != nil {
  2722  		return err
  2723  	}
  2724  	s.Confidence = float64(s1.Confidence)
  2725  	return nil
  2726  }
  2727  
  2728  // EvaluateAnnotationStoreRequest: Request to evaluate an Annotation store
  2729  // against a ground truth [Annotation store].
  2730  type EvaluateAnnotationStoreRequest struct {
  2731  	// BigqueryDestination: The BigQuery table where the server writes the output.
  2732  	// BigQueryDestination requires the `roles/bigquery.dataEditor` and
  2733  	// `roles/bigquery.jobUser` Cloud IAM roles.
  2734  	BigqueryDestination *GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination `json:"bigqueryDestination,omitempty"`
  2735  	// EvalInfoTypeMapping: Optional. InfoType mapping for `eval_store`. Different
  2736  	// resources can map to the same infoType. For example, `PERSON_NAME`,
  2737  	// `PERSON`, `NAME`, and `HUMAN` are different. To map all of these into a
  2738  	// single infoType (such as `PERSON_NAME`), specify the following mapping: ```
  2739  	// info_type_mapping["PERSON"] = "PERSON_NAME" info_type_mapping["NAME"] =
  2740  	// "PERSON_NAME" info_type_mapping["HUMAN"] = "PERSON_NAME" ``` Unmentioned
  2741  	// infoTypes, such as `DATE`, are treated as identity mapping. For example: ```
  2742  	// info_type_mapping["DATE"] = "DATE" ``` InfoTypes are case-insensitive.
  2743  	EvalInfoTypeMapping map[string]string `json:"evalInfoTypeMapping,omitempty"`
  2744  	// GoldenInfoTypeMapping: Optional. Similar to `eval_info_type_mapping`,
  2745  	// infoType mapping for `golden_store`.
  2746  	GoldenInfoTypeMapping map[string]string `json:"goldenInfoTypeMapping,omitempty"`
  2747  	// GoldenStore: Required. The Annotation store to use as ground truth, in the
  2748  	// format of
  2749  	// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotati
  2750  	// onStores/{annotation_store_id}`.
  2751  	GoldenStore    string          `json:"goldenStore,omitempty"`
  2752  	InfoTypeConfig *InfoTypeConfig `json:"infoTypeConfig,omitempty"`
  2753  	// ForceSendFields is a list of field names (e.g. "BigqueryDestination") to
  2754  	// unconditionally include in API requests. By default, fields with empty or
  2755  	// default values are omitted from API requests. See
  2756  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2757  	// details.
  2758  	ForceSendFields []string `json:"-"`
  2759  	// NullFields is a list of field names (e.g. "BigqueryDestination") to include
  2760  	// in API requests with the JSON null value. By default, fields with empty
  2761  	// values are omitted from API requests. See
  2762  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2763  	NullFields []string `json:"-"`
  2764  }
  2765  
  2766  func (s *EvaluateAnnotationStoreRequest) MarshalJSON() ([]byte, error) {
  2767  	type NoMethod EvaluateAnnotationStoreRequest
  2768  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2769  }
  2770  
  2771  // EvaluateAnnotationStoreResponse: Response for successful Annotation store
  2772  // evaluation operations. This structure is included in the response upon
  2773  // operation completion.
  2774  type EvaluateAnnotationStoreResponse struct {
  2775  }
  2776  
  2777  // EvaluateUserConsentsRequest: Evaluate a user's Consents for all matching
  2778  // User data mappings. Note: User data mappings are indexed asynchronously,
  2779  // causing slight delays between the time mappings are created or updated and
  2780  // when they are included in EvaluateUserConsents results.
  2781  type EvaluateUserConsentsRequest struct {
  2782  	// ConsentList: Optional. Specific Consents to evaluate the access request
  2783  	// against. These Consents must have the same `user_id` as the User data
  2784  	// mappings being evalauted, must exist in the current `consent_store`, and
  2785  	// must have a `state` of either `ACTIVE` or `DRAFT`. A maximum of 100 Consents
  2786  	// can be provided here. If unspecified, all `ACTIVE` unexpired Consents in the
  2787  	// current `consent_store` will be evaluated.
  2788  	ConsentList *ConsentList `json:"consentList,omitempty"`
  2789  	// PageSize: Optional. Limit on the number of User data mappings to return in a
  2790  	// single response. If not specified, 100 is used. May not be larger than 1000.
  2791  	PageSize int64 `json:"pageSize,omitempty"`
  2792  	// PageToken: Optional. Token to retrieve the next page of results, or empty to
  2793  	// get the first page.
  2794  	PageToken string `json:"pageToken,omitempty"`
  2795  	// RequestAttributes: Required. The values of request attributes associated
  2796  	// with this access request.
  2797  	RequestAttributes map[string]string `json:"requestAttributes,omitempty"`
  2798  	// ResourceAttributes: Optional. The values of resource attributes associated
  2799  	// with the resources being requested. If no values are specified, then all
  2800  	// resources are queried.
  2801  	ResourceAttributes map[string]string `json:"resourceAttributes,omitempty"`
  2802  	// ResponseView: Optional. The view for EvaluateUserConsentsResponse. If
  2803  	// unspecified, defaults to `BASIC` and returns `consented` as `TRUE` or
  2804  	// `FALSE`.
  2805  	//
  2806  	// Possible values:
  2807  	//   "RESPONSE_VIEW_UNSPECIFIED" - No response view specified. The API will
  2808  	// default to the BASIC view.
  2809  	//   "BASIC" - Only the `data_id` and `consented` fields are populated in the
  2810  	// response.
  2811  	//   "FULL" - All fields within the response are populated. When set to `FULL`,
  2812  	// all `ACTIVE` Consents are evaluated even if a matching policy is found
  2813  	// during evaluation.
  2814  	ResponseView string `json:"responseView,omitempty"`
  2815  	// UserId: Required. User ID to evaluate consents for.
  2816  	UserId string `json:"userId,omitempty"`
  2817  	// ForceSendFields is a list of field names (e.g. "ConsentList") to
  2818  	// unconditionally include in API requests. By default, fields with empty or
  2819  	// default values are omitted from API requests. See
  2820  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2821  	// details.
  2822  	ForceSendFields []string `json:"-"`
  2823  	// NullFields is a list of field names (e.g. "ConsentList") to include in API
  2824  	// requests with the JSON null value. By default, fields with empty values are
  2825  	// omitted from API requests. See
  2826  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2827  	NullFields []string `json:"-"`
  2828  }
  2829  
  2830  func (s *EvaluateUserConsentsRequest) MarshalJSON() ([]byte, error) {
  2831  	type NoMethod EvaluateUserConsentsRequest
  2832  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2833  }
  2834  
  2835  type EvaluateUserConsentsResponse struct {
  2836  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  2837  	// are no more results in the list. This token is valid for 72 hours after it
  2838  	// is created.
  2839  	NextPageToken string `json:"nextPageToken,omitempty"`
  2840  	// Results: The consent evaluation result for each `data_id`.
  2841  	Results []*Result `json:"results,omitempty"`
  2842  
  2843  	// ServerResponse contains the HTTP response code and headers from the server.
  2844  	googleapi.ServerResponse `json:"-"`
  2845  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  2846  	// unconditionally include in API requests. By default, fields with empty or
  2847  	// default values are omitted from API requests. See
  2848  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2849  	// details.
  2850  	ForceSendFields []string `json:"-"`
  2851  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  2852  	// requests with the JSON null value. By default, fields with empty values are
  2853  	// omitted from API requests. See
  2854  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2855  	NullFields []string `json:"-"`
  2856  }
  2857  
  2858  func (s *EvaluateUserConsentsResponse) MarshalJSON() ([]byte, error) {
  2859  	type NoMethod EvaluateUserConsentsResponse
  2860  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2861  }
  2862  
  2863  // ExplainDataAccessConsentInfo: The enforcing consent's metadata.
  2864  type ExplainDataAccessConsentInfo struct {
  2865  	// CascadeOrigins: The compartment base resources that matched a cascading
  2866  	// policy. Each resource has the following format:
  2867  	// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStor
  2868  	// es/{fhir_store_id}/fhir/{resource_type}/{resource_id}`
  2869  	CascadeOrigins []string `json:"cascadeOrigins,omitempty"`
  2870  	// ConsentResource: The resource name of this consent resource, in the format:
  2871  	// `projects/{project_id}/locations/{location}/datasets/{dataset_id}/fhirStores/
  2872  	// {fhir_store_id}/fhir/Consent/{resource_id}`.
  2873  	ConsentResource string `json:"consentResource,omitempty"`
  2874  	// EnforcementTime: Last enforcement timestamp of this consent resource.
  2875  	EnforcementTime string `json:"enforcementTime,omitempty"`
  2876  	// MatchingAccessorScopes: A list of all the matching accessor scopes of this
  2877  	// consent policy that enforced ExplainDataAccessConsentScope.accessor_scope.
  2878  	MatchingAccessorScopes []*ConsentAccessorScope `json:"matchingAccessorScopes,omitempty"`
  2879  	// PatientConsentOwner: The patient owning the consent (only applicable for
  2880  	// patient consents), in the format:
  2881  	// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStor
  2882  	// es/{fhir_store_id}/fhir/Patient/{patient_id}`
  2883  	PatientConsentOwner string `json:"patientConsentOwner,omitempty"`
  2884  	// Type: The policy type of consent resource (e.g. PATIENT, ADMIN).
  2885  	//
  2886  	// Possible values:
  2887  	//   "CONSENT_POLICY_TYPE_UNSPECIFIED" - Unspecified policy type.
  2888  	//   "CONSENT_POLICY_TYPE_PATIENT" - Consent represent a patient consent.
  2889  	//   "CONSENT_POLICY_TYPE_ADMIN" - Consent represent an admin consent.
  2890  	Type string `json:"type,omitempty"`
  2891  	// Variants: The consent's variant combinations. A single consent may have
  2892  	// multiple variants.
  2893  	//
  2894  	// Possible values:
  2895  	//   "CONSENT_VARIANT_UNSPECIFIED" - Consent variant unspecified.
  2896  	//   "CONSENT_VARIANT_STANDARD" - Consent is a standard patient or admin
  2897  	// consent.
  2898  	//   "CONSENT_VARIANT_CASCADE" - Consent is a cascading consent.
  2899  	Variants []string `json:"variants,omitempty"`
  2900  	// ForceSendFields is a list of field names (e.g. "CascadeOrigins") to
  2901  	// unconditionally include in API requests. By default, fields with empty or
  2902  	// default values are omitted from API requests. See
  2903  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2904  	// details.
  2905  	ForceSendFields []string `json:"-"`
  2906  	// NullFields is a list of field names (e.g. "CascadeOrigins") to include in
  2907  	// API requests with the JSON null value. By default, fields with empty values
  2908  	// are omitted from API requests. See
  2909  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2910  	NullFields []string `json:"-"`
  2911  }
  2912  
  2913  func (s *ExplainDataAccessConsentInfo) MarshalJSON() ([]byte, error) {
  2914  	type NoMethod ExplainDataAccessConsentInfo
  2915  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2916  }
  2917  
  2918  // ExplainDataAccessConsentScope: A single consent scope that provides info on
  2919  // who has access to the requested resource scope for a particular purpose and
  2920  // environment, enforced by which consent.
  2921  type ExplainDataAccessConsentScope struct {
  2922  	// AccessorScope: The accessor scope that describes who can access, for what
  2923  	// purpose, and in which environment.
  2924  	AccessorScope *ConsentAccessorScope `json:"accessorScope,omitempty"`
  2925  	// Decision: Whether the current consent scope is permitted or denied access on
  2926  	// the requested resource.
  2927  	//
  2928  	// Possible values:
  2929  	//   "CONSENT_DECISION_TYPE_UNSPECIFIED" - Unspecified consent decision type.
  2930  	//   "CONSENT_DECISION_TYPE_PERMIT" - Consent permitted access.
  2931  	//   "CONSENT_DECISION_TYPE_DENY" - Consent denied access.
  2932  	Decision string `json:"decision,omitempty"`
  2933  	// EnforcingConsents: Metadata of the consent resources that enforce the
  2934  	// consent scope's access.
  2935  	EnforcingConsents []*ExplainDataAccessConsentInfo `json:"enforcingConsents,omitempty"`
  2936  	// Exceptions: Other consent scopes that created exceptions within this scope.
  2937  	Exceptions []*ExplainDataAccessConsentScope `json:"exceptions,omitempty"`
  2938  	// ForceSendFields is a list of field names (e.g. "AccessorScope") to
  2939  	// unconditionally include in API requests. By default, fields with empty or
  2940  	// default values are omitted from API requests. See
  2941  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2942  	// details.
  2943  	ForceSendFields []string `json:"-"`
  2944  	// NullFields is a list of field names (e.g. "AccessorScope") to include in API
  2945  	// requests with the JSON null value. By default, fields with empty values are
  2946  	// omitted from API requests. See
  2947  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2948  	NullFields []string `json:"-"`
  2949  }
  2950  
  2951  func (s *ExplainDataAccessConsentScope) MarshalJSON() ([]byte, error) {
  2952  	type NoMethod ExplainDataAccessConsentScope
  2953  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2954  }
  2955  
  2956  // ExplainDataAccessResponse: List of consent scopes that are applicable to the
  2957  // explained access on a given resource.
  2958  type ExplainDataAccessResponse struct {
  2959  	// ConsentScopes: List of applicable consent scopes. Sorted in order of actor
  2960  	// such that scopes belonging to the same actor will be adjacent to each other
  2961  	// in the list.
  2962  	ConsentScopes []*ExplainDataAccessConsentScope `json:"consentScopes,omitempty"`
  2963  	// Warning: Warnings associated with this response. It inform user with
  2964  	// exceeded scope limit errors.
  2965  	Warning string `json:"warning,omitempty"`
  2966  
  2967  	// ServerResponse contains the HTTP response code and headers from the server.
  2968  	googleapi.ServerResponse `json:"-"`
  2969  	// ForceSendFields is a list of field names (e.g. "ConsentScopes") to
  2970  	// unconditionally include in API requests. By default, fields with empty or
  2971  	// default values are omitted from API requests. See
  2972  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2973  	// details.
  2974  	ForceSendFields []string `json:"-"`
  2975  	// NullFields is a list of field names (e.g. "ConsentScopes") to include in API
  2976  	// requests with the JSON null value. By default, fields with empty values are
  2977  	// omitted from API requests. See
  2978  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2979  	NullFields []string `json:"-"`
  2980  }
  2981  
  2982  func (s *ExplainDataAccessResponse) MarshalJSON() ([]byte, error) {
  2983  	type NoMethod ExplainDataAccessResponse
  2984  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2985  }
  2986  
  2987  // ExportAnnotationsRequest: Request to export Annotations. The export
  2988  // operation is not atomic. If a failure occurs, any annotations already
  2989  // exported are not removed.
  2990  type ExportAnnotationsRequest struct {
  2991  	// BigqueryDestination: The BigQuery output destination, which requires two IAM
  2992  	// roles: `roles/bigquery.dataEditor` and `roles/bigquery.jobUser`.
  2993  	BigqueryDestination *GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination `json:"bigqueryDestination,omitempty"`
  2994  	// GcsDestination: The Cloud Storage destination, which requires the
  2995  	// `roles/storage.objectAdmin` Cloud IAM role.
  2996  	GcsDestination *GoogleCloudHealthcareV1beta1AnnotationGcsDestination `json:"gcsDestination,omitempty"`
  2997  	// ForceSendFields is a list of field names (e.g. "BigqueryDestination") to
  2998  	// unconditionally include in API requests. By default, fields with empty or
  2999  	// default values are omitted from API requests. See
  3000  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3001  	// details.
  3002  	ForceSendFields []string `json:"-"`
  3003  	// NullFields is a list of field names (e.g. "BigqueryDestination") to include
  3004  	// in API requests with the JSON null value. By default, fields with empty
  3005  	// values are omitted from API requests. See
  3006  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3007  	NullFields []string `json:"-"`
  3008  }
  3009  
  3010  func (s *ExportAnnotationsRequest) MarshalJSON() ([]byte, error) {
  3011  	type NoMethod ExportAnnotationsRequest
  3012  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3013  }
  3014  
  3015  // ExportAnnotationsResponse: Response for successful annotation export
  3016  // operations. This structure is included in response upon operation
  3017  // completion.
  3018  type ExportAnnotationsResponse struct {
  3019  }
  3020  
  3021  // ExportDicomDataRequest: Exports data from the specified DICOM store. If a
  3022  // given resource, such as a DICOM object with the same SOPInstance UID,
  3023  // already exists in the output, it is overwritten with the version in the
  3024  // source dataset. Exported DICOM data persists when the DICOM store from which
  3025  // it was exported is deleted.
  3026  type ExportDicomDataRequest struct {
  3027  	// BigqueryDestination: The BigQuery output destination. You can only export to
  3028  	// a BigQuery dataset that's in the same project as the DICOM store you're
  3029  	// exporting from. The Cloud Healthcare Service Agent requires two IAM roles on
  3030  	// the BigQuery location: `roles/bigquery.dataEditor` and
  3031  	// `roles/bigquery.jobUser`.
  3032  	BigqueryDestination *GoogleCloudHealthcareV1beta1DicomBigQueryDestination `json:"bigqueryDestination,omitempty"`
  3033  	// FilterConfig: Specifies the filter configuration.
  3034  	FilterConfig *DicomFilterConfig `json:"filterConfig,omitempty"`
  3035  	// GcsDestination: The Cloud Storage output destination. The Cloud Healthcare
  3036  	// Service Agent requires the `roles/storage.objectAdmin` Cloud IAM roles on
  3037  	// the Cloud Storage location.
  3038  	GcsDestination *GoogleCloudHealthcareV1beta1DicomGcsDestination `json:"gcsDestination,omitempty"`
  3039  	// ForceSendFields is a list of field names (e.g. "BigqueryDestination") to
  3040  	// unconditionally include in API requests. By default, fields with empty or
  3041  	// default values are omitted from API requests. See
  3042  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3043  	// details.
  3044  	ForceSendFields []string `json:"-"`
  3045  	// NullFields is a list of field names (e.g. "BigqueryDestination") to include
  3046  	// in API requests with the JSON null value. By default, fields with empty
  3047  	// values are omitted from API requests. See
  3048  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3049  	NullFields []string `json:"-"`
  3050  }
  3051  
  3052  func (s *ExportDicomDataRequest) MarshalJSON() ([]byte, error) {
  3053  	type NoMethod ExportDicomDataRequest
  3054  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3055  }
  3056  
  3057  // ExportDicomDataResponse: Returns additional information in regards to a
  3058  // completed DICOM store export.
  3059  type ExportDicomDataResponse struct {
  3060  }
  3061  
  3062  // ExportMessagesRequest: Request to schedule an export.
  3063  type ExportMessagesRequest struct {
  3064  	// EndTime: The end of the range in `send_time` (MSH.7,
  3065  	// https://www.hl7.org/documentcenter/public_temp_2E58C1F9-1C23-BA17-0C6126475344DA9D/wg/conf/HL7MSH.htm)
  3066  	// to process. If not specified, the time when the export is scheduled is used.
  3067  	// This value has to come after the `start_time` defined below. Only messages
  3068  	// whose `send_time` lies in the range `start_time` (inclusive) to `end_time`
  3069  	// (exclusive) are exported.
  3070  	EndTime string `json:"endTime,omitempty"`
  3071  	// Filter: Restricts messages exported to those matching a filter, only
  3072  	// applicable to PubsubDestination and GcsDestination. The following syntax is
  3073  	// available: * A string field value can be written as text inside quotation
  3074  	// marks, for example "query text". The only valid relational operation for
  3075  	// text fields is equality (`=`), where text is searched within the field,
  3076  	// rather than having the field be equal to the text. For example, "Comment =
  3077  	// great" returns messages with `great` in the comment field. * A number field
  3078  	// value can be written as an integer, a decimal, or an exponential. The valid
  3079  	// relational operators for number fields are the equality operator (`=`),
  3080  	// along with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note
  3081  	// that there is no inequality (`!=`) operator. You can prepend the `NOT`
  3082  	// operator to an expression to negate it. * A date field value must be written
  3083  	// in the `yyyy-mm-dd` format. Fields with date and time use the RFC3339 time
  3084  	// format. Leading zeros are required for one-digit months and days. The valid
  3085  	// relational operators for date fields are the equality operator (`=`) , along
  3086  	// with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note that
  3087  	// there is no inequality (`!=`) operator. You can prepend the `NOT` operator
  3088  	// to an expression to negate it. * Multiple field query expressions can be
  3089  	// combined in one query by adding `AND` or `OR` operators between the
  3090  	// expressions. If a boolean operator appears within a quoted string, it is not
  3091  	// treated as special, and is just another part of the character string to be
  3092  	// matched. You can prepend the `NOT` operator to an expression to negate it.
  3093  	// The following fields and functions are available for filtering: *
  3094  	// `message_type`, from the MSH-9.1 field. For example, `NOT message_type =
  3095  	// "ADT". * `send_date` or `sendDate`, the YYYY-MM-DD date the message was
  3096  	// sent in the dataset's time_zone, from the MSH-7 segment. For example,
  3097  	// `send_date < "2017-01-02". * `send_time`, the timestamp when the message
  3098  	// was sent, using the RFC3339 time format for comparisons, from the MSH-7
  3099  	// segment. For example, `send_time < "2017-01-02T00:00:00-05:00". *
  3100  	// `create_time`, the timestamp when the message was created in the HL7v2
  3101  	// store. Use the RFC3339 time format for comparisons. For example,
  3102  	// `create_time < "2017-01-02T00:00:00-05:00". * `send_facility`, the care
  3103  	// center that the message came from, from the MSH-4 segment. For example,
  3104  	// `send_facility = "ABC". Note: The filter will be applied to every message
  3105  	// in the HL7v2 store whose `send_time` lies in the range defined by the
  3106  	// `start_time` and the `end_time`. Even if the filter only matches a small set
  3107  	// of messages, the export operation can still take a long time to finish when
  3108  	// a lot of messages are between the specified `start_time` and `end_time`
  3109  	// range.
  3110  	Filter string `json:"filter,omitempty"`
  3111  	// GcsDestination: Export to a Cloud Storage destination.
  3112  	GcsDestination *GcsDestination `json:"gcsDestination,omitempty"`
  3113  	// PubsubDestination: Export messages to a Pub/Sub topic.
  3114  	PubsubDestination *PubsubDestination `json:"pubsubDestination,omitempty"`
  3115  	// StartTime: The start of the range in `send_time` (MSH.7,
  3116  	// https://www.hl7.org/documentcenter/public_temp_2E58C1F9-1C23-BA17-0C6126475344DA9D/wg/conf/HL7MSH.htm)
  3117  	// to process. If not specified, the UNIX epoch (1970-01-01T00:00:00Z) is used.
  3118  	// This value has to come before the `end_time` defined below. Only messages
  3119  	// whose `send_time` lies in the range `start_time` (inclusive) to `end_time`
  3120  	// (exclusive) are exported.
  3121  	StartTime string `json:"startTime,omitempty"`
  3122  	// ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally
  3123  	// include in API requests. By default, fields with empty or default values are
  3124  	// omitted from API requests. See
  3125  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3126  	// details.
  3127  	ForceSendFields []string `json:"-"`
  3128  	// NullFields is a list of field names (e.g. "EndTime") to include in API
  3129  	// requests with the JSON null value. By default, fields with empty values are
  3130  	// omitted from API requests. See
  3131  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3132  	NullFields []string `json:"-"`
  3133  }
  3134  
  3135  func (s *ExportMessagesRequest) MarshalJSON() ([]byte, error) {
  3136  	type NoMethod ExportMessagesRequest
  3137  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3138  }
  3139  
  3140  // ExportMessagesResponse: Final response for the export operation. This
  3141  // structure is included in the response to describe the detailed outcome.
  3142  type ExportMessagesResponse struct {
  3143  }
  3144  
  3145  // ExportResourcesHistoryRequest: Request to export the history of resources.
  3146  type ExportResourcesHistoryRequest struct {
  3147  	// Since: If provided, only resources versions updated after this time are
  3148  	// exported. The time uses the format YYYY-MM-DDThh:mm:ss.sss+zz:zz. For
  3149  	// example, `2015-02-07T13:28:17.239+02:00` or `2017-01-01T00:00:00Z`. The time
  3150  	// must be specified to the second and include a time zone.
  3151  	Since string `json:"_since,omitempty"`
  3152  	// Type: String of comma-delimited FHIR resource types. If provided, only
  3153  	// resources of the specified resource type(s) are exported.
  3154  	Type string `json:"_type,omitempty"`
  3155  	// BigqueryDestination: The BigQuery output destination. The Cloud Healthcare
  3156  	// Service Agent requires two IAM roles on the BigQuery location:
  3157  	// `roles/bigquery.dataEditor` and `roles/bigquery.jobUser`. The output is one
  3158  	// BigQuery table per resource type. Unlike when setting `BigQueryDestination`
  3159  	// for `StreamConfig`, `ExportResources` does not create BigQuery views.
  3160  	BigqueryDestination *GoogleCloudHealthcareV1beta1FhirBigQueryDestination `json:"bigqueryDestination,omitempty"`
  3161  	// GcsDestination: The Cloud Storage output destination. The Healthcare Service
  3162  	// Agent account requires the `roles/storage.objectAdmin` role on the Cloud
  3163  	// Storage location. The exported outputs are organized by FHIR resource types.
  3164  	// The server creates one or more objects per resource type depending on the
  3165  	// volume of the resources exported. When there is only one object per resource
  3166  	// type, the object name is in the form of
  3167  	// `{operation_id})_history_{resource_type}`. When there are multiple objects
  3168  	// for a given resource type, the object names are in the form of
  3169  	// `{operation_id}_history_{resource_type}-{index}-of-{total}`. Each object
  3170  	// contains newline delimited JSON, and each line is a FHIR history bundle
  3171  	// containing the history for a single resource.
  3172  	GcsDestination *GoogleCloudHealthcareV1beta1FhirGcsDestination `json:"gcsDestination,omitempty"`
  3173  	// MaxResourceVersions: If provided and non-zero, places a limit on the number
  3174  	// of resource versions that are returned for a given resource. For example, if
  3175  	// the limit is `100` and a resource has over 100 versions, only the 100 most
  3176  	// recent versions will be returned. Must be positive.
  3177  	MaxResourceVersions int64 `json:"maxResourceVersions,omitempty,string"`
  3178  	// ForceSendFields is a list of field names (e.g. "Since") to unconditionally
  3179  	// include in API requests. By default, fields with empty or default values are
  3180  	// omitted from API requests. See
  3181  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3182  	// details.
  3183  	ForceSendFields []string `json:"-"`
  3184  	// NullFields is a list of field names (e.g. "Since") to include in API
  3185  	// requests with the JSON null value. By default, fields with empty values are
  3186  	// omitted from API requests. See
  3187  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3188  	NullFields []string `json:"-"`
  3189  }
  3190  
  3191  func (s *ExportResourcesHistoryRequest) MarshalJSON() ([]byte, error) {
  3192  	type NoMethod ExportResourcesHistoryRequest
  3193  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3194  }
  3195  
  3196  // ExportResourcesRequest: Request to export resources.
  3197  type ExportResourcesRequest struct {
  3198  	// Since: If provided, only resources updated after this time are exported. The
  3199  	// time uses the format YYYY-MM-DDThh:mm:ss.sss+zz:zz. For example,
  3200  	// `2015-02-07T13:28:17.239+02:00` or `2017-01-01T00:00:00Z`. The time must be
  3201  	// specified to the second and include a time zone.
  3202  	Since string `json:"_since,omitempty"`
  3203  	// Type: String of comma-delimited FHIR resource types. If provided, only
  3204  	// resources of the specified resource type(s) are exported.
  3205  	Type string `json:"_type,omitempty"`
  3206  	// BigqueryDestination: The BigQuery output destination. The Cloud Healthcare
  3207  	// Service Agent requires two IAM roles on the BigQuery location:
  3208  	// `roles/bigquery.dataEditor` and `roles/bigquery.jobUser`. The output is one
  3209  	// BigQuery table per resource type. Unlike when setting `BigQueryDestination`
  3210  	// for `StreamConfig`, `ExportResources` does not create BigQuery views.
  3211  	BigqueryDestination *GoogleCloudHealthcareV1beta1FhirBigQueryDestination `json:"bigqueryDestination,omitempty"`
  3212  	// GcsDestination: The Cloud Storage output destination. The Cloud Healthcare
  3213  	// Service Agent requires the `roles/storage.objectAdmin` Cloud IAM roles on
  3214  	// the Cloud Storage location. The exported outputs are organized by FHIR
  3215  	// resource types. The server creates one object per resource type. Each object
  3216  	// contains newline delimited JSON, and each line is a FHIR resource.
  3217  	GcsDestination *GoogleCloudHealthcareV1beta1FhirGcsDestination `json:"gcsDestination,omitempty"`
  3218  	// ForceSendFields is a list of field names (e.g. "Since") to unconditionally
  3219  	// include in API requests. By default, fields with empty or default values are
  3220  	// omitted from API requests. See
  3221  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3222  	// details.
  3223  	ForceSendFields []string `json:"-"`
  3224  	// NullFields is a list of field names (e.g. "Since") to include in API
  3225  	// requests with the JSON null value. By default, fields with empty values are
  3226  	// omitted from API requests. See
  3227  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3228  	NullFields []string `json:"-"`
  3229  }
  3230  
  3231  func (s *ExportResourcesRequest) MarshalJSON() ([]byte, error) {
  3232  	type NoMethod ExportResourcesRequest
  3233  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3234  }
  3235  
  3236  // Expr: Represents a textual expression in the Common Expression Language
  3237  // (CEL) syntax. CEL is a C-like expression language. The syntax and semantics
  3238  // of CEL are documented at https://github.com/google/cel-spec. Example
  3239  // (Comparison): title: "Summary size limit" description: "Determines if a
  3240  // summary is less than 100 chars" expression: "document.summary.size() < 100"
  3241  // Example (Equality): title: "Requestor is owner" description: "Determines if
  3242  // requestor is the document owner" expression: "document.owner ==
  3243  // request.auth.claims.email" Example (Logic): title: "Public documents"
  3244  // description: "Determine whether the document should be publicly visible"
  3245  // expression: "document.type != 'private' && document.type != 'internal'"
  3246  // Example (Data Manipulation): title: "Notification string" description:
  3247  // "Create a notification string with a timestamp." expression: "'New message
  3248  // received at ' + string(document.create_time)" The exact variables and
  3249  // functions that may be referenced within an expression are determined by the
  3250  // service that evaluates it. See the service documentation for additional
  3251  // information.
  3252  type Expr struct {
  3253  	// Description: Optional. Description of the expression. This is a longer text
  3254  	// which describes the expression, e.g. when hovered over it in a UI.
  3255  	Description string `json:"description,omitempty"`
  3256  	// Expression: Textual representation of an expression in Common Expression
  3257  	// Language syntax.
  3258  	Expression string `json:"expression,omitempty"`
  3259  	// Location: Optional. String indicating the location of the expression for
  3260  	// error reporting, e.g. a file name and a position in the file.
  3261  	Location string `json:"location,omitempty"`
  3262  	// Title: Optional. Title for the expression, i.e. a short string describing
  3263  	// its purpose. This can be used e.g. in UIs which allow to enter the
  3264  	// expression.
  3265  	Title string `json:"title,omitempty"`
  3266  	// ForceSendFields is a list of field names (e.g. "Description") to
  3267  	// unconditionally include in API requests. By default, fields with empty or
  3268  	// default values are omitted from API requests. See
  3269  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3270  	// details.
  3271  	ForceSendFields []string `json:"-"`
  3272  	// NullFields is a list of field names (e.g. "Description") to include in API
  3273  	// requests with the JSON null value. By default, fields with empty values are
  3274  	// omitted from API requests. See
  3275  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3276  	NullFields []string `json:"-"`
  3277  }
  3278  
  3279  func (s *Expr) MarshalJSON() ([]byte, error) {
  3280  	type NoMethod Expr
  3281  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3282  }
  3283  
  3284  // Feature: A feature of an entity mention.
  3285  type Feature struct {
  3286  	// Confidence: The model's confidence in this feature annotation. A number
  3287  	// between 0 and 1.
  3288  	Confidence float64 `json:"confidence,omitempty"`
  3289  	// Value: The value of this feature annotation. Its range depends on the type
  3290  	// of the feature.
  3291  	Value string `json:"value,omitempty"`
  3292  	// ForceSendFields is a list of field names (e.g. "Confidence") to
  3293  	// unconditionally include in API requests. By default, fields with empty or
  3294  	// default values are omitted from API requests. See
  3295  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3296  	// details.
  3297  	ForceSendFields []string `json:"-"`
  3298  	// NullFields is a list of field names (e.g. "Confidence") to include in API
  3299  	// requests with the JSON null value. By default, fields with empty values are
  3300  	// omitted from API requests. See
  3301  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3302  	NullFields []string `json:"-"`
  3303  }
  3304  
  3305  func (s *Feature) MarshalJSON() ([]byte, error) {
  3306  	type NoMethod Feature
  3307  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3308  }
  3309  
  3310  func (s *Feature) UnmarshalJSON(data []byte) error {
  3311  	type NoMethod Feature
  3312  	var s1 struct {
  3313  		Confidence gensupport.JSONFloat64 `json:"confidence"`
  3314  		*NoMethod
  3315  	}
  3316  	s1.NoMethod = (*NoMethod)(s)
  3317  	if err := json.Unmarshal(data, &s1); err != nil {
  3318  		return err
  3319  	}
  3320  	s.Confidence = float64(s1.Confidence)
  3321  	return nil
  3322  }
  3323  
  3324  // FhirConfig: Specifies how to handle de-identification of a FHIR store.
  3325  type FhirConfig struct {
  3326  	// DefaultKeepExtensions: The behaviour for handling FHIR extensions that
  3327  	// aren't otherwise specified for de-identification. If true, all extensions
  3328  	// are preserved during de-identification by default. If false or unspecified,
  3329  	// all extensions are removed during de-identification by default.
  3330  	DefaultKeepExtensions bool `json:"defaultKeepExtensions,omitempty"`
  3331  	// FieldMetadataList: Specifies FHIR paths to match and how to transform them.
  3332  	// Any field that is not matched by a FieldMetadata is passed through to the
  3333  	// output dataset unmodified. All extensions will be processed according to
  3334  	// `default_keep_extensions`. If a field can be matched by more than one
  3335  	// FieldMetadata, the first FieldMetadata.Action is applied.
  3336  	FieldMetadataList []*FieldMetadata `json:"fieldMetadataList,omitempty"`
  3337  	// ForceSendFields is a list of field names (e.g. "DefaultKeepExtensions") to
  3338  	// unconditionally include in API requests. By default, fields with empty or
  3339  	// default values are omitted from API requests. See
  3340  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3341  	// details.
  3342  	ForceSendFields []string `json:"-"`
  3343  	// NullFields is a list of field names (e.g. "DefaultKeepExtensions") to
  3344  	// include in API requests with the JSON null value. By default, fields with
  3345  	// empty values are omitted from API requests. See
  3346  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3347  	NullFields []string `json:"-"`
  3348  }
  3349  
  3350  func (s *FhirConfig) MarshalJSON() ([]byte, error) {
  3351  	type NoMethod FhirConfig
  3352  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3353  }
  3354  
  3355  // FhirFieldConfig: Specifies how to handle the de-identification of a FHIR
  3356  // store.
  3357  type FhirFieldConfig struct {
  3358  	// FieldMetadataList: Specifies FHIR paths to match and how to transform them.
  3359  	// Any field that is not matched by a FieldMetadata `action` is passed through
  3360  	// to the output dataset unmodified. All extensions will be processed according
  3361  	// to keep_extensions. If a field can be matched by more than one FieldMetadata
  3362  	// `action`, the first `action` option is applied. Overrides options and the
  3363  	// union field `profile` in FhirFieldConfig.
  3364  	FieldMetadataList []*GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata `json:"fieldMetadataList,omitempty"`
  3365  	// Options: Specifies additional options, overriding the base ProfileType.
  3366  	Options *GoogleCloudHealthcareV1beta1DeidentifyOptions `json:"options,omitempty"`
  3367  	// ProfileType: Base profile type for handling FHIR fields.
  3368  	//
  3369  	// Possible values:
  3370  	//   "PROFILE_TYPE_UNSPECIFIED" - No profile provided. Same as `BASIC`.
  3371  	//   "KEEP_ALL" - Keep all fields.
  3372  	//   "BASIC" - Transforms known [HIPAA
  3373  	// 18](https://www.hhs.gov/hipaa/for-professionals/privacy/special-topics/de-ide
  3374  	// ntification/index.html#standard) fields and cleans known unstructured text
  3375  	// fields.
  3376  	//   "CLEAN_ALL" - Cleans all supported tags. Applies to types: Code, Date,
  3377  	// DateTime, Decimal, HumanName, Id, LanguageCode, Markdown, Oid, String, Uri,
  3378  	// Uuid, Xhtml.
  3379  	ProfileType string `json:"profileType,omitempty"`
  3380  	// ForceSendFields is a list of field names (e.g. "FieldMetadataList") to
  3381  	// unconditionally include in API requests. By default, fields with empty or
  3382  	// default values are omitted from API requests. See
  3383  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3384  	// details.
  3385  	ForceSendFields []string `json:"-"`
  3386  	// NullFields is a list of field names (e.g. "FieldMetadataList") to include in
  3387  	// API requests with the JSON null value. By default, fields with empty values
  3388  	// are omitted from API requests. See
  3389  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3390  	NullFields []string `json:"-"`
  3391  }
  3392  
  3393  func (s *FhirFieldConfig) MarshalJSON() ([]byte, error) {
  3394  	type NoMethod FhirFieldConfig
  3395  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3396  }
  3397  
  3398  // FhirFilter: Filter configuration.
  3399  type FhirFilter struct {
  3400  	// Resources: List of resources to include in the output. If this list is empty
  3401  	// or not specified, all resources are included in the output.
  3402  	Resources *Resources `json:"resources,omitempty"`
  3403  	// ForceSendFields is a list of field names (e.g. "Resources") to
  3404  	// unconditionally include in API requests. By default, fields with empty or
  3405  	// default values are omitted from API requests. See
  3406  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3407  	// details.
  3408  	ForceSendFields []string `json:"-"`
  3409  	// NullFields is a list of field names (e.g. "Resources") to include in API
  3410  	// requests with the JSON null value. By default, fields with empty values are
  3411  	// omitted from API requests. See
  3412  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3413  	NullFields []string `json:"-"`
  3414  }
  3415  
  3416  func (s *FhirFilter) MarshalJSON() ([]byte, error) {
  3417  	type NoMethod FhirFilter
  3418  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3419  }
  3420  
  3421  // FhirNotificationConfig: Contains the configuration for FHIR notifications.
  3422  type FhirNotificationConfig struct {
  3423  	// PubsubTopic: The Pub/Sub (https://cloud.google.com/pubsub/docs/) topic that
  3424  	// notifications of changes are published on. Supplied by the client. The
  3425  	// notification is a `PubsubMessage` with the following fields: *
  3426  	// `PubsubMessage.Data` contains the resource name. * `PubsubMessage.MessageId`
  3427  	// is the ID of this notification. It is guaranteed to be unique within the
  3428  	// topic. * `PubsubMessage.PublishTime` is the time when the message was
  3429  	// published. Note that notifications are only sent if the topic is non-empty.
  3430  	// Topic names (https://cloud.google.com/pubsub/docs/overview#names) must be
  3431  	// scoped to a project. The Cloud Healthcare API service account,
  3432  	// service-@gcp-sa-healthcare.iam.gserviceaccount.com, must have publisher
  3433  	// permissions on the given Pub/Sub topic. Not having adequate permissions
  3434  	// causes the calls that send notifications to fail
  3435  	// (https://cloud.google.com/healthcare-api/docs/permissions-healthcare-api-gcp-products#dicom_fhir_and_hl7v2_store_cloud_pubsub_permissions).
  3436  	// If a notification can't be published to Pub/Sub, errors are logged to Cloud
  3437  	// Logging. For more information, see Viewing error logs in Cloud Logging
  3438  	// (https://cloud.google.com/healthcare-api/docs/how-tos/logging).
  3439  	PubsubTopic string `json:"pubsubTopic,omitempty"`
  3440  	// SendFullResource: Whether to send full FHIR resource to this Pub/Sub topic
  3441  	// for Create and Update operation. Note that setting this to true does not
  3442  	// guarantee that all resources will be sent in the format of full FHIR
  3443  	// resource. When a resource change is too large or during heavy traffic, only
  3444  	// the resource name will be sent. Clients should always check the
  3445  	// "payloadType" label from a Pub/Sub message to determine whether it needs to
  3446  	// fetch the full resource as a separate operation.
  3447  	SendFullResource bool `json:"sendFullResource,omitempty"`
  3448  	// SendPreviousResourceOnDelete: Whether to send full FHIR resource to this
  3449  	// Pub/Sub topic for deleting FHIR resource. Note that setting this to true
  3450  	// does not guarantee that all previous resources will be sent in the format of
  3451  	// full FHIR resource. When a resource change is too large or during heavy
  3452  	// traffic, only the resource name will be sent. Clients should always check
  3453  	// the "payloadType" label from a Pub/Sub message to determine whether it needs
  3454  	// to fetch the full previous resource as a separate operation.
  3455  	SendPreviousResourceOnDelete bool `json:"sendPreviousResourceOnDelete,omitempty"`
  3456  	// ForceSendFields is a list of field names (e.g. "PubsubTopic") to
  3457  	// unconditionally include in API requests. By default, fields with empty or
  3458  	// default values are omitted from API requests. See
  3459  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3460  	// details.
  3461  	ForceSendFields []string `json:"-"`
  3462  	// NullFields is a list of field names (e.g. "PubsubTopic") to include in API
  3463  	// requests with the JSON null value. By default, fields with empty values are
  3464  	// omitted from API requests. See
  3465  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3466  	NullFields []string `json:"-"`
  3467  }
  3468  
  3469  func (s *FhirNotificationConfig) MarshalJSON() ([]byte, error) {
  3470  	type NoMethod FhirNotificationConfig
  3471  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3472  }
  3473  
  3474  // FhirOutput: Details about the FHIR store to write the output to.
  3475  type FhirOutput struct {
  3476  	// FhirStore: Name of the output FHIR store, which must already exist. You must
  3477  	// grant the healthcare.fhirResources.update permission on the destination
  3478  	// store to your project's **Cloud Healthcare Service Agent** service account
  3479  	// (https://cloud.google.com/healthcare/docs/how-tos/permissions-healthcare-api-gcp-products#the_cloud_healthcare_service_agent).
  3480  	// The destination store must set enableUpdateCreate to true. The destination
  3481  	// store must use FHIR version R4. Writing these resources will consume FHIR
  3482  	// operations quota from the project containing the source data. De-identify
  3483  	// operation metadata is only generated for DICOM de-identification operations.
  3484  	FhirStore string `json:"fhirStore,omitempty"`
  3485  	// ForceSendFields is a list of field names (e.g. "FhirStore") to
  3486  	// unconditionally include in API requests. By default, fields with empty or
  3487  	// default values are omitted from API requests. See
  3488  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3489  	// details.
  3490  	ForceSendFields []string `json:"-"`
  3491  	// NullFields is a list of field names (e.g. "FhirStore") to include in API
  3492  	// requests with the JSON null value. By default, fields with empty values are
  3493  	// omitted from API requests. See
  3494  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3495  	NullFields []string `json:"-"`
  3496  }
  3497  
  3498  func (s *FhirOutput) MarshalJSON() ([]byte, error) {
  3499  	type NoMethod FhirOutput
  3500  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3501  }
  3502  
  3503  // FhirStore: Represents a FHIR store.
  3504  type FhirStore struct {
  3505  	// ComplexDataTypeReferenceParsing: Enable parsing of references within complex
  3506  	// FHIR data types such as Extensions. If this value is set to ENABLED, then
  3507  	// features like referential integrity and Bundle reference rewriting apply to
  3508  	// all references. If this flag has not been specified the behavior of the FHIR
  3509  	// store will not change, references in complex data types will not be parsed.
  3510  	// New stores will have this value set to ENABLED after a notification period.
  3511  	// Warning: turning on this flag causes processing existing resources to fail
  3512  	// if they contain references to non-existent resources.
  3513  	//
  3514  	// Possible values:
  3515  	//   "COMPLEX_DATA_TYPE_REFERENCE_PARSING_UNSPECIFIED" - No parsing behavior
  3516  	// specified. This is the same as DISABLED for backwards compatibility.
  3517  	//   "DISABLED" - References in complex data types are ignored.
  3518  	//   "ENABLED" - References in complex data types are parsed.
  3519  	ComplexDataTypeReferenceParsing string `json:"complexDataTypeReferenceParsing,omitempty"`
  3520  	// ConsentConfig: Optional. Specifies whether this store has consent
  3521  	// enforcement. Not available for DSTU2 FHIR version due to absence of Consent
  3522  	// resources.
  3523  	ConsentConfig *ConsentConfig `json:"consentConfig,omitempty"`
  3524  	// DefaultSearchHandlingStrict: If true, overrides the default search behavior
  3525  	// for this FHIR store to `handling=strict` which returns an error for
  3526  	// unrecognized search parameters. If false, uses the FHIR specification
  3527  	// default `handling=lenient` which ignores unrecognized search parameters. The
  3528  	// handling can always be changed from the default on an individual API call by
  3529  	// setting the HTTP header `Prefer: handling=strict` or `Prefer:
  3530  	// handling=lenient`.
  3531  	DefaultSearchHandlingStrict bool `json:"defaultSearchHandlingStrict,omitempty"`
  3532  	// DisableReferentialIntegrity: Immutable. Whether to disable referential
  3533  	// integrity in this FHIR store. This field is immutable after FHIR store
  3534  	// creation. The default value is false, meaning that the API enforces
  3535  	// referential integrity and fails the requests that result in inconsistent
  3536  	// state in the FHIR store. When this field is set to true, the API skips
  3537  	// referential integrity checks. Consequently, operations that rely on
  3538  	// references, such as GetPatientEverything, do not return all the results if
  3539  	// broken references exist.
  3540  	DisableReferentialIntegrity bool `json:"disableReferentialIntegrity,omitempty"`
  3541  	// DisableResourceVersioning: Immutable. Whether to disable resource versioning
  3542  	// for this FHIR store. This field can not be changed after the creation of
  3543  	// FHIR store. If set to false, which is the default behavior, all write
  3544  	// operations cause historical versions to be recorded automatically. The
  3545  	// historical versions can be fetched through the history APIs, but cannot be
  3546  	// updated. If set to true, no historical versions are kept. The server sends
  3547  	// errors for attempts to read the historical versions.
  3548  	DisableResourceVersioning bool `json:"disableResourceVersioning,omitempty"`
  3549  	// EnableHistoryModifications: Optional. Whether to allow ExecuteBundle to
  3550  	// accept history bundles, and directly insert and overwrite historical
  3551  	// resource versions into the FHIR store. If set to false, using history
  3552  	// bundles fails with an error.
  3553  	EnableHistoryModifications bool `json:"enableHistoryModifications,omitempty"`
  3554  	// EnableUpdateCreate: Whether this FHIR store has the updateCreate capability
  3555  	// (https://www.hl7.org/fhir/capabilitystatement-definitions.html#CapabilityStatement.rest.resource.updateCreate).
  3556  	// This determines if the client can use an Update operation to create a new
  3557  	// resource with a client-specified ID. If false, all IDs are server-assigned
  3558  	// through the Create operation and attempts to update a non-existent resource
  3559  	// return errors. It is strongly advised not to include or encode any sensitive
  3560  	// data such as patient identifiers in client-specified resource IDs. Those IDs
  3561  	// are part of the FHIR resource path recorded in Cloud audit logs and Pub/Sub
  3562  	// notifications. Those IDs can also be contained in reference fields within
  3563  	// other resources.
  3564  	EnableUpdateCreate bool `json:"enableUpdateCreate,omitempty"`
  3565  	// Labels: User-supplied key-value pairs used to organize FHIR stores. Label
  3566  	// keys must be between 1 and 63 characters long, have a UTF-8 encoding of
  3567  	// maximum 128 bytes, and must conform to the following PCRE regular
  3568  	// expression: \p{Ll}\p{Lo}{0,62} Label values are optional, must be between 1
  3569  	// and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must
  3570  	// conform to the following PCRE regular expression:
  3571  	// [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a
  3572  	// given store.
  3573  	Labels map[string]string `json:"labels,omitempty"`
  3574  	// Name: Output only. Identifier. Resource name of the FHIR store, of the form
  3575  	// `projects/{project_id}/locations/{location}/datasets/{dataset_id}/fhirStores/
  3576  	// {fhir_store_id}`.
  3577  	Name string `json:"name,omitempty"`
  3578  	// NotificationConfig: Deprecated. Use `notification_configs` instead. If
  3579  	// non-empty, publish all resource modifications of this FHIR store to this
  3580  	// destination. The Pub/Sub message attributes contain a map with a string
  3581  	// describing the action that has triggered the notification. For example,
  3582  	// "action":"CreateResource".
  3583  	NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"`
  3584  	// NotificationConfigs: Specifies where and whether to send notifications upon
  3585  	// changes to a Fhir store.
  3586  	NotificationConfigs []*FhirNotificationConfig `json:"notificationConfigs,omitempty"`
  3587  	// SearchConfig: Configuration for how FHIR resources can be searched.
  3588  	SearchConfig *SearchConfig `json:"searchConfig,omitempty"`
  3589  	// StreamConfigs: A list of streaming configs that configure the destinations
  3590  	// of streaming export for every resource mutation in this FHIR store. Each
  3591  	// store is allowed to have up to 10 streaming configs. After a new config is
  3592  	// added, the next resource mutation is streamed to the new location in
  3593  	// addition to the existing ones. When a location is removed from the list, the
  3594  	// server stops streaming to that location. Before adding a new config, you
  3595  	// must add the required `bigquery.dataEditor`
  3596  	// (https://cloud.google.com/bigquery/docs/access-control#bigquery.dataEditor)
  3597  	// role to your project's **Cloud Healthcare Service Agent** service account
  3598  	// (https://cloud.google.com/iam/docs/service-accounts). Some lag (typically on
  3599  	// the order of dozens of seconds) is expected before the results show up in
  3600  	// the streaming destination.
  3601  	StreamConfigs []*StreamConfig `json:"streamConfigs,omitempty"`
  3602  	// ValidationConfig: Configuration for how to validate incoming FHIR resources
  3603  	// against configured profiles.
  3604  	ValidationConfig *ValidationConfig `json:"validationConfig,omitempty"`
  3605  	// Version: Required. Immutable. The FHIR specification version that this FHIR
  3606  	// store supports natively. This field is immutable after store creation.
  3607  	// Requests are rejected if they contain FHIR resources of a different version.
  3608  	// Version is required for every FHIR store.
  3609  	//
  3610  	// Possible values:
  3611  	//   "VERSION_UNSPECIFIED" - VERSION_UNSPECIFIED is treated as STU3 to
  3612  	// accommodate the existing FHIR stores.
  3613  	//   "DSTU2" - Draft Standard for Trial Use, [Release
  3614  	// 2](https://www.hl7.org/fhir/DSTU2)
  3615  	//   "STU3" - Standard for Trial Use, [Release
  3616  	// 3](https://www.hl7.org/fhir/STU3)
  3617  	//   "R4" - [Release 4](https://www.hl7.org/fhir/R4)
  3618  	Version string `json:"version,omitempty"`
  3619  
  3620  	// ServerResponse contains the HTTP response code and headers from the server.
  3621  	googleapi.ServerResponse `json:"-"`
  3622  	// ForceSendFields is a list of field names (e.g.
  3623  	// "ComplexDataTypeReferenceParsing") to unconditionally include in API
  3624  	// requests. By default, fields with empty or default values are omitted from
  3625  	// API requests. See
  3626  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3627  	// details.
  3628  	ForceSendFields []string `json:"-"`
  3629  	// NullFields is a list of field names (e.g. "ComplexDataTypeReferenceParsing")
  3630  	// to include in API requests with the JSON null value. By default, fields with
  3631  	// empty values are omitted from API requests. See
  3632  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3633  	NullFields []string `json:"-"`
  3634  }
  3635  
  3636  func (s *FhirStore) MarshalJSON() ([]byte, error) {
  3637  	type NoMethod FhirStore
  3638  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3639  }
  3640  
  3641  // FhirStoreMetric: Count of resources and total storage size by type for a
  3642  // given FHIR store.
  3643  type FhirStoreMetric struct {
  3644  	// Count: The total count of FHIR resources in the store of this resource type.
  3645  	Count int64 `json:"count,omitempty,string"`
  3646  	// ResourceType: The FHIR resource type this metric applies to.
  3647  	ResourceType string `json:"resourceType,omitempty"`
  3648  	// StructuredStorageSizeBytes: The total amount of structured storage used by
  3649  	// FHIR resources of this resource type in the store.
  3650  	StructuredStorageSizeBytes int64 `json:"structuredStorageSizeBytes,omitempty,string"`
  3651  	// ForceSendFields is a list of field names (e.g. "Count") to unconditionally
  3652  	// include in API requests. By default, fields with empty or default values are
  3653  	// omitted from API requests. See
  3654  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3655  	// details.
  3656  	ForceSendFields []string `json:"-"`
  3657  	// NullFields is a list of field names (e.g. "Count") to include in API
  3658  	// requests with the JSON null value. By default, fields with empty values are
  3659  	// omitted from API requests. See
  3660  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3661  	NullFields []string `json:"-"`
  3662  }
  3663  
  3664  func (s *FhirStoreMetric) MarshalJSON() ([]byte, error) {
  3665  	type NoMethod FhirStoreMetric
  3666  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3667  }
  3668  
  3669  // FhirStoreMetrics: List of metrics for a given FHIR store.
  3670  type FhirStoreMetrics struct {
  3671  	// Metrics: List of FhirStoreMetric by resource type.
  3672  	Metrics []*FhirStoreMetric `json:"metrics,omitempty"`
  3673  	// Name: The resource name of the FHIR store to get metrics for, in the format
  3674  	// `projects/{project_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}`.
  3675  	Name string `json:"name,omitempty"`
  3676  
  3677  	// ServerResponse contains the HTTP response code and headers from the server.
  3678  	googleapi.ServerResponse `json:"-"`
  3679  	// ForceSendFields is a list of field names (e.g. "Metrics") to unconditionally
  3680  	// include in API requests. By default, fields with empty or default values are
  3681  	// omitted from API requests. See
  3682  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3683  	// details.
  3684  	ForceSendFields []string `json:"-"`
  3685  	// NullFields is a list of field names (e.g. "Metrics") to include in API
  3686  	// requests with the JSON null value. By default, fields with empty values are
  3687  	// omitted from API requests. See
  3688  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3689  	NullFields []string `json:"-"`
  3690  }
  3691  
  3692  func (s *FhirStoreMetrics) MarshalJSON() ([]byte, error) {
  3693  	type NoMethod FhirStoreMetrics
  3694  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3695  }
  3696  
  3697  // Field: A (sub) field of a type.
  3698  type Field struct {
  3699  	// MaxOccurs: The maximum number of times this field can be repeated. 0 or -1
  3700  	// means unbounded.
  3701  	MaxOccurs int64 `json:"maxOccurs,omitempty"`
  3702  	// MinOccurs: The minimum number of times this field must be present/repeated.
  3703  	MinOccurs int64 `json:"minOccurs,omitempty"`
  3704  	// Name: The name of the field. For example, "PID-1" or just "1".
  3705  	Name string `json:"name,omitempty"`
  3706  	// Table: The HL7v2 table this field refers to. For example, PID-15 (Patient's
  3707  	// Primary Language) usually refers to table "0296".
  3708  	Table string `json:"table,omitempty"`
  3709  	// Type: The type of this field. A Type with this name must be defined in an
  3710  	// Hl7TypesConfig.
  3711  	Type string `json:"type,omitempty"`
  3712  	// ForceSendFields is a list of field names (e.g. "MaxOccurs") to
  3713  	// unconditionally include in API requests. By default, fields with empty or
  3714  	// default values are omitted from API requests. See
  3715  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3716  	// details.
  3717  	ForceSendFields []string `json:"-"`
  3718  	// NullFields is a list of field names (e.g. "MaxOccurs") to include in API
  3719  	// requests with the JSON null value. By default, fields with empty values are
  3720  	// omitted from API requests. See
  3721  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3722  	NullFields []string `json:"-"`
  3723  }
  3724  
  3725  func (s *Field) MarshalJSON() ([]byte, error) {
  3726  	type NoMethod Field
  3727  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3728  }
  3729  
  3730  // FieldMetadata: Specifies FHIR paths to match, and how to handle
  3731  // de-identification of matching fields.
  3732  type FieldMetadata struct {
  3733  	// Action: Deidentify action for one field.
  3734  	//
  3735  	// Possible values:
  3736  	//   "ACTION_UNSPECIFIED" - No action specified.
  3737  	//   "TRANSFORM" - Transform the entire field based on transformations
  3738  	// specified in TextConfig. When the specified transformation cannot be applied
  3739  	// to a field, RedactConfig is used. For example, a Crypto Hash transformation
  3740  	// can't be applied to a FHIR Date field.
  3741  	//   "INSPECT_AND_TRANSFORM" - Inspect and transform any found PHI. When
  3742  	// `AnnotationConfig` is provided, annotations of PHI will be generated, except
  3743  	// for Date and Datetime.
  3744  	//   "DO_NOT_TRANSFORM" - Do not transform.
  3745  	Action string `json:"action,omitempty"`
  3746  	// Paths: List of paths to FHIR fields to redact. Each path is a
  3747  	// period-separated list where each component is either a field name or FHIR
  3748  	// type name. All types begin with an upper case letter. For example, the
  3749  	// resource field "Patient.Address.city", which uses a string type, can be
  3750  	// matched by "Patient.Address.String". Path also supports partial matching.
  3751  	// For example, "Patient.Address.city" can be matched by "Address.city"
  3752  	// (Patient omitted). Partial matching and type matching can be combined. For
  3753  	// example, "Patient.Address.city" can be matched by "Address.String". For
  3754  	// "choice" types (those defined in the FHIR spec with the form: field[x]), use
  3755  	// two separate components. For example, "deceasedAge.unit" is matched by
  3756  	// "Deceased.Age.unit". Supported types are: AdministrativeGenderCode,
  3757  	// Base64Binary, Boolean, Code, Date, DateTime, Decimal, HumanName, Id,
  3758  	// Instant, Integer, LanguageCode, Markdown, Oid, PositiveInt, String,
  3759  	// UnsignedInt, Uri, Uuid, Xhtml. The sub-type for HumanName(for example
  3760  	// HumanName.given, HumanName.family) can be omitted.
  3761  	Paths []string `json:"paths,omitempty"`
  3762  	// ForceSendFields is a list of field names (e.g. "Action") to unconditionally
  3763  	// include in API requests. By default, fields with empty or default values are
  3764  	// omitted from API requests. See
  3765  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3766  	// details.
  3767  	ForceSendFields []string `json:"-"`
  3768  	// NullFields is a list of field names (e.g. "Action") to include in API
  3769  	// requests with the JSON null value. By default, fields with empty values are
  3770  	// omitted from API requests. See
  3771  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3772  	NullFields []string `json:"-"`
  3773  }
  3774  
  3775  func (s *FieldMetadata) MarshalJSON() ([]byte, error) {
  3776  	type NoMethod FieldMetadata
  3777  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3778  }
  3779  
  3780  // FilterList: List of infoTypes to be filtered.
  3781  type FilterList struct {
  3782  	// InfoTypes: These infoTypes are based on after the `eval_info_type_mapping`
  3783  	// and `golden_info_type_mapping`.
  3784  	InfoTypes []string `json:"infoTypes,omitempty"`
  3785  	// ForceSendFields is a list of field names (e.g. "InfoTypes") to
  3786  	// unconditionally include in API requests. By default, fields with empty or
  3787  	// default values are omitted from API requests. See
  3788  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3789  	// details.
  3790  	ForceSendFields []string `json:"-"`
  3791  	// NullFields is a list of field names (e.g. "InfoTypes") to include in API
  3792  	// requests with the JSON null value. By default, fields with empty values are
  3793  	// omitted from API requests. See
  3794  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3795  	NullFields []string `json:"-"`
  3796  }
  3797  
  3798  func (s *FilterList) MarshalJSON() ([]byte, error) {
  3799  	type NoMethod FilterList
  3800  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3801  }
  3802  
  3803  type Finding struct {
  3804  	// End: Zero-based ending index of the found text, exclusively.
  3805  	End int64 `json:"end,omitempty,string"`
  3806  	// InfoType: The type of information stored in this text range. For example,
  3807  	// HumanName, BirthDate, or Address.
  3808  	InfoType string `json:"infoType,omitempty"`
  3809  	// Quote: The snippet of the sensitive text. This field is only populated
  3810  	// during deidentification if `store_quote` is set to true in DeidentifyConfig.
  3811  	Quote string `json:"quote,omitempty"`
  3812  	// Start: Zero-based starting index of the found text, inclusively.
  3813  	Start int64 `json:"start,omitempty,string"`
  3814  	// ForceSendFields is a list of field names (e.g. "End") to unconditionally
  3815  	// include in API requests. By default, fields with empty or default values are
  3816  	// omitted from API requests. See
  3817  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3818  	// details.
  3819  	ForceSendFields []string `json:"-"`
  3820  	// NullFields is a list of field names (e.g. "End") to include in API requests
  3821  	// with the JSON null value. By default, fields with empty values are omitted
  3822  	// from API requests. See
  3823  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3824  	NullFields []string `json:"-"`
  3825  }
  3826  
  3827  func (s *Finding) MarshalJSON() ([]byte, error) {
  3828  	type NoMethod Finding
  3829  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3830  }
  3831  
  3832  // GcsDestination: The Cloud Storage output destination. The Cloud Healthcare
  3833  // Service Agent requires the `roles/storage.objectAdmin` Cloud IAM roles on
  3834  // the Cloud Storage location.
  3835  type GcsDestination struct {
  3836  	// ContentStructure: The format of the exported HL7v2 message files.
  3837  	//
  3838  	// Possible values:
  3839  	//   "CONTENT_STRUCTURE_UNSPECIFIED" - If the content structure is not
  3840  	// specified, the default value `MESSAGE_JSON` will be used.
  3841  	//   "MESSAGE_JSON" - Messages are printed using the JSON format returned from
  3842  	// the `GetMessage` API. Messages are delimited with newlines.
  3843  	ContentStructure string `json:"contentStructure,omitempty"`
  3844  	// MessageView: Specifies the parts of the Message resource to include in the
  3845  	// export. If not specified, FULL is used.
  3846  	//
  3847  	// Possible values:
  3848  	//   "MESSAGE_VIEW_UNSPECIFIED" - Not specified, equivalent to FULL for
  3849  	// getMessage, equivalent to BASIC for listMessages.
  3850  	//   "RAW_ONLY" - Server responses include all the message fields except
  3851  	// parsed_data, and schematized_data fields.
  3852  	//   "PARSED_ONLY" - Server responses include all the message fields except
  3853  	// data and schematized_data fields.
  3854  	//   "FULL" - Server responses include all the message fields.
  3855  	//   "SCHEMATIZED_ONLY" - Server responses include all the message fields
  3856  	// except data and parsed_data fields.
  3857  	//   "BASIC" - Server responses include only the name field.
  3858  	MessageView string `json:"messageView,omitempty"`
  3859  	// UriPrefix: URI of an existing Cloud Storage directory where the server
  3860  	// writes result files, in the format
  3861  	// `gs://{bucket-id}/{path/to/destination/dir}`. If there is no trailing slash,
  3862  	// the service appends one when composing the object path.
  3863  	UriPrefix string `json:"uriPrefix,omitempty"`
  3864  	// ForceSendFields is a list of field names (e.g. "ContentStructure") to
  3865  	// unconditionally include in API requests. By default, fields with empty or
  3866  	// default values are omitted from API requests. See
  3867  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3868  	// details.
  3869  	ForceSendFields []string `json:"-"`
  3870  	// NullFields is a list of field names (e.g. "ContentStructure") to include in
  3871  	// API requests with the JSON null value. By default, fields with empty values
  3872  	// are omitted from API requests. See
  3873  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3874  	NullFields []string `json:"-"`
  3875  }
  3876  
  3877  func (s *GcsDestination) MarshalJSON() ([]byte, error) {
  3878  	type NoMethod GcsDestination
  3879  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3880  }
  3881  
  3882  // GcsSource: Specifies the configuration for importing data from Cloud
  3883  // Storage.
  3884  type GcsSource struct {
  3885  	// Uri: Points to a Cloud Storage URI containing file(s) to import. The URI
  3886  	// must be in the following format: `gs://{bucket_id}/{object_id}`. The URI can
  3887  	// include wildcards in `object_id` and thus identify multiple files. Supported
  3888  	// wildcards: * `*` to match 0 or more non-separator characters * `**` to match
  3889  	// 0 or more characters (including separators). Must be used at the end of a
  3890  	// path and with no other wildcards in the path. Can also be used with a file
  3891  	// extension (such as .ndjson), which imports all files with the extension in
  3892  	// the specified directory and its sub-directories. For example,
  3893  	// `gs://my-bucket/my-directory/**.ndjson` imports all files with `.ndjson`
  3894  	// extensions in `my-directory/` and its sub-directories. * `?` to match 1
  3895  	// character Files matching the wildcard are expected to contain content only,
  3896  	// no metadata.
  3897  	Uri string `json:"uri,omitempty"`
  3898  	// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally
  3899  	// include in API requests. By default, fields with empty or default values are
  3900  	// omitted from API requests. See
  3901  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3902  	// details.
  3903  	ForceSendFields []string `json:"-"`
  3904  	// NullFields is a list of field names (e.g. "Uri") to include in API requests
  3905  	// with the JSON null value. By default, fields with empty values are omitted
  3906  	// from API requests. See
  3907  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3908  	NullFields []string `json:"-"`
  3909  }
  3910  
  3911  func (s *GcsSource) MarshalJSON() ([]byte, error) {
  3912  	type NoMethod GcsSource
  3913  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3914  }
  3915  
  3916  // GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination: The BigQuery
  3917  // table for export.
  3918  type GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination struct {
  3919  	// Force: Use `write_disposition` instead. If `write_disposition` is specified,
  3920  	// this parameter is ignored. force=false is equivalent to
  3921  	// write_disposition=WRITE_EMPTY and force=true is equivalent to
  3922  	// write_disposition=WRITE_TRUNCATE.
  3923  	Force bool `json:"force,omitempty"`
  3924  	// SchemaType: Specifies the schema format to export.
  3925  	//
  3926  	// Possible values:
  3927  	//   "SCHEMA_TYPE_UNSPECIFIED" - Same as SIMPLE.
  3928  	//   "SIMPLE" - A flatterned version of Annotation.
  3929  	SchemaType string `json:"schemaType,omitempty"`
  3930  	// TableUri: BigQuery URI to a table, up to 2000 characters long, must be of
  3931  	// the form bq://projectId.bqDatasetId.tableId.
  3932  	TableUri string `json:"tableUri,omitempty"`
  3933  	// WriteDisposition: Determines if existing data in the destination dataset is
  3934  	// overwritten, appended to, or not written if the tables contain data. If a
  3935  	// write_disposition is specified, the `force` parameter is ignored.
  3936  	//
  3937  	// Possible values:
  3938  	//   "WRITE_DISPOSITION_UNSPECIFIED" - Default behavior is the same as
  3939  	// WRITE_EMPTY.
  3940  	//   "WRITE_EMPTY" - Only export data if the destination table is empty.
  3941  	//   "WRITE_TRUNCATE" - Erase all existing data in a table before writing the
  3942  	// instances.
  3943  	//   "WRITE_APPEND" - Append data to the existing table.
  3944  	WriteDisposition string `json:"writeDisposition,omitempty"`
  3945  	// ForceSendFields is a list of field names (e.g. "Force") to unconditionally
  3946  	// include in API requests. By default, fields with empty or default values are
  3947  	// omitted from API requests. See
  3948  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3949  	// details.
  3950  	ForceSendFields []string `json:"-"`
  3951  	// NullFields is a list of field names (e.g. "Force") to include in API
  3952  	// requests with the JSON null value. By default, fields with empty values are
  3953  	// omitted from API requests. See
  3954  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3955  	NullFields []string `json:"-"`
  3956  }
  3957  
  3958  func (s *GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination) MarshalJSON() ([]byte, error) {
  3959  	type NoMethod GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination
  3960  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3961  }
  3962  
  3963  // GoogleCloudHealthcareV1beta1AnnotationGcsDestination: The Cloud Storage
  3964  // location for export.
  3965  type GoogleCloudHealthcareV1beta1AnnotationGcsDestination struct {
  3966  	// UriPrefix: The Cloud Storage destination to export to. URI for a Cloud
  3967  	// Storage directory where the server writes result files, in the format
  3968  	// `gs://{bucket-id}/{path/to/destination/dir}`. If there is no trailing slash,
  3969  	// the service appends one when composing the object path. The user is
  3970  	// responsible for creating the Cloud Storage bucket referenced in
  3971  	// `uri_prefix`.
  3972  	UriPrefix string `json:"uriPrefix,omitempty"`
  3973  	// ForceSendFields is a list of field names (e.g. "UriPrefix") to
  3974  	// unconditionally include in API requests. By default, fields with empty or
  3975  	// default values are omitted from API requests. See
  3976  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3977  	// details.
  3978  	ForceSendFields []string `json:"-"`
  3979  	// NullFields is a list of field names (e.g. "UriPrefix") to include in API
  3980  	// requests with the JSON null value. By default, fields with empty values are
  3981  	// omitted from API requests. See
  3982  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3983  	NullFields []string `json:"-"`
  3984  }
  3985  
  3986  func (s *GoogleCloudHealthcareV1beta1AnnotationGcsDestination) MarshalJSON() ([]byte, error) {
  3987  	type NoMethod GoogleCloudHealthcareV1beta1AnnotationGcsDestination
  3988  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3989  }
  3990  
  3991  // GoogleCloudHealthcareV1beta1AnnotationGcsSource: Specifies the configuration
  3992  // for importing data from Cloud Storage.
  3993  type GoogleCloudHealthcareV1beta1AnnotationGcsSource struct {
  3994  	// Uri: Points to a Cloud Storage URI containing file(s) with content only. The
  3995  	// URI must be in the following format: `gs://{bucket_id}/{object_id}`. The URI
  3996  	// can include wildcards in `object_id` and thus identify multiple files.
  3997  	// Supported wildcards: '*' to match 0 or more non-separator characters '**' to
  3998  	// match 0 or more characters (including separators). Must be used at the end
  3999  	// of a path and with no other wildcards in the path. Can also be used with a
  4000  	// file extension (such as .dcm), which imports all files with the extension in
  4001  	// the specified directory and its sub-directories. For example,
  4002  	// `gs://my-bucket/my-directory/**.json` imports all files with .json
  4003  	// extensions in `my-directory/` and its sub-directories. '?' to match 1
  4004  	// character All other URI formats are invalid. Files matching the wildcard are
  4005  	// expected to contain content only, no metadata.
  4006  	Uri string `json:"uri,omitempty"`
  4007  	// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally
  4008  	// include in API requests. By default, fields with empty or default values are
  4009  	// omitted from API requests. See
  4010  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4011  	// details.
  4012  	ForceSendFields []string `json:"-"`
  4013  	// NullFields is a list of field names (e.g. "Uri") to include in API requests
  4014  	// with the JSON null value. By default, fields with empty values are omitted
  4015  	// from API requests. See
  4016  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4017  	NullFields []string `json:"-"`
  4018  }
  4019  
  4020  func (s *GoogleCloudHealthcareV1beta1AnnotationGcsSource) MarshalJSON() ([]byte, error) {
  4021  	type NoMethod GoogleCloudHealthcareV1beta1AnnotationGcsSource
  4022  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4023  }
  4024  
  4025  // GoogleCloudHealthcareV1beta1ConsentGcsDestination: The Cloud Storage
  4026  // location for export.
  4027  type GoogleCloudHealthcareV1beta1ConsentGcsDestination struct {
  4028  	// UriPrefix: URI for a Cloud Storage directory where the server writes result
  4029  	// files, in the format `gs://{bucket-id}/{path/to/destination/dir}`. If there
  4030  	// is no trailing slash, the service appends one when composing the object
  4031  	// path. The user is responsible for creating the Cloud Storage bucket and
  4032  	// directory referenced in `uri_prefix`.
  4033  	UriPrefix string `json:"uriPrefix,omitempty"`
  4034  	// ForceSendFields is a list of field names (e.g. "UriPrefix") to
  4035  	// unconditionally include in API requests. By default, fields with empty or
  4036  	// default values are omitted from API requests. See
  4037  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4038  	// details.
  4039  	ForceSendFields []string `json:"-"`
  4040  	// NullFields is a list of field names (e.g. "UriPrefix") to include in API
  4041  	// requests with the JSON null value. By default, fields with empty values are
  4042  	// omitted from API requests. See
  4043  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4044  	NullFields []string `json:"-"`
  4045  }
  4046  
  4047  func (s *GoogleCloudHealthcareV1beta1ConsentGcsDestination) MarshalJSON() ([]byte, error) {
  4048  	type NoMethod GoogleCloudHealthcareV1beta1ConsentGcsDestination
  4049  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4050  }
  4051  
  4052  // GoogleCloudHealthcareV1beta1ConsentPolicy: Represents a user's consent in
  4053  // terms of the resources that can be accessed and under what conditions.
  4054  type GoogleCloudHealthcareV1beta1ConsentPolicy struct {
  4055  	// AuthorizationRule: Required. The request conditions to meet to grant access.
  4056  	// In addition to any supported comparison operators, authorization rules may
  4057  	// have `IN` operator as well as at most 10 logical operators that are limited
  4058  	// to `AND` (`&&`), `OR` (`||`).
  4059  	AuthorizationRule *Expr `json:"authorizationRule,omitempty"`
  4060  	// ResourceAttributes: The resources that this policy applies to. A resource is
  4061  	// a match if it matches all the attributes listed here. If empty, this policy
  4062  	// applies to all User data mappings for the given user.
  4063  	ResourceAttributes []*Attribute `json:"resourceAttributes,omitempty"`
  4064  	// ForceSendFields is a list of field names (e.g. "AuthorizationRule") to
  4065  	// unconditionally include in API requests. By default, fields with empty or
  4066  	// default values are omitted from API requests. See
  4067  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4068  	// details.
  4069  	ForceSendFields []string `json:"-"`
  4070  	// NullFields is a list of field names (e.g. "AuthorizationRule") to include in
  4071  	// API requests with the JSON null value. By default, fields with empty values
  4072  	// are omitted from API requests. See
  4073  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4074  	NullFields []string `json:"-"`
  4075  }
  4076  
  4077  func (s *GoogleCloudHealthcareV1beta1ConsentPolicy) MarshalJSON() ([]byte, error) {
  4078  	type NoMethod GoogleCloudHealthcareV1beta1ConsentPolicy
  4079  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4080  }
  4081  
  4082  // GoogleCloudHealthcareV1beta1DeidentifyDeidentifyDicomStoreSummary: Contains
  4083  // a summary of the DeidentifyDicomStore operation.
  4084  type GoogleCloudHealthcareV1beta1DeidentifyDeidentifyDicomStoreSummary struct {
  4085  }
  4086  
  4087  // GoogleCloudHealthcareV1beta1DeidentifyDeidentifyFhirStoreSummary: Contains a
  4088  // summary of the DeidentifyFhirStore operation.
  4089  type GoogleCloudHealthcareV1beta1DeidentifyDeidentifyFhirStoreSummary struct {
  4090  }
  4091  
  4092  // GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata: Specifies the FHIR
  4093  // paths to match and how to handle the de-identification of matching fields.
  4094  type GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata struct {
  4095  	// CharacterMaskField: Replace the field's value with a masking character.
  4096  	// Supported types (https://www.hl7.org/fhir/datatypes.html): Code, Decimal,
  4097  	// HumanName, Id, LanguageCode, Markdown, Oid, String, Uri, Uuid, Xhtml.
  4098  	CharacterMaskField *CharacterMaskField `json:"characterMaskField,omitempty"`
  4099  	// CleanTextField: Inspect the field's text and transform sensitive text.
  4100  	// Configure using TextConfig. Supported types
  4101  	// (https://www.hl7.org/fhir/datatypes.html): Code, Date, DateTime, Decimal,
  4102  	// HumanName, Id, LanguageCode, Markdown, Oid, String, Uri, Uuid, Xhtml.
  4103  	CleanTextField *CleanTextField `json:"cleanTextField,omitempty"`
  4104  	// CryptoHashField: Replace field value with a hash of that value. Supported
  4105  	// types (https://www.hl7.org/fhir/datatypes.html): Code, Decimal, HumanName,
  4106  	// Id, LanguageCode, Markdown, Oid, String, Uri, Uuid, Xhtml.
  4107  	CryptoHashField *CryptoHashField `json:"cryptoHashField,omitempty"`
  4108  	// DateShiftField: Shift the date by a randomized number of days. See date
  4109  	// shifting (https://cloud.google.com/dlp/docs/concepts-date-shifting) for more
  4110  	// information. Supported types (https://www.hl7.org/fhir/datatypes.html):
  4111  	// Date, DateTime.
  4112  	DateShiftField *DateShiftField `json:"dateShiftField,omitempty"`
  4113  	// KeepField: Keep the field unchanged.
  4114  	KeepField *KeepField `json:"keepField,omitempty"`
  4115  	// Paths: List of paths to FHIR fields to redact. Each path is a
  4116  	// period-separated list where each component is either a field name or FHIR
  4117  	// type (https://www.hl7.org/fhir/datatypes.html) name. All types begin with an
  4118  	// upper case letter. For example, the resource field `Patient.Address.city`,
  4119  	// which uses a string
  4120  	// (https://www.hl7.org/fhir/datatypes-definitions.html#Address.city) type, can
  4121  	// be matched by `Patient.Address.String`. Partial matching is supported. For
  4122  	// example, `Patient.Address.city` can be matched by `Address.city` (with
  4123  	// `Patient` omitted). Partial matching and type matching can be combined, for
  4124  	// example `Patient.Address.city` can be matched by `Address.String`. For
  4125  	// "choice" types (those defined in the FHIR spec with the format `field[x]`),
  4126  	// use two separate components. For example, `deceasedAge.unit` is matched by
  4127  	// `Deceased.Age.unit`. The following types are supported:
  4128  	// AdministrativeGenderCode, Base64Binary, Boolean, Code, Date, DateTime,
  4129  	// Decimal, HumanName, Id, Instant, Integer, LanguageCode, Markdown, Oid,
  4130  	// PositiveInt, String, UnsignedInt, Uri, Uuid, Xhtml. The sub-type for
  4131  	// HumanName (for example `HumanName.given`, `HumanName.family`) can be
  4132  	// omitted.
  4133  	Paths []string `json:"paths,omitempty"`
  4134  	// RemoveField: Remove the field.
  4135  	RemoveField *RemoveField `json:"removeField,omitempty"`
  4136  	// ForceSendFields is a list of field names (e.g. "CharacterMaskField") to
  4137  	// unconditionally include in API requests. By default, fields with empty or
  4138  	// default values are omitted from API requests. See
  4139  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4140  	// details.
  4141  	ForceSendFields []string `json:"-"`
  4142  	// NullFields is a list of field names (e.g. "CharacterMaskField") to include
  4143  	// in API requests with the JSON null value. By default, fields with empty
  4144  	// values are omitted from API requests. See
  4145  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4146  	NullFields []string `json:"-"`
  4147  }
  4148  
  4149  func (s *GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata) MarshalJSON() ([]byte, error) {
  4150  	type NoMethod GoogleCloudHealthcareV1beta1DeidentifyFieldMetadata
  4151  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4152  }
  4153  
  4154  // GoogleCloudHealthcareV1beta1DeidentifyOptions: Specifies additional options
  4155  // to apply to the base ProfileType.
  4156  type GoogleCloudHealthcareV1beta1DeidentifyOptions struct {
  4157  	// CharacterMaskConfig: Character mask config for CharacterMaskField.
  4158  	CharacterMaskConfig *CharacterMaskConfig `json:"characterMaskConfig,omitempty"`
  4159  	// ContextualDeid: Configure contextual de-id.
  4160  	ContextualDeid *ContextualDeidConfig `json:"contextualDeid,omitempty"`
  4161  	// CryptoHashConfig: Crypto hash config for CharacterMaskField.
  4162  	CryptoHashConfig *CryptoHashConfig `json:"cryptoHashConfig,omitempty"`
  4163  	// DateShiftConfig: Date shifting config for CharacterMaskField.
  4164  	DateShiftConfig *DateShiftConfig `json:"dateShiftConfig,omitempty"`
  4165  	// KeepExtensions: Configure keeping extensions by default.
  4166  	KeepExtensions *KeepExtensionsConfig `json:"keepExtensions,omitempty"`
  4167  	// ForceSendFields is a list of field names (e.g. "CharacterMaskConfig") to
  4168  	// unconditionally include in API requests. By default, fields with empty or
  4169  	// default values are omitted from API requests. See
  4170  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4171  	// details.
  4172  	ForceSendFields []string `json:"-"`
  4173  	// NullFields is a list of field names (e.g. "CharacterMaskConfig") to include
  4174  	// in API requests with the JSON null value. By default, fields with empty
  4175  	// values are omitted from API requests. See
  4176  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4177  	NullFields []string `json:"-"`
  4178  }
  4179  
  4180  func (s *GoogleCloudHealthcareV1beta1DeidentifyOptions) MarshalJSON() ([]byte, error) {
  4181  	type NoMethod GoogleCloudHealthcareV1beta1DeidentifyOptions
  4182  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4183  }
  4184  
  4185  // GoogleCloudHealthcareV1beta1DicomBigQueryDestination: The BigQuery table
  4186  // where the server writes output.
  4187  type GoogleCloudHealthcareV1beta1DicomBigQueryDestination struct {
  4188  	// Force: Use `write_disposition` instead. If `write_disposition` is specified,
  4189  	// this parameter is ignored. force=false is equivalent to
  4190  	// write_disposition=WRITE_EMPTY and force=true is equivalent to
  4191  	// write_disposition=WRITE_TRUNCATE.
  4192  	Force bool `json:"force,omitempty"`
  4193  	// TableUri: BigQuery URI to a table, up to 2000 characters long, in the format
  4194  	// `bq://projectId.bqDatasetId.tableId`
  4195  	TableUri string `json:"tableUri,omitempty"`
  4196  	// WriteDisposition: Determines whether the existing table in the destination
  4197  	// is to be overwritten or appended to. If a write_disposition is specified,
  4198  	// the `force` parameter is ignored.
  4199  	//
  4200  	// Possible values:
  4201  	//   "WRITE_DISPOSITION_UNSPECIFIED" - Default behavior is the same as
  4202  	// WRITE_EMPTY.
  4203  	//   "WRITE_EMPTY" - Only export data if the destination table is empty.
  4204  	//   "WRITE_TRUNCATE" - Erase all existing data in the destination table before
  4205  	// writing the instances.
  4206  	//   "WRITE_APPEND" - Append data to the destination table.
  4207  	WriteDisposition string `json:"writeDisposition,omitempty"`
  4208  	// ForceSendFields is a list of field names (e.g. "Force") to unconditionally
  4209  	// include in API requests. By default, fields with empty or default values are
  4210  	// omitted from API requests. See
  4211  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4212  	// details.
  4213  	ForceSendFields []string `json:"-"`
  4214  	// NullFields is a list of field names (e.g. "Force") to include in API
  4215  	// requests with the JSON null value. By default, fields with empty values are
  4216  	// omitted from API requests. See
  4217  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4218  	NullFields []string `json:"-"`
  4219  }
  4220  
  4221  func (s *GoogleCloudHealthcareV1beta1DicomBigQueryDestination) MarshalJSON() ([]byte, error) {
  4222  	type NoMethod GoogleCloudHealthcareV1beta1DicomBigQueryDestination
  4223  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4224  }
  4225  
  4226  // GoogleCloudHealthcareV1beta1DicomGcsDestination: The Cloud Storage location
  4227  // where the server writes the output and the export configuration.
  4228  type GoogleCloudHealthcareV1beta1DicomGcsDestination struct {
  4229  	// MimeType: MIME types supported by DICOM spec. Each file is written in the
  4230  	// following format:
  4231  	// `.../{study_id}/{series_id}/{instance_id}[/{frame_number}].{extension}` The
  4232  	// frame_number component exists only for multi-frame instances. Supported MIME
  4233  	// types are consistent with supported formats in DICOMweb:
  4234  	// https://cloud.google.com/healthcare/docs/dicom#retrieve_transaction.
  4235  	// Specifically, the following are supported: - application/dicom;
  4236  	// transfer-syntax=1.2.840.10008.1.2.1 (uncompressed DICOM) -
  4237  	// application/dicom; transfer-syntax=1.2.840.10008.1.2.4.50 (DICOM with
  4238  	// embedded JPEG Baseline) - application/dicom;
  4239  	// transfer-syntax=1.2.840.10008.1.2.4.90 (DICOM with embedded JPEG 2000
  4240  	// Lossless Only) - application/dicom; transfer-syntax=1.2.840.10008.1.2.4.91
  4241  	// (DICOM with embedded JPEG 2000)h - application/dicom; transfer-syntax=*
  4242  	// (DICOM with no transcoding) - application/octet-stream;
  4243  	// transfer-syntax=1.2.840.10008.1.2.1 (raw uncompressed PixelData) -
  4244  	// application/octet-stream; transfer-syntax=* (raw PixelData in whatever
  4245  	// format it was uploaded in) - image/jpeg;
  4246  	// transfer-syntax=1.2.840.10008.1.2.4.50 (Consumer JPEG) - image/png The
  4247  	// following extensions are used for output files: - application/dicom -> .dcm
  4248  	// - image/jpeg -> .jpg - image/png -> .png - application/octet-stream -> no
  4249  	// extension If unspecified, the instances are exported in the original DICOM
  4250  	// format they were uploaded in.
  4251  	MimeType string `json:"mimeType,omitempty"`
  4252  	// UriPrefix: The Cloud Storage destination to export to. URI for a Cloud
  4253  	// Storage directory where the server writes the result files, in the format
  4254  	// `gs://{bucket-id}/{path/to/destination/dir}`). If there is no trailing
  4255  	// slash, the service appends one when composing the object path. The user is
  4256  	// responsible for creating the Cloud Storage bucket referenced in
  4257  	// `uri_prefix`.
  4258  	UriPrefix string `json:"uriPrefix,omitempty"`
  4259  	// ForceSendFields is a list of field names (e.g. "MimeType") to
  4260  	// unconditionally include in API requests. By default, fields with empty or
  4261  	// default values are omitted from API requests. See
  4262  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4263  	// details.
  4264  	ForceSendFields []string `json:"-"`
  4265  	// NullFields is a list of field names (e.g. "MimeType") to include in API
  4266  	// requests with the JSON null value. By default, fields with empty values are
  4267  	// omitted from API requests. See
  4268  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4269  	NullFields []string `json:"-"`
  4270  }
  4271  
  4272  func (s *GoogleCloudHealthcareV1beta1DicomGcsDestination) MarshalJSON() ([]byte, error) {
  4273  	type NoMethod GoogleCloudHealthcareV1beta1DicomGcsDestination
  4274  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4275  }
  4276  
  4277  // GoogleCloudHealthcareV1beta1DicomGcsSource: Specifies the configuration for
  4278  // importing data from Cloud Storage.
  4279  type GoogleCloudHealthcareV1beta1DicomGcsSource struct {
  4280  	// Uri: Points to a Cloud Storage URI containing file(s) with content only. The
  4281  	// URI must be in the following format: `gs://{bucket_id}/{object_id}`. The URI
  4282  	// can include wildcards in `object_id` and thus identify multiple files.
  4283  	// Supported wildcards: * '*' to match 0 or more non-separator characters *
  4284  	// '**' to match 0 or more characters (including separators). Must be used at
  4285  	// the end of a path and with no other wildcards in the path. Can also be used
  4286  	// with a file extension (such as .dcm), which imports all files with the
  4287  	// extension in the specified directory and its sub-directories. For example,
  4288  	// `gs://my-bucket/my-directory/**.dcm` imports all files with .dcm extensions
  4289  	// in `my-directory/` and its sub-directories. * '?' to match 1 character. All
  4290  	// other URI formats are invalid. Files matching the wildcard are expected to
  4291  	// contain content only, no metadata.
  4292  	Uri string `json:"uri,omitempty"`
  4293  	// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally
  4294  	// include in API requests. By default, fields with empty or default values are
  4295  	// omitted from API requests. See
  4296  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4297  	// details.
  4298  	ForceSendFields []string `json:"-"`
  4299  	// NullFields is a list of field names (e.g. "Uri") to include in API requests
  4300  	// with the JSON null value. By default, fields with empty values are omitted
  4301  	// from API requests. See
  4302  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4303  	NullFields []string `json:"-"`
  4304  }
  4305  
  4306  func (s *GoogleCloudHealthcareV1beta1DicomGcsSource) MarshalJSON() ([]byte, error) {
  4307  	type NoMethod GoogleCloudHealthcareV1beta1DicomGcsSource
  4308  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4309  }
  4310  
  4311  // GoogleCloudHealthcareV1beta1DicomStreamConfig: StreamConfig specifies
  4312  // configuration for a streaming DICOM export.
  4313  type GoogleCloudHealthcareV1beta1DicomStreamConfig struct {
  4314  	// BigqueryDestination: Results are appended to this table. The server creates
  4315  	// a new table in the given BigQuery dataset if the specified table does not
  4316  	// exist. To enable the Cloud Healthcare API to write to your BigQuery table,
  4317  	// you must give the Cloud Healthcare API service account the
  4318  	// bigquery.dataEditor role. The service account is:
  4319  	// `service-{PROJECT_NUMBER}@gcp-sa-healthcare.iam.gserviceaccount.com`. The
  4320  	// PROJECT_NUMBER identifies the project that the DICOM store resides in. To
  4321  	// get the project number, go to the Cloud Console Dashboard. It is recommended
  4322  	// to not have a custom schema in the destination table which could conflict
  4323  	// with the schema created by the Cloud Healthcare API. Instance deletions are
  4324  	// not applied to the destination table. The destination's table schema will be
  4325  	// automatically updated in case a new instance's data is incompatible with the
  4326  	// current schema. The schema should not be updated manually as this can cause
  4327  	// incompatibilies that cannot be resolved automatically. One resolution in
  4328  	// this case is to delete the incompatible table and let the server recreate
  4329  	// one, though the newly created table only contains data after the table
  4330  	// recreation. BigQuery imposes a 1 MB limit on streaming insert row size,
  4331  	// therefore any instance that generates more than 1 MB of BigQuery data will
  4332  	// not be streamed. If an instance cannot be streamed to BigQuery, errors will
  4333  	// be logged to Cloud Logging (see Viewing error logs in Cloud Logging
  4334  	// (https://cloud.google.com/healthcare/docs/how-tos/logging)).
  4335  	BigqueryDestination *GoogleCloudHealthcareV1beta1DicomBigQueryDestination `json:"bigqueryDestination,omitempty"`
  4336  	// ForceSendFields is a list of field names (e.g. "BigqueryDestination") to
  4337  	// unconditionally include in API requests. By default, fields with empty or
  4338  	// default values are omitted from API requests. See
  4339  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4340  	// details.
  4341  	ForceSendFields []string `json:"-"`
  4342  	// NullFields is a list of field names (e.g. "BigqueryDestination") to include
  4343  	// in API requests with the JSON null value. By default, fields with empty
  4344  	// values are omitted from API requests. See
  4345  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4346  	NullFields []string `json:"-"`
  4347  }
  4348  
  4349  func (s *GoogleCloudHealthcareV1beta1DicomStreamConfig) MarshalJSON() ([]byte, error) {
  4350  	type NoMethod GoogleCloudHealthcareV1beta1DicomStreamConfig
  4351  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4352  }
  4353  
  4354  // GoogleCloudHealthcareV1beta1FhirBigQueryDestination: The configuration for
  4355  // exporting to BigQuery.
  4356  type GoogleCloudHealthcareV1beta1FhirBigQueryDestination struct {
  4357  	// DatasetUri: BigQuery URI to an existing dataset, up to 2000 characters long,
  4358  	// in the format `bq://projectId.bqDatasetId`.
  4359  	DatasetUri string `json:"datasetUri,omitempty"`
  4360  	// Force: Use `write_disposition` instead. If `write_disposition` is specified,
  4361  	// this parameter is ignored. force=false is equivalent to
  4362  	// write_disposition=WRITE_EMPTY and force=true is equivalent to
  4363  	// write_disposition=WRITE_TRUNCATE.
  4364  	Force bool `json:"force,omitempty"`
  4365  	// SchemaConfig: The configuration for the exported BigQuery schema.
  4366  	SchemaConfig *SchemaConfig `json:"schemaConfig,omitempty"`
  4367  	// WriteDisposition: Determines if existing data in the destination dataset is
  4368  	// overwritten, appended to, or not written if the tables contain data. If a
  4369  	// write_disposition is specified, the `force` parameter is ignored.
  4370  	//
  4371  	// Possible values:
  4372  	//   "WRITE_DISPOSITION_UNSPECIFIED" - Default behavior is the same as
  4373  	// WRITE_EMPTY.
  4374  	//   "WRITE_EMPTY" - Only export data if the destination tables are empty.
  4375  	//   "WRITE_TRUNCATE" - Erase all existing data in the destination tables
  4376  	// before writing the FHIR resources.
  4377  	//   "WRITE_APPEND" - Append data to the destination tables.
  4378  	WriteDisposition string `json:"writeDisposition,omitempty"`
  4379  	// ForceSendFields is a list of field names (e.g. "DatasetUri") to
  4380  	// unconditionally include in API requests. By default, fields with empty or
  4381  	// default values are omitted from API requests. See
  4382  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4383  	// details.
  4384  	ForceSendFields []string `json:"-"`
  4385  	// NullFields is a list of field names (e.g. "DatasetUri") to include in API
  4386  	// requests with the JSON null value. By default, fields with empty values are
  4387  	// omitted from API requests. See
  4388  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4389  	NullFields []string `json:"-"`
  4390  }
  4391  
  4392  func (s *GoogleCloudHealthcareV1beta1FhirBigQueryDestination) MarshalJSON() ([]byte, error) {
  4393  	type NoMethod GoogleCloudHealthcareV1beta1FhirBigQueryDestination
  4394  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4395  }
  4396  
  4397  // GoogleCloudHealthcareV1beta1FhirExportResourcesResponse: Response when all
  4398  // resources export successfully. This structure is included in the response to
  4399  // describe the detailed outcome after the operation finishes successfully.
  4400  type GoogleCloudHealthcareV1beta1FhirExportResourcesResponse struct {
  4401  }
  4402  
  4403  // GoogleCloudHealthcareV1beta1FhirGcsDestination: The configuration for
  4404  // exporting to Cloud Storage.
  4405  type GoogleCloudHealthcareV1beta1FhirGcsDestination struct {
  4406  	// UriPrefix: URI for a Cloud Storage directory where result files should be
  4407  	// written (in the format `gs://{bucket-id}/{path/to/destination/dir}`). If
  4408  	// there is no trailing slash, the service appends one when composing the
  4409  	// object path. The Cloud Storage bucket referenced in `uri_prefix` must exist
  4410  	// or an error occurs.
  4411  	UriPrefix string `json:"uriPrefix,omitempty"`
  4412  	// ForceSendFields is a list of field names (e.g. "UriPrefix") to
  4413  	// unconditionally include in API requests. By default, fields with empty or
  4414  	// default values are omitted from API requests. See
  4415  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4416  	// details.
  4417  	ForceSendFields []string `json:"-"`
  4418  	// NullFields is a list of field names (e.g. "UriPrefix") to include in API
  4419  	// requests with the JSON null value. By default, fields with empty values are
  4420  	// omitted from API requests. See
  4421  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4422  	NullFields []string `json:"-"`
  4423  }
  4424  
  4425  func (s *GoogleCloudHealthcareV1beta1FhirGcsDestination) MarshalJSON() ([]byte, error) {
  4426  	type NoMethod GoogleCloudHealthcareV1beta1FhirGcsDestination
  4427  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4428  }
  4429  
  4430  // GoogleCloudHealthcareV1beta1FhirGcsSource: Specifies the configuration for
  4431  // importing data from Cloud Storage.
  4432  type GoogleCloudHealthcareV1beta1FhirGcsSource struct {
  4433  	// Uri: Points to a Cloud Storage URI containing file(s) to import. The URI
  4434  	// must be in the following format: `gs://{bucket_id}/{object_id}`. The URI can
  4435  	// include wildcards in `object_id` and thus identify multiple files. Supported
  4436  	// wildcards: * `*` to match 0 or more non-separator characters * `**` to match
  4437  	// 0 or more characters (including separators). Must be used at the end of a
  4438  	// path and with no other wildcards in the path. Can also be used with a file
  4439  	// extension (such as .ndjson), which imports all files with the extension in
  4440  	// the specified directory and its sub-directories. For example,
  4441  	// `gs://my-bucket/my-directory/**.ndjson` imports all files with `.ndjson`
  4442  	// extensions in `my-directory/` and its sub-directories. * `?` to match 1
  4443  	// character Files matching the wildcard are expected to contain content only,
  4444  	// no metadata.
  4445  	Uri string `json:"uri,omitempty"`
  4446  	// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally
  4447  	// include in API requests. By default, fields with empty or default values are
  4448  	// omitted from API requests. See
  4449  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4450  	// details.
  4451  	ForceSendFields []string `json:"-"`
  4452  	// NullFields is a list of field names (e.g. "Uri") to include in API requests
  4453  	// with the JSON null value. By default, fields with empty values are omitted
  4454  	// from API requests. See
  4455  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4456  	NullFields []string `json:"-"`
  4457  }
  4458  
  4459  func (s *GoogleCloudHealthcareV1beta1FhirGcsSource) MarshalJSON() ([]byte, error) {
  4460  	type NoMethod GoogleCloudHealthcareV1beta1FhirGcsSource
  4461  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4462  }
  4463  
  4464  // GoogleCloudHealthcareV1beta1FhirImportResourcesResponse: Final response of
  4465  // importing resources. This structure is included in the response to describe
  4466  // the detailed outcome after the operation finishes successfully.
  4467  type GoogleCloudHealthcareV1beta1FhirImportResourcesResponse struct {
  4468  }
  4469  
  4470  // GroupOrSegment: Construct representing a logical group or a segment.
  4471  type GroupOrSegment struct {
  4472  	Group   *SchemaGroup   `json:"group,omitempty"`
  4473  	Segment *SchemaSegment `json:"segment,omitempty"`
  4474  	// ForceSendFields is a list of field names (e.g. "Group") to unconditionally
  4475  	// include in API requests. By default, fields with empty or default values are
  4476  	// omitted from API requests. See
  4477  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4478  	// details.
  4479  	ForceSendFields []string `json:"-"`
  4480  	// NullFields is a list of field names (e.g. "Group") to include in API
  4481  	// requests with the JSON null value. By default, fields with empty values are
  4482  	// omitted from API requests. See
  4483  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4484  	NullFields []string `json:"-"`
  4485  }
  4486  
  4487  func (s *GroupOrSegment) MarshalJSON() ([]byte, error) {
  4488  	type NoMethod GroupOrSegment
  4489  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4490  }
  4491  
  4492  // Hl7SchemaConfig: Root config message for HL7v2 schema. This contains a
  4493  // schema structure of groups and segments, and filters that determine which
  4494  // messages to apply the schema structure to.
  4495  type Hl7SchemaConfig struct {
  4496  	// MessageSchemaConfigs: Map from each HL7v2 message type and trigger event
  4497  	// pair, such as ADT_A04, to its schema configuration root group.
  4498  	MessageSchemaConfigs map[string]SchemaGroup `json:"messageSchemaConfigs,omitempty"`
  4499  	// Version: Each VersionSource is tested and only if they all match is the
  4500  	// schema used for the message.
  4501  	Version []*VersionSource `json:"version,omitempty"`
  4502  	// ForceSendFields is a list of field names (e.g. "MessageSchemaConfigs") to
  4503  	// unconditionally include in API requests. By default, fields with empty or
  4504  	// default values are omitted from API requests. See
  4505  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4506  	// details.
  4507  	ForceSendFields []string `json:"-"`
  4508  	// NullFields is a list of field names (e.g. "MessageSchemaConfigs") to include
  4509  	// in API requests with the JSON null value. By default, fields with empty
  4510  	// values are omitted from API requests. See
  4511  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4512  	NullFields []string `json:"-"`
  4513  }
  4514  
  4515  func (s *Hl7SchemaConfig) MarshalJSON() ([]byte, error) {
  4516  	type NoMethod Hl7SchemaConfig
  4517  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4518  }
  4519  
  4520  // Hl7TypesConfig: Root config for HL7v2 datatype definitions for a specific
  4521  // HL7v2 version.
  4522  type Hl7TypesConfig struct {
  4523  	// Type: The HL7v2 type definitions.
  4524  	Type []*Type `json:"type,omitempty"`
  4525  	// Version: The version selectors that this config applies to. A message must
  4526  	// match ALL version sources to apply.
  4527  	Version []*VersionSource `json:"version,omitempty"`
  4528  	// ForceSendFields is a list of field names (e.g. "Type") to unconditionally
  4529  	// include in API requests. By default, fields with empty or default values are
  4530  	// omitted from API requests. See
  4531  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4532  	// details.
  4533  	ForceSendFields []string `json:"-"`
  4534  	// NullFields is a list of field names (e.g. "Type") to include in API requests
  4535  	// with the JSON null value. By default, fields with empty values are omitted
  4536  	// from API requests. See
  4537  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4538  	NullFields []string `json:"-"`
  4539  }
  4540  
  4541  func (s *Hl7TypesConfig) MarshalJSON() ([]byte, error) {
  4542  	type NoMethod Hl7TypesConfig
  4543  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4544  }
  4545  
  4546  // Hl7V2NotificationConfig: Specifies where and whether to send notifications
  4547  // upon changes to a data store.
  4548  type Hl7V2NotificationConfig struct {
  4549  	// Filter: Restricts notifications sent for messages matching a filter. If this
  4550  	// is empty, all messages are matched. The following syntax is available: * A
  4551  	// string field value can be written as text inside quotation marks, for
  4552  	// example "query text". The only valid relational operation for text fields
  4553  	// is equality (`=`), where text is searched within the field, rather than
  4554  	// having the field be equal to the text. For example, "Comment = great"
  4555  	// returns messages with `great` in the comment field. * A number field value
  4556  	// can be written as an integer, a decimal, or an exponential. The valid
  4557  	// relational operators for number fields are the equality operator (`=`),
  4558  	// along with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note
  4559  	// that there is no inequality (`!=`) operator. You can prepend the `NOT`
  4560  	// operator to an expression to negate it. * A date field value must be written
  4561  	// in `yyyy-mm-dd` form. Fields with date and time use the RFC3339 time format.
  4562  	// Leading zeros are required for one-digit months and days. The valid
  4563  	// relational operators for date fields are the equality operator (`=`) , along
  4564  	// with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note that
  4565  	// there is no inequality (`!=`) operator. You can prepend the `NOT` operator
  4566  	// to an expression to negate it. * Multiple field query expressions can be
  4567  	// combined in one query by adding `AND` or `OR` operators between the
  4568  	// expressions. If a boolean operator appears within a quoted string, it is not
  4569  	// treated as special, it's just another part of the character string to be
  4570  	// matched. You can prepend the `NOT` operator to an expression to negate it.
  4571  	// Fields/functions available for filtering are: * `message_type`, from the
  4572  	// MSH-9.1 field. For example, `NOT message_type = "ADT". * `send_date` or
  4573  	// `sendDate`, the YYYY-MM-DD date the message was sent in the dataset's
  4574  	// time_zone, from the MSH-7 segment. For example, `send_date < "2017-01-02".
  4575  	// * `send_time`, the timestamp when the message was sent, using the RFC3339
  4576  	// time format for comparisons, from the MSH-7 segment. For example, `send_time
  4577  	// < "2017-01-02T00:00:00-05:00". * `create_time`, the timestamp when the
  4578  	// message was created in the HL7v2 store. Use the RFC3339 time format for
  4579  	// comparisons. For example, `create_time < "2017-01-02T00:00:00-05:00". *
  4580  	// `send_facility`, the care center that the message came from, from the MSH-4
  4581  	// segment. For example, `send_facility = "ABC". * `PatientId(value, type)`,
  4582  	// which matches if the message lists a patient having an ID of the given value
  4583  	// and type in the PID-2, PID-3, or PID-4 segments. For example,
  4584  	// `PatientId("123456", "MRN")`. * `labels.x`, a string value of the label with
  4585  	// key `x` as set using the Message.labels map. For example,
  4586  	// `labels."priority"="high". The operator `:*` can be used to assert the
  4587  	// existence of a label. For example, `labels."priority":*`.
  4588  	Filter string `json:"filter,omitempty"`
  4589  	// PubsubTopic: The Pub/Sub (https://cloud.google.com/pubsub/docs/) topic that
  4590  	// notifications of changes are published on. Supplied by the client. The
  4591  	// notification is a `PubsubMessage` with the following fields: *
  4592  	// `PubsubMessage.Data` contains the resource name. * `PubsubMessage.MessageId`
  4593  	// is the ID of this notification. It is guaranteed to be unique within the
  4594  	// topic. * `PubsubMessage.PublishTime` is the time when the message was
  4595  	// published. Note that notifications are only sent if the topic is non-empty.
  4596  	// Topic names (https://cloud.google.com/pubsub/docs/overview#names) must be
  4597  	// scoped to a project. Cloud Healthcare API service account must have
  4598  	// publisher permissions on the given Pub/Sub topic. Not having adequate
  4599  	// permissions causes the calls that send notifications to fail. If a
  4600  	// notification can't be published to Pub/Sub, errors are logged to Cloud
  4601  	// Logging. For more information, see Viewing error logs in Cloud Logging
  4602  	// (https://cloud.google.com/healthcare/docs/how-tos/logging).
  4603  	PubsubTopic string `json:"pubsubTopic,omitempty"`
  4604  	// ForceSendFields is a list of field names (e.g. "Filter") to unconditionally
  4605  	// include in API requests. By default, fields with empty or default values are
  4606  	// omitted from API requests. See
  4607  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4608  	// details.
  4609  	ForceSendFields []string `json:"-"`
  4610  	// NullFields is a list of field names (e.g. "Filter") to include in API
  4611  	// requests with the JSON null value. By default, fields with empty values are
  4612  	// omitted from API requests. See
  4613  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4614  	NullFields []string `json:"-"`
  4615  }
  4616  
  4617  func (s *Hl7V2NotificationConfig) MarshalJSON() ([]byte, error) {
  4618  	type NoMethod Hl7V2NotificationConfig
  4619  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4620  }
  4621  
  4622  // Hl7V2Store: Represents an HL7v2 store.
  4623  type Hl7V2Store struct {
  4624  	// Labels: User-supplied key-value pairs used to organize HL7v2 stores. Label
  4625  	// keys must be between 1 and 63 characters long, have a UTF-8 encoding of
  4626  	// maximum 128 bytes, and must conform to the following PCRE regular
  4627  	// expression: \p{Ll}\p{Lo}{0,62} Label values are optional, must be between 1
  4628  	// and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must
  4629  	// conform to the following PCRE regular expression:
  4630  	// [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a
  4631  	// given store.
  4632  	Labels map[string]string `json:"labels,omitempty"`
  4633  	// Name: Identifier. Resource name of the HL7v2 store, of the form
  4634  	// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/hl7V2Sto
  4635  	// res/{hl7v2_store_id}`.
  4636  	Name string `json:"name,omitempty"`
  4637  	// NotificationConfig: The notification destination all messages (both Ingest &
  4638  	// Create) are published on. Only the message name is sent as part of the
  4639  	// notification. If this is unset, no notifications are sent. Supplied by the
  4640  	// client.
  4641  	NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"`
  4642  	// NotificationConfigs: A list of notification configs. Each configuration uses
  4643  	// a filter to determine whether to publish a message (both Ingest & Create) on
  4644  	// the corresponding notification destination. Only the message name is sent as
  4645  	// part of the notification. Supplied by the client.
  4646  	NotificationConfigs []*Hl7V2NotificationConfig `json:"notificationConfigs,omitempty"`
  4647  	// ParserConfig: The configuration for the parser. It determines how the server
  4648  	// parses the messages.
  4649  	ParserConfig *ParserConfig `json:"parserConfig,omitempty"`
  4650  	// RejectDuplicateMessage: Determines whether to reject duplicate messages. A
  4651  	// duplicate message is a message with the same raw bytes as a message that has
  4652  	// already been ingested/created in this HL7v2 store. The default value is
  4653  	// false, meaning that the store accepts the duplicate messages and it also
  4654  	// returns the same ACK message in the IngestMessageResponse as has been
  4655  	// returned previously. Note that only one resource is created in the store.
  4656  	// When this field is set to true, CreateMessage/IngestMessage requests with a
  4657  	// duplicate message will be rejected by the store, and
  4658  	// IngestMessageErrorDetail returns a NACK message upon rejection.
  4659  	RejectDuplicateMessage bool `json:"rejectDuplicateMessage,omitempty"`
  4660  
  4661  	// ServerResponse contains the HTTP response code and headers from the server.
  4662  	googleapi.ServerResponse `json:"-"`
  4663  	// ForceSendFields is a list of field names (e.g. "Labels") to unconditionally
  4664  	// include in API requests. By default, fields with empty or default values are
  4665  	// omitted from API requests. See
  4666  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4667  	// details.
  4668  	ForceSendFields []string `json:"-"`
  4669  	// NullFields is a list of field names (e.g. "Labels") to include in API
  4670  	// requests with the JSON null value. By default, fields with empty values are
  4671  	// omitted from API requests. See
  4672  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4673  	NullFields []string `json:"-"`
  4674  }
  4675  
  4676  func (s *Hl7V2Store) MarshalJSON() ([]byte, error) {
  4677  	type NoMethod Hl7V2Store
  4678  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4679  }
  4680  
  4681  // Hl7V2StoreMetric: Count of messages and total storage size by type for a
  4682  // given HL7 store.
  4683  type Hl7V2StoreMetric struct {
  4684  	// Count: The total count of HL7v2 messages in the store for the given message
  4685  	// type.
  4686  	Count int64 `json:"count,omitempty,string"`
  4687  	// MessageType: The Hl7v2 message type this metric applies to, such as `ADT` or
  4688  	// `ORU`.
  4689  	MessageType string `json:"messageType,omitempty"`
  4690  	// StructuredStorageSizeBytes: The total amount of structured storage used by
  4691  	// HL7v2 messages of this message type in the store.
  4692  	StructuredStorageSizeBytes int64 `json:"structuredStorageSizeBytes,omitempty,string"`
  4693  	// ForceSendFields is a list of field names (e.g. "Count") to unconditionally
  4694  	// include in API requests. By default, fields with empty or default values are
  4695  	// omitted from API requests. See
  4696  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4697  	// details.
  4698  	ForceSendFields []string `json:"-"`
  4699  	// NullFields is a list of field names (e.g. "Count") to include in API
  4700  	// requests with the JSON null value. By default, fields with empty values are
  4701  	// omitted from API requests. See
  4702  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4703  	NullFields []string `json:"-"`
  4704  }
  4705  
  4706  func (s *Hl7V2StoreMetric) MarshalJSON() ([]byte, error) {
  4707  	type NoMethod Hl7V2StoreMetric
  4708  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4709  }
  4710  
  4711  // Hl7V2StoreMetrics: List of metrics for a given HL7v2 store.
  4712  type Hl7V2StoreMetrics struct {
  4713  	// Metrics: List of HL7v2 store metrics by message type.
  4714  	Metrics []*Hl7V2StoreMetric `json:"metrics,omitempty"`
  4715  	// Name: The resource name of the HL7v2 store to get metrics for, in the format
  4716  	// `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7v2_store_id}`.
  4717  	Name string `json:"name,omitempty"`
  4718  
  4719  	// ServerResponse contains the HTTP response code and headers from the server.
  4720  	googleapi.ServerResponse `json:"-"`
  4721  	// ForceSendFields is a list of field names (e.g. "Metrics") to unconditionally
  4722  	// include in API requests. By default, fields with empty or default values are
  4723  	// omitted from API requests. See
  4724  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4725  	// details.
  4726  	ForceSendFields []string `json:"-"`
  4727  	// NullFields is a list of field names (e.g. "Metrics") to include in API
  4728  	// requests with the JSON null value. By default, fields with empty values are
  4729  	// omitted from API requests. See
  4730  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4731  	NullFields []string `json:"-"`
  4732  }
  4733  
  4734  func (s *Hl7V2StoreMetrics) MarshalJSON() ([]byte, error) {
  4735  	type NoMethod Hl7V2StoreMetrics
  4736  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4737  }
  4738  
  4739  // HttpBody: Message that represents an arbitrary HTTP body. It should only be
  4740  // used for payload formats that can't be represented as JSON, such as raw
  4741  // binary or an HTML page. This message can be used both in streaming and
  4742  // non-streaming API methods in the request as well as the response. It can be
  4743  // used as a top-level request field, which is convenient if one wants to
  4744  // extract parameters from either the URL or HTTP template into the request
  4745  // fields and also want access to the raw HTTP body. Example: message
  4746  // GetResourceRequest { // A unique request id. string request_id = 1; // The
  4747  // raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; }
  4748  // service ResourceService { rpc GetResource(GetResourceRequest) returns
  4749  // (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns
  4750  // (google.protobuf.Empty); } Example with streaming methods: service
  4751  // CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream
  4752  // google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns
  4753  // (stream google.api.HttpBody); } Use of this type only changes how the
  4754  // request and response bodies are handled, all other features will continue to
  4755  // work unchanged.
  4756  type HttpBody struct {
  4757  	// ContentType: The HTTP Content-Type header value specifying the content type
  4758  	// of the body.
  4759  	ContentType string `json:"contentType,omitempty"`
  4760  	// Data: The HTTP request/response body as raw binary.
  4761  	Data string `json:"data,omitempty"`
  4762  	// Extensions: Application specific response metadata. Must be set in the first
  4763  	// response for streaming APIs.
  4764  	Extensions []googleapi.RawMessage `json:"extensions,omitempty"`
  4765  
  4766  	// ServerResponse contains the HTTP response code and headers from the server.
  4767  	googleapi.ServerResponse `json:"-"`
  4768  	// ForceSendFields is a list of field names (e.g. "ContentType") to
  4769  	// unconditionally include in API requests. By default, fields with empty or
  4770  	// default values are omitted from API requests. See
  4771  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4772  	// details.
  4773  	ForceSendFields []string `json:"-"`
  4774  	// NullFields is a list of field names (e.g. "ContentType") to include in API
  4775  	// requests with the JSON null value. By default, fields with empty values are
  4776  	// omitted from API requests. See
  4777  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4778  	NullFields []string `json:"-"`
  4779  }
  4780  
  4781  func (s *HttpBody) MarshalJSON() ([]byte, error) {
  4782  	type NoMethod HttpBody
  4783  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4784  }
  4785  
  4786  // Image: Raw bytes representing consent artifact content.
  4787  type Image struct {
  4788  	// GcsUri: Input only. Points to a Cloud Storage URI containing the consent
  4789  	// artifact content. The URI must be in the following format:
  4790  	// `gs://{bucket_id}/{object_id}`. The Cloud Healthcare API service account
  4791  	// must have the `roles/storage.objectViewer` Cloud IAM role for this Cloud
  4792  	// Storage location. The consent artifact content at this URI is copied to a
  4793  	// Cloud Storage location managed by the Cloud Healthcare API. Responses to
  4794  	// fetching requests return the consent artifact content in raw_bytes.
  4795  	GcsUri string `json:"gcsUri,omitempty"`
  4796  	// RawBytes: Consent artifact content represented as a stream of bytes. This
  4797  	// field is populated when returned in GetConsentArtifact response, but not
  4798  	// included in CreateConsentArtifact and ListConsentArtifact response.
  4799  	RawBytes string `json:"rawBytes,omitempty"`
  4800  	// ForceSendFields is a list of field names (e.g. "GcsUri") to unconditionally
  4801  	// include in API requests. By default, fields with empty or default values are
  4802  	// omitted from API requests. See
  4803  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4804  	// details.
  4805  	ForceSendFields []string `json:"-"`
  4806  	// NullFields is a list of field names (e.g. "GcsUri") to include in API
  4807  	// requests with the JSON null value. By default, fields with empty values are
  4808  	// omitted from API requests. See
  4809  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4810  	NullFields []string `json:"-"`
  4811  }
  4812  
  4813  func (s *Image) MarshalJSON() ([]byte, error) {
  4814  	type NoMethod Image
  4815  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4816  }
  4817  
  4818  // ImageAnnotation: Image annotation.
  4819  type ImageAnnotation struct {
  4820  	// BoundingPolys: The list of polygons outlining the sensitive regions in the
  4821  	// image.
  4822  	BoundingPolys []*BoundingPoly `json:"boundingPolys,omitempty"`
  4823  	// FrameIndex: 0-based index of the image frame. For example, an image frame in
  4824  	// a DICOM instance.
  4825  	FrameIndex int64 `json:"frameIndex,omitempty"`
  4826  	// ForceSendFields is a list of field names (e.g. "BoundingPolys") to
  4827  	// unconditionally include in API requests. By default, fields with empty or
  4828  	// default values are omitted from API requests. See
  4829  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4830  	// details.
  4831  	ForceSendFields []string `json:"-"`
  4832  	// NullFields is a list of field names (e.g. "BoundingPolys") to include in API
  4833  	// requests with the JSON null value. By default, fields with empty values are
  4834  	// omitted from API requests. See
  4835  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4836  	NullFields []string `json:"-"`
  4837  }
  4838  
  4839  func (s *ImageAnnotation) MarshalJSON() ([]byte, error) {
  4840  	type NoMethod ImageAnnotation
  4841  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4842  }
  4843  
  4844  // ImageConfig: Specifies how to handle de-identification of image pixels.
  4845  type ImageConfig struct {
  4846  	// AdditionalInfoTypes: Additional InfoTypes to redact in the images in
  4847  	// addition to those used by `text_redaction_mode`. Can only be used when
  4848  	// `text_redaction_mode` is set to `REDACT_SENSITIVE_TEXT`,
  4849  	// `REDACT_SENSITIVE_TEXT_CLEAN_DESCRIPTORS` or
  4850  	// `TEXT_REDACTION_MODE_UNSPECIFIED`.
  4851  	AdditionalInfoTypes []string `json:"additionalInfoTypes,omitempty"`
  4852  	// ExcludeInfoTypes: InfoTypes to skip redacting, overriding those used by
  4853  	// `text_redaction_mode`. Can only be used when `text_redaction_mode` is set to
  4854  	// `REDACT_SENSITIVE_TEXT` or `REDACT_SENSITIVE_TEXT_CLEAN_DESCRIPTORS`.
  4855  	ExcludeInfoTypes []string `json:"excludeInfoTypes,omitempty"`
  4856  	// TextRedactionMode: Determines how to redact text from image.
  4857  	//
  4858  	// Possible values:
  4859  	//   "TEXT_REDACTION_MODE_UNSPECIFIED" - No text redaction specified. Same as
  4860  	// REDACT_NO_TEXT.
  4861  	//   "REDACT_ALL_TEXT" - Redact all text.
  4862  	//   "REDACT_SENSITIVE_TEXT" - Redact sensitive text. Uses the set of [Default
  4863  	// DICOM
  4864  	// InfoTypes](https://cloud.google.com/healthcare-api/docs/how-tos/dicom-deident
  4865  	// ify#default_dicom_infotypes).
  4866  	//   "REDACT_NO_TEXT" - Do not redact text.
  4867  	//   "REDACT_SENSITIVE_TEXT_CLEAN_DESCRIPTORS" - This mode is like
  4868  	// `REDACT_SENSITIVE_TEXT` with the addition of the [Clean Descriptors Option]
  4869  	// (https://dicom.nema.org/medical/dicom/2018e/output/chtml/part15/sect_E.3.5.html)
  4870  	// enabled: When cleaning text, the process attempts to transform phrases
  4871  	// matching any of the tags marked for removal (action codes D, Z, X, and U) in
  4872  	// the [Basic Profile]
  4873  	// (https://dicom.nema.org/medical/dicom/2018e/output/chtml/part15/chapter_E.html).
  4874  	// These contextual phrases are replaced with the token "[CTX]". This mode uses
  4875  	// an additional InfoType during inspection.
  4876  	TextRedactionMode string `json:"textRedactionMode,omitempty"`
  4877  	// ForceSendFields is a list of field names (e.g. "AdditionalInfoTypes") to
  4878  	// unconditionally include in API requests. By default, fields with empty or
  4879  	// default values are omitted from API requests. See
  4880  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4881  	// details.
  4882  	ForceSendFields []string `json:"-"`
  4883  	// NullFields is a list of field names (e.g. "AdditionalInfoTypes") to include
  4884  	// in API requests with the JSON null value. By default, fields with empty
  4885  	// values are omitted from API requests. See
  4886  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4887  	NullFields []string `json:"-"`
  4888  }
  4889  
  4890  func (s *ImageConfig) MarshalJSON() ([]byte, error) {
  4891  	type NoMethod ImageConfig
  4892  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4893  }
  4894  
  4895  // ImportAnnotationsRequest: Request to import Annotations. The Annotations to
  4896  // be imported must have client-supplied resource names which indicate the
  4897  // annotation resource. The import operation is not atomic. If a failure
  4898  // occurs, any annotations already imported are not removed.
  4899  type ImportAnnotationsRequest struct {
  4900  	GcsSource *GoogleCloudHealthcareV1beta1AnnotationGcsSource `json:"gcsSource,omitempty"`
  4901  	// ForceSendFields is a list of field names (e.g. "GcsSource") to
  4902  	// unconditionally include in API requests. By default, fields with empty or
  4903  	// default values are omitted from API requests. See
  4904  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4905  	// details.
  4906  	ForceSendFields []string `json:"-"`
  4907  	// NullFields is a list of field names (e.g. "GcsSource") to include in API
  4908  	// requests with the JSON null value. By default, fields with empty values are
  4909  	// omitted from API requests. See
  4910  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4911  	NullFields []string `json:"-"`
  4912  }
  4913  
  4914  func (s *ImportAnnotationsRequest) MarshalJSON() ([]byte, error) {
  4915  	type NoMethod ImportAnnotationsRequest
  4916  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4917  }
  4918  
  4919  // ImportAnnotationsResponse: Final response of importing Annotations in
  4920  // successful case. This structure is included in the response. It is only
  4921  // included when the operation finishes.
  4922  type ImportAnnotationsResponse struct {
  4923  }
  4924  
  4925  // ImportDicomDataRequest: Imports data into the specified DICOM store. Returns
  4926  // an error if any of the files to import are not DICOM files. This API accepts
  4927  // duplicate DICOM instances by ignoring the newly-pushed instance. It does not
  4928  // overwrite.
  4929  type ImportDicomDataRequest struct {
  4930  	// BlobStorageSettings: Optional. The blob storage settings for the data
  4931  	// imported by this operation.
  4932  	BlobStorageSettings *BlobStorageSettings `json:"blobStorageSettings,omitempty"`
  4933  	// GcsSource: Cloud Storage source data location and import configuration. The
  4934  	// Cloud Healthcare Service Agent requires the `roles/storage.objectViewer`
  4935  	// Cloud IAM roles on the Cloud Storage location.
  4936  	GcsSource *GoogleCloudHealthcareV1beta1DicomGcsSource `json:"gcsSource,omitempty"`
  4937  	// ForceSendFields is a list of field names (e.g. "BlobStorageSettings") to
  4938  	// unconditionally include in API requests. By default, fields with empty or
  4939  	// default values are omitted from API requests. See
  4940  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4941  	// details.
  4942  	ForceSendFields []string `json:"-"`
  4943  	// NullFields is a list of field names (e.g. "BlobStorageSettings") to include
  4944  	// in API requests with the JSON null value. By default, fields with empty
  4945  	// values are omitted from API requests. See
  4946  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4947  	NullFields []string `json:"-"`
  4948  }
  4949  
  4950  func (s *ImportDicomDataRequest) MarshalJSON() ([]byte, error) {
  4951  	type NoMethod ImportDicomDataRequest
  4952  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4953  }
  4954  
  4955  // ImportDicomDataResponse: Returns additional information in regards to a
  4956  // completed DICOM store import.
  4957  type ImportDicomDataResponse struct {
  4958  }
  4959  
  4960  // ImportMessagesRequest: Request to import messages.
  4961  type ImportMessagesRequest struct {
  4962  	// GcsSource: Cloud Storage source data location and import configuration. The
  4963  	// Cloud Healthcare Service Agent requires the `roles/storage.objectViewer`
  4964  	// Cloud IAM roles on the Cloud Storage location.
  4965  	GcsSource *GcsSource `json:"gcsSource,omitempty"`
  4966  	// ForceSendFields is a list of field names (e.g. "GcsSource") to
  4967  	// unconditionally include in API requests. By default, fields with empty or
  4968  	// default values are omitted from API requests. See
  4969  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4970  	// details.
  4971  	ForceSendFields []string `json:"-"`
  4972  	// NullFields is a list of field names (e.g. "GcsSource") to include in API
  4973  	// requests with the JSON null value. By default, fields with empty values are
  4974  	// omitted from API requests. See
  4975  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4976  	NullFields []string `json:"-"`
  4977  }
  4978  
  4979  func (s *ImportMessagesRequest) MarshalJSON() ([]byte, error) {
  4980  	type NoMethod ImportMessagesRequest
  4981  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4982  }
  4983  
  4984  // ImportMessagesResponse: Final response of importing messages. This structure
  4985  // is included in the response to describe the detailed outcome. It is only
  4986  // included when the operation finishes successfully.
  4987  type ImportMessagesResponse struct {
  4988  }
  4989  
  4990  // ImportResourcesHistoryRequest: Request to import the history of resources.
  4991  type ImportResourcesHistoryRequest struct {
  4992  	// ContentStructure: The content structure in the source location. If not
  4993  	// specified, the server treats the input source files as BUNDLE.
  4994  	//
  4995  	// Possible values:
  4996  	//   "CONTENT_STRUCTURE_UNSPECIFIED" - If the content structure is not
  4997  	// specified, the default value `BUNDLE` is used.
  4998  	//   "BUNDLE" - The source file contains one or more lines of newline-delimited
  4999  	// JSON (ndjson). Each line is a bundle that contains one or more resources.
  5000  	//   "RESOURCE" - The source file contains one or more lines of
  5001  	// newline-delimited JSON (ndjson). Each line is a single resource.
  5002  	//   "BUNDLE_PRETTY" - The entire file is one JSON bundle. The JSON can span
  5003  	// multiple lines.
  5004  	//   "RESOURCE_PRETTY" - The entire file is one JSON resource. The JSON can
  5005  	// span multiple lines.
  5006  	ContentStructure string `json:"contentStructure,omitempty"`
  5007  	// GcsSource: Cloud Storage source data location and import configuration. The
  5008  	// Cloud Healthcare Service Agent requires the `roles/storage.objectAdmin`
  5009  	// Cloud IAM roles on the Cloud Storage location. The Healthcare Service Agent
  5010  	// Each Cloud Storage object should be a text file that contains the format
  5011  	// specified in ContentStructure.
  5012  	GcsSource *GoogleCloudHealthcareV1beta1FhirGcsSource `json:"gcsSource,omitempty"`
  5013  	// MaxErrorCount: The maximum number of errors before the server cancels the
  5014  	// operation. If not specified or set to 0, defaults to 100. -1 means no
  5015  	// maximum, the server tries to process all input. Since the server executes
  5016  	// the operation in parallel, it might not stop the operation after exactly
  5017  	// this number of errors occur.
  5018  	MaxErrorCount int64 `json:"maxErrorCount,omitempty,string"`
  5019  	// ForceSendFields is a list of field names (e.g. "ContentStructure") to
  5020  	// unconditionally include in API requests. By default, fields with empty or
  5021  	// default values are omitted from API requests. See
  5022  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5023  	// details.
  5024  	ForceSendFields []string `json:"-"`
  5025  	// NullFields is a list of field names (e.g. "ContentStructure") to include in
  5026  	// API requests with the JSON null value. By default, fields with empty values
  5027  	// are omitted from API requests. See
  5028  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5029  	NullFields []string `json:"-"`
  5030  }
  5031  
  5032  func (s *ImportResourcesHistoryRequest) MarshalJSON() ([]byte, error) {
  5033  	type NoMethod ImportResourcesHistoryRequest
  5034  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5035  }
  5036  
  5037  // ImportResourcesRequest: Request to import resources.
  5038  type ImportResourcesRequest struct {
  5039  	// ContentStructure: The content structure in the source location. If not
  5040  	// specified, the server treats the input source files as BUNDLE.
  5041  	//
  5042  	// Possible values:
  5043  	//   "CONTENT_STRUCTURE_UNSPECIFIED" - If the content structure is not
  5044  	// specified, the default value `BUNDLE` is used.
  5045  	//   "BUNDLE" - The source file contains one or more lines of newline-delimited
  5046  	// JSON (ndjson). Each line is a bundle that contains one or more resources.
  5047  	//   "RESOURCE" - The source file contains one or more lines of
  5048  	// newline-delimited JSON (ndjson). Each line is a single resource.
  5049  	//   "BUNDLE_PRETTY" - The entire file is one JSON bundle. The JSON can span
  5050  	// multiple lines.
  5051  	//   "RESOURCE_PRETTY" - The entire file is one JSON resource. The JSON can
  5052  	// span multiple lines.
  5053  	ContentStructure string `json:"contentStructure,omitempty"`
  5054  	// GcsSource: Cloud Storage source data location and import configuration. The
  5055  	// Cloud Healthcare Service Agent requires the `roles/storage.objectViewer`
  5056  	// Cloud IAM roles on the Cloud Storage location. The Healthcare Service Agent
  5057  	// Each Cloud Storage object should be a text file that contains the format
  5058  	// specified in ContentStructure.
  5059  	GcsSource *GoogleCloudHealthcareV1beta1FhirGcsSource `json:"gcsSource,omitempty"`
  5060  	// ForceSendFields is a list of field names (e.g. "ContentStructure") to
  5061  	// unconditionally include in API requests. By default, fields with empty or
  5062  	// default values are omitted from API requests. See
  5063  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5064  	// details.
  5065  	ForceSendFields []string `json:"-"`
  5066  	// NullFields is a list of field names (e.g. "ContentStructure") to include in
  5067  	// API requests with the JSON null value. By default, fields with empty values
  5068  	// are omitted from API requests. See
  5069  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5070  	NullFields []string `json:"-"`
  5071  }
  5072  
  5073  func (s *ImportResourcesRequest) MarshalJSON() ([]byte, error) {
  5074  	type NoMethod ImportResourcesRequest
  5075  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5076  }
  5077  
  5078  // InfoTypeConfig: Specifies how to use infoTypes for evaluation. For example,
  5079  // a user might only want to evaluate `PERSON`, `LOCATION`, and `AGE`.
  5080  type InfoTypeConfig struct {
  5081  	EvaluateList *FilterList `json:"evaluateList,omitempty"`
  5082  	IgnoreList   *FilterList `json:"ignoreList,omitempty"`
  5083  	// StrictMatching: If `TRUE`, infoTypes described by `filter` are used for
  5084  	// evaluation. Otherwise, infoTypes are not considered for evaluation. For
  5085  	// example: * Annotated text: "Toronto is a location" * Finding 1:
  5086  	// `{"infoType": "PERSON", "quote": "Toronto", "start": 0, "end": 7}` * Finding
  5087  	// 2: `{"infoType": "CITY", "quote": "Toronto", "start": 0, "end": 7}` *
  5088  	// Finding 3: `{}` * Ground truth: `{"infoType": "LOCATION", "quote":
  5089  	// "Toronto", "start": 0, "end": 7}` When `strict_matching` is `TRUE`: *
  5090  	// Finding 1: 1 false positive * Finding 2: 1 false positive * Finding 3: 1
  5091  	// false negative When `strict_matching` is `FALSE`: * Finding 1: 1 true
  5092  	// positive * Finding 2: 1 true positive * Finding 3: 1 false negative
  5093  	StrictMatching bool `json:"strictMatching,omitempty"`
  5094  	// ForceSendFields is a list of field names (e.g. "EvaluateList") to
  5095  	// unconditionally include in API requests. By default, fields with empty or
  5096  	// default values are omitted from API requests. See
  5097  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5098  	// details.
  5099  	ForceSendFields []string `json:"-"`
  5100  	// NullFields is a list of field names (e.g. "EvaluateList") to include in API
  5101  	// requests with the JSON null value. By default, fields with empty values are
  5102  	// omitted from API requests. See
  5103  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5104  	NullFields []string `json:"-"`
  5105  }
  5106  
  5107  func (s *InfoTypeConfig) MarshalJSON() ([]byte, error) {
  5108  	type NoMethod InfoTypeConfig
  5109  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5110  }
  5111  
  5112  // InfoTypeTransformation: A transformation to apply to text that is identified
  5113  // as a specific info_type.
  5114  type InfoTypeTransformation struct {
  5115  	// CharacterMaskConfig: Config for character mask.
  5116  	CharacterMaskConfig *CharacterMaskConfig `json:"characterMaskConfig,omitempty"`
  5117  	// CryptoHashConfig: Config for crypto hash.
  5118  	CryptoHashConfig *CryptoHashConfig `json:"cryptoHashConfig,omitempty"`
  5119  	// DateShiftConfig: Config for date shift.
  5120  	DateShiftConfig *DateShiftConfig `json:"dateShiftConfig,omitempty"`
  5121  	// InfoTypes: `InfoTypes` to apply this transformation to. If this is not
  5122  	// specified, this transformation becomes the default transformation, and is
  5123  	// used for any `info_type` that is not specified in another transformation.
  5124  	InfoTypes []string `json:"infoTypes,omitempty"`
  5125  	// RedactConfig: Config for text redaction.
  5126  	RedactConfig *RedactConfig `json:"redactConfig,omitempty"`
  5127  	// ReplaceWithInfoTypeConfig: Config for replace with InfoType.
  5128  	ReplaceWithInfoTypeConfig *ReplaceWithInfoTypeConfig `json:"replaceWithInfoTypeConfig,omitempty"`
  5129  	// ForceSendFields is a list of field names (e.g. "CharacterMaskConfig") to
  5130  	// unconditionally include in API requests. By default, fields with empty or
  5131  	// default values are omitted from API requests. See
  5132  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5133  	// details.
  5134  	ForceSendFields []string `json:"-"`
  5135  	// NullFields is a list of field names (e.g. "CharacterMaskConfig") to include
  5136  	// in API requests with the JSON null value. By default, fields with empty
  5137  	// values are omitted from API requests. See
  5138  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5139  	NullFields []string `json:"-"`
  5140  }
  5141  
  5142  func (s *InfoTypeTransformation) MarshalJSON() ([]byte, error) {
  5143  	type NoMethod InfoTypeTransformation
  5144  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5145  }
  5146  
  5147  // IngestMessageRequest: Ingests a message into the specified HL7v2 store.
  5148  type IngestMessageRequest struct {
  5149  	// Message: Required. HL7v2 message to ingest.
  5150  	Message *Message `json:"message,omitempty"`
  5151  	// ForceSendFields is a list of field names (e.g. "Message") to unconditionally
  5152  	// include in API requests. By default, fields with empty or default values are
  5153  	// omitted from API requests. See
  5154  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5155  	// details.
  5156  	ForceSendFields []string `json:"-"`
  5157  	// NullFields is a list of field names (e.g. "Message") to include in API
  5158  	// requests with the JSON null value. By default, fields with empty values are
  5159  	// omitted from API requests. See
  5160  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5161  	NullFields []string `json:"-"`
  5162  }
  5163  
  5164  func (s *IngestMessageRequest) MarshalJSON() ([]byte, error) {
  5165  	type NoMethod IngestMessageRequest
  5166  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5167  }
  5168  
  5169  // IngestMessageResponse: Acknowledges that a message has been ingested into
  5170  // the specified HL7v2 store.
  5171  type IngestMessageResponse struct {
  5172  	// Hl7Ack: HL7v2 ACK message.
  5173  	Hl7Ack string `json:"hl7Ack,omitempty"`
  5174  	// Message: Created message resource.
  5175  	Message *Message `json:"message,omitempty"`
  5176  
  5177  	// ServerResponse contains the HTTP response code and headers from the server.
  5178  	googleapi.ServerResponse `json:"-"`
  5179  	// ForceSendFields is a list of field names (e.g. "Hl7Ack") to unconditionally
  5180  	// include in API requests. By default, fields with empty or default values are
  5181  	// omitted from API requests. See
  5182  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5183  	// details.
  5184  	ForceSendFields []string `json:"-"`
  5185  	// NullFields is a list of field names (e.g. "Hl7Ack") to include in API
  5186  	// requests with the JSON null value. By default, fields with empty values are
  5187  	// omitted from API requests. See
  5188  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5189  	NullFields []string `json:"-"`
  5190  }
  5191  
  5192  func (s *IngestMessageResponse) MarshalJSON() ([]byte, error) {
  5193  	type NoMethod IngestMessageResponse
  5194  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5195  }
  5196  
  5197  // KeepExtensionsConfig: The behavior for handling FHIR extensions that aren't
  5198  // otherwise specified for de-identification. If provided, all extensions are
  5199  // preserved during de-identification by default. If unspecified, all
  5200  // extensions are removed during de-identification by default.
  5201  type KeepExtensionsConfig struct {
  5202  }
  5203  
  5204  // KeepField: Keep field unchanged.
  5205  type KeepField struct {
  5206  }
  5207  
  5208  // KeepTag: Keep tag unchanged.
  5209  type KeepTag struct {
  5210  }
  5211  
  5212  // KmsWrappedCryptoKey: Include to use an existing data crypto key wrapped by
  5213  // KMS. The wrapped key must be a 128-, 192-, or 256-bit key. The key must
  5214  // grant the Cloud IAM permission `cloudkms.cryptoKeyVersions.useToDecrypt` to
  5215  // the project's Cloud Healthcare Service Agent service account. For more
  5216  // information, see [Creating a wrapped key]
  5217  // (https://cloud.google.com/dlp/docs/create-wrapped-key).
  5218  type KmsWrappedCryptoKey struct {
  5219  	// CryptoKey: Required. The resource name of the KMS CryptoKey to use for
  5220  	// unwrapping. For example,
  5221  	// `projects/{project_id}/locations/{location_id}/keyRings/{keyring}/cryptoKeys/
  5222  	// {key}`.
  5223  	CryptoKey string `json:"cryptoKey,omitempty"`
  5224  	// WrappedKey: Required. The wrapped data crypto key.
  5225  	WrappedKey string `json:"wrappedKey,omitempty"`
  5226  	// ForceSendFields is a list of field names (e.g. "CryptoKey") to
  5227  	// unconditionally include in API requests. By default, fields with empty or
  5228  	// default values are omitted from API requests. See
  5229  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5230  	// details.
  5231  	ForceSendFields []string `json:"-"`
  5232  	// NullFields is a list of field names (e.g. "CryptoKey") to include in API
  5233  	// requests with the JSON null value. By default, fields with empty values are
  5234  	// omitted from API requests. See
  5235  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5236  	NullFields []string `json:"-"`
  5237  }
  5238  
  5239  func (s *KmsWrappedCryptoKey) MarshalJSON() ([]byte, error) {
  5240  	type NoMethod KmsWrappedCryptoKey
  5241  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5242  }
  5243  
  5244  // LinkedEntity: EntityMentions can be linked to multiple entities using a
  5245  // LinkedEntity message lets us add other fields, e.g. confidence.
  5246  type LinkedEntity struct {
  5247  	// EntityId: entity_id is a concept unique identifier. These are prefixed by a
  5248  	// string that identifies the entity coding system, followed by the unique
  5249  	// identifier within that system. For example, "UMLS/C0000970". This also
  5250  	// supports ad hoc entities, which are formed by normalizing entity mention
  5251  	// content.
  5252  	EntityId string `json:"entityId,omitempty"`
  5253  	// ForceSendFields is a list of field names (e.g. "EntityId") to
  5254  	// unconditionally include in API requests. By default, fields with empty or
  5255  	// default values are omitted from API requests. See
  5256  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5257  	// details.
  5258  	ForceSendFields []string `json:"-"`
  5259  	// NullFields is a list of field names (e.g. "EntityId") to include in API
  5260  	// requests with the JSON null value. By default, fields with empty values are
  5261  	// omitted from API requests. See
  5262  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5263  	NullFields []string `json:"-"`
  5264  }
  5265  
  5266  func (s *LinkedEntity) MarshalJSON() ([]byte, error) {
  5267  	type NoMethod LinkedEntity
  5268  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5269  }
  5270  
  5271  // ListAnnotationStoresResponse: Lists the Annotation stores in the given
  5272  // dataset.
  5273  type ListAnnotationStoresResponse struct {
  5274  	// AnnotationStores: The returned Annotation stores. Won't be more Annotation
  5275  	// stores than the value of page_size in the request.
  5276  	AnnotationStores []*AnnotationStore `json:"annotationStores,omitempty"`
  5277  	// NextPageToken: Token to retrieve the next page of results or empty if there
  5278  	// are no more results in the list.
  5279  	NextPageToken string `json:"nextPageToken,omitempty"`
  5280  
  5281  	// ServerResponse contains the HTTP response code and headers from the server.
  5282  	googleapi.ServerResponse `json:"-"`
  5283  	// ForceSendFields is a list of field names (e.g. "AnnotationStores") to
  5284  	// unconditionally include in API requests. By default, fields with empty or
  5285  	// default values are omitted from API requests. See
  5286  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5287  	// details.
  5288  	ForceSendFields []string `json:"-"`
  5289  	// NullFields is a list of field names (e.g. "AnnotationStores") to include in
  5290  	// API requests with the JSON null value. By default, fields with empty values
  5291  	// are omitted from API requests. See
  5292  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5293  	NullFields []string `json:"-"`
  5294  }
  5295  
  5296  func (s *ListAnnotationStoresResponse) MarshalJSON() ([]byte, error) {
  5297  	type NoMethod ListAnnotationStoresResponse
  5298  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5299  }
  5300  
  5301  // ListAnnotationsResponse: Lists the Annotations in the specified Annotation
  5302  // store.
  5303  type ListAnnotationsResponse struct {
  5304  	// Annotations: The returned Annotations. Won't be more values than the value
  5305  	// of page_size in the request. See `AnnotationView` in the request for
  5306  	// populated fields.
  5307  	Annotations []*Annotation `json:"annotations,omitempty"`
  5308  	// NextPageToken: Token to retrieve the next page of results or empty if there
  5309  	// are no more results in the list.
  5310  	NextPageToken string `json:"nextPageToken,omitempty"`
  5311  
  5312  	// ServerResponse contains the HTTP response code and headers from the server.
  5313  	googleapi.ServerResponse `json:"-"`
  5314  	// ForceSendFields is a list of field names (e.g. "Annotations") to
  5315  	// unconditionally include in API requests. By default, fields with empty or
  5316  	// default values are omitted from API requests. See
  5317  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5318  	// details.
  5319  	ForceSendFields []string `json:"-"`
  5320  	// NullFields is a list of field names (e.g. "Annotations") to include in API
  5321  	// requests with the JSON null value. By default, fields with empty values are
  5322  	// omitted from API requests. See
  5323  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5324  	NullFields []string `json:"-"`
  5325  }
  5326  
  5327  func (s *ListAnnotationsResponse) MarshalJSON() ([]byte, error) {
  5328  	type NoMethod ListAnnotationsResponse
  5329  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5330  }
  5331  
  5332  type ListAttributeDefinitionsResponse struct {
  5333  	// AttributeDefinitions: The returned Attribute definitions. The maximum number
  5334  	// of attributes returned is determined by the value of page_size in the
  5335  	// ListAttributeDefinitionsRequest.
  5336  	AttributeDefinitions []*AttributeDefinition `json:"attributeDefinitions,omitempty"`
  5337  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  5338  	// are no more results in the list.
  5339  	NextPageToken string `json:"nextPageToken,omitempty"`
  5340  
  5341  	// ServerResponse contains the HTTP response code and headers from the server.
  5342  	googleapi.ServerResponse `json:"-"`
  5343  	// ForceSendFields is a list of field names (e.g. "AttributeDefinitions") to
  5344  	// unconditionally include in API requests. By default, fields with empty or
  5345  	// default values are omitted from API requests. See
  5346  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5347  	// details.
  5348  	ForceSendFields []string `json:"-"`
  5349  	// NullFields is a list of field names (e.g. "AttributeDefinitions") to include
  5350  	// in API requests with the JSON null value. By default, fields with empty
  5351  	// values are omitted from API requests. See
  5352  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5353  	NullFields []string `json:"-"`
  5354  }
  5355  
  5356  func (s *ListAttributeDefinitionsResponse) MarshalJSON() ([]byte, error) {
  5357  	type NoMethod ListAttributeDefinitionsResponse
  5358  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5359  }
  5360  
  5361  type ListConsentArtifactsResponse struct {
  5362  	// ConsentArtifacts: The returned Consent artifacts. The maximum number of
  5363  	// artifacts returned is determined by the value of page_size in the
  5364  	// ListConsentArtifactsRequest.
  5365  	ConsentArtifacts []*ConsentArtifact `json:"consentArtifacts,omitempty"`
  5366  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  5367  	// are no more results in the list.
  5368  	NextPageToken string `json:"nextPageToken,omitempty"`
  5369  
  5370  	// ServerResponse contains the HTTP response code and headers from the server.
  5371  	googleapi.ServerResponse `json:"-"`
  5372  	// ForceSendFields is a list of field names (e.g. "ConsentArtifacts") to
  5373  	// unconditionally include in API requests. By default, fields with empty or
  5374  	// default values are omitted from API requests. See
  5375  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5376  	// details.
  5377  	ForceSendFields []string `json:"-"`
  5378  	// NullFields is a list of field names (e.g. "ConsentArtifacts") to include in
  5379  	// API requests with the JSON null value. By default, fields with empty values
  5380  	// are omitted from API requests. See
  5381  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5382  	NullFields []string `json:"-"`
  5383  }
  5384  
  5385  func (s *ListConsentArtifactsResponse) MarshalJSON() ([]byte, error) {
  5386  	type NoMethod ListConsentArtifactsResponse
  5387  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5388  }
  5389  
  5390  type ListConsentRevisionsResponse struct {
  5391  	// Consents: The returned Consent revisions. The maximum number of revisions
  5392  	// returned is determined by the value of `page_size` in the
  5393  	// ListConsentRevisionsRequest.
  5394  	Consents []*Consent `json:"consents,omitempty"`
  5395  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  5396  	// are no more results in the list.
  5397  	NextPageToken string `json:"nextPageToken,omitempty"`
  5398  
  5399  	// ServerResponse contains the HTTP response code and headers from the server.
  5400  	googleapi.ServerResponse `json:"-"`
  5401  	// ForceSendFields is a list of field names (e.g. "Consents") to
  5402  	// unconditionally include in API requests. By default, fields with empty or
  5403  	// default values are omitted from API requests. See
  5404  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5405  	// details.
  5406  	ForceSendFields []string `json:"-"`
  5407  	// NullFields is a list of field names (e.g. "Consents") to include in API
  5408  	// requests with the JSON null value. By default, fields with empty values are
  5409  	// omitted from API requests. See
  5410  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5411  	NullFields []string `json:"-"`
  5412  }
  5413  
  5414  func (s *ListConsentRevisionsResponse) MarshalJSON() ([]byte, error) {
  5415  	type NoMethod ListConsentRevisionsResponse
  5416  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5417  }
  5418  
  5419  type ListConsentStoresResponse struct {
  5420  	// ConsentStores: The returned consent stores. The maximum number of stores
  5421  	// returned is determined by the value of page_size in the
  5422  	// ListConsentStoresRequest.
  5423  	ConsentStores []*ConsentStore `json:"consentStores,omitempty"`
  5424  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  5425  	// are no more results in the list.
  5426  	NextPageToken string `json:"nextPageToken,omitempty"`
  5427  
  5428  	// ServerResponse contains the HTTP response code and headers from the server.
  5429  	googleapi.ServerResponse `json:"-"`
  5430  	// ForceSendFields is a list of field names (e.g. "ConsentStores") to
  5431  	// unconditionally include in API requests. By default, fields with empty or
  5432  	// default values are omitted from API requests. See
  5433  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5434  	// details.
  5435  	ForceSendFields []string `json:"-"`
  5436  	// NullFields is a list of field names (e.g. "ConsentStores") to include in API
  5437  	// requests with the JSON null value. By default, fields with empty values are
  5438  	// omitted from API requests. See
  5439  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5440  	NullFields []string `json:"-"`
  5441  }
  5442  
  5443  func (s *ListConsentStoresResponse) MarshalJSON() ([]byte, error) {
  5444  	type NoMethod ListConsentStoresResponse
  5445  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5446  }
  5447  
  5448  type ListConsentsResponse struct {
  5449  	// Consents: The returned Consents. The maximum number of Consents returned is
  5450  	// determined by the value of page_size in the ListConsentsRequest.
  5451  	Consents []*Consent `json:"consents,omitempty"`
  5452  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  5453  	// are no more results in the list.
  5454  	NextPageToken string `json:"nextPageToken,omitempty"`
  5455  
  5456  	// ServerResponse contains the HTTP response code and headers from the server.
  5457  	googleapi.ServerResponse `json:"-"`
  5458  	// ForceSendFields is a list of field names (e.g. "Consents") to
  5459  	// unconditionally include in API requests. By default, fields with empty or
  5460  	// default values are omitted from API requests. See
  5461  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5462  	// details.
  5463  	ForceSendFields []string `json:"-"`
  5464  	// NullFields is a list of field names (e.g. "Consents") to include in API
  5465  	// requests with the JSON null value. By default, fields with empty values are
  5466  	// omitted from API requests. See
  5467  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5468  	NullFields []string `json:"-"`
  5469  }
  5470  
  5471  func (s *ListConsentsResponse) MarshalJSON() ([]byte, error) {
  5472  	type NoMethod ListConsentsResponse
  5473  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5474  }
  5475  
  5476  // ListDatasetsResponse: Lists the available datasets.
  5477  type ListDatasetsResponse struct {
  5478  	// Datasets: The first page of datasets.
  5479  	Datasets []*Dataset `json:"datasets,omitempty"`
  5480  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  5481  	// are no more results in the list.
  5482  	NextPageToken string `json:"nextPageToken,omitempty"`
  5483  
  5484  	// ServerResponse contains the HTTP response code and headers from the server.
  5485  	googleapi.ServerResponse `json:"-"`
  5486  	// ForceSendFields is a list of field names (e.g. "Datasets") to
  5487  	// unconditionally include in API requests. By default, fields with empty or
  5488  	// default values are omitted from API requests. See
  5489  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5490  	// details.
  5491  	ForceSendFields []string `json:"-"`
  5492  	// NullFields is a list of field names (e.g. "Datasets") to include in API
  5493  	// requests with the JSON null value. By default, fields with empty values are
  5494  	// omitted from API requests. See
  5495  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5496  	NullFields []string `json:"-"`
  5497  }
  5498  
  5499  func (s *ListDatasetsResponse) MarshalJSON() ([]byte, error) {
  5500  	type NoMethod ListDatasetsResponse
  5501  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5502  }
  5503  
  5504  // ListDicomStoresResponse: Lists the DICOM stores in the given dataset.
  5505  type ListDicomStoresResponse struct {
  5506  	// DicomStores: The returned DICOM stores. Won't be more DICOM stores than the
  5507  	// value of page_size in the request.
  5508  	DicomStores []*DicomStore `json:"dicomStores,omitempty"`
  5509  	// NextPageToken: Token to retrieve the next page of results or empty if there
  5510  	// are no more results in the list.
  5511  	NextPageToken string `json:"nextPageToken,omitempty"`
  5512  
  5513  	// ServerResponse contains the HTTP response code and headers from the server.
  5514  	googleapi.ServerResponse `json:"-"`
  5515  	// ForceSendFields is a list of field names (e.g. "DicomStores") to
  5516  	// unconditionally include in API requests. By default, fields with empty or
  5517  	// default values are omitted from API requests. See
  5518  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5519  	// details.
  5520  	ForceSendFields []string `json:"-"`
  5521  	// NullFields is a list of field names (e.g. "DicomStores") to include in API
  5522  	// requests with the JSON null value. By default, fields with empty values are
  5523  	// omitted from API requests. See
  5524  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5525  	NullFields []string `json:"-"`
  5526  }
  5527  
  5528  func (s *ListDicomStoresResponse) MarshalJSON() ([]byte, error) {
  5529  	type NoMethod ListDicomStoresResponse
  5530  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5531  }
  5532  
  5533  // ListFhirStoresResponse: Lists the FHIR stores in the given dataset.
  5534  type ListFhirStoresResponse struct {
  5535  	// FhirStores: The returned FHIR stores. Won't be more FHIR stores than the
  5536  	// value of page_size in the request.
  5537  	FhirStores []*FhirStore `json:"fhirStores,omitempty"`
  5538  	// NextPageToken: Token to retrieve the next page of results or empty if there
  5539  	// are no more results in the list.
  5540  	NextPageToken string `json:"nextPageToken,omitempty"`
  5541  
  5542  	// ServerResponse contains the HTTP response code and headers from the server.
  5543  	googleapi.ServerResponse `json:"-"`
  5544  	// ForceSendFields is a list of field names (e.g. "FhirStores") to
  5545  	// unconditionally include in API requests. By default, fields with empty or
  5546  	// default values are omitted from API requests. See
  5547  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5548  	// details.
  5549  	ForceSendFields []string `json:"-"`
  5550  	// NullFields is a list of field names (e.g. "FhirStores") to include in API
  5551  	// requests with the JSON null value. By default, fields with empty values are
  5552  	// omitted from API requests. See
  5553  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5554  	NullFields []string `json:"-"`
  5555  }
  5556  
  5557  func (s *ListFhirStoresResponse) MarshalJSON() ([]byte, error) {
  5558  	type NoMethod ListFhirStoresResponse
  5559  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5560  }
  5561  
  5562  // ListHl7V2StoresResponse: Lists the HL7v2 stores in the given dataset.
  5563  type ListHl7V2StoresResponse struct {
  5564  	// Hl7V2Stores: The returned HL7v2 stores. Won't be more HL7v2 stores than the
  5565  	// value of page_size in the request.
  5566  	Hl7V2Stores []*Hl7V2Store `json:"hl7V2Stores,omitempty"`
  5567  	// NextPageToken: Token to retrieve the next page of results or empty if there
  5568  	// are no more results in the list.
  5569  	NextPageToken string `json:"nextPageToken,omitempty"`
  5570  
  5571  	// ServerResponse contains the HTTP response code and headers from the server.
  5572  	googleapi.ServerResponse `json:"-"`
  5573  	// ForceSendFields is a list of field names (e.g. "Hl7V2Stores") to
  5574  	// unconditionally include in API requests. By default, fields with empty or
  5575  	// default values are omitted from API requests. See
  5576  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5577  	// details.
  5578  	ForceSendFields []string `json:"-"`
  5579  	// NullFields is a list of field names (e.g. "Hl7V2Stores") to include in API
  5580  	// requests with the JSON null value. By default, fields with empty values are
  5581  	// omitted from API requests. See
  5582  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5583  	NullFields []string `json:"-"`
  5584  }
  5585  
  5586  func (s *ListHl7V2StoresResponse) MarshalJSON() ([]byte, error) {
  5587  	type NoMethod ListHl7V2StoresResponse
  5588  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5589  }
  5590  
  5591  // ListLocationsResponse: The response message for Locations.ListLocations.
  5592  type ListLocationsResponse struct {
  5593  	// Locations: A list of locations that matches the specified filter in the
  5594  	// request.
  5595  	Locations []*Location `json:"locations,omitempty"`
  5596  	// NextPageToken: The standard List next-page token.
  5597  	NextPageToken string `json:"nextPageToken,omitempty"`
  5598  
  5599  	// ServerResponse contains the HTTP response code and headers from the server.
  5600  	googleapi.ServerResponse `json:"-"`
  5601  	// ForceSendFields is a list of field names (e.g. "Locations") to
  5602  	// unconditionally include in API requests. By default, fields with empty or
  5603  	// default values are omitted from API requests. See
  5604  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5605  	// details.
  5606  	ForceSendFields []string `json:"-"`
  5607  	// NullFields is a list of field names (e.g. "Locations") to include in API
  5608  	// requests with the JSON null value. By default, fields with empty values are
  5609  	// omitted from API requests. See
  5610  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5611  	NullFields []string `json:"-"`
  5612  }
  5613  
  5614  func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) {
  5615  	type NoMethod ListLocationsResponse
  5616  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5617  }
  5618  
  5619  // ListMessagesResponse: Lists the messages in the specified HL7v2 store.
  5620  type ListMessagesResponse struct {
  5621  	// Hl7V2Messages: The returned Messages. Won't be more Messages than the value
  5622  	// of page_size in the request. See view for populated fields.
  5623  	Hl7V2Messages []*Message `json:"hl7V2Messages,omitempty"`
  5624  	// NextPageToken: Token to retrieve the next page of results or empty if there
  5625  	// are no more results in the list.
  5626  	NextPageToken string `json:"nextPageToken,omitempty"`
  5627  
  5628  	// ServerResponse contains the HTTP response code and headers from the server.
  5629  	googleapi.ServerResponse `json:"-"`
  5630  	// ForceSendFields is a list of field names (e.g. "Hl7V2Messages") to
  5631  	// unconditionally include in API requests. By default, fields with empty or
  5632  	// default values are omitted from API requests. See
  5633  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5634  	// details.
  5635  	ForceSendFields []string `json:"-"`
  5636  	// NullFields is a list of field names (e.g. "Hl7V2Messages") to include in API
  5637  	// requests with the JSON null value. By default, fields with empty values are
  5638  	// omitted from API requests. See
  5639  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5640  	NullFields []string `json:"-"`
  5641  }
  5642  
  5643  func (s *ListMessagesResponse) MarshalJSON() ([]byte, error) {
  5644  	type NoMethod ListMessagesResponse
  5645  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5646  }
  5647  
  5648  // ListOperationsResponse: The response message for Operations.ListOperations.
  5649  type ListOperationsResponse struct {
  5650  	// NextPageToken: The standard List next-page token.
  5651  	NextPageToken string `json:"nextPageToken,omitempty"`
  5652  	// Operations: A list of operations that matches the specified filter in the
  5653  	// request.
  5654  	Operations []*Operation `json:"operations,omitempty"`
  5655  
  5656  	// ServerResponse contains the HTTP response code and headers from the server.
  5657  	googleapi.ServerResponse `json:"-"`
  5658  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  5659  	// unconditionally include in API requests. By default, fields with empty or
  5660  	// default values are omitted from API requests. See
  5661  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5662  	// details.
  5663  	ForceSendFields []string `json:"-"`
  5664  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  5665  	// requests with the JSON null value. By default, fields with empty values are
  5666  	// omitted from API requests. See
  5667  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5668  	NullFields []string `json:"-"`
  5669  }
  5670  
  5671  func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
  5672  	type NoMethod ListOperationsResponse
  5673  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5674  }
  5675  
  5676  type ListUserDataMappingsResponse struct {
  5677  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  5678  	// are no more results in the list.
  5679  	NextPageToken string `json:"nextPageToken,omitempty"`
  5680  	// UserDataMappings: The returned User data mappings. The maximum number of
  5681  	// User data mappings returned is determined by the value of page_size in the
  5682  	// ListUserDataMappingsRequest.
  5683  	UserDataMappings []*UserDataMapping `json:"userDataMappings,omitempty"`
  5684  
  5685  	// ServerResponse contains the HTTP response code and headers from the server.
  5686  	googleapi.ServerResponse `json:"-"`
  5687  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  5688  	// unconditionally include in API requests. By default, fields with empty or
  5689  	// default values are omitted from API requests. See
  5690  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5691  	// details.
  5692  	ForceSendFields []string `json:"-"`
  5693  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  5694  	// requests with the JSON null value. By default, fields with empty values are
  5695  	// omitted from API requests. See
  5696  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5697  	NullFields []string `json:"-"`
  5698  }
  5699  
  5700  func (s *ListUserDataMappingsResponse) MarshalJSON() ([]byte, error) {
  5701  	type NoMethod ListUserDataMappingsResponse
  5702  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5703  }
  5704  
  5705  // Location: A resource that represents a Google Cloud location.
  5706  type Location struct {
  5707  	// DisplayName: The friendly name for this location, typically a nearby city
  5708  	// name. For example, "Tokyo".
  5709  	DisplayName string `json:"displayName,omitempty"`
  5710  	// Labels: Cross-service attributes for the location. For example
  5711  	// {"cloud.googleapis.com/region": "us-east1"}
  5712  	Labels map[string]string `json:"labels,omitempty"`
  5713  	// LocationId: The canonical id for this location. For example: "us-east1".
  5714  	LocationId string `json:"locationId,omitempty"`
  5715  	// Metadata: Service-specific metadata. For example the available capacity at
  5716  	// the given location.
  5717  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  5718  	// Name: Resource name for the location, which may vary between
  5719  	// implementations. For example:
  5720  	// "projects/example-project/locations/us-east1"
  5721  	Name string `json:"name,omitempty"`
  5722  
  5723  	// ServerResponse contains the HTTP response code and headers from the server.
  5724  	googleapi.ServerResponse `json:"-"`
  5725  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  5726  	// unconditionally include in API requests. By default, fields with empty or
  5727  	// default values are omitted from API requests. See
  5728  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5729  	// details.
  5730  	ForceSendFields []string `json:"-"`
  5731  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  5732  	// requests with the JSON null value. By default, fields with empty values are
  5733  	// omitted from API requests. See
  5734  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5735  	NullFields []string `json:"-"`
  5736  }
  5737  
  5738  func (s *Location) MarshalJSON() ([]byte, error) {
  5739  	type NoMethod Location
  5740  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5741  }
  5742  
  5743  // Message: A complete HL7v2 message. See [Introduction to HL7 Standards]
  5744  // (https://www.hl7.org/implement/standards/index.cfm?ref=common) for details
  5745  // on the standard.
  5746  type Message struct {
  5747  	// CreateTime: Output only. The datetime when the message was created. Set by
  5748  	// the server.
  5749  	CreateTime string `json:"createTime,omitempty"`
  5750  	// Data: Required. Raw message bytes.
  5751  	Data string `json:"data,omitempty"`
  5752  	// Labels: User-supplied key-value pairs used to organize HL7v2 stores. Label
  5753  	// keys must be between 1 and 63 characters long, have a UTF-8 encoding of
  5754  	// maximum 128 bytes, and must conform to the following PCRE regular
  5755  	// expression: \p{Ll}\p{Lo}{0,62} Label values are optional, must be between 1
  5756  	// and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must
  5757  	// conform to the following PCRE regular expression:
  5758  	// [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a
  5759  	// given store.
  5760  	Labels map[string]string `json:"labels,omitempty"`
  5761  	// MessageType: The message type for this message. MSH-9.1.
  5762  	MessageType string `json:"messageType,omitempty"`
  5763  	// Name: Output only. Resource name of the Message, of the form
  5764  	// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/hl7V2Sto
  5765  	// res/{hl7_v2_store_id}/messages/{message_id}`. Assigned by the server.
  5766  	Name string `json:"name,omitempty"`
  5767  	// ParsedData: Output only. The parsed version of the raw message data.
  5768  	ParsedData *ParsedData `json:"parsedData,omitempty"`
  5769  	// PatientIds: All patient IDs listed in the PID-2, PID-3, and PID-4 segments
  5770  	// of this message.
  5771  	PatientIds []*PatientId `json:"patientIds,omitempty"`
  5772  	// SchematizedData: The parsed version of the raw message data schematized
  5773  	// according to this store's schemas and type definitions.
  5774  	SchematizedData *SchematizedData `json:"schematizedData,omitempty"`
  5775  	// SendFacility: The hospital that this message came from. MSH-4.
  5776  	SendFacility string `json:"sendFacility,omitempty"`
  5777  	// SendTime: The datetime the sending application sent this message. MSH-7.
  5778  	SendTime string `json:"sendTime,omitempty"`
  5779  
  5780  	// ServerResponse contains the HTTP response code and headers from the server.
  5781  	googleapi.ServerResponse `json:"-"`
  5782  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  5783  	// unconditionally include in API requests. By default, fields with empty or
  5784  	// default values are omitted from API requests. See
  5785  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5786  	// details.
  5787  	ForceSendFields []string `json:"-"`
  5788  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  5789  	// requests with the JSON null value. By default, fields with empty values are
  5790  	// omitted from API requests. See
  5791  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5792  	NullFields []string `json:"-"`
  5793  }
  5794  
  5795  func (s *Message) MarshalJSON() ([]byte, error) {
  5796  	type NoMethod Message
  5797  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5798  }
  5799  
  5800  // NotificationConfig: Specifies where to send notifications upon changes to a
  5801  // data store.
  5802  type NotificationConfig struct {
  5803  	// PubsubTopic: The Pub/Sub (https://cloud.google.com/pubsub/docs/) topic that
  5804  	// notifications of changes are published on. Supplied by the client.
  5805  	// PubsubMessage.Data contains the resource name. PubsubMessage.MessageId is
  5806  	// the ID of this message. It is guaranteed to be unique within the topic.
  5807  	// PubsubMessage.PublishTime is the time at which the message was published.
  5808  	// Notifications are only sent if the topic is non-empty. Topic names
  5809  	// (https://cloud.google.com/pubsub/docs/overview#names) must be scoped to a
  5810  	// project. Cloud Healthcare API service account must have publisher
  5811  	// permissions on the given Pub/Sub topic. Not having adequate permissions
  5812  	// causes the calls that send notifications to fail. If a notification can't be
  5813  	// published to Pub/Sub, errors are logged to Cloud Logging (see Viewing error
  5814  	// logs in Cloud Logging
  5815  	// (https://cloud.google.com/healthcare/docs/how-tos/logging)). If the number
  5816  	// of errors exceeds a certain rate, some aren't submitted. Note that not all
  5817  	// operations trigger notifications, see Configuring Pub/Sub notifications
  5818  	// (https://cloud.google.com/healthcare/docs/how-tos/pubsub) for specific
  5819  	// details.
  5820  	PubsubTopic string `json:"pubsubTopic,omitempty"`
  5821  	// SendForBulkImport: Indicates whether or not to send Pub/Sub notifications on
  5822  	// bulk import. Only supported for DICOM imports.
  5823  	SendForBulkImport bool `json:"sendForBulkImport,omitempty"`
  5824  	// ForceSendFields is a list of field names (e.g. "PubsubTopic") to
  5825  	// unconditionally include in API requests. By default, fields with empty or
  5826  	// default values are omitted from API requests. See
  5827  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5828  	// details.
  5829  	ForceSendFields []string `json:"-"`
  5830  	// NullFields is a list of field names (e.g. "PubsubTopic") to include in API
  5831  	// requests with the JSON null value. By default, fields with empty values are
  5832  	// omitted from API requests. See
  5833  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5834  	NullFields []string `json:"-"`
  5835  }
  5836  
  5837  func (s *NotificationConfig) MarshalJSON() ([]byte, error) {
  5838  	type NoMethod NotificationConfig
  5839  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5840  }
  5841  
  5842  // Operation: This resource represents a long-running operation that is the
  5843  // result of a network API call.
  5844  type Operation struct {
  5845  	// Done: If the value is `false`, it means the operation is still in progress.
  5846  	// If `true`, the operation is completed, and either `error` or `response` is
  5847  	// available.
  5848  	Done bool `json:"done,omitempty"`
  5849  	// Error: The error result of the operation in case of failure or cancellation.
  5850  	Error *Status `json:"error,omitempty"`
  5851  	// Metadata: Service-specific metadata associated with the operation. It
  5852  	// typically contains progress information and common metadata such as create
  5853  	// time. Some services might not provide such metadata. Any method that returns
  5854  	// a long-running operation should document the metadata type, if any.
  5855  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  5856  	// Name: The server-assigned name, which is only unique within the same service
  5857  	// that originally returns it. If you use the default HTTP mapping, the `name`
  5858  	// should be a resource name ending with `operations/{unique_id}`.
  5859  	Name string `json:"name,omitempty"`
  5860  	// Response: The normal, successful response of the operation. If the original
  5861  	// method returns no data on success, such as `Delete`, the response is
  5862  	// `google.protobuf.Empty`. If the original method is standard
  5863  	// `Get`/`Create`/`Update`, the response should be the resource. For other
  5864  	// methods, the response should have the type `XxxResponse`, where `Xxx` is the
  5865  	// original method name. For example, if the original method name is
  5866  	// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
  5867  	Response googleapi.RawMessage `json:"response,omitempty"`
  5868  
  5869  	// ServerResponse contains the HTTP response code and headers from the server.
  5870  	googleapi.ServerResponse `json:"-"`
  5871  	// ForceSendFields is a list of field names (e.g. "Done") to unconditionally
  5872  	// include in API requests. By default, fields with empty or default values are
  5873  	// omitted from API requests. See
  5874  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5875  	// details.
  5876  	ForceSendFields []string `json:"-"`
  5877  	// NullFields is a list of field names (e.g. "Done") to include in API requests
  5878  	// with the JSON null value. By default, fields with empty values are omitted
  5879  	// from API requests. See
  5880  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5881  	NullFields []string `json:"-"`
  5882  }
  5883  
  5884  func (s *Operation) MarshalJSON() ([]byte, error) {
  5885  	type NoMethod Operation
  5886  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5887  }
  5888  
  5889  // OperationMetadata: OperationMetadata provides information about the
  5890  // operation execution. Returned in the long-running operation's metadata
  5891  // field.
  5892  type OperationMetadata struct {
  5893  	// ApiMethodName: The name of the API method that initiated the operation.
  5894  	ApiMethodName string `json:"apiMethodName,omitempty"`
  5895  	// CancelRequested: Specifies if cancellation was requested for the operation.
  5896  	CancelRequested bool             `json:"cancelRequested,omitempty"`
  5897  	Counter         *ProgressCounter `json:"counter,omitempty"`
  5898  	// CreateTime: The time at which the operation was created by the API.
  5899  	CreateTime string `json:"createTime,omitempty"`
  5900  	// EndTime: The time at which execution workloads were completed. Some tasks
  5901  	// will complete after this time such as logging audit logs.
  5902  	EndTime string `json:"endTime,omitempty"`
  5903  	// LogsUrl: A link to audit and error logs in the log viewer. Error logs are
  5904  	// generated only by some operations, listed at Viewing error logs in Cloud
  5905  	// Logging (https://cloud.google.com/healthcare/docs/how-tos/logging). The
  5906  	// `end_time` specified in this URL may not match the end time on the metadata
  5907  	// because logs are written asynchronously from execution.
  5908  	LogsUrl string `json:"logsUrl,omitempty"`
  5909  	// ForceSendFields is a list of field names (e.g. "ApiMethodName") to
  5910  	// unconditionally include in API requests. By default, fields with empty or
  5911  	// default values are omitted from API requests. See
  5912  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5913  	// details.
  5914  	ForceSendFields []string `json:"-"`
  5915  	// NullFields is a list of field names (e.g. "ApiMethodName") to include in API
  5916  	// requests with the JSON null value. By default, fields with empty values are
  5917  	// omitted from API requests. See
  5918  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5919  	NullFields []string `json:"-"`
  5920  }
  5921  
  5922  func (s *OperationMetadata) MarshalJSON() ([]byte, error) {
  5923  	type NoMethod OperationMetadata
  5924  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5925  }
  5926  
  5927  // Options: Specifies additional options to apply to the base profile.
  5928  type Options struct {
  5929  	// CleanDescriptors: Set Clean Descriptors Option.
  5930  	CleanDescriptors *CleanDescriptorsOption `json:"cleanDescriptors,omitempty"`
  5931  	// CleanImage: Apply `Action.clean_image` to `PixelData`
  5932  	// (http://dicom.nema.org/medical/dicom/2018e/output/chtml/part06/chapter_6.html)
  5933  	// as configured.
  5934  	CleanImage *ImageConfig `json:"cleanImage,omitempty"`
  5935  	// PrimaryIds: Set `Action` for `StudyInstanceUID`, `SeriesInstanceUID`,
  5936  	// `SOPInstanceUID`, and `MediaStorageSOPInstanceUID`
  5937  	// (http://dicom.nema.org/medical/dicom/2018e/output/chtml/part06/chapter_6.html).
  5938  	//
  5939  	// Possible values:
  5940  	//   "PRIMARY_IDS_OPTION_UNSPECIFIED" - No value provided. Default to the
  5941  	// behavior specified by the base profile.
  5942  	//   "KEEP" - Keep primary IDs.
  5943  	//   "REGEN" - Regenerate primary IDs.
  5944  	PrimaryIds string `json:"primaryIds,omitempty"`
  5945  	// ForceSendFields is a list of field names (e.g. "CleanDescriptors") to
  5946  	// unconditionally include in API requests. By default, fields with empty or
  5947  	// default values are omitted from API requests. See
  5948  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5949  	// details.
  5950  	ForceSendFields []string `json:"-"`
  5951  	// NullFields is a list of field names (e.g. "CleanDescriptors") to include in
  5952  	// API requests with the JSON null value. By default, fields with empty values
  5953  	// are omitted from API requests. See
  5954  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5955  	NullFields []string `json:"-"`
  5956  }
  5957  
  5958  func (s *Options) MarshalJSON() ([]byte, error) {
  5959  	type NoMethod Options
  5960  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5961  }
  5962  
  5963  // ParsedData: The content of an HL7v2 message in a structured format.
  5964  type ParsedData struct {
  5965  	Segments []*Segment `json:"segments,omitempty"`
  5966  	// ForceSendFields is a list of field names (e.g. "Segments") to
  5967  	// unconditionally include in API requests. By default, fields with empty or
  5968  	// default values are omitted from API requests. See
  5969  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5970  	// details.
  5971  	ForceSendFields []string `json:"-"`
  5972  	// NullFields is a list of field names (e.g. "Segments") to include in API
  5973  	// requests with the JSON null value. By default, fields with empty values are
  5974  	// omitted from API requests. See
  5975  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5976  	NullFields []string `json:"-"`
  5977  }
  5978  
  5979  func (s *ParsedData) MarshalJSON() ([]byte, error) {
  5980  	type NoMethod ParsedData
  5981  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5982  }
  5983  
  5984  // ParserConfig: The configuration for the parser. It determines how the server
  5985  // parses the messages.
  5986  type ParserConfig struct {
  5987  	// AllowNullHeader: Determines whether messages with no header are allowed.
  5988  	AllowNullHeader bool `json:"allowNullHeader,omitempty"`
  5989  	// Schema: Schemas used to parse messages in this store, if schematized parsing
  5990  	// is desired.
  5991  	Schema *SchemaPackage `json:"schema,omitempty"`
  5992  	// SegmentTerminator: Byte(s) to use as the segment terminator. If this is
  5993  	// unset, '\r' is used as segment terminator, matching the HL7 version 2
  5994  	// specification.
  5995  	SegmentTerminator string `json:"segmentTerminator,omitempty"`
  5996  	// Version: Immutable. Determines the version of both the default parser to be
  5997  	// used when `schema` is not given, as well as the schematized parser used when
  5998  	// `schema` is specified. This field is immutable after HL7v2 store creation.
  5999  	//
  6000  	// Possible values:
  6001  	//   "PARSER_VERSION_UNSPECIFIED" - Unspecified parser version, equivalent to
  6002  	// V1.
  6003  	//   "V1" - The `parsed_data` includes every given non-empty message field
  6004  	// except the Field Separator (MSH-1) field. As a result, the parsed MSH
  6005  	// segment starts with the MSH-2 field and the field numbers are off-by-one
  6006  	// with respect to the HL7 standard.
  6007  	//   "V2" - The `parsed_data` includes every given non-empty message field.
  6008  	//   "V3" - This version is the same as V2, with the following change. The
  6009  	// `parsed_data` contains unescaped escaped field separators, component
  6010  	// separators, sub-component separators, repetition separators, escape
  6011  	// characters, and truncation characters. If `schema` is specified, the
  6012  	// schematized parser uses improved parsing heuristics compared to previous
  6013  	// versions.
  6014  	Version string `json:"version,omitempty"`
  6015  	// ForceSendFields is a list of field names (e.g. "AllowNullHeader") to
  6016  	// unconditionally include in API requests. By default, fields with empty or
  6017  	// default values are omitted from API requests. See
  6018  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6019  	// details.
  6020  	ForceSendFields []string `json:"-"`
  6021  	// NullFields is a list of field names (e.g. "AllowNullHeader") to include in
  6022  	// API requests with the JSON null value. By default, fields with empty values
  6023  	// are omitted from API requests. See
  6024  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6025  	NullFields []string `json:"-"`
  6026  }
  6027  
  6028  func (s *ParserConfig) MarshalJSON() ([]byte, error) {
  6029  	type NoMethod ParserConfig
  6030  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6031  }
  6032  
  6033  // PatientId: A patient identifier and associated type.
  6034  type PatientId struct {
  6035  	// Type: ID type. For example, MRN or NHS.
  6036  	Type string `json:"type,omitempty"`
  6037  	// Value: The patient's unique identifier.
  6038  	Value string `json:"value,omitempty"`
  6039  	// ForceSendFields is a list of field names (e.g. "Type") to unconditionally
  6040  	// include in API requests. By default, fields with empty or default values are
  6041  	// omitted from API requests. See
  6042  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6043  	// details.
  6044  	ForceSendFields []string `json:"-"`
  6045  	// NullFields is a list of field names (e.g. "Type") to include in API requests
  6046  	// with the JSON null value. By default, fields with empty values are omitted
  6047  	// from API requests. See
  6048  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6049  	NullFields []string `json:"-"`
  6050  }
  6051  
  6052  func (s *PatientId) MarshalJSON() ([]byte, error) {
  6053  	type NoMethod PatientId
  6054  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6055  }
  6056  
  6057  // PatientScope: Apply consents given by a list of patients.
  6058  type PatientScope struct {
  6059  	// PatientIds: Optional. The list of patient IDs whose Consent resources will
  6060  	// be enforced. At most 10,000 patients can be specified. An empty list is
  6061  	// equivalent to all patients (meaning the entire FHIR store).
  6062  	PatientIds []string `json:"patientIds,omitempty"`
  6063  	// ForceSendFields is a list of field names (e.g. "PatientIds") to
  6064  	// unconditionally include in API requests. By default, fields with empty or
  6065  	// default values are omitted from API requests. See
  6066  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6067  	// details.
  6068  	ForceSendFields []string `json:"-"`
  6069  	// NullFields is a list of field names (e.g. "PatientIds") to include in API
  6070  	// requests with the JSON null value. By default, fields with empty values are
  6071  	// omitted from API requests. See
  6072  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6073  	NullFields []string `json:"-"`
  6074  }
  6075  
  6076  func (s *PatientScope) MarshalJSON() ([]byte, error) {
  6077  	type NoMethod PatientScope
  6078  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6079  }
  6080  
  6081  // Policy: An Identity and Access Management (IAM) policy, which specifies
  6082  // access controls for Google Cloud resources. A `Policy` is a collection of
  6083  // `bindings`. A `binding` binds one or more `members`, or principals, to a
  6084  // single `role`. Principals can be user accounts, service accounts, Google
  6085  // groups, and domains (such as G Suite). A `role` is a named list of
  6086  // permissions; each `role` can be an IAM predefined role or a user-created
  6087  // custom role. For some types of Google Cloud resources, a `binding` can also
  6088  // specify a `condition`, which is a logical expression that allows access to a
  6089  // resource only if the expression evaluates to `true`. A condition can add
  6090  // constraints based on attributes of the request, the resource, or both. To
  6091  // learn which resources support conditions in their IAM policies, see the IAM
  6092  // documentation
  6093  // (https://cloud.google.com/iam/help/conditions/resource-policies). **JSON
  6094  // example:** ``` { "bindings": [ { "role":
  6095  // "roles/resourcemanager.organizationAdmin", "members": [
  6096  // "user:mike@example.com", "group:admins@example.com", "domain:google.com",
  6097  // "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role":
  6098  // "roles/resourcemanager.organizationViewer", "members": [
  6099  // "user:eve@example.com" ], "condition": { "title": "expirable access",
  6100  // "description": "Does not grant access after Sep 2020", "expression":
  6101  // "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag":
  6102  // "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: -
  6103  // members: - user:mike@example.com - group:admins@example.com -
  6104  // domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
  6105  // role: roles/resourcemanager.organizationAdmin - members: -
  6106  // user:eve@example.com role: roles/resourcemanager.organizationViewer
  6107  // condition: title: expirable access description: Does not grant access after
  6108  // Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
  6109  // etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features,
  6110  // see the IAM documentation (https://cloud.google.com/iam/docs/).
  6111  type Policy struct {
  6112  	// AuditConfigs: Specifies cloud audit logging configuration for this policy.
  6113  	AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"`
  6114  	// Bindings: Associates a list of `members`, or principals, with a `role`.
  6115  	// Optionally, may specify a `condition` that determines how and when the
  6116  	// `bindings` are applied. Each of the `bindings` must contain at least one
  6117  	// principal. The `bindings` in a `Policy` can refer to up to 1,500 principals;
  6118  	// up to 250 of these principals can be Google groups. Each occurrence of a
  6119  	// principal counts towards these limits. For example, if the `bindings` grant
  6120  	// 50 different roles to `user:alice@example.com`, and not to any other
  6121  	// principal, then you can add another 1,450 principals to the `bindings` in
  6122  	// the `Policy`.
  6123  	Bindings []*Binding `json:"bindings,omitempty"`
  6124  	// Etag: `etag` is used for optimistic concurrency control as a way to help
  6125  	// prevent simultaneous updates of a policy from overwriting each other. It is
  6126  	// strongly suggested that systems make use of the `etag` in the
  6127  	// read-modify-write cycle to perform policy updates in order to avoid race
  6128  	// conditions: An `etag` is returned in the response to `getIamPolicy`, and
  6129  	// systems are expected to put that etag in the request to `setIamPolicy` to
  6130  	// ensure that their change will be applied to the same version of the policy.
  6131  	// **Important:** If you use IAM Conditions, you must include the `etag` field
  6132  	// whenever you call `setIamPolicy`. If you omit this field, then IAM allows
  6133  	// you to overwrite a version `3` policy with a version `1` policy, and all of
  6134  	// the conditions in the version `3` policy are lost.
  6135  	Etag string `json:"etag,omitempty"`
  6136  	// Version: Specifies the format of the policy. Valid values are `0`, `1`, and
  6137  	// `3`. Requests that specify an invalid value are rejected. Any operation that
  6138  	// affects conditional role bindings must specify version `3`. This requirement
  6139  	// applies to the following operations: * Getting a policy that includes a
  6140  	// conditional role binding * Adding a conditional role binding to a policy *
  6141  	// Changing a conditional role binding in a policy * Removing any role binding,
  6142  	// with or without a condition, from a policy that includes conditions
  6143  	// **Important:** If you use IAM Conditions, you must include the `etag` field
  6144  	// whenever you call `setIamPolicy`. If you omit this field, then IAM allows
  6145  	// you to overwrite a version `3` policy with a version `1` policy, and all of
  6146  	// the conditions in the version `3` policy are lost. If a policy does not
  6147  	// include any conditions, operations on that policy may specify any valid
  6148  	// version or leave the field unset. To learn which resources support
  6149  	// conditions in their IAM policies, see the IAM documentation
  6150  	// (https://cloud.google.com/iam/help/conditions/resource-policies).
  6151  	Version int64 `json:"version,omitempty"`
  6152  
  6153  	// ServerResponse contains the HTTP response code and headers from the server.
  6154  	googleapi.ServerResponse `json:"-"`
  6155  	// ForceSendFields is a list of field names (e.g. "AuditConfigs") to
  6156  	// unconditionally include in API requests. By default, fields with empty or
  6157  	// default values are omitted from API requests. See
  6158  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6159  	// details.
  6160  	ForceSendFields []string `json:"-"`
  6161  	// NullFields is a list of field names (e.g. "AuditConfigs") to include in API
  6162  	// requests with the JSON null value. By default, fields with empty values are
  6163  	// omitted from API requests. See
  6164  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6165  	NullFields []string `json:"-"`
  6166  }
  6167  
  6168  func (s *Policy) MarshalJSON() ([]byte, error) {
  6169  	type NoMethod Policy
  6170  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6171  }
  6172  
  6173  // ProgressCounter: ProgressCounter provides counters to describe an
  6174  // operation's progress.
  6175  type ProgressCounter struct {
  6176  	// Failure: The number of units that failed in the operation.
  6177  	Failure int64 `json:"failure,omitempty,string"`
  6178  	// Pending: The number of units that are pending in the operation.
  6179  	Pending int64 `json:"pending,omitempty,string"`
  6180  	// SecondaryFailure: The number of secondary units that failed in the
  6181  	// operation.
  6182  	SecondaryFailure int64 `json:"secondaryFailure,omitempty,string"`
  6183  	// SecondarySuccess: The number of secondary units that succeeded in the
  6184  	// operation.
  6185  	SecondarySuccess int64 `json:"secondarySuccess,omitempty,string"`
  6186  	// Success: The number of units that succeeded in the operation.
  6187  	Success int64 `json:"success,omitempty,string"`
  6188  	// ForceSendFields is a list of field names (e.g. "Failure") to unconditionally
  6189  	// include in API requests. By default, fields with empty or default values are
  6190  	// omitted from API requests. See
  6191  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6192  	// details.
  6193  	ForceSendFields []string `json:"-"`
  6194  	// NullFields is a list of field names (e.g. "Failure") to include in API
  6195  	// requests with the JSON null value. By default, fields with empty values are
  6196  	// omitted from API requests. See
  6197  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6198  	NullFields []string `json:"-"`
  6199  }
  6200  
  6201  func (s *ProgressCounter) MarshalJSON() ([]byte, error) {
  6202  	type NoMethod ProgressCounter
  6203  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6204  }
  6205  
  6206  // PubsubDestination: The Pub/Sub output destination. The Cloud Healthcare
  6207  // Service Agent requires the `roles/pubsub.publisher` Cloud IAM role on the
  6208  // Pub/Sub topic.
  6209  type PubsubDestination struct {
  6210  	// PubsubTopic: The Pub/Sub (https://cloud.google.com/pubsub/docs/) topic that
  6211  	// Pub/Sub messages are published on. Supplied by the client. The
  6212  	// `PubsubMessage` contains the following fields: * `PubsubMessage.Data`
  6213  	// contains the resource name. * `PubsubMessage.MessageId` is the ID of this
  6214  	// notification. It is guaranteed to be unique within the topic. *
  6215  	// `PubsubMessage.PublishTime` is the time when the message was published.
  6216  	// Topic names (https://cloud.google.com/pubsub/docs/overview#names) must be
  6217  	// scoped to a project. The Cloud Healthcare API service account,
  6218  	// service-PROJECT_NUMBER@gcp-sa-healthcare.iam.gserviceaccount.com, must have
  6219  	// publisher permissions on the given Pub/Sub topic. Not having adequate
  6220  	// permissions causes the calls that send notifications to fail.
  6221  	PubsubTopic string `json:"pubsubTopic,omitempty"`
  6222  	// ForceSendFields is a list of field names (e.g. "PubsubTopic") to
  6223  	// unconditionally include in API requests. By default, fields with empty or
  6224  	// default values are omitted from API requests. See
  6225  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6226  	// details.
  6227  	ForceSendFields []string `json:"-"`
  6228  	// NullFields is a list of field names (e.g. "PubsubTopic") to include in API
  6229  	// requests with the JSON null value. By default, fields with empty values are
  6230  	// omitted from API requests. See
  6231  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6232  	NullFields []string `json:"-"`
  6233  }
  6234  
  6235  func (s *PubsubDestination) MarshalJSON() ([]byte, error) {
  6236  	type NoMethod PubsubDestination
  6237  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6238  }
  6239  
  6240  // QueryAccessibleDataRequest: Queries all data_ids that are consented for a
  6241  // given use in the given consent store and writes them to a specified
  6242  // destination. The returned Operation includes a progress counter for the
  6243  // number of User data mappings processed. Errors are logged to Cloud Logging
  6244  // (see [Viewing error logs in Cloud Logging]
  6245  // (https://cloud.google.com/healthcare/docs/how-tos/logging) and
  6246  // [QueryAccessibleData] for a sample log entry).
  6247  type QueryAccessibleDataRequest struct {
  6248  	// GcsDestination: The Cloud Storage destination. The Cloud Healthcare API
  6249  	// service account must have the `roles/storage.objectAdmin` Cloud IAM role for
  6250  	// this Cloud Storage location. The object name is in the following format:
  6251  	// query-accessible-data-result-{operation_id}.txt where each line contains a
  6252  	// single data_id.
  6253  	GcsDestination *GoogleCloudHealthcareV1beta1ConsentGcsDestination `json:"gcsDestination,omitempty"`
  6254  	// RequestAttributes: The values of request attributes associated with this
  6255  	// access request.
  6256  	RequestAttributes map[string]string `json:"requestAttributes,omitempty"`
  6257  	// ResourceAttributes: Optional. The values of resource attributes associated
  6258  	// with the type of resources being requested. If no values are specified, then
  6259  	// all resource types are included in the output.
  6260  	ResourceAttributes map[string]string `json:"resourceAttributes,omitempty"`
  6261  	// ForceSendFields is a list of field names (e.g. "GcsDestination") to
  6262  	// unconditionally include in API requests. By default, fields with empty or
  6263  	// default values are omitted from API requests. See
  6264  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6265  	// details.
  6266  	ForceSendFields []string `json:"-"`
  6267  	// NullFields is a list of field names (e.g. "GcsDestination") to include in
  6268  	// API requests with the JSON null value. By default, fields with empty values
  6269  	// are omitted from API requests. See
  6270  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6271  	NullFields []string `json:"-"`
  6272  }
  6273  
  6274  func (s *QueryAccessibleDataRequest) MarshalJSON() ([]byte, error) {
  6275  	type NoMethod QueryAccessibleDataRequest
  6276  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6277  }
  6278  
  6279  // QueryAccessibleDataResponse: Response for successful QueryAccessibleData
  6280  // operations. This structure is included in the response upon operation
  6281  // completion.
  6282  type QueryAccessibleDataResponse struct {
  6283  	// GcsUris: List of files, each of which contains a list of data_id(s) that are
  6284  	// consented for a specified use in the request.
  6285  	GcsUris []string `json:"gcsUris,omitempty"`
  6286  	// ForceSendFields is a list of field names (e.g. "GcsUris") to unconditionally
  6287  	// include in API requests. By default, fields with empty or default values are
  6288  	// omitted from API requests. See
  6289  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6290  	// details.
  6291  	ForceSendFields []string `json:"-"`
  6292  	// NullFields is a list of field names (e.g. "GcsUris") to include in API
  6293  	// requests with the JSON null value. By default, fields with empty values are
  6294  	// omitted from API requests. See
  6295  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6296  	NullFields []string `json:"-"`
  6297  }
  6298  
  6299  func (s *QueryAccessibleDataResponse) MarshalJSON() ([]byte, error) {
  6300  	type NoMethod QueryAccessibleDataResponse
  6301  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6302  }
  6303  
  6304  // RecurseTag: Recursively apply DICOM de-id to tags nested in a sequence.
  6305  // Supported [Value Representation]
  6306  // (http://dicom.nema.org/medical/dicom/2018e/output/chtml/part05/sect_6.2.html#table_6.2-1):
  6307  // SQ
  6308  type RecurseTag struct {
  6309  }
  6310  
  6311  // RedactConfig: Define how to redact sensitive values. Default behaviour is
  6312  // erase. For example, "My name is Jane." becomes "My name is ."
  6313  type RedactConfig struct {
  6314  }
  6315  
  6316  // RegenUidTag: Replace UID with a new generated UID. Supported [Value
  6317  // Representation]
  6318  // (http://dicom.nema.org/medical/dicom/2018e/output/chtml/part05/sect_6.2.html#table_6.2-1):
  6319  // UI
  6320  type RegenUidTag struct {
  6321  }
  6322  
  6323  // RejectConsentRequest: Rejects the latest revision of the specified Consent
  6324  // by committing a new revision with `state` updated to `REJECTED`. If the
  6325  // latest revision of the given Consent is in the `REJECTED` state, no new
  6326  // revision is committed.
  6327  type RejectConsentRequest struct {
  6328  	// ConsentArtifact: Optional. The resource name of the Consent artifact that
  6329  	// contains documentation of the user's rejection of the draft Consent, of the
  6330  	// form
  6331  	// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentS
  6332  	// tores/{consent_store_id}/consentArtifacts/{consent_artifact_id}`. If the
  6333  	// draft Consent had a Consent artifact, this Consent artifact overwrites it.
  6334  	ConsentArtifact string `json:"consentArtifact,omitempty"`
  6335  	// ForceSendFields is a list of field names (e.g. "ConsentArtifact") to
  6336  	// unconditionally include in API requests. By default, fields with empty or
  6337  	// default values are omitted from API requests. See
  6338  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6339  	// details.
  6340  	ForceSendFields []string `json:"-"`
  6341  	// NullFields is a list of field names (e.g. "ConsentArtifact") to include in
  6342  	// API requests with the JSON null value. By default, fields with empty values
  6343  	// are omitted from API requests. See
  6344  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6345  	NullFields []string `json:"-"`
  6346  }
  6347  
  6348  func (s *RejectConsentRequest) MarshalJSON() ([]byte, error) {
  6349  	type NoMethod RejectConsentRequest
  6350  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6351  }
  6352  
  6353  // RemoveField: Remove field.
  6354  type RemoveField struct {
  6355  }
  6356  
  6357  // RemoveTag: Replace with empty tag.
  6358  type RemoveTag struct {
  6359  }
  6360  
  6361  // ReplaceWithInfoTypeConfig: When using the INSPECT_AND_TRANSFORM action, each
  6362  // match is replaced with the name of the info_type. For example, "My name is
  6363  // Jane" becomes "My name is [PERSON_NAME]." The TRANSFORM action is equivalent
  6364  // to redacting.
  6365  type ReplaceWithInfoTypeConfig struct {
  6366  }
  6367  
  6368  // ResetTag: Reset tag to a placeholder value.
  6369  type ResetTag struct {
  6370  }
  6371  
  6372  // ResourceAnnotation: Resource level annotation.
  6373  type ResourceAnnotation struct {
  6374  	// Label: A description of the annotation record.
  6375  	Label string `json:"label,omitempty"`
  6376  	// ForceSendFields is a list of field names (e.g. "Label") to unconditionally
  6377  	// include in API requests. By default, fields with empty or default values are
  6378  	// omitted from API requests. See
  6379  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6380  	// details.
  6381  	ForceSendFields []string `json:"-"`
  6382  	// NullFields is a list of field names (e.g. "Label") to include in API
  6383  	// requests with the JSON null value. By default, fields with empty values are
  6384  	// omitted from API requests. See
  6385  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6386  	NullFields []string `json:"-"`
  6387  }
  6388  
  6389  func (s *ResourceAnnotation) MarshalJSON() ([]byte, error) {
  6390  	type NoMethod ResourceAnnotation
  6391  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6392  }
  6393  
  6394  // Resources: A list of FHIR resources.
  6395  type Resources struct {
  6396  	// Resources: List of resources IDs. For example, "Patient/1234".
  6397  	Resources []string `json:"resources,omitempty"`
  6398  	// ForceSendFields is a list of field names (e.g. "Resources") to
  6399  	// unconditionally include in API requests. By default, fields with empty or
  6400  	// default values are omitted from API requests. See
  6401  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6402  	// details.
  6403  	ForceSendFields []string `json:"-"`
  6404  	// NullFields is a list of field names (e.g. "Resources") to include in API
  6405  	// requests with the JSON null value. By default, fields with empty values are
  6406  	// omitted from API requests. See
  6407  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6408  	NullFields []string `json:"-"`
  6409  }
  6410  
  6411  func (s *Resources) MarshalJSON() ([]byte, error) {
  6412  	type NoMethod Resources
  6413  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6414  }
  6415  
  6416  // Result: The consent evaluation result for a single `data_id`.
  6417  type Result struct {
  6418  	// ConsentDetails: The resource names of all evaluated Consents mapped to their
  6419  	// evaluation.
  6420  	ConsentDetails map[string]ConsentEvaluation `json:"consentDetails,omitempty"`
  6421  	// Consented: Whether the resource is consented for the given use.
  6422  	Consented bool `json:"consented,omitempty"`
  6423  	// DataId: The unique identifier of the evaluated resource.
  6424  	DataId string `json:"dataId,omitempty"`
  6425  	// ForceSendFields is a list of field names (e.g. "ConsentDetails") to
  6426  	// unconditionally include in API requests. By default, fields with empty or
  6427  	// default values are omitted from API requests. See
  6428  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6429  	// details.
  6430  	ForceSendFields []string `json:"-"`
  6431  	// NullFields is a list of field names (e.g. "ConsentDetails") to include in
  6432  	// API requests with the JSON null value. By default, fields with empty values
  6433  	// are omitted from API requests. See
  6434  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6435  	NullFields []string `json:"-"`
  6436  }
  6437  
  6438  func (s *Result) MarshalJSON() ([]byte, error) {
  6439  	type NoMethod Result
  6440  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6441  }
  6442  
  6443  // RevokeConsentRequest: Revokes the latest revision of the specified Consent
  6444  // by committing a new revision with `state` updated to `REVOKED`. If the
  6445  // latest revision of the given Consent is in the `REVOKED` state, no new
  6446  // revision is committed.
  6447  type RevokeConsentRequest struct {
  6448  	// ConsentArtifact: Optional. The resource name of the Consent artifact that
  6449  	// contains proof of the user's revocation of the Consent, of the form
  6450  	// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentS
  6451  	// tores/{consent_store_id}/consentArtifacts/{consent_artifact_id}`.
  6452  	ConsentArtifact string `json:"consentArtifact,omitempty"`
  6453  	// ForceSendFields is a list of field names (e.g. "ConsentArtifact") to
  6454  	// unconditionally include in API requests. By default, fields with empty or
  6455  	// default values are omitted from API requests. See
  6456  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6457  	// details.
  6458  	ForceSendFields []string `json:"-"`
  6459  	// NullFields is a list of field names (e.g. "ConsentArtifact") to include in
  6460  	// API requests with the JSON null value. By default, fields with empty values
  6461  	// are omitted from API requests. See
  6462  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6463  	NullFields []string `json:"-"`
  6464  }
  6465  
  6466  func (s *RevokeConsentRequest) MarshalJSON() ([]byte, error) {
  6467  	type NoMethod RevokeConsentRequest
  6468  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6469  }
  6470  
  6471  // RollbackFhirResourceFilteringFields: Filters to select resources that need
  6472  // to be rolled back.
  6473  type RollbackFhirResourceFilteringFields struct {
  6474  	// MetadataFilter: Optional. A filter expression that matches data in the
  6475  	// `Resource.meta` element. Supports all filters in AIP-160
  6476  	// (https://google.aip.dev/160) except the "has" (`:`) operator. Supports the
  6477  	// following custom functions: * `tag("") = "" for tag filtering. *
  6478  	// `extension_value_ts("") = ` for filtering extensions with a timestamp, where
  6479  	// `` is a Unix timestamp. Supports the `>`, `<`, `<=`, `>=`, and `!=`
  6480  	// comparison operators.
  6481  	MetadataFilter string `json:"metadataFilter,omitempty"`
  6482  	// OperationIds: Optional. A list of operation IDs to roll back. Only changes
  6483  	// made by these operations will be rolled back.
  6484  	OperationIds googleapi.Uint64s `json:"operationIds,omitempty"`
  6485  	// ForceSendFields is a list of field names (e.g. "MetadataFilter") to
  6486  	// unconditionally include in API requests. By default, fields with empty or
  6487  	// default values are omitted from API requests. See
  6488  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6489  	// details.
  6490  	ForceSendFields []string `json:"-"`
  6491  	// NullFields is a list of field names (e.g. "MetadataFilter") to include in
  6492  	// API requests with the JSON null value. By default, fields with empty values
  6493  	// are omitted from API requests. See
  6494  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6495  	NullFields []string `json:"-"`
  6496  }
  6497  
  6498  func (s *RollbackFhirResourceFilteringFields) MarshalJSON() ([]byte, error) {
  6499  	type NoMethod RollbackFhirResourceFilteringFields
  6500  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6501  }
  6502  
  6503  // RollbackFhirResourcesRequest: Request to roll back resources.
  6504  type RollbackFhirResourcesRequest struct {
  6505  	// ChangeType: Optional. CREATE/UPDATE/DELETE/ALL for reverting all txns of a
  6506  	// certain type.
  6507  	//
  6508  	// Possible values:
  6509  	//   "CHANGE_TYPE_UNSPECIFIED" - When unspecified, revert all transactions
  6510  	//   "ALL" - All transactions
  6511  	//   "CREATE" - Revert only CREATE transactions
  6512  	//   "UPDATE" - Revert only Update transactions
  6513  	//   "DELETE" - Revert only Delete transactions
  6514  	ChangeType string `json:"changeType,omitempty"`
  6515  	// ExcludeRollbacks: Optional. Specifies whether to exclude earlier rollbacks.
  6516  	ExcludeRollbacks bool `json:"excludeRollbacks,omitempty"`
  6517  	// FilteringFields: Optional. Tag represents fields that HDE needs to identify
  6518  	// resources that will be reverted. Parameters for filtering resources
  6519  	FilteringFields *RollbackFhirResourceFilteringFields `json:"filteringFields,omitempty"`
  6520  	// Force: Optional. When enabled, changes will be reverted without explicit
  6521  	// confirmation
  6522  	Force bool `json:"force,omitempty"`
  6523  	// InputGcsObject: Optional. Cloud Storage object containing list of
  6524  	// {resourceType}/{resourceId} lines, identifying resources to be reverted
  6525  	InputGcsObject string `json:"inputGcsObject,omitempty"`
  6526  	// ResultGcsBucket: Required. Bucket to deposit result
  6527  	ResultGcsBucket string `json:"resultGcsBucket,omitempty"`
  6528  	// RollbackTime: Required. Time point to rollback to.
  6529  	RollbackTime string `json:"rollbackTime,omitempty"`
  6530  	// Type: Optional. If specified, revert only resources of these types
  6531  	Type []string `json:"type,omitempty"`
  6532  	// ForceSendFields is a list of field names (e.g. "ChangeType") to
  6533  	// unconditionally include in API requests. By default, fields with empty or
  6534  	// default values are omitted from API requests. See
  6535  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6536  	// details.
  6537  	ForceSendFields []string `json:"-"`
  6538  	// NullFields is a list of field names (e.g. "ChangeType") to include in API
  6539  	// requests with the JSON null value. By default, fields with empty values are
  6540  	// omitted from API requests. See
  6541  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6542  	NullFields []string `json:"-"`
  6543  }
  6544  
  6545  func (s *RollbackFhirResourcesRequest) MarshalJSON() ([]byte, error) {
  6546  	type NoMethod RollbackFhirResourcesRequest
  6547  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6548  }
  6549  
  6550  // RollbackFhirResourcesResponse: Final response of rollback FHIR resources
  6551  // request.
  6552  type RollbackFhirResourcesResponse struct {
  6553  	// FhirStore: The name of the FHIR store to rollback, in the format of
  6554  	// "projects/{project_id}/locations/{location_id}/datasets/{dataset_id}
  6555  	// /fhirStores/{fhir_store_id}".
  6556  	FhirStore string `json:"fhirStore,omitempty"`
  6557  	// ForceSendFields is a list of field names (e.g. "FhirStore") to
  6558  	// unconditionally include in API requests. By default, fields with empty or
  6559  	// default values are omitted from API requests. See
  6560  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6561  	// details.
  6562  	ForceSendFields []string `json:"-"`
  6563  	// NullFields is a list of field names (e.g. "FhirStore") to include in API
  6564  	// requests with the JSON null value. By default, fields with empty values are
  6565  	// omitted from API requests. See
  6566  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6567  	NullFields []string `json:"-"`
  6568  }
  6569  
  6570  func (s *RollbackFhirResourcesResponse) MarshalJSON() ([]byte, error) {
  6571  	type NoMethod RollbackFhirResourcesResponse
  6572  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6573  }
  6574  
  6575  // SchemaConfig: Configuration for the FHIR BigQuery schema. Determines how the
  6576  // server generates the schema.
  6577  type SchemaConfig struct {
  6578  	// LastUpdatedPartitionConfig: The configuration for exported BigQuery tables
  6579  	// to be partitioned by FHIR resource's last updated time column.
  6580  	LastUpdatedPartitionConfig *TimePartitioning `json:"lastUpdatedPartitionConfig,omitempty"`
  6581  	// RecursiveStructureDepth: The depth for all recursive structures in the
  6582  	// output analytics schema. For example, `concept` in the CodeSystem resource
  6583  	// is a recursive structure; when the depth is 2, the CodeSystem table will
  6584  	// have a column called `concept.concept` but not `concept.concept.concept`. If
  6585  	// not specified or set to 0, the server will use the default value 2. The
  6586  	// maximum depth allowed is 5.
  6587  	RecursiveStructureDepth int64 `json:"recursiveStructureDepth,omitempty,string"`
  6588  	// SchemaType: Specifies the output schema type. Schema type is required.
  6589  	//
  6590  	// Possible values:
  6591  	//   "SCHEMA_TYPE_UNSPECIFIED" - No schema type specified. This type is
  6592  	// unsupported.
  6593  	//   "LOSSLESS" - A data-driven schema generated from the fields present in the
  6594  	// FHIR data being exported, with no additional simplification. This type
  6595  	// cannot be used for streaming to BigQuery.
  6596  	//   "ANALYTICS" - Analytics schema defined by the FHIR community. See
  6597  	// https://github.com/FHIR/sql-on-fhir/blob/master/sql-on-fhir.md. BigQuery
  6598  	// only allows a maximum of 10,000 columns per table. Due to this limitation,
  6599  	// the server will not generate schemas for fields of type `Resource`, which
  6600  	// can hold any resource type. The affected fields are
  6601  	// `Parameters.parameter.resource`, `Bundle.entry.resource`, and
  6602  	// `Bundle.entry.response.outcome`. Analytics schema does not gracefully handle
  6603  	// extensions with one or more occurrences, anaytics schema also does not
  6604  	// handle contained resource. Additionally, extensions with a URL ending in
  6605  	// "/{existing_resource_field_name}" may cause undefined behavior.
  6606  	//   "ANALYTICS_V2" - Analytics V2, similar to schema defined by the FHIR
  6607  	// community, with added support for extensions with one or more occurrences
  6608  	// and contained resources in stringified JSON. Extensions with a URL ending in
  6609  	// "/{existing_resource_field_name}" will cause conflict and prevent the
  6610  	// resource from being sent to BigQuery. Analytics V2 uses more space in the
  6611  	// destination table than Analytics V1. It is generally recommended to use
  6612  	// Analytics V2 over Analytics.
  6613  	SchemaType string `json:"schemaType,omitempty"`
  6614  	// ForceSendFields is a list of field names (e.g. "LastUpdatedPartitionConfig")
  6615  	// to unconditionally include in API requests. By default, fields with empty or
  6616  	// default values are omitted from API requests. See
  6617  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6618  	// details.
  6619  	ForceSendFields []string `json:"-"`
  6620  	// NullFields is a list of field names (e.g. "LastUpdatedPartitionConfig") to
  6621  	// include in API requests with the JSON null value. By default, fields with
  6622  	// empty values are omitted from API requests. See
  6623  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6624  	NullFields []string `json:"-"`
  6625  }
  6626  
  6627  func (s *SchemaConfig) MarshalJSON() ([]byte, error) {
  6628  	type NoMethod SchemaConfig
  6629  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6630  }
  6631  
  6632  // SchemaGroup: An HL7v2 logical group construct.
  6633  type SchemaGroup struct {
  6634  	// Choice: True indicates that this is a choice group, meaning that only one of
  6635  	// its segments can exist in a given message.
  6636  	Choice bool `json:"choice,omitempty"`
  6637  	// MaxOccurs: The maximum number of times this group can be repeated. 0 or -1
  6638  	// means unbounded.
  6639  	MaxOccurs int64 `json:"maxOccurs,omitempty"`
  6640  	// Members: Nested groups and/or segments.
  6641  	Members []*GroupOrSegment `json:"members,omitempty"`
  6642  	// MinOccurs: The minimum number of times this group must be present/repeated.
  6643  	MinOccurs int64 `json:"minOccurs,omitempty"`
  6644  	// Name: The name of this group. For example, "ORDER_DETAIL".
  6645  	Name string `json:"name,omitempty"`
  6646  	// ForceSendFields is a list of field names (e.g. "Choice") to unconditionally
  6647  	// include in API requests. By default, fields with empty or default values are
  6648  	// omitted from API requests. See
  6649  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6650  	// details.
  6651  	ForceSendFields []string `json:"-"`
  6652  	// NullFields is a list of field names (e.g. "Choice") to include in API
  6653  	// requests with the JSON null value. By default, fields with empty values are
  6654  	// omitted from API requests. See
  6655  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6656  	NullFields []string `json:"-"`
  6657  }
  6658  
  6659  func (s *SchemaGroup) MarshalJSON() ([]byte, error) {
  6660  	type NoMethod SchemaGroup
  6661  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6662  }
  6663  
  6664  // SchemaPackage: A schema package contains a set of schemas and type
  6665  // definitions.
  6666  type SchemaPackage struct {
  6667  	// IgnoreMinOccurs: Flag to ignore all min_occurs restrictions in the schema.
  6668  	// This means that incoming messages can omit any group, segment, field,
  6669  	// component, or subcomponent.
  6670  	IgnoreMinOccurs bool `json:"ignoreMinOccurs,omitempty"`
  6671  	// Schemas: Schema configs that are layered based on their VersionSources that
  6672  	// match the incoming message. Schema configs present in higher indices
  6673  	// override those in lower indices with the same message type and trigger event
  6674  	// if their VersionSources all match an incoming message.
  6675  	Schemas []*Hl7SchemaConfig `json:"schemas,omitempty"`
  6676  	// SchematizedParsingType: Determines how messages that fail to parse are
  6677  	// handled.
  6678  	//
  6679  	// Possible values:
  6680  	//   "SCHEMATIZED_PARSING_TYPE_UNSPECIFIED" - Unspecified schematized parsing
  6681  	// type, equivalent to `SOFT_FAIL`.
  6682  	//   "SOFT_FAIL" - Messages that fail to parse are still stored and ACKed but a
  6683  	// parser error is stored in place of the schematized data.
  6684  	//   "HARD_FAIL" - Messages that fail to parse are rejected from
  6685  	// ingestion/insertion and return an error code.
  6686  	SchematizedParsingType string `json:"schematizedParsingType,omitempty"`
  6687  	// Types: Schema type definitions that are layered based on their
  6688  	// VersionSources that match the incoming message. Type definitions present in
  6689  	// higher indices override those in lower indices with the same type name if
  6690  	// their VersionSources all match an incoming message.
  6691  	Types []*Hl7TypesConfig `json:"types,omitempty"`
  6692  	// UnexpectedSegmentHandling: Determines how unexpected segments (segments not
  6693  	// matched to the schema) are handled.
  6694  	//
  6695  	// Possible values:
  6696  	//   "UNEXPECTED_SEGMENT_HANDLING_MODE_UNSPECIFIED" - Unspecified handling
  6697  	// mode, equivalent to FAIL.
  6698  	//   "FAIL" - Unexpected segments fail to parse and return an error.
  6699  	//   "SKIP" - Unexpected segments do not fail, but are omitted from the output.
  6700  	//   "PARSE" - Unexpected segments do not fail, but are parsed in place and
  6701  	// added to the current group. If a segment has a type definition, it is used,
  6702  	// otherwise it is parsed as VARIES.
  6703  	UnexpectedSegmentHandling string `json:"unexpectedSegmentHandling,omitempty"`
  6704  	// ForceSendFields is a list of field names (e.g. "IgnoreMinOccurs") to
  6705  	// unconditionally include in API requests. By default, fields with empty or
  6706  	// default values are omitted from API requests. See
  6707  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6708  	// details.
  6709  	ForceSendFields []string `json:"-"`
  6710  	// NullFields is a list of field names (e.g. "IgnoreMinOccurs") to include in
  6711  	// API requests with the JSON null value. By default, fields with empty values
  6712  	// are omitted from API requests. See
  6713  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6714  	NullFields []string `json:"-"`
  6715  }
  6716  
  6717  func (s *SchemaPackage) MarshalJSON() ([]byte, error) {
  6718  	type NoMethod SchemaPackage
  6719  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6720  }
  6721  
  6722  // SchemaSegment: An HL7v2 Segment.
  6723  type SchemaSegment struct {
  6724  	// MaxOccurs: The maximum number of times this segment can be present in this
  6725  	// group. 0 or -1 means unbounded.
  6726  	MaxOccurs int64 `json:"maxOccurs,omitempty"`
  6727  	// MinOccurs: The minimum number of times this segment can be present in this
  6728  	// group.
  6729  	MinOccurs int64 `json:"minOccurs,omitempty"`
  6730  	// Type: The Segment type. For example, "PID".
  6731  	Type string `json:"type,omitempty"`
  6732  	// ForceSendFields is a list of field names (e.g. "MaxOccurs") to
  6733  	// unconditionally include in API requests. By default, fields with empty or
  6734  	// default values are omitted from API requests. See
  6735  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6736  	// details.
  6737  	ForceSendFields []string `json:"-"`
  6738  	// NullFields is a list of field names (e.g. "MaxOccurs") to include in API
  6739  	// requests with the JSON null value. By default, fields with empty values are
  6740  	// omitted from API requests. See
  6741  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6742  	NullFields []string `json:"-"`
  6743  }
  6744  
  6745  func (s *SchemaSegment) MarshalJSON() ([]byte, error) {
  6746  	type NoMethod SchemaSegment
  6747  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6748  }
  6749  
  6750  // SchematizedData: The content of an HL7v2 message in a structured format as
  6751  // specified by a schema.
  6752  type SchematizedData struct {
  6753  	// Data: JSON output of the parser.
  6754  	Data string `json:"data,omitempty"`
  6755  	// Error: The error output of the parser.
  6756  	Error string `json:"error,omitempty"`
  6757  	// ForceSendFields is a list of field names (e.g. "Data") to unconditionally
  6758  	// include in API requests. By default, fields with empty or default values are
  6759  	// omitted from API requests. See
  6760  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6761  	// details.
  6762  	ForceSendFields []string `json:"-"`
  6763  	// NullFields is a list of field names (e.g. "Data") to include in API requests
  6764  	// with the JSON null value. By default, fields with empty values are omitted
  6765  	// from API requests. See
  6766  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6767  	NullFields []string `json:"-"`
  6768  }
  6769  
  6770  func (s *SchematizedData) MarshalJSON() ([]byte, error) {
  6771  	type NoMethod SchematizedData
  6772  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6773  }
  6774  
  6775  // SearchConfig: Contains the configuration for FHIR search.
  6776  type SearchConfig struct {
  6777  	// SearchParameters: A list of search parameters in this FHIR store that are
  6778  	// used to configure this FHIR store.
  6779  	SearchParameters []*SearchParameter `json:"searchParameters,omitempty"`
  6780  	// ForceSendFields is a list of field names (e.g. "SearchParameters") to
  6781  	// unconditionally include in API requests. By default, fields with empty or
  6782  	// default values are omitted from API requests. See
  6783  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6784  	// details.
  6785  	ForceSendFields []string `json:"-"`
  6786  	// NullFields is a list of field names (e.g. "SearchParameters") to include in
  6787  	// API requests with the JSON null value. By default, fields with empty values
  6788  	// are omitted from API requests. See
  6789  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6790  	NullFields []string `json:"-"`
  6791  }
  6792  
  6793  func (s *SearchConfig) MarshalJSON() ([]byte, error) {
  6794  	type NoMethod SearchConfig
  6795  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6796  }
  6797  
  6798  // SearchParameter: Contains the versioned name and the URL for one
  6799  // SearchParameter.
  6800  type SearchParameter struct {
  6801  	// CanonicalUrl: The canonical url of the search parameter resource.
  6802  	CanonicalUrl string `json:"canonicalUrl,omitempty"`
  6803  	// Parameter: The versioned name of the search parameter resource. The format
  6804  	// is
  6805  	// projects/{project-id}/locations/{location}/datasets/{dataset-id}/fhirStores/{
  6806  	// fhirStore-id}/fhir/SearchParameter/{resource-id}/_history/{version-id} For
  6807  	// fhir stores with disable_resource_versioning=true, the format is
  6808  	// projects/{project-id}/locations/{location}/datasets/{dataset-id}/fhirStores/{
  6809  	// fhirStore-id}/fhir/SearchParameter/{resource-id}/
  6810  	Parameter string `json:"parameter,omitempty"`
  6811  	// ForceSendFields is a list of field names (e.g. "CanonicalUrl") to
  6812  	// unconditionally include in API requests. By default, fields with empty or
  6813  	// default values are omitted from API requests. See
  6814  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6815  	// details.
  6816  	ForceSendFields []string `json:"-"`
  6817  	// NullFields is a list of field names (e.g. "CanonicalUrl") to include in API
  6818  	// requests with the JSON null value. By default, fields with empty values are
  6819  	// omitted from API requests. See
  6820  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6821  	NullFields []string `json:"-"`
  6822  }
  6823  
  6824  func (s *SearchParameter) MarshalJSON() ([]byte, error) {
  6825  	type NoMethod SearchParameter
  6826  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6827  }
  6828  
  6829  // SearchResourcesRequest: Request to search the resources in the specified
  6830  // FHIR store.
  6831  type SearchResourcesRequest struct {
  6832  	// ResourceType: Required. The FHIR resource type to search, such as Patient or
  6833  	// Observation. For a complete list, see the FHIR Resource Index (DSTU2
  6834  	// (https://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), STU3
  6835  	// (https://hl7.org/implement/standards/fhir/STU3/resourcelist.html), R4
  6836  	// (https://hl7.org/implement/standards/fhir/R4/resourcelist.html)).
  6837  	ResourceType string `json:"resourceType,omitempty"`
  6838  	// ForceSendFields is a list of field names (e.g. "ResourceType") to
  6839  	// unconditionally include in API requests. By default, fields with empty or
  6840  	// default values are omitted from API requests. See
  6841  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6842  	// details.
  6843  	ForceSendFields []string `json:"-"`
  6844  	// NullFields is a list of field names (e.g. "ResourceType") to include in API
  6845  	// requests with the JSON null value. By default, fields with empty values are
  6846  	// omitted from API requests. See
  6847  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6848  	NullFields []string `json:"-"`
  6849  }
  6850  
  6851  func (s *SearchResourcesRequest) MarshalJSON() ([]byte, error) {
  6852  	type NoMethod SearchResourcesRequest
  6853  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6854  }
  6855  
  6856  // Segment: A segment in a structured format.
  6857  type Segment struct {
  6858  	// Fields: A mapping from the positional location to the value. The key string
  6859  	// uses zero-based indexes separated by dots to identify Fields, components and
  6860  	// sub-components. A bracket notation is also used to identify different
  6861  	// instances of a repeated field. Regex for key: (\d+)(\[\d+\])?(.\d+)?(.\d+)?
  6862  	// Examples of (key, value) pairs: * (0.1, "hemoglobin") denotes that the first
  6863  	// component of Field 0 has the value "hemoglobin". * (1.1.2, "CBC") denotes
  6864  	// that the second sub-component of the first component of Field 1 has the
  6865  	// value "CBC". * (1[0].1, "HbA1c") denotes that the first component of the
  6866  	// first Instance of Field 1, which is repeated, has the value "HbA1c".
  6867  	Fields map[string]string `json:"fields,omitempty"`
  6868  	// SegmentId: A string that indicates the type of segment. For example, EVN or
  6869  	// PID.
  6870  	SegmentId string `json:"segmentId,omitempty"`
  6871  	// SetId: Set ID for segments that can be in a set. This can be empty if it's
  6872  	// missing or isn't applicable.
  6873  	SetId string `json:"setId,omitempty"`
  6874  	// ForceSendFields is a list of field names (e.g. "Fields") to unconditionally
  6875  	// include in API requests. By default, fields with empty or default values are
  6876  	// omitted from API requests. See
  6877  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6878  	// details.
  6879  	ForceSendFields []string `json:"-"`
  6880  	// NullFields is a list of field names (e.g. "Fields") to include in API
  6881  	// requests with the JSON null value. By default, fields with empty values are
  6882  	// omitted from API requests. See
  6883  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6884  	NullFields []string `json:"-"`
  6885  }
  6886  
  6887  func (s *Segment) MarshalJSON() ([]byte, error) {
  6888  	type NoMethod Segment
  6889  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6890  }
  6891  
  6892  // SensitiveTextAnnotation: A TextAnnotation specifies a text range that
  6893  // includes sensitive information.
  6894  type SensitiveTextAnnotation struct {
  6895  	// Details: Maps from a resource slice. For example, FHIR resource field path
  6896  	// to a set of sensitive text findings. For example, Appointment.Narrative
  6897  	// text1 --> {findings_1, findings_2, findings_3}
  6898  	Details map[string]Detail `json:"details,omitempty"`
  6899  	// ForceSendFields is a list of field names (e.g. "Details") to unconditionally
  6900  	// include in API requests. By default, fields with empty or default values are
  6901  	// omitted from API requests. See
  6902  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6903  	// details.
  6904  	ForceSendFields []string `json:"-"`
  6905  	// NullFields is a list of field names (e.g. "Details") to include in API
  6906  	// requests with the JSON null value. By default, fields with empty values are
  6907  	// omitted from API requests. See
  6908  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6909  	NullFields []string `json:"-"`
  6910  }
  6911  
  6912  func (s *SensitiveTextAnnotation) MarshalJSON() ([]byte, error) {
  6913  	type NoMethod SensitiveTextAnnotation
  6914  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6915  }
  6916  
  6917  // SeriesMetrics: SeriesMetrics contains metrics describing a DICOM series.
  6918  type SeriesMetrics struct {
  6919  	// BlobStorageSizeBytes: Total blob storage bytes for all instances in the
  6920  	// series.
  6921  	BlobStorageSizeBytes int64 `json:"blobStorageSizeBytes,omitempty,string"`
  6922  	// InstanceCount: Number of instances in the series.
  6923  	InstanceCount int64 `json:"instanceCount,omitempty,string"`
  6924  	// Series: The series resource path. For example,
  6925  	// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomSto
  6926  	// res/{dicom_store_id}/dicomWeb/studies/{study_uid}/series/{series_uid}`.
  6927  	Series string `json:"series,omitempty"`
  6928  	// StructuredStorageSizeBytes: Total structured storage bytes for all instances
  6929  	// in the series.
  6930  	StructuredStorageSizeBytes int64 `json:"structuredStorageSizeBytes,omitempty,string"`
  6931  
  6932  	// ServerResponse contains the HTTP response code and headers from the server.
  6933  	googleapi.ServerResponse `json:"-"`
  6934  	// ForceSendFields is a list of field names (e.g. "BlobStorageSizeBytes") to
  6935  	// unconditionally include in API requests. By default, fields with empty or
  6936  	// default values are omitted from API requests. See
  6937  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6938  	// details.
  6939  	ForceSendFields []string `json:"-"`
  6940  	// NullFields is a list of field names (e.g. "BlobStorageSizeBytes") to include
  6941  	// in API requests with the JSON null value. By default, fields with empty
  6942  	// values are omitted from API requests. See
  6943  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6944  	NullFields []string `json:"-"`
  6945  }
  6946  
  6947  func (s *SeriesMetrics) MarshalJSON() ([]byte, error) {
  6948  	type NoMethod SeriesMetrics
  6949  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6950  }
  6951  
  6952  // SetBlobStorageSettingsRequest: Request message for `SetBlobStorageSettings`
  6953  // method.
  6954  type SetBlobStorageSettingsRequest struct {
  6955  	// BlobStorageSettings: The blob storage settings to update for the specified
  6956  	// resources. Only fields listed in `update_mask` are applied.
  6957  	BlobStorageSettings *BlobStorageSettings `json:"blobStorageSettings,omitempty"`
  6958  	// FilterConfig: Optional. A filter configuration. If `filter_config` is
  6959  	// specified, set the value of `resource` to the resource name of a DICOM store
  6960  	// in the format
  6961  	// `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStores
  6962  	// /{dicomStoreID}`.
  6963  	FilterConfig *DicomFilterConfig `json:"filterConfig,omitempty"`
  6964  	// ForceSendFields is a list of field names (e.g. "BlobStorageSettings") to
  6965  	// unconditionally include in API requests. By default, fields with empty or
  6966  	// default values are omitted from API requests. See
  6967  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6968  	// details.
  6969  	ForceSendFields []string `json:"-"`
  6970  	// NullFields is a list of field names (e.g. "BlobStorageSettings") to include
  6971  	// in API requests with the JSON null value. By default, fields with empty
  6972  	// values are omitted from API requests. See
  6973  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6974  	NullFields []string `json:"-"`
  6975  }
  6976  
  6977  func (s *SetBlobStorageSettingsRequest) MarshalJSON() ([]byte, error) {
  6978  	type NoMethod SetBlobStorageSettingsRequest
  6979  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6980  }
  6981  
  6982  // SetBlobStorageSettingsResponse: Returns additional info in regards to a
  6983  // completed set blob storage settings API.
  6984  type SetBlobStorageSettingsResponse struct {
  6985  }
  6986  
  6987  // SetIamPolicyRequest: Request message for `SetIamPolicy` method.
  6988  type SetIamPolicyRequest struct {
  6989  	// Policy: REQUIRED: The complete policy to be applied to the `resource`. The
  6990  	// size of the policy is limited to a few 10s of KB. An empty policy is a valid
  6991  	// policy but certain Google Cloud services (such as Projects) might reject
  6992  	// them.
  6993  	Policy *Policy `json:"policy,omitempty"`
  6994  	// UpdateMask: OPTIONAL: A FieldMask specifying which fields of the policy to
  6995  	// modify. Only the fields in the mask will be modified. If no mask is
  6996  	// provided, the following default mask is used: `paths: "bindings, etag"
  6997  	UpdateMask string `json:"updateMask,omitempty"`
  6998  	// ForceSendFields is a list of field names (e.g. "Policy") to unconditionally
  6999  	// include in API requests. By default, fields with empty or default values are
  7000  	// omitted from API requests. See
  7001  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7002  	// details.
  7003  	ForceSendFields []string `json:"-"`
  7004  	// NullFields is a list of field names (e.g. "Policy") to include in API
  7005  	// requests with the JSON null value. By default, fields with empty values are
  7006  	// omitted from API requests. See
  7007  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7008  	NullFields []string `json:"-"`
  7009  }
  7010  
  7011  func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
  7012  	type NoMethod SetIamPolicyRequest
  7013  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7014  }
  7015  
  7016  // Signature: User signature.
  7017  type Signature struct {
  7018  	// Image: Optional. An image of the user's signature.
  7019  	Image *Image `json:"image,omitempty"`
  7020  	// Metadata: Optional. Metadata associated with the user's signature. For
  7021  	// example, the user's name or the user's title.
  7022  	Metadata map[string]string `json:"metadata,omitempty"`
  7023  	// SignatureTime: Optional. Timestamp of the signature.
  7024  	SignatureTime string `json:"signatureTime,omitempty"`
  7025  	// UserId: Required. User's UUID provided by the client.
  7026  	UserId string `json:"userId,omitempty"`
  7027  	// ForceSendFields is a list of field names (e.g. "Image") to unconditionally
  7028  	// include in API requests. By default, fields with empty or default values are
  7029  	// omitted from API requests. See
  7030  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7031  	// details.
  7032  	ForceSendFields []string `json:"-"`
  7033  	// NullFields is a list of field names (e.g. "Image") to include in API
  7034  	// requests with the JSON null value. By default, fields with empty values are
  7035  	// omitted from API requests. See
  7036  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7037  	NullFields []string `json:"-"`
  7038  }
  7039  
  7040  func (s *Signature) MarshalJSON() ([]byte, error) {
  7041  	type NoMethod Signature
  7042  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7043  }
  7044  
  7045  // Status: The `Status` type defines a logical error model that is suitable for
  7046  // different programming environments, including REST APIs and RPC APIs. It is
  7047  // used by gRPC (https://github.com/grpc). Each `Status` message contains three
  7048  // pieces of data: error code, error message, and error details. You can find
  7049  // out more about this error model and how to work with it in the API Design
  7050  // Guide (https://cloud.google.com/apis/design/errors).
  7051  type Status struct {
  7052  	// Code: The status code, which should be an enum value of google.rpc.Code.
  7053  	Code int64 `json:"code,omitempty"`
  7054  	// Details: A list of messages that carry the error details. There is a common
  7055  	// set of message types for APIs to use.
  7056  	Details []googleapi.RawMessage `json:"details,omitempty"`
  7057  	// Message: A developer-facing error message, which should be in English. Any
  7058  	// user-facing error message should be localized and sent in the
  7059  	// google.rpc.Status.details field, or localized by the client.
  7060  	Message string `json:"message,omitempty"`
  7061  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  7062  	// include in API requests. By default, fields with empty or default values are
  7063  	// omitted from API requests. See
  7064  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7065  	// details.
  7066  	ForceSendFields []string `json:"-"`
  7067  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  7068  	// with the JSON null value. By default, fields with empty values are omitted
  7069  	// from API requests. See
  7070  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7071  	NullFields []string `json:"-"`
  7072  }
  7073  
  7074  func (s *Status) MarshalJSON() ([]byte, error) {
  7075  	type NoMethod Status
  7076  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7077  }
  7078  
  7079  // StorageInfo: StorageInfo encapsulates all the storage info of a resource.
  7080  type StorageInfo struct {
  7081  	// BlobStorageInfo: Info about the data stored in blob storage for the
  7082  	// resource.
  7083  	BlobStorageInfo *BlobStorageInfo `json:"blobStorageInfo,omitempty"`
  7084  	// ReferencedResource: The resource whose storage info is returned. For
  7085  	// example, to specify the resource path of a DICOM Instance:
  7086  	// `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStores
  7087  	// /{dicom_store_id}/dicomWeb/studi/{study_uid}/series/{series_uid}/instances/{i
  7088  	// nstance_uid}`
  7089  	ReferencedResource string `json:"referencedResource,omitempty"`
  7090  	// StructuredStorageInfo: Info about the data stored in structured storage for
  7091  	// the resource.
  7092  	StructuredStorageInfo *StructuredStorageInfo `json:"structuredStorageInfo,omitempty"`
  7093  
  7094  	// ServerResponse contains the HTTP response code and headers from the server.
  7095  	googleapi.ServerResponse `json:"-"`
  7096  	// ForceSendFields is a list of field names (e.g. "BlobStorageInfo") to
  7097  	// unconditionally include in API requests. By default, fields with empty or
  7098  	// default values are omitted from API requests. See
  7099  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7100  	// details.
  7101  	ForceSendFields []string `json:"-"`
  7102  	// NullFields is a list of field names (e.g. "BlobStorageInfo") to include in
  7103  	// API requests with the JSON null value. By default, fields with empty values
  7104  	// are omitted from API requests. See
  7105  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7106  	NullFields []string `json:"-"`
  7107  }
  7108  
  7109  func (s *StorageInfo) MarshalJSON() ([]byte, error) {
  7110  	type NoMethod StorageInfo
  7111  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7112  }
  7113  
  7114  // StreamConfig: Contains configuration for streaming FHIR export.
  7115  type StreamConfig struct {
  7116  	// BigqueryDestination: The destination BigQuery structure that contains both
  7117  	// the dataset location and corresponding schema config. The output is
  7118  	// organized in one table per resource type. The server reuses the existing
  7119  	// tables (if any) that are named after the resource types, e.g. "Patient",
  7120  	// "Observation". When there is no existing table for a given resource type,
  7121  	// the server attempts to create one. When a table schema doesn't align with
  7122  	// the schema config, either because of existing incompatible schema or out of
  7123  	// band incompatible modification, the server does not stream in new data. One
  7124  	// resolution in this case is to delete the incompatible table and let the
  7125  	// server recreate one, though the newly created table only contains data after
  7126  	// the table recreation. BigQuery imposes a 1 MB limit on streaming insert row
  7127  	// size, therefore any resource mutation that generates more than 1 MB of
  7128  	// BigQuery data will not be streamed. Results are written to BigQuery tables
  7129  	// according to the parameters in BigQueryDestination.WriteDisposition.
  7130  	// Different versions of the same resource are distinguishable by the
  7131  	// meta.versionId and meta.lastUpdated columns. The operation
  7132  	// (CREATE/UPDATE/DELETE) that results in the new version is recorded in the
  7133  	// meta.tag. The tables contain all historical resource versions since
  7134  	// streaming was enabled. For query convenience, the server also creates one
  7135  	// view per table of the same name containing only the current resource
  7136  	// version. The streamed data in the BigQuery dataset is not guaranteed to be
  7137  	// completely unique. The combination of the id and meta.versionId columns
  7138  	// should ideally identify a single unique row. But in rare cases, duplicates
  7139  	// may exist. At query time, users may use the SQL select statement to keep
  7140  	// only one of the duplicate rows given an id and meta.versionId pair.
  7141  	// Alternatively, the server created view mentioned above also filters out
  7142  	// duplicates. If a resource mutation cannot be streamed to BigQuery, errors
  7143  	// will be logged to Cloud Logging (see Viewing error logs in Cloud Logging
  7144  	// (https://cloud.google.com/healthcare/docs/how-tos/logging)).
  7145  	BigqueryDestination *GoogleCloudHealthcareV1beta1FhirBigQueryDestination `json:"bigqueryDestination,omitempty"`
  7146  	// DeidentifiedStoreDestination: The destination FHIR store for de-identified
  7147  	// resources. After this field is added, all subsequent creates/updates/patches
  7148  	// to the source store will be de-identified using the provided configuration
  7149  	// and applied to the destination store. Importing resources to the source
  7150  	// store will not trigger the streaming. If the source store already contains
  7151  	// resources when this option is enabled, those resources will not be copied to
  7152  	// the destination store unless they are subsequently updated. This may result
  7153  	// in invalid references in the destination store. Before adding this config,
  7154  	// you must grant the healthcare.fhirResources.update permission on the
  7155  	// destination store to your project's **Cloud Healthcare Service Agent**
  7156  	// service account
  7157  	// (https://cloud.google.com/healthcare/docs/how-tos/permissions-healthcare-api-gcp-products#the_cloud_healthcare_service_agent).
  7158  	// The destination store must set enable_update_create to true. The destination
  7159  	// store must have disable_referential_integrity set to true. If a resource
  7160  	// cannot be de-identified, errors will be logged to Cloud Logging (see Viewing
  7161  	// error logs in Cloud Logging
  7162  	// (https://cloud.google.com/healthcare/docs/how-tos/logging)).
  7163  	DeidentifiedStoreDestination *DeidentifiedStoreDestination `json:"deidentifiedStoreDestination,omitempty"`
  7164  	// ResourceTypes: Supply a FHIR resource type (such as "Patient" or
  7165  	// "Observation"). See https://www.hl7.org/fhir/valueset-resource-types.html
  7166  	// for a list of all FHIR resource types. The server treats an empty list as an
  7167  	// intent to stream all the supported resource types in this FHIR store.
  7168  	ResourceTypes []string `json:"resourceTypes,omitempty"`
  7169  	// ForceSendFields is a list of field names (e.g. "BigqueryDestination") to
  7170  	// unconditionally include in API requests. By default, fields with empty or
  7171  	// default values are omitted from API requests. See
  7172  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7173  	// details.
  7174  	ForceSendFields []string `json:"-"`
  7175  	// NullFields is a list of field names (e.g. "BigqueryDestination") to include
  7176  	// in API requests with the JSON null value. By default, fields with empty
  7177  	// values are omitted from API requests. See
  7178  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7179  	NullFields []string `json:"-"`
  7180  }
  7181  
  7182  func (s *StreamConfig) MarshalJSON() ([]byte, error) {
  7183  	type NoMethod StreamConfig
  7184  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7185  }
  7186  
  7187  // StructuredStorageInfo: StructuredStorageInfo contains details about the data
  7188  // stored in Structured Storage for the referenced resource.
  7189  type StructuredStorageInfo struct {
  7190  	// SizeBytes: Size in bytes of data stored in structured storage.
  7191  	SizeBytes int64 `json:"sizeBytes,omitempty,string"`
  7192  	// ForceSendFields is a list of field names (e.g. "SizeBytes") to
  7193  	// unconditionally include in API requests. By default, fields with empty or
  7194  	// default values are omitted from API requests. See
  7195  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7196  	// details.
  7197  	ForceSendFields []string `json:"-"`
  7198  	// NullFields is a list of field names (e.g. "SizeBytes") to include in API
  7199  	// requests with the JSON null value. By default, fields with empty values are
  7200  	// omitted from API requests. See
  7201  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7202  	NullFields []string `json:"-"`
  7203  }
  7204  
  7205  func (s *StructuredStorageInfo) MarshalJSON() ([]byte, error) {
  7206  	type NoMethod StructuredStorageInfo
  7207  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7208  }
  7209  
  7210  // StudyMetrics: StudyMetrics contains metrics describing a DICOM study.
  7211  type StudyMetrics struct {
  7212  	// BlobStorageSizeBytes: Total blob storage bytes for all instances in the
  7213  	// study.
  7214  	BlobStorageSizeBytes int64 `json:"blobStorageSizeBytes,omitempty,string"`
  7215  	// InstanceCount: Number of instances in the study.
  7216  	InstanceCount int64 `json:"instanceCount,omitempty,string"`
  7217  	// SeriesCount: Number of series in the study.
  7218  	SeriesCount int64 `json:"seriesCount,omitempty,string"`
  7219  	// StructuredStorageSizeBytes: Total structured storage bytes for all instances
  7220  	// in the study.
  7221  	StructuredStorageSizeBytes int64 `json:"structuredStorageSizeBytes,omitempty,string"`
  7222  	// Study: The study resource path. For example,
  7223  	// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomSto
  7224  	// res/{dicom_store_id}/dicomWeb/studies/{study_uid}`.
  7225  	Study string `json:"study,omitempty"`
  7226  
  7227  	// ServerResponse contains the HTTP response code and headers from the server.
  7228  	googleapi.ServerResponse `json:"-"`
  7229  	// ForceSendFields is a list of field names (e.g. "BlobStorageSizeBytes") to
  7230  	// unconditionally include in API requests. By default, fields with empty or
  7231  	// default values are omitted from API requests. See
  7232  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7233  	// details.
  7234  	ForceSendFields []string `json:"-"`
  7235  	// NullFields is a list of field names (e.g. "BlobStorageSizeBytes") to include
  7236  	// in API requests with the JSON null value. By default, fields with empty
  7237  	// values are omitted from API requests. See
  7238  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7239  	NullFields []string `json:"-"`
  7240  }
  7241  
  7242  func (s *StudyMetrics) MarshalJSON() ([]byte, error) {
  7243  	type NoMethod StudyMetrics
  7244  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7245  }
  7246  
  7247  // TagFilterList: List of tags to be filtered.
  7248  type TagFilterList struct {
  7249  	// Tags: Tags to be filtered. Tags must be DICOM Data Elements, File Meta
  7250  	// Elements, or Directory Structuring Elements, as defined at:
  7251  	// http://dicom.nema.org/medical/dicom/current/output/html/part06.html#table_6-1,.
  7252  	// They may be provided by "Keyword" or "Tag". For example, "PatientID",
  7253  	// "00100010".
  7254  	Tags []string `json:"tags,omitempty"`
  7255  	// ForceSendFields is a list of field names (e.g. "Tags") to unconditionally
  7256  	// include in API requests. By default, fields with empty or default values are
  7257  	// omitted from API requests. See
  7258  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7259  	// details.
  7260  	ForceSendFields []string `json:"-"`
  7261  	// NullFields is a list of field names (e.g. "Tags") to include in API requests
  7262  	// with the JSON null value. By default, fields with empty values are omitted
  7263  	// from API requests. See
  7264  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7265  	NullFields []string `json:"-"`
  7266  }
  7267  
  7268  func (s *TagFilterList) MarshalJSON() ([]byte, error) {
  7269  	type NoMethod TagFilterList
  7270  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7271  }
  7272  
  7273  // TestIamPermissionsRequest: Request message for `TestIamPermissions` method.
  7274  type TestIamPermissionsRequest struct {
  7275  	// Permissions: The set of permissions to check for the `resource`. Permissions
  7276  	// with wildcards (such as `*` or `storage.*`) are not allowed. For more
  7277  	// information see IAM Overview
  7278  	// (https://cloud.google.com/iam/docs/overview#permissions).
  7279  	Permissions []string `json:"permissions,omitempty"`
  7280  	// ForceSendFields is a list of field names (e.g. "Permissions") to
  7281  	// unconditionally include in API requests. By default, fields with empty or
  7282  	// default values are omitted from API requests. See
  7283  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7284  	// details.
  7285  	ForceSendFields []string `json:"-"`
  7286  	// NullFields is a list of field names (e.g. "Permissions") to include in API
  7287  	// requests with the JSON null value. By default, fields with empty values are
  7288  	// omitted from API requests. See
  7289  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7290  	NullFields []string `json:"-"`
  7291  }
  7292  
  7293  func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
  7294  	type NoMethod TestIamPermissionsRequest
  7295  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7296  }
  7297  
  7298  // TestIamPermissionsResponse: Response message for `TestIamPermissions`
  7299  // method.
  7300  type TestIamPermissionsResponse struct {
  7301  	// Permissions: A subset of `TestPermissionsRequest.permissions` that the
  7302  	// caller is allowed.
  7303  	Permissions []string `json:"permissions,omitempty"`
  7304  
  7305  	// ServerResponse contains the HTTP response code and headers from the server.
  7306  	googleapi.ServerResponse `json:"-"`
  7307  	// ForceSendFields is a list of field names (e.g. "Permissions") to
  7308  	// unconditionally include in API requests. By default, fields with empty or
  7309  	// default values are omitted from API requests. See
  7310  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7311  	// details.
  7312  	ForceSendFields []string `json:"-"`
  7313  	// NullFields is a list of field names (e.g. "Permissions") to include in API
  7314  	// requests with the JSON null value. By default, fields with empty values are
  7315  	// omitted from API requests. See
  7316  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7317  	NullFields []string `json:"-"`
  7318  }
  7319  
  7320  func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
  7321  	type NoMethod TestIamPermissionsResponse
  7322  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7323  }
  7324  
  7325  // TextConfig: Configures how to transform sensitive text `InfoTypes`.
  7326  type TextConfig struct {
  7327  	// AdditionalTransformations: Additional transformations to apply to the
  7328  	// detected data, overriding `profile`.
  7329  	AdditionalTransformations []*InfoTypeTransformation `json:"additionalTransformations,omitempty"`
  7330  	// ExcludeInfoTypes: InfoTypes to skip transforming, overriding `profile`.
  7331  	ExcludeInfoTypes []string `json:"excludeInfoTypes,omitempty"`
  7332  	// ProfileType: Base profile type for text transformation.
  7333  	//
  7334  	// Possible values:
  7335  	//   "PROFILE_TYPE_UNSPECIFIED" - No profile provided. Same as BASIC.
  7336  	//   "EMPTY" - Empty profile which does not perform any transformations.
  7337  	//   "BASIC" - Automatically converts "DATE" infoTypes using a DateShiftConfig,
  7338  	// and all other infoTypes using a ReplaceWithInfoTypeConfig.
  7339  	ProfileType string `json:"profileType,omitempty"`
  7340  	// Transformations: The transformations to apply to the detected data.
  7341  	// Deprecated. Use `additional_transformations` instead.
  7342  	Transformations []*InfoTypeTransformation `json:"transformations,omitempty"`
  7343  	// ForceSendFields is a list of field names (e.g. "AdditionalTransformations")
  7344  	// to unconditionally include in API requests. By default, fields with empty or
  7345  	// default values are omitted from API requests. See
  7346  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7347  	// details.
  7348  	ForceSendFields []string `json:"-"`
  7349  	// NullFields is a list of field names (e.g. "AdditionalTransformations") to
  7350  	// include in API requests with the JSON null value. By default, fields with
  7351  	// empty values are omitted from API requests. See
  7352  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7353  	NullFields []string `json:"-"`
  7354  }
  7355  
  7356  func (s *TextConfig) MarshalJSON() ([]byte, error) {
  7357  	type NoMethod TextConfig
  7358  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7359  }
  7360  
  7361  // TextSpan: A span of text in the provided document.
  7362  type TextSpan struct {
  7363  	// BeginOffset: The unicode codepoint index of the beginning of this span.
  7364  	BeginOffset int64 `json:"beginOffset,omitempty"`
  7365  	// Content: The original text contained in this span.
  7366  	Content string `json:"content,omitempty"`
  7367  	// ForceSendFields is a list of field names (e.g. "BeginOffset") to
  7368  	// unconditionally include in API requests. By default, fields with empty or
  7369  	// default values are omitted from API requests. See
  7370  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7371  	// details.
  7372  	ForceSendFields []string `json:"-"`
  7373  	// NullFields is a list of field names (e.g. "BeginOffset") to include in API
  7374  	// requests with the JSON null value. By default, fields with empty values are
  7375  	// omitted from API requests. See
  7376  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7377  	NullFields []string `json:"-"`
  7378  }
  7379  
  7380  func (s *TextSpan) MarshalJSON() ([]byte, error) {
  7381  	type NoMethod TextSpan
  7382  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7383  }
  7384  
  7385  // TimePartitioning: Configuration for FHIR BigQuery time-partitioned tables.
  7386  type TimePartitioning struct {
  7387  	// ExpirationMs: Number of milliseconds for which to keep the storage for a
  7388  	// partition.
  7389  	ExpirationMs int64 `json:"expirationMs,omitempty,string"`
  7390  	// Type: Type of partitioning.
  7391  	//
  7392  	// Possible values:
  7393  	//   "PARTITION_TYPE_UNSPECIFIED" - Default unknown time.
  7394  	//   "HOUR" - Data partitioned by hour.
  7395  	//   "DAY" - Data partitioned by day.
  7396  	//   "MONTH" - Data partitioned by month.
  7397  	//   "YEAR" - Data partitioned by year.
  7398  	Type string `json:"type,omitempty"`
  7399  	// ForceSendFields is a list of field names (e.g. "ExpirationMs") to
  7400  	// unconditionally include in API requests. By default, fields with empty or
  7401  	// default values are omitted from API requests. See
  7402  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7403  	// details.
  7404  	ForceSendFields []string `json:"-"`
  7405  	// NullFields is a list of field names (e.g. "ExpirationMs") to include in API
  7406  	// requests with the JSON null value. By default, fields with empty values are
  7407  	// omitted from API requests. See
  7408  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7409  	NullFields []string `json:"-"`
  7410  }
  7411  
  7412  func (s *TimePartitioning) MarshalJSON() ([]byte, error) {
  7413  	type NoMethod TimePartitioning
  7414  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7415  }
  7416  
  7417  // TimeRange: Apply consents given by patients whose most recent consent
  7418  // changes are in the time range. Note that after identifying these patients,
  7419  // the server applies all Consent resources given by those patients, not just
  7420  // the Consent resources within the timestamp in the range.
  7421  type TimeRange struct {
  7422  	// End: Optional. The latest consent change time, in format
  7423  	// YYYY-MM-DDThh:mm:ss.sss+zz:zz If not specified, the system uses the time
  7424  	// when ApplyConsents was called.
  7425  	End string `json:"end,omitempty"`
  7426  	// Start: Optional. The earliest consent change time, in format
  7427  	// YYYY-MM-DDThh:mm:ss.sss+zz:zz If not specified, the system uses the FHIR
  7428  	// store creation time.
  7429  	Start string `json:"start,omitempty"`
  7430  	// ForceSendFields is a list of field names (e.g. "End") to unconditionally
  7431  	// include in API requests. By default, fields with empty or default values are
  7432  	// omitted from API requests. See
  7433  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7434  	// details.
  7435  	ForceSendFields []string `json:"-"`
  7436  	// NullFields is a list of field names (e.g. "End") to include in API requests
  7437  	// with the JSON null value. By default, fields with empty values are omitted
  7438  	// from API requests. See
  7439  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7440  	NullFields []string `json:"-"`
  7441  }
  7442  
  7443  func (s *TimeRange) MarshalJSON() ([]byte, error) {
  7444  	type NoMethod TimeRange
  7445  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7446  }
  7447  
  7448  // Type: A type definition for some HL7v2 type (incl. Segments and Datatypes).
  7449  type Type struct {
  7450  	// Fields: The (sub) fields this type has (if not primitive).
  7451  	Fields []*Field `json:"fields,omitempty"`
  7452  	// Name: The name of this type. This would be the segment or datatype name. For
  7453  	// example, "PID" or "XPN".
  7454  	Name string `json:"name,omitempty"`
  7455  	// Primitive: If this is a primitive type then this field is the type of the
  7456  	// primitive For example, STRING. Leave unspecified for composite types.
  7457  	//
  7458  	// Possible values:
  7459  	//   "PRIMITIVE_UNSPECIFIED" - Not a primitive.
  7460  	//   "STRING" - String primitive.
  7461  	//   "VARIES" - Element that can have unschematized children.
  7462  	//   "UNESCAPED_STRING" - Like STRING, but all delimiters below this element
  7463  	// are ignored.
  7464  	Primitive string `json:"primitive,omitempty"`
  7465  	// ForceSendFields is a list of field names (e.g. "Fields") to unconditionally
  7466  	// include in API requests. By default, fields with empty or default values are
  7467  	// omitted from API requests. See
  7468  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7469  	// details.
  7470  	ForceSendFields []string `json:"-"`
  7471  	// NullFields is a list of field names (e.g. "Fields") to include in API
  7472  	// requests with the JSON null value. By default, fields with empty values are
  7473  	// omitted from API requests. See
  7474  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7475  	NullFields []string `json:"-"`
  7476  }
  7477  
  7478  func (s *Type) MarshalJSON() ([]byte, error) {
  7479  	type NoMethod Type
  7480  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7481  }
  7482  
  7483  // UserDataMapping: Maps a resource to the associated user and Attributes.
  7484  type UserDataMapping struct {
  7485  	// ArchiveTime: Output only. Indicates the time when this mapping was archived.
  7486  	ArchiveTime string `json:"archiveTime,omitempty"`
  7487  	// Archived: Output only. Indicates whether this mapping is archived.
  7488  	Archived bool `json:"archived,omitempty"`
  7489  	// DataId: Required. A unique identifier for the mapped resource.
  7490  	DataId string `json:"dataId,omitempty"`
  7491  	// Name: Resource name of the User data mapping, of the form
  7492  	// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentS
  7493  	// tores/{consent_store_id}/userDataMappings/{user_data_mapping_id}`.
  7494  	Name string `json:"name,omitempty"`
  7495  	// ResourceAttributes: Attributes of the resource. Only explicitly set
  7496  	// attributes are displayed here. Attribute definitions with defaults set
  7497  	// implicitly apply to these User data mappings. Attributes listed here must be
  7498  	// single valued, that is, exactly one value is specified for the field
  7499  	// "values" in each Attribute.
  7500  	ResourceAttributes []*Attribute `json:"resourceAttributes,omitempty"`
  7501  	// UserId: Required. User's UUID provided by the client.
  7502  	UserId string `json:"userId,omitempty"`
  7503  
  7504  	// ServerResponse contains the HTTP response code and headers from the server.
  7505  	googleapi.ServerResponse `json:"-"`
  7506  	// ForceSendFields is a list of field names (e.g. "ArchiveTime") to
  7507  	// unconditionally include in API requests. By default, fields with empty or
  7508  	// default values are omitted from API requests. See
  7509  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7510  	// details.
  7511  	ForceSendFields []string `json:"-"`
  7512  	// NullFields is a list of field names (e.g. "ArchiveTime") to include in API
  7513  	// requests with the JSON null value. By default, fields with empty values are
  7514  	// omitted from API requests. See
  7515  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7516  	NullFields []string `json:"-"`
  7517  }
  7518  
  7519  func (s *UserDataMapping) MarshalJSON() ([]byte, error) {
  7520  	type NoMethod UserDataMapping
  7521  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7522  }
  7523  
  7524  // ValidationConfig: Contains the configuration for FHIR profiles and
  7525  // validation.
  7526  type ValidationConfig struct {
  7527  	// DisableFhirpathValidation: Whether to disable FHIRPath validation for
  7528  	// incoming resources. Set this to true to disable checking incoming resources
  7529  	// for conformance against FHIRPath requirement defined in the FHIR
  7530  	// specification. This property only affects resource types that do not have
  7531  	// profiles configured for them, any rules in enabled implementation guides
  7532  	// will still be enforced.
  7533  	DisableFhirpathValidation bool `json:"disableFhirpathValidation,omitempty"`
  7534  	// DisableProfileValidation: Whether to disable profile validation for this
  7535  	// FHIR store. Set this to true to disable checking incoming resources for
  7536  	// conformance against StructureDefinitions in this FHIR store.
  7537  	DisableProfileValidation bool `json:"disableProfileValidation,omitempty"`
  7538  	// DisableReferenceTypeValidation: Whether to disable reference type validation
  7539  	// for incoming resources. Set this to true to disable checking incoming
  7540  	// resources for conformance against reference type requirement defined in the
  7541  	// FHIR specification. This property only affects resource types that do not
  7542  	// have profiles configured for them, any rules in enabled implementation
  7543  	// guides will still be enforced.
  7544  	DisableReferenceTypeValidation bool `json:"disableReferenceTypeValidation,omitempty"`
  7545  	// DisableRequiredFieldValidation: Whether to disable required fields
  7546  	// validation for incoming resources. Set this to true to disable checking
  7547  	// incoming resources for conformance against required fields requirement
  7548  	// defined in the FHIR specification. This property only affects resource types
  7549  	// that do not have profiles configured for them, any rules in enabled
  7550  	// implementation guides will still be enforced.
  7551  	DisableRequiredFieldValidation bool `json:"disableRequiredFieldValidation,omitempty"`
  7552  	// EnabledImplementationGuides: A list of ImplementationGuide URLs in this FHIR
  7553  	// store that are used to configure the profiles to use for validation. For
  7554  	// example, to use the US Core profiles for validation, set
  7555  	// `enabled_implementation_guides` to
  7556  	// `["http://hl7.org/fhir/us/core/ImplementationGuide/ig"]`. If
  7557  	// `enabled_implementation_guides` is empty or omitted, then incoming resources
  7558  	// are only required to conform to the base FHIR profiles. Otherwise, a
  7559  	// resource must conform to at least one profile listed in the `global`
  7560  	// property of one of the enabled ImplementationGuides. The Cloud Healthcare
  7561  	// API does not currently enforce all of the rules in a StructureDefinition.
  7562  	// The following rules are supported: - min/max - minValue/maxValue - maxLength
  7563  	// - type - fixed[x] - pattern[x] on simple types - slicing, when using "value"
  7564  	// as the discriminator type When a URL cannot be resolved (for example, in a
  7565  	// type assertion), the server does not return an error.
  7566  	EnabledImplementationGuides []string `json:"enabledImplementationGuides,omitempty"`
  7567  	// ForceSendFields is a list of field names (e.g. "DisableFhirpathValidation")
  7568  	// to unconditionally include in API requests. By default, fields with empty or
  7569  	// default values are omitted from API requests. See
  7570  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7571  	// details.
  7572  	ForceSendFields []string `json:"-"`
  7573  	// NullFields is a list of field names (e.g. "DisableFhirpathValidation") to
  7574  	// include in API requests with the JSON null value. By default, fields with
  7575  	// empty values are omitted from API requests. See
  7576  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7577  	NullFields []string `json:"-"`
  7578  }
  7579  
  7580  func (s *ValidationConfig) MarshalJSON() ([]byte, error) {
  7581  	type NoMethod ValidationConfig
  7582  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7583  }
  7584  
  7585  // VersionSource: Describes a selector for extracting and matching an MSH field
  7586  // to a value.
  7587  type VersionSource struct {
  7588  	// MshField: The field to extract from the MSH segment. For example, "3.1" or
  7589  	// "18[1].1".
  7590  	MshField string `json:"mshField,omitempty"`
  7591  	// Value: The value to match with the field. For example, "My Application Name"
  7592  	// or "2.3".
  7593  	Value string `json:"value,omitempty"`
  7594  	// ForceSendFields is a list of field names (e.g. "MshField") to
  7595  	// unconditionally include in API requests. By default, fields with empty or
  7596  	// default values are omitted from API requests. See
  7597  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7598  	// details.
  7599  	ForceSendFields []string `json:"-"`
  7600  	// NullFields is a list of field names (e.g. "MshField") to include in API
  7601  	// requests with the JSON null value. By default, fields with empty values are
  7602  	// omitted from API requests. See
  7603  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7604  	NullFields []string `json:"-"`
  7605  }
  7606  
  7607  func (s *VersionSource) MarshalJSON() ([]byte, error) {
  7608  	type NoMethod VersionSource
  7609  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7610  }
  7611  
  7612  // Vertex: A 2D coordinate in an image. The origin is the top-left.
  7613  type Vertex struct {
  7614  	// X: X coordinate.
  7615  	X float64 `json:"x,omitempty"`
  7616  	// Y: Y coordinate.
  7617  	Y float64 `json:"y,omitempty"`
  7618  	// ForceSendFields is a list of field names (e.g. "X") to unconditionally
  7619  	// include in API requests. By default, fields with empty or default values are
  7620  	// omitted from API requests. See
  7621  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7622  	// details.
  7623  	ForceSendFields []string `json:"-"`
  7624  	// NullFields is a list of field names (e.g. "X") to include in API requests
  7625  	// with the JSON null value. By default, fields with empty values are omitted
  7626  	// from API requests. See
  7627  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7628  	NullFields []string `json:"-"`
  7629  }
  7630  
  7631  func (s *Vertex) MarshalJSON() ([]byte, error) {
  7632  	type NoMethod Vertex
  7633  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7634  }
  7635  
  7636  func (s *Vertex) UnmarshalJSON(data []byte) error {
  7637  	type NoMethod Vertex
  7638  	var s1 struct {
  7639  		X gensupport.JSONFloat64 `json:"x"`
  7640  		Y gensupport.JSONFloat64 `json:"y"`
  7641  		*NoMethod
  7642  	}
  7643  	s1.NoMethod = (*NoMethod)(s)
  7644  	if err := json.Unmarshal(data, &s1); err != nil {
  7645  		return err
  7646  	}
  7647  	s.X = float64(s1.X)
  7648  	s.Y = float64(s1.Y)
  7649  	return nil
  7650  }
  7651  
  7652  type ProjectsLocationsGetCall struct {
  7653  	s            *Service
  7654  	name         string
  7655  	urlParams_   gensupport.URLParams
  7656  	ifNoneMatch_ string
  7657  	ctx_         context.Context
  7658  	header_      http.Header
  7659  }
  7660  
  7661  // Get: Gets information about a location.
  7662  //
  7663  // - name: Resource name for the location.
  7664  func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
  7665  	c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7666  	c.name = name
  7667  	return c
  7668  }
  7669  
  7670  // Fields allows partial responses to be retrieved. See
  7671  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7672  // details.
  7673  func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
  7674  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7675  	return c
  7676  }
  7677  
  7678  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7679  // object's ETag matches the given value. This is useful for getting updates
  7680  // only after the object has changed since the last request.
  7681  func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
  7682  	c.ifNoneMatch_ = entityTag
  7683  	return c
  7684  }
  7685  
  7686  // Context sets the context to be used in this call's Do method.
  7687  func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
  7688  	c.ctx_ = ctx
  7689  	return c
  7690  }
  7691  
  7692  // Header returns a http.Header that can be modified by the caller to add
  7693  // headers to the request.
  7694  func (c *ProjectsLocationsGetCall) Header() http.Header {
  7695  	if c.header_ == nil {
  7696  		c.header_ = make(http.Header)
  7697  	}
  7698  	return c.header_
  7699  }
  7700  
  7701  func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
  7702  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7703  	if c.ifNoneMatch_ != "" {
  7704  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7705  	}
  7706  	var body io.Reader = nil
  7707  	c.urlParams_.Set("alt", alt)
  7708  	c.urlParams_.Set("prettyPrint", "false")
  7709  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
  7710  	urls += "?" + c.urlParams_.Encode()
  7711  	req, err := http.NewRequest("GET", urls, body)
  7712  	if err != nil {
  7713  		return nil, err
  7714  	}
  7715  	req.Header = reqHeaders
  7716  	googleapi.Expand(req.URL, map[string]string{
  7717  		"name": c.name,
  7718  	})
  7719  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7720  }
  7721  
  7722  // Do executes the "healthcare.projects.locations.get" call.
  7723  // Any non-2xx status code is an error. Response headers are in either
  7724  // *Location.ServerResponse.Header or (if a response was returned at all) in
  7725  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7726  // whether the returned error was because http.StatusNotModified was returned.
  7727  func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) {
  7728  	gensupport.SetOptions(c.urlParams_, opts...)
  7729  	res, err := c.doRequest("json")
  7730  	if res != nil && res.StatusCode == http.StatusNotModified {
  7731  		if res.Body != nil {
  7732  			res.Body.Close()
  7733  		}
  7734  		return nil, gensupport.WrapError(&googleapi.Error{
  7735  			Code:   res.StatusCode,
  7736  			Header: res.Header,
  7737  		})
  7738  	}
  7739  	if err != nil {
  7740  		return nil, err
  7741  	}
  7742  	defer googleapi.CloseBody(res)
  7743  	if err := googleapi.CheckResponse(res); err != nil {
  7744  		return nil, gensupport.WrapError(err)
  7745  	}
  7746  	ret := &Location{
  7747  		ServerResponse: googleapi.ServerResponse{
  7748  			Header:         res.Header,
  7749  			HTTPStatusCode: res.StatusCode,
  7750  		},
  7751  	}
  7752  	target := &ret
  7753  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7754  		return nil, err
  7755  	}
  7756  	return ret, nil
  7757  }
  7758  
  7759  type ProjectsLocationsListCall struct {
  7760  	s            *Service
  7761  	name         string
  7762  	urlParams_   gensupport.URLParams
  7763  	ifNoneMatch_ string
  7764  	ctx_         context.Context
  7765  	header_      http.Header
  7766  }
  7767  
  7768  // List: Lists information about the supported locations for this service.
  7769  //
  7770  // - name: The resource that owns the locations collection, if applicable.
  7771  func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
  7772  	c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7773  	c.name = name
  7774  	return c
  7775  }
  7776  
  7777  // Filter sets the optional parameter "filter": A filter to narrow down results
  7778  // to a preferred subset. The filtering language accepts strings like
  7779  // "displayName=tokyo", and is documented in more detail in AIP-160
  7780  // (https://google.aip.dev/160).
  7781  func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
  7782  	c.urlParams_.Set("filter", filter)
  7783  	return c
  7784  }
  7785  
  7786  // PageSize sets the optional parameter "pageSize": The maximum number of
  7787  // results to return. If not set, the service selects a default.
  7788  func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
  7789  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  7790  	return c
  7791  }
  7792  
  7793  // PageToken sets the optional parameter "pageToken": A page token received
  7794  // from the `next_page_token` field in the response. Send that page token to
  7795  // receive the subsequent page.
  7796  func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
  7797  	c.urlParams_.Set("pageToken", pageToken)
  7798  	return c
  7799  }
  7800  
  7801  // Fields allows partial responses to be retrieved. See
  7802  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7803  // details.
  7804  func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
  7805  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7806  	return c
  7807  }
  7808  
  7809  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7810  // object's ETag matches the given value. This is useful for getting updates
  7811  // only after the object has changed since the last request.
  7812  func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
  7813  	c.ifNoneMatch_ = entityTag
  7814  	return c
  7815  }
  7816  
  7817  // Context sets the context to be used in this call's Do method.
  7818  func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
  7819  	c.ctx_ = ctx
  7820  	return c
  7821  }
  7822  
  7823  // Header returns a http.Header that can be modified by the caller to add
  7824  // headers to the request.
  7825  func (c *ProjectsLocationsListCall) Header() http.Header {
  7826  	if c.header_ == nil {
  7827  		c.header_ = make(http.Header)
  7828  	}
  7829  	return c.header_
  7830  }
  7831  
  7832  func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
  7833  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7834  	if c.ifNoneMatch_ != "" {
  7835  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7836  	}
  7837  	var body io.Reader = nil
  7838  	c.urlParams_.Set("alt", alt)
  7839  	c.urlParams_.Set("prettyPrint", "false")
  7840  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/locations")
  7841  	urls += "?" + c.urlParams_.Encode()
  7842  	req, err := http.NewRequest("GET", urls, body)
  7843  	if err != nil {
  7844  		return nil, err
  7845  	}
  7846  	req.Header = reqHeaders
  7847  	googleapi.Expand(req.URL, map[string]string{
  7848  		"name": c.name,
  7849  	})
  7850  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7851  }
  7852  
  7853  // Do executes the "healthcare.projects.locations.list" call.
  7854  // Any non-2xx status code is an error. Response headers are in either
  7855  // *ListLocationsResponse.ServerResponse.Header or (if a response was returned
  7856  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  7857  // check whether the returned error was because http.StatusNotModified was
  7858  // returned.
  7859  func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) {
  7860  	gensupport.SetOptions(c.urlParams_, opts...)
  7861  	res, err := c.doRequest("json")
  7862  	if res != nil && res.StatusCode == http.StatusNotModified {
  7863  		if res.Body != nil {
  7864  			res.Body.Close()
  7865  		}
  7866  		return nil, gensupport.WrapError(&googleapi.Error{
  7867  			Code:   res.StatusCode,
  7868  			Header: res.Header,
  7869  		})
  7870  	}
  7871  	if err != nil {
  7872  		return nil, err
  7873  	}
  7874  	defer googleapi.CloseBody(res)
  7875  	if err := googleapi.CheckResponse(res); err != nil {
  7876  		return nil, gensupport.WrapError(err)
  7877  	}
  7878  	ret := &ListLocationsResponse{
  7879  		ServerResponse: googleapi.ServerResponse{
  7880  			Header:         res.Header,
  7881  			HTTPStatusCode: res.StatusCode,
  7882  		},
  7883  	}
  7884  	target := &ret
  7885  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7886  		return nil, err
  7887  	}
  7888  	return ret, nil
  7889  }
  7890  
  7891  // Pages invokes f for each page of results.
  7892  // A non-nil error returned from f will halt the iteration.
  7893  // The provided context supersedes any context provided to the Context method.
  7894  func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error {
  7895  	c.ctx_ = ctx
  7896  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  7897  	for {
  7898  		x, err := c.Do()
  7899  		if err != nil {
  7900  			return err
  7901  		}
  7902  		if err := f(x); err != nil {
  7903  			return err
  7904  		}
  7905  		if x.NextPageToken == "" {
  7906  			return nil
  7907  		}
  7908  		c.PageToken(x.NextPageToken)
  7909  	}
  7910  }
  7911  
  7912  type ProjectsLocationsDatasetsCreateCall struct {
  7913  	s          *Service
  7914  	parent     string
  7915  	dataset    *Dataset
  7916  	urlParams_ gensupport.URLParams
  7917  	ctx_       context.Context
  7918  	header_    http.Header
  7919  }
  7920  
  7921  // Create: Creates a new health dataset. Results are returned through the
  7922  // Operation interface which returns either an `Operation.response` which
  7923  // contains a Dataset or `Operation.error`. The metadata field type is
  7924  // OperationMetadata.
  7925  //
  7926  //   - parent: The name of the project where the server creates the dataset. For
  7927  //     example, `projects/{project_id}/locations/{location_id}`.
  7928  func (r *ProjectsLocationsDatasetsService) Create(parent string, dataset *Dataset) *ProjectsLocationsDatasetsCreateCall {
  7929  	c := &ProjectsLocationsDatasetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7930  	c.parent = parent
  7931  	c.dataset = dataset
  7932  	return c
  7933  }
  7934  
  7935  // DatasetId sets the optional parameter "datasetId": Required. The ID of the
  7936  // dataset that is being created. The string must match the following regex:
  7937  // `[\p{L}\p{N}_\-\.]{1,256}`.
  7938  func (c *ProjectsLocationsDatasetsCreateCall) DatasetId(datasetId string) *ProjectsLocationsDatasetsCreateCall {
  7939  	c.urlParams_.Set("datasetId", datasetId)
  7940  	return c
  7941  }
  7942  
  7943  // Fields allows partial responses to be retrieved. See
  7944  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7945  // details.
  7946  func (c *ProjectsLocationsDatasetsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsCreateCall {
  7947  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7948  	return c
  7949  }
  7950  
  7951  // Context sets the context to be used in this call's Do method.
  7952  func (c *ProjectsLocationsDatasetsCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsCreateCall {
  7953  	c.ctx_ = ctx
  7954  	return c
  7955  }
  7956  
  7957  // Header returns a http.Header that can be modified by the caller to add
  7958  // headers to the request.
  7959  func (c *ProjectsLocationsDatasetsCreateCall) Header() http.Header {
  7960  	if c.header_ == nil {
  7961  		c.header_ = make(http.Header)
  7962  	}
  7963  	return c.header_
  7964  }
  7965  
  7966  func (c *ProjectsLocationsDatasetsCreateCall) doRequest(alt string) (*http.Response, error) {
  7967  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7968  	var body io.Reader = nil
  7969  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.dataset)
  7970  	if err != nil {
  7971  		return nil, err
  7972  	}
  7973  	c.urlParams_.Set("alt", alt)
  7974  	c.urlParams_.Set("prettyPrint", "false")
  7975  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/datasets")
  7976  	urls += "?" + c.urlParams_.Encode()
  7977  	req, err := http.NewRequest("POST", urls, body)
  7978  	if err != nil {
  7979  		return nil, err
  7980  	}
  7981  	req.Header = reqHeaders
  7982  	googleapi.Expand(req.URL, map[string]string{
  7983  		"parent": c.parent,
  7984  	})
  7985  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7986  }
  7987  
  7988  // Do executes the "healthcare.projects.locations.datasets.create" call.
  7989  // Any non-2xx status code is an error. Response headers are in either
  7990  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  7991  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7992  // whether the returned error was because http.StatusNotModified was returned.
  7993  func (c *ProjectsLocationsDatasetsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  7994  	gensupport.SetOptions(c.urlParams_, opts...)
  7995  	res, err := c.doRequest("json")
  7996  	if res != nil && res.StatusCode == http.StatusNotModified {
  7997  		if res.Body != nil {
  7998  			res.Body.Close()
  7999  		}
  8000  		return nil, gensupport.WrapError(&googleapi.Error{
  8001  			Code:   res.StatusCode,
  8002  			Header: res.Header,
  8003  		})
  8004  	}
  8005  	if err != nil {
  8006  		return nil, err
  8007  	}
  8008  	defer googleapi.CloseBody(res)
  8009  	if err := googleapi.CheckResponse(res); err != nil {
  8010  		return nil, gensupport.WrapError(err)
  8011  	}
  8012  	ret := &Operation{
  8013  		ServerResponse: googleapi.ServerResponse{
  8014  			Header:         res.Header,
  8015  			HTTPStatusCode: res.StatusCode,
  8016  		},
  8017  	}
  8018  	target := &ret
  8019  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8020  		return nil, err
  8021  	}
  8022  	return ret, nil
  8023  }
  8024  
  8025  type ProjectsLocationsDatasetsDeidentifyCall struct {
  8026  	s                        *Service
  8027  	sourceDataset            string
  8028  	deidentifydatasetrequest *DeidentifyDatasetRequest
  8029  	urlParams_               gensupport.URLParams
  8030  	ctx_                     context.Context
  8031  	header_                  http.Header
  8032  }
  8033  
  8034  // Deidentify: Creates a new dataset containing de-identified data from the
  8035  // source dataset. The metadata field type is OperationMetadata. If the request
  8036  // is successful, the response field type is DeidentifySummary. The LRO result
  8037  // may still be successful if de-identification fails for some resources. The
  8038  // new de-identified dataset will not contain these failed resources. The
  8039  // number of resources processed are tracked in Operation.metadata. Error
  8040  // details are logged to Cloud Logging. For more information, see Viewing error
  8041  // logs in Cloud Logging
  8042  // (https://cloud.google.com/healthcare/docs/how-tos/logging).
  8043  //
  8044  //   - sourceDataset: Source dataset resource name. For example,
  8045  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`.
  8046  func (r *ProjectsLocationsDatasetsService) Deidentify(sourceDataset string, deidentifydatasetrequest *DeidentifyDatasetRequest) *ProjectsLocationsDatasetsDeidentifyCall {
  8047  	c := &ProjectsLocationsDatasetsDeidentifyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8048  	c.sourceDataset = sourceDataset
  8049  	c.deidentifydatasetrequest = deidentifydatasetrequest
  8050  	return c
  8051  }
  8052  
  8053  // Fields allows partial responses to be retrieved. See
  8054  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8055  // details.
  8056  func (c *ProjectsLocationsDatasetsDeidentifyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDeidentifyCall {
  8057  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8058  	return c
  8059  }
  8060  
  8061  // Context sets the context to be used in this call's Do method.
  8062  func (c *ProjectsLocationsDatasetsDeidentifyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDeidentifyCall {
  8063  	c.ctx_ = ctx
  8064  	return c
  8065  }
  8066  
  8067  // Header returns a http.Header that can be modified by the caller to add
  8068  // headers to the request.
  8069  func (c *ProjectsLocationsDatasetsDeidentifyCall) Header() http.Header {
  8070  	if c.header_ == nil {
  8071  		c.header_ = make(http.Header)
  8072  	}
  8073  	return c.header_
  8074  }
  8075  
  8076  func (c *ProjectsLocationsDatasetsDeidentifyCall) doRequest(alt string) (*http.Response, error) {
  8077  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8078  	var body io.Reader = nil
  8079  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.deidentifydatasetrequest)
  8080  	if err != nil {
  8081  		return nil, err
  8082  	}
  8083  	c.urlParams_.Set("alt", alt)
  8084  	c.urlParams_.Set("prettyPrint", "false")
  8085  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+sourceDataset}:deidentify")
  8086  	urls += "?" + c.urlParams_.Encode()
  8087  	req, err := http.NewRequest("POST", urls, body)
  8088  	if err != nil {
  8089  		return nil, err
  8090  	}
  8091  	req.Header = reqHeaders
  8092  	googleapi.Expand(req.URL, map[string]string{
  8093  		"sourceDataset": c.sourceDataset,
  8094  	})
  8095  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8096  }
  8097  
  8098  // Do executes the "healthcare.projects.locations.datasets.deidentify" call.
  8099  // Any non-2xx status code is an error. Response headers are in either
  8100  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  8101  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8102  // whether the returned error was because http.StatusNotModified was returned.
  8103  func (c *ProjectsLocationsDatasetsDeidentifyCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  8104  	gensupport.SetOptions(c.urlParams_, opts...)
  8105  	res, err := c.doRequest("json")
  8106  	if res != nil && res.StatusCode == http.StatusNotModified {
  8107  		if res.Body != nil {
  8108  			res.Body.Close()
  8109  		}
  8110  		return nil, gensupport.WrapError(&googleapi.Error{
  8111  			Code:   res.StatusCode,
  8112  			Header: res.Header,
  8113  		})
  8114  	}
  8115  	if err != nil {
  8116  		return nil, err
  8117  	}
  8118  	defer googleapi.CloseBody(res)
  8119  	if err := googleapi.CheckResponse(res); err != nil {
  8120  		return nil, gensupport.WrapError(err)
  8121  	}
  8122  	ret := &Operation{
  8123  		ServerResponse: googleapi.ServerResponse{
  8124  			Header:         res.Header,
  8125  			HTTPStatusCode: res.StatusCode,
  8126  		},
  8127  	}
  8128  	target := &ret
  8129  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8130  		return nil, err
  8131  	}
  8132  	return ret, nil
  8133  }
  8134  
  8135  type ProjectsLocationsDatasetsDeleteCall struct {
  8136  	s          *Service
  8137  	name       string
  8138  	urlParams_ gensupport.URLParams
  8139  	ctx_       context.Context
  8140  	header_    http.Header
  8141  }
  8142  
  8143  // Delete: Deletes the specified health dataset and all data contained in the
  8144  // dataset. Deleting a dataset does not affect the sources from which the
  8145  // dataset was imported (if any).
  8146  //
  8147  //   - name: The name of the dataset to delete. For example,
  8148  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`.
  8149  func (r *ProjectsLocationsDatasetsService) Delete(name string) *ProjectsLocationsDatasetsDeleteCall {
  8150  	c := &ProjectsLocationsDatasetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8151  	c.name = name
  8152  	return c
  8153  }
  8154  
  8155  // Fields allows partial responses to be retrieved. See
  8156  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8157  // details.
  8158  func (c *ProjectsLocationsDatasetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDeleteCall {
  8159  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8160  	return c
  8161  }
  8162  
  8163  // Context sets the context to be used in this call's Do method.
  8164  func (c *ProjectsLocationsDatasetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDeleteCall {
  8165  	c.ctx_ = ctx
  8166  	return c
  8167  }
  8168  
  8169  // Header returns a http.Header that can be modified by the caller to add
  8170  // headers to the request.
  8171  func (c *ProjectsLocationsDatasetsDeleteCall) Header() http.Header {
  8172  	if c.header_ == nil {
  8173  		c.header_ = make(http.Header)
  8174  	}
  8175  	return c.header_
  8176  }
  8177  
  8178  func (c *ProjectsLocationsDatasetsDeleteCall) doRequest(alt string) (*http.Response, error) {
  8179  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8180  	var body io.Reader = nil
  8181  	c.urlParams_.Set("alt", alt)
  8182  	c.urlParams_.Set("prettyPrint", "false")
  8183  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
  8184  	urls += "?" + c.urlParams_.Encode()
  8185  	req, err := http.NewRequest("DELETE", urls, body)
  8186  	if err != nil {
  8187  		return nil, err
  8188  	}
  8189  	req.Header = reqHeaders
  8190  	googleapi.Expand(req.URL, map[string]string{
  8191  		"name": c.name,
  8192  	})
  8193  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8194  }
  8195  
  8196  // Do executes the "healthcare.projects.locations.datasets.delete" call.
  8197  // Any non-2xx status code is an error. Response headers are in either
  8198  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  8199  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8200  // whether the returned error was because http.StatusNotModified was returned.
  8201  func (c *ProjectsLocationsDatasetsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  8202  	gensupport.SetOptions(c.urlParams_, opts...)
  8203  	res, err := c.doRequest("json")
  8204  	if res != nil && res.StatusCode == http.StatusNotModified {
  8205  		if res.Body != nil {
  8206  			res.Body.Close()
  8207  		}
  8208  		return nil, gensupport.WrapError(&googleapi.Error{
  8209  			Code:   res.StatusCode,
  8210  			Header: res.Header,
  8211  		})
  8212  	}
  8213  	if err != nil {
  8214  		return nil, err
  8215  	}
  8216  	defer googleapi.CloseBody(res)
  8217  	if err := googleapi.CheckResponse(res); err != nil {
  8218  		return nil, gensupport.WrapError(err)
  8219  	}
  8220  	ret := &Empty{
  8221  		ServerResponse: googleapi.ServerResponse{
  8222  			Header:         res.Header,
  8223  			HTTPStatusCode: res.StatusCode,
  8224  		},
  8225  	}
  8226  	target := &ret
  8227  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8228  		return nil, err
  8229  	}
  8230  	return ret, nil
  8231  }
  8232  
  8233  type ProjectsLocationsDatasetsGetCall struct {
  8234  	s            *Service
  8235  	name         string
  8236  	urlParams_   gensupport.URLParams
  8237  	ifNoneMatch_ string
  8238  	ctx_         context.Context
  8239  	header_      http.Header
  8240  }
  8241  
  8242  // Get: Gets any metadata associated with a dataset.
  8243  //
  8244  //   - name: The name of the dataset to read. For example,
  8245  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`.
  8246  func (r *ProjectsLocationsDatasetsService) Get(name string) *ProjectsLocationsDatasetsGetCall {
  8247  	c := &ProjectsLocationsDatasetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8248  	c.name = name
  8249  	return c
  8250  }
  8251  
  8252  // Fields allows partial responses to be retrieved. See
  8253  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8254  // details.
  8255  func (c *ProjectsLocationsDatasetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsGetCall {
  8256  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8257  	return c
  8258  }
  8259  
  8260  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8261  // object's ETag matches the given value. This is useful for getting updates
  8262  // only after the object has changed since the last request.
  8263  func (c *ProjectsLocationsDatasetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsGetCall {
  8264  	c.ifNoneMatch_ = entityTag
  8265  	return c
  8266  }
  8267  
  8268  // Context sets the context to be used in this call's Do method.
  8269  func (c *ProjectsLocationsDatasetsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsGetCall {
  8270  	c.ctx_ = ctx
  8271  	return c
  8272  }
  8273  
  8274  // Header returns a http.Header that can be modified by the caller to add
  8275  // headers to the request.
  8276  func (c *ProjectsLocationsDatasetsGetCall) Header() http.Header {
  8277  	if c.header_ == nil {
  8278  		c.header_ = make(http.Header)
  8279  	}
  8280  	return c.header_
  8281  }
  8282  
  8283  func (c *ProjectsLocationsDatasetsGetCall) doRequest(alt string) (*http.Response, error) {
  8284  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8285  	if c.ifNoneMatch_ != "" {
  8286  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8287  	}
  8288  	var body io.Reader = nil
  8289  	c.urlParams_.Set("alt", alt)
  8290  	c.urlParams_.Set("prettyPrint", "false")
  8291  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
  8292  	urls += "?" + c.urlParams_.Encode()
  8293  	req, err := http.NewRequest("GET", urls, body)
  8294  	if err != nil {
  8295  		return nil, err
  8296  	}
  8297  	req.Header = reqHeaders
  8298  	googleapi.Expand(req.URL, map[string]string{
  8299  		"name": c.name,
  8300  	})
  8301  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8302  }
  8303  
  8304  // Do executes the "healthcare.projects.locations.datasets.get" call.
  8305  // Any non-2xx status code is an error. Response headers are in either
  8306  // *Dataset.ServerResponse.Header or (if a response was returned at all) in
  8307  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8308  // whether the returned error was because http.StatusNotModified was returned.
  8309  func (c *ProjectsLocationsDatasetsGetCall) Do(opts ...googleapi.CallOption) (*Dataset, error) {
  8310  	gensupport.SetOptions(c.urlParams_, opts...)
  8311  	res, err := c.doRequest("json")
  8312  	if res != nil && res.StatusCode == http.StatusNotModified {
  8313  		if res.Body != nil {
  8314  			res.Body.Close()
  8315  		}
  8316  		return nil, gensupport.WrapError(&googleapi.Error{
  8317  			Code:   res.StatusCode,
  8318  			Header: res.Header,
  8319  		})
  8320  	}
  8321  	if err != nil {
  8322  		return nil, err
  8323  	}
  8324  	defer googleapi.CloseBody(res)
  8325  	if err := googleapi.CheckResponse(res); err != nil {
  8326  		return nil, gensupport.WrapError(err)
  8327  	}
  8328  	ret := &Dataset{
  8329  		ServerResponse: googleapi.ServerResponse{
  8330  			Header:         res.Header,
  8331  			HTTPStatusCode: res.StatusCode,
  8332  		},
  8333  	}
  8334  	target := &ret
  8335  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8336  		return nil, err
  8337  	}
  8338  	return ret, nil
  8339  }
  8340  
  8341  type ProjectsLocationsDatasetsGetIamPolicyCall struct {
  8342  	s            *Service
  8343  	resource     string
  8344  	urlParams_   gensupport.URLParams
  8345  	ifNoneMatch_ string
  8346  	ctx_         context.Context
  8347  	header_      http.Header
  8348  }
  8349  
  8350  // GetIamPolicy: Gets the access control policy for a resource. Returns an
  8351  // empty policy if the resource exists and does not have a policy set.
  8352  //
  8353  //   - resource: REQUIRED: The resource for which the policy is being requested.
  8354  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
  8355  //     for the appropriate value for this field.
  8356  func (r *ProjectsLocationsDatasetsService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsGetIamPolicyCall {
  8357  	c := &ProjectsLocationsDatasetsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8358  	c.resource = resource
  8359  	return c
  8360  }
  8361  
  8362  // OptionsRequestedPolicyVersion sets the optional parameter
  8363  // "options.requestedPolicyVersion": The maximum policy version that will be
  8364  // used to format the policy. Valid values are 0, 1, and 3. Requests specifying
  8365  // an invalid value will be rejected. Requests for policies with any
  8366  // conditional role bindings must specify version 3. Policies with no
  8367  // conditional role bindings may specify any valid value or leave the field
  8368  // unset. The policy in the response might use the policy version that you
  8369  // specified, or it might use a lower policy version. For example, if you
  8370  // specify version 3, but the policy has no conditional role bindings, the
  8371  // response uses version 1. To learn which resources support conditions in
  8372  // their IAM policies, see the IAM documentation
  8373  // (https://cloud.google.com/iam/help/conditions/resource-policies).
  8374  func (c *ProjectsLocationsDatasetsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsGetIamPolicyCall {
  8375  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
  8376  	return c
  8377  }
  8378  
  8379  // Fields allows partial responses to be retrieved. See
  8380  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8381  // details.
  8382  func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsGetIamPolicyCall {
  8383  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8384  	return c
  8385  }
  8386  
  8387  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8388  // object's ETag matches the given value. This is useful for getting updates
  8389  // only after the object has changed since the last request.
  8390  func (c *ProjectsLocationsDatasetsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsGetIamPolicyCall {
  8391  	c.ifNoneMatch_ = entityTag
  8392  	return c
  8393  }
  8394  
  8395  // Context sets the context to be used in this call's Do method.
  8396  func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsGetIamPolicyCall {
  8397  	c.ctx_ = ctx
  8398  	return c
  8399  }
  8400  
  8401  // Header returns a http.Header that can be modified by the caller to add
  8402  // headers to the request.
  8403  func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Header() http.Header {
  8404  	if c.header_ == nil {
  8405  		c.header_ = make(http.Header)
  8406  	}
  8407  	return c.header_
  8408  }
  8409  
  8410  func (c *ProjectsLocationsDatasetsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  8411  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8412  	if c.ifNoneMatch_ != "" {
  8413  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8414  	}
  8415  	var body io.Reader = nil
  8416  	c.urlParams_.Set("alt", alt)
  8417  	c.urlParams_.Set("prettyPrint", "false")
  8418  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy")
  8419  	urls += "?" + c.urlParams_.Encode()
  8420  	req, err := http.NewRequest("GET", urls, body)
  8421  	if err != nil {
  8422  		return nil, err
  8423  	}
  8424  	req.Header = reqHeaders
  8425  	googleapi.Expand(req.URL, map[string]string{
  8426  		"resource": c.resource,
  8427  	})
  8428  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8429  }
  8430  
  8431  // Do executes the "healthcare.projects.locations.datasets.getIamPolicy" call.
  8432  // Any non-2xx status code is an error. Response headers are in either
  8433  // *Policy.ServerResponse.Header or (if a response was returned at all) in
  8434  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8435  // whether the returned error was because http.StatusNotModified was returned.
  8436  func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
  8437  	gensupport.SetOptions(c.urlParams_, opts...)
  8438  	res, err := c.doRequest("json")
  8439  	if res != nil && res.StatusCode == http.StatusNotModified {
  8440  		if res.Body != nil {
  8441  			res.Body.Close()
  8442  		}
  8443  		return nil, gensupport.WrapError(&googleapi.Error{
  8444  			Code:   res.StatusCode,
  8445  			Header: res.Header,
  8446  		})
  8447  	}
  8448  	if err != nil {
  8449  		return nil, err
  8450  	}
  8451  	defer googleapi.CloseBody(res)
  8452  	if err := googleapi.CheckResponse(res); err != nil {
  8453  		return nil, gensupport.WrapError(err)
  8454  	}
  8455  	ret := &Policy{
  8456  		ServerResponse: googleapi.ServerResponse{
  8457  			Header:         res.Header,
  8458  			HTTPStatusCode: res.StatusCode,
  8459  		},
  8460  	}
  8461  	target := &ret
  8462  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8463  		return nil, err
  8464  	}
  8465  	return ret, nil
  8466  }
  8467  
  8468  type ProjectsLocationsDatasetsListCall struct {
  8469  	s            *Service
  8470  	parent       string
  8471  	urlParams_   gensupport.URLParams
  8472  	ifNoneMatch_ string
  8473  	ctx_         context.Context
  8474  	header_      http.Header
  8475  }
  8476  
  8477  // List: Lists the health datasets in the current project.
  8478  //
  8479  //   - parent: The name of the project whose datasets should be listed. For
  8480  //     example, `projects/{project_id}/locations/{location_id}`.
  8481  func (r *ProjectsLocationsDatasetsService) List(parent string) *ProjectsLocationsDatasetsListCall {
  8482  	c := &ProjectsLocationsDatasetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8483  	c.parent = parent
  8484  	return c
  8485  }
  8486  
  8487  // PageSize sets the optional parameter "pageSize": The maximum number of items
  8488  // to return. If not specified, 100 is used. May not be larger than 1000.
  8489  func (c *ProjectsLocationsDatasetsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsListCall {
  8490  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  8491  	return c
  8492  }
  8493  
  8494  // PageToken sets the optional parameter "pageToken": The next_page_token value
  8495  // returned from a previous List request, if any.
  8496  func (c *ProjectsLocationsDatasetsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsListCall {
  8497  	c.urlParams_.Set("pageToken", pageToken)
  8498  	return c
  8499  }
  8500  
  8501  // Fields allows partial responses to be retrieved. See
  8502  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8503  // details.
  8504  func (c *ProjectsLocationsDatasetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsListCall {
  8505  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8506  	return c
  8507  }
  8508  
  8509  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8510  // object's ETag matches the given value. This is useful for getting updates
  8511  // only after the object has changed since the last request.
  8512  func (c *ProjectsLocationsDatasetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsListCall {
  8513  	c.ifNoneMatch_ = entityTag
  8514  	return c
  8515  }
  8516  
  8517  // Context sets the context to be used in this call's Do method.
  8518  func (c *ProjectsLocationsDatasetsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsListCall {
  8519  	c.ctx_ = ctx
  8520  	return c
  8521  }
  8522  
  8523  // Header returns a http.Header that can be modified by the caller to add
  8524  // headers to the request.
  8525  func (c *ProjectsLocationsDatasetsListCall) Header() http.Header {
  8526  	if c.header_ == nil {
  8527  		c.header_ = make(http.Header)
  8528  	}
  8529  	return c.header_
  8530  }
  8531  
  8532  func (c *ProjectsLocationsDatasetsListCall) doRequest(alt string) (*http.Response, error) {
  8533  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8534  	if c.ifNoneMatch_ != "" {
  8535  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8536  	}
  8537  	var body io.Reader = nil
  8538  	c.urlParams_.Set("alt", alt)
  8539  	c.urlParams_.Set("prettyPrint", "false")
  8540  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/datasets")
  8541  	urls += "?" + c.urlParams_.Encode()
  8542  	req, err := http.NewRequest("GET", urls, body)
  8543  	if err != nil {
  8544  		return nil, err
  8545  	}
  8546  	req.Header = reqHeaders
  8547  	googleapi.Expand(req.URL, map[string]string{
  8548  		"parent": c.parent,
  8549  	})
  8550  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8551  }
  8552  
  8553  // Do executes the "healthcare.projects.locations.datasets.list" call.
  8554  // Any non-2xx status code is an error. Response headers are in either
  8555  // *ListDatasetsResponse.ServerResponse.Header or (if a response was returned
  8556  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  8557  // check whether the returned error was because http.StatusNotModified was
  8558  // returned.
  8559  func (c *ProjectsLocationsDatasetsListCall) Do(opts ...googleapi.CallOption) (*ListDatasetsResponse, error) {
  8560  	gensupport.SetOptions(c.urlParams_, opts...)
  8561  	res, err := c.doRequest("json")
  8562  	if res != nil && res.StatusCode == http.StatusNotModified {
  8563  		if res.Body != nil {
  8564  			res.Body.Close()
  8565  		}
  8566  		return nil, gensupport.WrapError(&googleapi.Error{
  8567  			Code:   res.StatusCode,
  8568  			Header: res.Header,
  8569  		})
  8570  	}
  8571  	if err != nil {
  8572  		return nil, err
  8573  	}
  8574  	defer googleapi.CloseBody(res)
  8575  	if err := googleapi.CheckResponse(res); err != nil {
  8576  		return nil, gensupport.WrapError(err)
  8577  	}
  8578  	ret := &ListDatasetsResponse{
  8579  		ServerResponse: googleapi.ServerResponse{
  8580  			Header:         res.Header,
  8581  			HTTPStatusCode: res.StatusCode,
  8582  		},
  8583  	}
  8584  	target := &ret
  8585  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8586  		return nil, err
  8587  	}
  8588  	return ret, nil
  8589  }
  8590  
  8591  // Pages invokes f for each page of results.
  8592  // A non-nil error returned from f will halt the iteration.
  8593  // The provided context supersedes any context provided to the Context method.
  8594  func (c *ProjectsLocationsDatasetsListCall) Pages(ctx context.Context, f func(*ListDatasetsResponse) error) error {
  8595  	c.ctx_ = ctx
  8596  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  8597  	for {
  8598  		x, err := c.Do()
  8599  		if err != nil {
  8600  			return err
  8601  		}
  8602  		if err := f(x); err != nil {
  8603  			return err
  8604  		}
  8605  		if x.NextPageToken == "" {
  8606  			return nil
  8607  		}
  8608  		c.PageToken(x.NextPageToken)
  8609  	}
  8610  }
  8611  
  8612  type ProjectsLocationsDatasetsPatchCall struct {
  8613  	s          *Service
  8614  	name       string
  8615  	dataset    *Dataset
  8616  	urlParams_ gensupport.URLParams
  8617  	ctx_       context.Context
  8618  	header_    http.Header
  8619  }
  8620  
  8621  // Patch: Updates dataset metadata.
  8622  //
  8623  //   - name: Identifier. Resource name of the dataset, of the form
  8624  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`.
  8625  func (r *ProjectsLocationsDatasetsService) Patch(name string, dataset *Dataset) *ProjectsLocationsDatasetsPatchCall {
  8626  	c := &ProjectsLocationsDatasetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8627  	c.name = name
  8628  	c.dataset = dataset
  8629  	return c
  8630  }
  8631  
  8632  // UpdateMask sets the optional parameter "updateMask": Required. The update
  8633  // mask applies to the resource. For the `FieldMask` definition, see
  8634  // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
  8635  func (c *ProjectsLocationsDatasetsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsPatchCall {
  8636  	c.urlParams_.Set("updateMask", updateMask)
  8637  	return c
  8638  }
  8639  
  8640  // Fields allows partial responses to be retrieved. See
  8641  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8642  // details.
  8643  func (c *ProjectsLocationsDatasetsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsPatchCall {
  8644  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8645  	return c
  8646  }
  8647  
  8648  // Context sets the context to be used in this call's Do method.
  8649  func (c *ProjectsLocationsDatasetsPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsPatchCall {
  8650  	c.ctx_ = ctx
  8651  	return c
  8652  }
  8653  
  8654  // Header returns a http.Header that can be modified by the caller to add
  8655  // headers to the request.
  8656  func (c *ProjectsLocationsDatasetsPatchCall) Header() http.Header {
  8657  	if c.header_ == nil {
  8658  		c.header_ = make(http.Header)
  8659  	}
  8660  	return c.header_
  8661  }
  8662  
  8663  func (c *ProjectsLocationsDatasetsPatchCall) doRequest(alt string) (*http.Response, error) {
  8664  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8665  	var body io.Reader = nil
  8666  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.dataset)
  8667  	if err != nil {
  8668  		return nil, err
  8669  	}
  8670  	c.urlParams_.Set("alt", alt)
  8671  	c.urlParams_.Set("prettyPrint", "false")
  8672  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
  8673  	urls += "?" + c.urlParams_.Encode()
  8674  	req, err := http.NewRequest("PATCH", urls, body)
  8675  	if err != nil {
  8676  		return nil, err
  8677  	}
  8678  	req.Header = reqHeaders
  8679  	googleapi.Expand(req.URL, map[string]string{
  8680  		"name": c.name,
  8681  	})
  8682  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8683  }
  8684  
  8685  // Do executes the "healthcare.projects.locations.datasets.patch" call.
  8686  // Any non-2xx status code is an error. Response headers are in either
  8687  // *Dataset.ServerResponse.Header or (if a response was returned at all) in
  8688  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8689  // whether the returned error was because http.StatusNotModified was returned.
  8690  func (c *ProjectsLocationsDatasetsPatchCall) Do(opts ...googleapi.CallOption) (*Dataset, error) {
  8691  	gensupport.SetOptions(c.urlParams_, opts...)
  8692  	res, err := c.doRequest("json")
  8693  	if res != nil && res.StatusCode == http.StatusNotModified {
  8694  		if res.Body != nil {
  8695  			res.Body.Close()
  8696  		}
  8697  		return nil, gensupport.WrapError(&googleapi.Error{
  8698  			Code:   res.StatusCode,
  8699  			Header: res.Header,
  8700  		})
  8701  	}
  8702  	if err != nil {
  8703  		return nil, err
  8704  	}
  8705  	defer googleapi.CloseBody(res)
  8706  	if err := googleapi.CheckResponse(res); err != nil {
  8707  		return nil, gensupport.WrapError(err)
  8708  	}
  8709  	ret := &Dataset{
  8710  		ServerResponse: googleapi.ServerResponse{
  8711  			Header:         res.Header,
  8712  			HTTPStatusCode: res.StatusCode,
  8713  		},
  8714  	}
  8715  	target := &ret
  8716  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8717  		return nil, err
  8718  	}
  8719  	return ret, nil
  8720  }
  8721  
  8722  type ProjectsLocationsDatasetsSetIamPolicyCall struct {
  8723  	s                   *Service
  8724  	resource            string
  8725  	setiampolicyrequest *SetIamPolicyRequest
  8726  	urlParams_          gensupport.URLParams
  8727  	ctx_                context.Context
  8728  	header_             http.Header
  8729  }
  8730  
  8731  // SetIamPolicy: Sets the access control policy on the specified resource.
  8732  // Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`,
  8733  // and `PERMISSION_DENIED` errors.
  8734  //
  8735  //   - resource: REQUIRED: The resource for which the policy is being specified.
  8736  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
  8737  //     for the appropriate value for this field.
  8738  func (r *ProjectsLocationsDatasetsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsSetIamPolicyCall {
  8739  	c := &ProjectsLocationsDatasetsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8740  	c.resource = resource
  8741  	c.setiampolicyrequest = setiampolicyrequest
  8742  	return c
  8743  }
  8744  
  8745  // Fields allows partial responses to be retrieved. See
  8746  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8747  // details.
  8748  func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSetIamPolicyCall {
  8749  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8750  	return c
  8751  }
  8752  
  8753  // Context sets the context to be used in this call's Do method.
  8754  func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSetIamPolicyCall {
  8755  	c.ctx_ = ctx
  8756  	return c
  8757  }
  8758  
  8759  // Header returns a http.Header that can be modified by the caller to add
  8760  // headers to the request.
  8761  func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Header() http.Header {
  8762  	if c.header_ == nil {
  8763  		c.header_ = make(http.Header)
  8764  	}
  8765  	return c.header_
  8766  }
  8767  
  8768  func (c *ProjectsLocationsDatasetsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  8769  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8770  	var body io.Reader = nil
  8771  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
  8772  	if err != nil {
  8773  		return nil, err
  8774  	}
  8775  	c.urlParams_.Set("alt", alt)
  8776  	c.urlParams_.Set("prettyPrint", "false")
  8777  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy")
  8778  	urls += "?" + c.urlParams_.Encode()
  8779  	req, err := http.NewRequest("POST", urls, body)
  8780  	if err != nil {
  8781  		return nil, err
  8782  	}
  8783  	req.Header = reqHeaders
  8784  	googleapi.Expand(req.URL, map[string]string{
  8785  		"resource": c.resource,
  8786  	})
  8787  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8788  }
  8789  
  8790  // Do executes the "healthcare.projects.locations.datasets.setIamPolicy" call.
  8791  // Any non-2xx status code is an error. Response headers are in either
  8792  // *Policy.ServerResponse.Header or (if a response was returned at all) in
  8793  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8794  // whether the returned error was because http.StatusNotModified was returned.
  8795  func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
  8796  	gensupport.SetOptions(c.urlParams_, opts...)
  8797  	res, err := c.doRequest("json")
  8798  	if res != nil && res.StatusCode == http.StatusNotModified {
  8799  		if res.Body != nil {
  8800  			res.Body.Close()
  8801  		}
  8802  		return nil, gensupport.WrapError(&googleapi.Error{
  8803  			Code:   res.StatusCode,
  8804  			Header: res.Header,
  8805  		})
  8806  	}
  8807  	if err != nil {
  8808  		return nil, err
  8809  	}
  8810  	defer googleapi.CloseBody(res)
  8811  	if err := googleapi.CheckResponse(res); err != nil {
  8812  		return nil, gensupport.WrapError(err)
  8813  	}
  8814  	ret := &Policy{
  8815  		ServerResponse: googleapi.ServerResponse{
  8816  			Header:         res.Header,
  8817  			HTTPStatusCode: res.StatusCode,
  8818  		},
  8819  	}
  8820  	target := &ret
  8821  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8822  		return nil, err
  8823  	}
  8824  	return ret, nil
  8825  }
  8826  
  8827  type ProjectsLocationsDatasetsTestIamPermissionsCall struct {
  8828  	s                         *Service
  8829  	resource                  string
  8830  	testiampermissionsrequest *TestIamPermissionsRequest
  8831  	urlParams_                gensupport.URLParams
  8832  	ctx_                      context.Context
  8833  	header_                   http.Header
  8834  }
  8835  
  8836  // TestIamPermissions: Returns permissions that a caller has on the specified
  8837  // resource. If the resource does not exist, this will return an empty set of
  8838  // permissions, not a `NOT_FOUND` error. Note: This operation is designed to be
  8839  // used for building permission-aware UIs and command-line tools, not for
  8840  // authorization checking. This operation may "fail open" without warning.
  8841  //
  8842  //   - resource: REQUIRED: The resource for which the policy detail is being
  8843  //     requested. See Resource names
  8844  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
  8845  //     value for this field.
  8846  func (r *ProjectsLocationsDatasetsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsTestIamPermissionsCall {
  8847  	c := &ProjectsLocationsDatasetsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8848  	c.resource = resource
  8849  	c.testiampermissionsrequest = testiampermissionsrequest
  8850  	return c
  8851  }
  8852  
  8853  // Fields allows partial responses to be retrieved. See
  8854  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8855  // details.
  8856  func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsTestIamPermissionsCall {
  8857  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8858  	return c
  8859  }
  8860  
  8861  // Context sets the context to be used in this call's Do method.
  8862  func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsTestIamPermissionsCall {
  8863  	c.ctx_ = ctx
  8864  	return c
  8865  }
  8866  
  8867  // Header returns a http.Header that can be modified by the caller to add
  8868  // headers to the request.
  8869  func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Header() http.Header {
  8870  	if c.header_ == nil {
  8871  		c.header_ = make(http.Header)
  8872  	}
  8873  	return c.header_
  8874  }
  8875  
  8876  func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
  8877  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8878  	var body io.Reader = nil
  8879  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
  8880  	if err != nil {
  8881  		return nil, err
  8882  	}
  8883  	c.urlParams_.Set("alt", alt)
  8884  	c.urlParams_.Set("prettyPrint", "false")
  8885  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions")
  8886  	urls += "?" + c.urlParams_.Encode()
  8887  	req, err := http.NewRequest("POST", urls, body)
  8888  	if err != nil {
  8889  		return nil, err
  8890  	}
  8891  	req.Header = reqHeaders
  8892  	googleapi.Expand(req.URL, map[string]string{
  8893  		"resource": c.resource,
  8894  	})
  8895  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8896  }
  8897  
  8898  // Do executes the "healthcare.projects.locations.datasets.testIamPermissions" call.
  8899  // Any non-2xx status code is an error. Response headers are in either
  8900  // *TestIamPermissionsResponse.ServerResponse.Header or (if a response was
  8901  // returned at all) in error.(*googleapi.Error).Header. Use
  8902  // googleapi.IsNotModified to check whether the returned error was because
  8903  // http.StatusNotModified was returned.
  8904  func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
  8905  	gensupport.SetOptions(c.urlParams_, opts...)
  8906  	res, err := c.doRequest("json")
  8907  	if res != nil && res.StatusCode == http.StatusNotModified {
  8908  		if res.Body != nil {
  8909  			res.Body.Close()
  8910  		}
  8911  		return nil, gensupport.WrapError(&googleapi.Error{
  8912  			Code:   res.StatusCode,
  8913  			Header: res.Header,
  8914  		})
  8915  	}
  8916  	if err != nil {
  8917  		return nil, err
  8918  	}
  8919  	defer googleapi.CloseBody(res)
  8920  	if err := googleapi.CheckResponse(res); err != nil {
  8921  		return nil, gensupport.WrapError(err)
  8922  	}
  8923  	ret := &TestIamPermissionsResponse{
  8924  		ServerResponse: googleapi.ServerResponse{
  8925  			Header:         res.Header,
  8926  			HTTPStatusCode: res.StatusCode,
  8927  		},
  8928  	}
  8929  	target := &ret
  8930  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8931  		return nil, err
  8932  	}
  8933  	return ret, nil
  8934  }
  8935  
  8936  type ProjectsLocationsDatasetsAnnotationStoresCreateCall struct {
  8937  	s               *Service
  8938  	parent          string
  8939  	annotationstore *AnnotationStore
  8940  	urlParams_      gensupport.URLParams
  8941  	ctx_            context.Context
  8942  	header_         http.Header
  8943  }
  8944  
  8945  // Create: Creates a new Annotation store within the parent dataset.
  8946  //
  8947  // - parent: The name of the dataset this Annotation store belongs to.
  8948  func (r *ProjectsLocationsDatasetsAnnotationStoresService) Create(parent string, annotationstore *AnnotationStore) *ProjectsLocationsDatasetsAnnotationStoresCreateCall {
  8949  	c := &ProjectsLocationsDatasetsAnnotationStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8950  	c.parent = parent
  8951  	c.annotationstore = annotationstore
  8952  	return c
  8953  }
  8954  
  8955  // AnnotationStoreId sets the optional parameter "annotationStoreId": Required.
  8956  // The ID of the Annotation store that is being created. The string must match
  8957  // the following regex: `[\p{L}\p{N}_\-\.]{1,256}`.
  8958  func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) AnnotationStoreId(annotationStoreId string) *ProjectsLocationsDatasetsAnnotationStoresCreateCall {
  8959  	c.urlParams_.Set("annotationStoreId", annotationStoreId)
  8960  	return c
  8961  }
  8962  
  8963  // Fields allows partial responses to be retrieved. See
  8964  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8965  // details.
  8966  func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresCreateCall {
  8967  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8968  	return c
  8969  }
  8970  
  8971  // Context sets the context to be used in this call's Do method.
  8972  func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresCreateCall {
  8973  	c.ctx_ = ctx
  8974  	return c
  8975  }
  8976  
  8977  // Header returns a http.Header that can be modified by the caller to add
  8978  // headers to the request.
  8979  func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) Header() http.Header {
  8980  	if c.header_ == nil {
  8981  		c.header_ = make(http.Header)
  8982  	}
  8983  	return c.header_
  8984  }
  8985  
  8986  func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) doRequest(alt string) (*http.Response, error) {
  8987  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8988  	var body io.Reader = nil
  8989  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.annotationstore)
  8990  	if err != nil {
  8991  		return nil, err
  8992  	}
  8993  	c.urlParams_.Set("alt", alt)
  8994  	c.urlParams_.Set("prettyPrint", "false")
  8995  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/annotationStores")
  8996  	urls += "?" + c.urlParams_.Encode()
  8997  	req, err := http.NewRequest("POST", urls, body)
  8998  	if err != nil {
  8999  		return nil, err
  9000  	}
  9001  	req.Header = reqHeaders
  9002  	googleapi.Expand(req.URL, map[string]string{
  9003  		"parent": c.parent,
  9004  	})
  9005  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9006  }
  9007  
  9008  // Do executes the "healthcare.projects.locations.datasets.annotationStores.create" call.
  9009  // Any non-2xx status code is an error. Response headers are in either
  9010  // *AnnotationStore.ServerResponse.Header or (if a response was returned at
  9011  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  9012  // check whether the returned error was because http.StatusNotModified was
  9013  // returned.
  9014  func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) Do(opts ...googleapi.CallOption) (*AnnotationStore, error) {
  9015  	gensupport.SetOptions(c.urlParams_, opts...)
  9016  	res, err := c.doRequest("json")
  9017  	if res != nil && res.StatusCode == http.StatusNotModified {
  9018  		if res.Body != nil {
  9019  			res.Body.Close()
  9020  		}
  9021  		return nil, gensupport.WrapError(&googleapi.Error{
  9022  			Code:   res.StatusCode,
  9023  			Header: res.Header,
  9024  		})
  9025  	}
  9026  	if err != nil {
  9027  		return nil, err
  9028  	}
  9029  	defer googleapi.CloseBody(res)
  9030  	if err := googleapi.CheckResponse(res); err != nil {
  9031  		return nil, gensupport.WrapError(err)
  9032  	}
  9033  	ret := &AnnotationStore{
  9034  		ServerResponse: googleapi.ServerResponse{
  9035  			Header:         res.Header,
  9036  			HTTPStatusCode: res.StatusCode,
  9037  		},
  9038  	}
  9039  	target := &ret
  9040  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9041  		return nil, err
  9042  	}
  9043  	return ret, nil
  9044  }
  9045  
  9046  type ProjectsLocationsDatasetsAnnotationStoresDeleteCall struct {
  9047  	s          *Service
  9048  	name       string
  9049  	urlParams_ gensupport.URLParams
  9050  	ctx_       context.Context
  9051  	header_    http.Header
  9052  }
  9053  
  9054  // Delete: Deletes the specified Annotation store and removes all annotations
  9055  // that are contained within it.
  9056  //
  9057  // - name: The resource name of the Annotation store to delete.
  9058  func (r *ProjectsLocationsDatasetsAnnotationStoresService) Delete(name string) *ProjectsLocationsDatasetsAnnotationStoresDeleteCall {
  9059  	c := &ProjectsLocationsDatasetsAnnotationStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9060  	c.name = name
  9061  	return c
  9062  }
  9063  
  9064  // Fields allows partial responses to be retrieved. See
  9065  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9066  // details.
  9067  func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresDeleteCall {
  9068  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9069  	return c
  9070  }
  9071  
  9072  // Context sets the context to be used in this call's Do method.
  9073  func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresDeleteCall {
  9074  	c.ctx_ = ctx
  9075  	return c
  9076  }
  9077  
  9078  // Header returns a http.Header that can be modified by the caller to add
  9079  // headers to the request.
  9080  func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) Header() http.Header {
  9081  	if c.header_ == nil {
  9082  		c.header_ = make(http.Header)
  9083  	}
  9084  	return c.header_
  9085  }
  9086  
  9087  func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) doRequest(alt string) (*http.Response, error) {
  9088  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9089  	var body io.Reader = nil
  9090  	c.urlParams_.Set("alt", alt)
  9091  	c.urlParams_.Set("prettyPrint", "false")
  9092  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
  9093  	urls += "?" + c.urlParams_.Encode()
  9094  	req, err := http.NewRequest("DELETE", urls, body)
  9095  	if err != nil {
  9096  		return nil, err
  9097  	}
  9098  	req.Header = reqHeaders
  9099  	googleapi.Expand(req.URL, map[string]string{
  9100  		"name": c.name,
  9101  	})
  9102  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9103  }
  9104  
  9105  // Do executes the "healthcare.projects.locations.datasets.annotationStores.delete" call.
  9106  // Any non-2xx status code is an error. Response headers are in either
  9107  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  9108  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9109  // whether the returned error was because http.StatusNotModified was returned.
  9110  func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  9111  	gensupport.SetOptions(c.urlParams_, opts...)
  9112  	res, err := c.doRequest("json")
  9113  	if res != nil && res.StatusCode == http.StatusNotModified {
  9114  		if res.Body != nil {
  9115  			res.Body.Close()
  9116  		}
  9117  		return nil, gensupport.WrapError(&googleapi.Error{
  9118  			Code:   res.StatusCode,
  9119  			Header: res.Header,
  9120  		})
  9121  	}
  9122  	if err != nil {
  9123  		return nil, err
  9124  	}
  9125  	defer googleapi.CloseBody(res)
  9126  	if err := googleapi.CheckResponse(res); err != nil {
  9127  		return nil, gensupport.WrapError(err)
  9128  	}
  9129  	ret := &Empty{
  9130  		ServerResponse: googleapi.ServerResponse{
  9131  			Header:         res.Header,
  9132  			HTTPStatusCode: res.StatusCode,
  9133  		},
  9134  	}
  9135  	target := &ret
  9136  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9137  		return nil, err
  9138  	}
  9139  	return ret, nil
  9140  }
  9141  
  9142  type ProjectsLocationsDatasetsAnnotationStoresEvaluateCall struct {
  9143  	s                              *Service
  9144  	name                           string
  9145  	evaluateannotationstorerequest *EvaluateAnnotationStoreRequest
  9146  	urlParams_                     gensupport.URLParams
  9147  	ctx_                           context.Context
  9148  	header_                        http.Header
  9149  }
  9150  
  9151  // Evaluate: Evaluate an Annotation store against a ground truth Annotation
  9152  // store. When the operation finishes successfully, a detailed response is
  9153  // returned of type EvaluateAnnotationStoreResponse, contained in the response.
  9154  // The metadata field type is OperationMetadata. Errors are logged to Cloud
  9155  // Logging (see Viewing error logs in Cloud Logging
  9156  // (https://cloud.google.com/healthcare/docs/how-tos/logging)).
  9157  //
  9158  //   - name: The Annotation store to compare against `golden_store`, in the
  9159  //     format of
  9160  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annota
  9161  //     tionStores/{annotation_store_id}`.
  9162  func (r *ProjectsLocationsDatasetsAnnotationStoresService) Evaluate(name string, evaluateannotationstorerequest *EvaluateAnnotationStoreRequest) *ProjectsLocationsDatasetsAnnotationStoresEvaluateCall {
  9163  	c := &ProjectsLocationsDatasetsAnnotationStoresEvaluateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9164  	c.name = name
  9165  	c.evaluateannotationstorerequest = evaluateannotationstorerequest
  9166  	return c
  9167  }
  9168  
  9169  // Fields allows partial responses to be retrieved. See
  9170  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9171  // details.
  9172  func (c *ProjectsLocationsDatasetsAnnotationStoresEvaluateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresEvaluateCall {
  9173  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9174  	return c
  9175  }
  9176  
  9177  // Context sets the context to be used in this call's Do method.
  9178  func (c *ProjectsLocationsDatasetsAnnotationStoresEvaluateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresEvaluateCall {
  9179  	c.ctx_ = ctx
  9180  	return c
  9181  }
  9182  
  9183  // Header returns a http.Header that can be modified by the caller to add
  9184  // headers to the request.
  9185  func (c *ProjectsLocationsDatasetsAnnotationStoresEvaluateCall) Header() http.Header {
  9186  	if c.header_ == nil {
  9187  		c.header_ = make(http.Header)
  9188  	}
  9189  	return c.header_
  9190  }
  9191  
  9192  func (c *ProjectsLocationsDatasetsAnnotationStoresEvaluateCall) doRequest(alt string) (*http.Response, error) {
  9193  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9194  	var body io.Reader = nil
  9195  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.evaluateannotationstorerequest)
  9196  	if err != nil {
  9197  		return nil, err
  9198  	}
  9199  	c.urlParams_.Set("alt", alt)
  9200  	c.urlParams_.Set("prettyPrint", "false")
  9201  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:evaluate")
  9202  	urls += "?" + c.urlParams_.Encode()
  9203  	req, err := http.NewRequest("POST", urls, body)
  9204  	if err != nil {
  9205  		return nil, err
  9206  	}
  9207  	req.Header = reqHeaders
  9208  	googleapi.Expand(req.URL, map[string]string{
  9209  		"name": c.name,
  9210  	})
  9211  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9212  }
  9213  
  9214  // Do executes the "healthcare.projects.locations.datasets.annotationStores.evaluate" call.
  9215  // Any non-2xx status code is an error. Response headers are in either
  9216  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  9217  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9218  // whether the returned error was because http.StatusNotModified was returned.
  9219  func (c *ProjectsLocationsDatasetsAnnotationStoresEvaluateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  9220  	gensupport.SetOptions(c.urlParams_, opts...)
  9221  	res, err := c.doRequest("json")
  9222  	if res != nil && res.StatusCode == http.StatusNotModified {
  9223  		if res.Body != nil {
  9224  			res.Body.Close()
  9225  		}
  9226  		return nil, gensupport.WrapError(&googleapi.Error{
  9227  			Code:   res.StatusCode,
  9228  			Header: res.Header,
  9229  		})
  9230  	}
  9231  	if err != nil {
  9232  		return nil, err
  9233  	}
  9234  	defer googleapi.CloseBody(res)
  9235  	if err := googleapi.CheckResponse(res); err != nil {
  9236  		return nil, gensupport.WrapError(err)
  9237  	}
  9238  	ret := &Operation{
  9239  		ServerResponse: googleapi.ServerResponse{
  9240  			Header:         res.Header,
  9241  			HTTPStatusCode: res.StatusCode,
  9242  		},
  9243  	}
  9244  	target := &ret
  9245  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9246  		return nil, err
  9247  	}
  9248  	return ret, nil
  9249  }
  9250  
  9251  type ProjectsLocationsDatasetsAnnotationStoresExportCall struct {
  9252  	s                        *Service
  9253  	name                     string
  9254  	exportannotationsrequest *ExportAnnotationsRequest
  9255  	urlParams_               gensupport.URLParams
  9256  	ctx_                     context.Context
  9257  	header_                  http.Header
  9258  }
  9259  
  9260  // Export: Export Annotations from the Annotation store. If the request is
  9261  // successful, a detailed response is returned of type
  9262  // ExportAnnotationsResponse, contained in the response field when the
  9263  // operation finishes. The metadata field type is OperationMetadata. Errors are
  9264  // logged to Cloud Logging (see Viewing error logs in Cloud Logging
  9265  // (https://cloud.google.com/healthcare/docs/how-tos/logging)).
  9266  //
  9267  //   - name: The name of the Annotation store to export annotations to, in the
  9268  //     format of
  9269  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annota
  9270  //     tionStores/{annotation_store_id}`.
  9271  func (r *ProjectsLocationsDatasetsAnnotationStoresService) Export(name string, exportannotationsrequest *ExportAnnotationsRequest) *ProjectsLocationsDatasetsAnnotationStoresExportCall {
  9272  	c := &ProjectsLocationsDatasetsAnnotationStoresExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9273  	c.name = name
  9274  	c.exportannotationsrequest = exportannotationsrequest
  9275  	return c
  9276  }
  9277  
  9278  // Fields allows partial responses to be retrieved. See
  9279  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9280  // details.
  9281  func (c *ProjectsLocationsDatasetsAnnotationStoresExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresExportCall {
  9282  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9283  	return c
  9284  }
  9285  
  9286  // Context sets the context to be used in this call's Do method.
  9287  func (c *ProjectsLocationsDatasetsAnnotationStoresExportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresExportCall {
  9288  	c.ctx_ = ctx
  9289  	return c
  9290  }
  9291  
  9292  // Header returns a http.Header that can be modified by the caller to add
  9293  // headers to the request.
  9294  func (c *ProjectsLocationsDatasetsAnnotationStoresExportCall) Header() http.Header {
  9295  	if c.header_ == nil {
  9296  		c.header_ = make(http.Header)
  9297  	}
  9298  	return c.header_
  9299  }
  9300  
  9301  func (c *ProjectsLocationsDatasetsAnnotationStoresExportCall) doRequest(alt string) (*http.Response, error) {
  9302  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9303  	var body io.Reader = nil
  9304  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.exportannotationsrequest)
  9305  	if err != nil {
  9306  		return nil, err
  9307  	}
  9308  	c.urlParams_.Set("alt", alt)
  9309  	c.urlParams_.Set("prettyPrint", "false")
  9310  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:export")
  9311  	urls += "?" + c.urlParams_.Encode()
  9312  	req, err := http.NewRequest("POST", urls, body)
  9313  	if err != nil {
  9314  		return nil, err
  9315  	}
  9316  	req.Header = reqHeaders
  9317  	googleapi.Expand(req.URL, map[string]string{
  9318  		"name": c.name,
  9319  	})
  9320  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9321  }
  9322  
  9323  // Do executes the "healthcare.projects.locations.datasets.annotationStores.export" call.
  9324  // Any non-2xx status code is an error. Response headers are in either
  9325  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  9326  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9327  // whether the returned error was because http.StatusNotModified was returned.
  9328  func (c *ProjectsLocationsDatasetsAnnotationStoresExportCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  9329  	gensupport.SetOptions(c.urlParams_, opts...)
  9330  	res, err := c.doRequest("json")
  9331  	if res != nil && res.StatusCode == http.StatusNotModified {
  9332  		if res.Body != nil {
  9333  			res.Body.Close()
  9334  		}
  9335  		return nil, gensupport.WrapError(&googleapi.Error{
  9336  			Code:   res.StatusCode,
  9337  			Header: res.Header,
  9338  		})
  9339  	}
  9340  	if err != nil {
  9341  		return nil, err
  9342  	}
  9343  	defer googleapi.CloseBody(res)
  9344  	if err := googleapi.CheckResponse(res); err != nil {
  9345  		return nil, gensupport.WrapError(err)
  9346  	}
  9347  	ret := &Operation{
  9348  		ServerResponse: googleapi.ServerResponse{
  9349  			Header:         res.Header,
  9350  			HTTPStatusCode: res.StatusCode,
  9351  		},
  9352  	}
  9353  	target := &ret
  9354  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9355  		return nil, err
  9356  	}
  9357  	return ret, nil
  9358  }
  9359  
  9360  type ProjectsLocationsDatasetsAnnotationStoresGetCall struct {
  9361  	s            *Service
  9362  	name         string
  9363  	urlParams_   gensupport.URLParams
  9364  	ifNoneMatch_ string
  9365  	ctx_         context.Context
  9366  	header_      http.Header
  9367  }
  9368  
  9369  // Get: Gets the specified Annotation store or returns NOT_FOUND if it does not
  9370  // exist.
  9371  //
  9372  // - name: The resource name of the Annotation store to get.
  9373  func (r *ProjectsLocationsDatasetsAnnotationStoresService) Get(name string) *ProjectsLocationsDatasetsAnnotationStoresGetCall {
  9374  	c := &ProjectsLocationsDatasetsAnnotationStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9375  	c.name = name
  9376  	return c
  9377  }
  9378  
  9379  // Fields allows partial responses to be retrieved. See
  9380  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9381  // details.
  9382  func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresGetCall {
  9383  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9384  	return c
  9385  }
  9386  
  9387  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9388  // object's ETag matches the given value. This is useful for getting updates
  9389  // only after the object has changed since the last request.
  9390  func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationStoresGetCall {
  9391  	c.ifNoneMatch_ = entityTag
  9392  	return c
  9393  }
  9394  
  9395  // Context sets the context to be used in this call's Do method.
  9396  func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresGetCall {
  9397  	c.ctx_ = ctx
  9398  	return c
  9399  }
  9400  
  9401  // Header returns a http.Header that can be modified by the caller to add
  9402  // headers to the request.
  9403  func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) Header() http.Header {
  9404  	if c.header_ == nil {
  9405  		c.header_ = make(http.Header)
  9406  	}
  9407  	return c.header_
  9408  }
  9409  
  9410  func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) doRequest(alt string) (*http.Response, error) {
  9411  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9412  	if c.ifNoneMatch_ != "" {
  9413  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9414  	}
  9415  	var body io.Reader = nil
  9416  	c.urlParams_.Set("alt", alt)
  9417  	c.urlParams_.Set("prettyPrint", "false")
  9418  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
  9419  	urls += "?" + c.urlParams_.Encode()
  9420  	req, err := http.NewRequest("GET", urls, body)
  9421  	if err != nil {
  9422  		return nil, err
  9423  	}
  9424  	req.Header = reqHeaders
  9425  	googleapi.Expand(req.URL, map[string]string{
  9426  		"name": c.name,
  9427  	})
  9428  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9429  }
  9430  
  9431  // Do executes the "healthcare.projects.locations.datasets.annotationStores.get" call.
  9432  // Any non-2xx status code is an error. Response headers are in either
  9433  // *AnnotationStore.ServerResponse.Header or (if a response was returned at
  9434  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  9435  // check whether the returned error was because http.StatusNotModified was
  9436  // returned.
  9437  func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) Do(opts ...googleapi.CallOption) (*AnnotationStore, error) {
  9438  	gensupport.SetOptions(c.urlParams_, opts...)
  9439  	res, err := c.doRequest("json")
  9440  	if res != nil && res.StatusCode == http.StatusNotModified {
  9441  		if res.Body != nil {
  9442  			res.Body.Close()
  9443  		}
  9444  		return nil, gensupport.WrapError(&googleapi.Error{
  9445  			Code:   res.StatusCode,
  9446  			Header: res.Header,
  9447  		})
  9448  	}
  9449  	if err != nil {
  9450  		return nil, err
  9451  	}
  9452  	defer googleapi.CloseBody(res)
  9453  	if err := googleapi.CheckResponse(res); err != nil {
  9454  		return nil, gensupport.WrapError(err)
  9455  	}
  9456  	ret := &AnnotationStore{
  9457  		ServerResponse: googleapi.ServerResponse{
  9458  			Header:         res.Header,
  9459  			HTTPStatusCode: res.StatusCode,
  9460  		},
  9461  	}
  9462  	target := &ret
  9463  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9464  		return nil, err
  9465  	}
  9466  	return ret, nil
  9467  }
  9468  
  9469  type ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall struct {
  9470  	s            *Service
  9471  	resource     string
  9472  	urlParams_   gensupport.URLParams
  9473  	ifNoneMatch_ string
  9474  	ctx_         context.Context
  9475  	header_      http.Header
  9476  }
  9477  
  9478  // GetIamPolicy: Gets the access control policy for a resource. Returns an
  9479  // empty policy if the resource exists and does not have a policy set.
  9480  //
  9481  //   - resource: REQUIRED: The resource for which the policy is being requested.
  9482  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
  9483  //     for the appropriate value for this field.
  9484  func (r *ProjectsLocationsDatasetsAnnotationStoresService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall {
  9485  	c := &ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9486  	c.resource = resource
  9487  	return c
  9488  }
  9489  
  9490  // OptionsRequestedPolicyVersion sets the optional parameter
  9491  // "options.requestedPolicyVersion": The maximum policy version that will be
  9492  // used to format the policy. Valid values are 0, 1, and 3. Requests specifying
  9493  // an invalid value will be rejected. Requests for policies with any
  9494  // conditional role bindings must specify version 3. Policies with no
  9495  // conditional role bindings may specify any valid value or leave the field
  9496  // unset. The policy in the response might use the policy version that you
  9497  // specified, or it might use a lower policy version. For example, if you
  9498  // specify version 3, but the policy has no conditional role bindings, the
  9499  // response uses version 1. To learn which resources support conditions in
  9500  // their IAM policies, see the IAM documentation
  9501  // (https://cloud.google.com/iam/help/conditions/resource-policies).
  9502  func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall {
  9503  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
  9504  	return c
  9505  }
  9506  
  9507  // Fields allows partial responses to be retrieved. See
  9508  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9509  // details.
  9510  func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall {
  9511  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9512  	return c
  9513  }
  9514  
  9515  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9516  // object's ETag matches the given value. This is useful for getting updates
  9517  // only after the object has changed since the last request.
  9518  func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall {
  9519  	c.ifNoneMatch_ = entityTag
  9520  	return c
  9521  }
  9522  
  9523  // Context sets the context to be used in this call's Do method.
  9524  func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall {
  9525  	c.ctx_ = ctx
  9526  	return c
  9527  }
  9528  
  9529  // Header returns a http.Header that can be modified by the caller to add
  9530  // headers to the request.
  9531  func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) Header() http.Header {
  9532  	if c.header_ == nil {
  9533  		c.header_ = make(http.Header)
  9534  	}
  9535  	return c.header_
  9536  }
  9537  
  9538  func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  9539  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9540  	if c.ifNoneMatch_ != "" {
  9541  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9542  	}
  9543  	var body io.Reader = nil
  9544  	c.urlParams_.Set("alt", alt)
  9545  	c.urlParams_.Set("prettyPrint", "false")
  9546  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy")
  9547  	urls += "?" + c.urlParams_.Encode()
  9548  	req, err := http.NewRequest("GET", urls, body)
  9549  	if err != nil {
  9550  		return nil, err
  9551  	}
  9552  	req.Header = reqHeaders
  9553  	googleapi.Expand(req.URL, map[string]string{
  9554  		"resource": c.resource,
  9555  	})
  9556  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9557  }
  9558  
  9559  // Do executes the "healthcare.projects.locations.datasets.annotationStores.getIamPolicy" call.
  9560  // Any non-2xx status code is an error. Response headers are in either
  9561  // *Policy.ServerResponse.Header or (if a response was returned at all) in
  9562  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9563  // whether the returned error was because http.StatusNotModified was returned.
  9564  func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
  9565  	gensupport.SetOptions(c.urlParams_, opts...)
  9566  	res, err := c.doRequest("json")
  9567  	if res != nil && res.StatusCode == http.StatusNotModified {
  9568  		if res.Body != nil {
  9569  			res.Body.Close()
  9570  		}
  9571  		return nil, gensupport.WrapError(&googleapi.Error{
  9572  			Code:   res.StatusCode,
  9573  			Header: res.Header,
  9574  		})
  9575  	}
  9576  	if err != nil {
  9577  		return nil, err
  9578  	}
  9579  	defer googleapi.CloseBody(res)
  9580  	if err := googleapi.CheckResponse(res); err != nil {
  9581  		return nil, gensupport.WrapError(err)
  9582  	}
  9583  	ret := &Policy{
  9584  		ServerResponse: googleapi.ServerResponse{
  9585  			Header:         res.Header,
  9586  			HTTPStatusCode: res.StatusCode,
  9587  		},
  9588  	}
  9589  	target := &ret
  9590  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9591  		return nil, err
  9592  	}
  9593  	return ret, nil
  9594  }
  9595  
  9596  type ProjectsLocationsDatasetsAnnotationStoresImportCall struct {
  9597  	s                        *Service
  9598  	name                     string
  9599  	importannotationsrequest *ImportAnnotationsRequest
  9600  	urlParams_               gensupport.URLParams
  9601  	ctx_                     context.Context
  9602  	header_                  http.Header
  9603  }
  9604  
  9605  // Import: Import Annotations to the Annotation store by loading data from the
  9606  // specified sources. If the request is successful, a detailed response is
  9607  // returned as of type ImportAnnotationsResponse, contained in the response
  9608  // field when the operation finishes. The metadata field type is
  9609  // OperationMetadata. Errors are logged to Cloud Logging (see Viewing error
  9610  // logs in Cloud Logging
  9611  // (https://cloud.google.com/healthcare/docs/how-tos/logging)).
  9612  //
  9613  //   - name: The name of the Annotation store to which the server imports
  9614  //     annotations, in the format
  9615  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annota
  9616  //     tionStores/{annotation_store_id}`.
  9617  func (r *ProjectsLocationsDatasetsAnnotationStoresService) Import(name string, importannotationsrequest *ImportAnnotationsRequest) *ProjectsLocationsDatasetsAnnotationStoresImportCall {
  9618  	c := &ProjectsLocationsDatasetsAnnotationStoresImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9619  	c.name = name
  9620  	c.importannotationsrequest = importannotationsrequest
  9621  	return c
  9622  }
  9623  
  9624  // Fields allows partial responses to be retrieved. See
  9625  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9626  // details.
  9627  func (c *ProjectsLocationsDatasetsAnnotationStoresImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresImportCall {
  9628  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9629  	return c
  9630  }
  9631  
  9632  // Context sets the context to be used in this call's Do method.
  9633  func (c *ProjectsLocationsDatasetsAnnotationStoresImportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresImportCall {
  9634  	c.ctx_ = ctx
  9635  	return c
  9636  }
  9637  
  9638  // Header returns a http.Header that can be modified by the caller to add
  9639  // headers to the request.
  9640  func (c *ProjectsLocationsDatasetsAnnotationStoresImportCall) Header() http.Header {
  9641  	if c.header_ == nil {
  9642  		c.header_ = make(http.Header)
  9643  	}
  9644  	return c.header_
  9645  }
  9646  
  9647  func (c *ProjectsLocationsDatasetsAnnotationStoresImportCall) doRequest(alt string) (*http.Response, error) {
  9648  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9649  	var body io.Reader = nil
  9650  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.importannotationsrequest)
  9651  	if err != nil {
  9652  		return nil, err
  9653  	}
  9654  	c.urlParams_.Set("alt", alt)
  9655  	c.urlParams_.Set("prettyPrint", "false")
  9656  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:import")
  9657  	urls += "?" + c.urlParams_.Encode()
  9658  	req, err := http.NewRequest("POST", urls, body)
  9659  	if err != nil {
  9660  		return nil, err
  9661  	}
  9662  	req.Header = reqHeaders
  9663  	googleapi.Expand(req.URL, map[string]string{
  9664  		"name": c.name,
  9665  	})
  9666  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9667  }
  9668  
  9669  // Do executes the "healthcare.projects.locations.datasets.annotationStores.import" call.
  9670  // Any non-2xx status code is an error. Response headers are in either
  9671  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  9672  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9673  // whether the returned error was because http.StatusNotModified was returned.
  9674  func (c *ProjectsLocationsDatasetsAnnotationStoresImportCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  9675  	gensupport.SetOptions(c.urlParams_, opts...)
  9676  	res, err := c.doRequest("json")
  9677  	if res != nil && res.StatusCode == http.StatusNotModified {
  9678  		if res.Body != nil {
  9679  			res.Body.Close()
  9680  		}
  9681  		return nil, gensupport.WrapError(&googleapi.Error{
  9682  			Code:   res.StatusCode,
  9683  			Header: res.Header,
  9684  		})
  9685  	}
  9686  	if err != nil {
  9687  		return nil, err
  9688  	}
  9689  	defer googleapi.CloseBody(res)
  9690  	if err := googleapi.CheckResponse(res); err != nil {
  9691  		return nil, gensupport.WrapError(err)
  9692  	}
  9693  	ret := &Operation{
  9694  		ServerResponse: googleapi.ServerResponse{
  9695  			Header:         res.Header,
  9696  			HTTPStatusCode: res.StatusCode,
  9697  		},
  9698  	}
  9699  	target := &ret
  9700  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9701  		return nil, err
  9702  	}
  9703  	return ret, nil
  9704  }
  9705  
  9706  type ProjectsLocationsDatasetsAnnotationStoresListCall struct {
  9707  	s            *Service
  9708  	parent       string
  9709  	urlParams_   gensupport.URLParams
  9710  	ifNoneMatch_ string
  9711  	ctx_         context.Context
  9712  	header_      http.Header
  9713  }
  9714  
  9715  // List: Lists the Annotation stores in the given dataset for a source store.
  9716  //
  9717  // - parent: Name of the dataset.
  9718  func (r *ProjectsLocationsDatasetsAnnotationStoresService) List(parent string) *ProjectsLocationsDatasetsAnnotationStoresListCall {
  9719  	c := &ProjectsLocationsDatasetsAnnotationStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9720  	c.parent = parent
  9721  	return c
  9722  }
  9723  
  9724  // Filter sets the optional parameter "filter": Restricts stores returned to
  9725  // those matching a filter. The following syntax is available: * A string field
  9726  // value can be written as text inside quotation marks, for example "query
  9727  // text". The only valid relational operation for text fields is equality
  9728  // (`=`), where text is searched within the field, rather than having the field
  9729  // be equal to the text. For example, "Comment = great" returns messages with
  9730  // `great` in the comment field. * A number field value can be written as an
  9731  // integer, a decimal, or an exponential. The valid relational operators for
  9732  // number fields are the equality operator (`=`), along with the less
  9733  // than/greater than operators (`<`, `<=`, `>`, `>=`). Note that there is no
  9734  // inequality (`!=`) operator. You can prepend the `NOT` operator to an
  9735  // expression to negate it. * A date field value must be written in
  9736  // `yyyy-mm-dd` form. Fields with date and time use the RFC3339 time format.
  9737  // Leading zeros are required for one-digit months and days. The valid
  9738  // relational operators for date fields are the equality operator (`=`) , along
  9739  // with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note that
  9740  // there is no inequality (`!=`) operator. You can prepend the `NOT` operator
  9741  // to an expression to negate it. * Multiple field query expressions can be
  9742  // combined in one query by adding `AND` or `OR` operators between the
  9743  // expressions. If a boolean operator appears within a quoted string, it is not
  9744  // treated as special, it's just another part of the character string to be
  9745  // matched. You can prepend the `NOT` operator to an expression to negate it.
  9746  // Only filtering on labels is supported, for example `labels.key=value`.
  9747  func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Filter(filter string) *ProjectsLocationsDatasetsAnnotationStoresListCall {
  9748  	c.urlParams_.Set("filter", filter)
  9749  	return c
  9750  }
  9751  
  9752  // PageSize sets the optional parameter "pageSize": Limit on the number of
  9753  // Annotation stores to return in a single response. If not specified, 100 is
  9754  // used. May not be larger than 1000.
  9755  func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsAnnotationStoresListCall {
  9756  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  9757  	return c
  9758  }
  9759  
  9760  // PageToken sets the optional parameter "pageToken": The next_page_token value
  9761  // returned from the previous List request, if any.
  9762  func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsAnnotationStoresListCall {
  9763  	c.urlParams_.Set("pageToken", pageToken)
  9764  	return c
  9765  }
  9766  
  9767  // Fields allows partial responses to be retrieved. See
  9768  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9769  // details.
  9770  func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresListCall {
  9771  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9772  	return c
  9773  }
  9774  
  9775  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9776  // object's ETag matches the given value. This is useful for getting updates
  9777  // only after the object has changed since the last request.
  9778  func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationStoresListCall {
  9779  	c.ifNoneMatch_ = entityTag
  9780  	return c
  9781  }
  9782  
  9783  // Context sets the context to be used in this call's Do method.
  9784  func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresListCall {
  9785  	c.ctx_ = ctx
  9786  	return c
  9787  }
  9788  
  9789  // Header returns a http.Header that can be modified by the caller to add
  9790  // headers to the request.
  9791  func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Header() http.Header {
  9792  	if c.header_ == nil {
  9793  		c.header_ = make(http.Header)
  9794  	}
  9795  	return c.header_
  9796  }
  9797  
  9798  func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) doRequest(alt string) (*http.Response, error) {
  9799  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9800  	if c.ifNoneMatch_ != "" {
  9801  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9802  	}
  9803  	var body io.Reader = nil
  9804  	c.urlParams_.Set("alt", alt)
  9805  	c.urlParams_.Set("prettyPrint", "false")
  9806  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/annotationStores")
  9807  	urls += "?" + c.urlParams_.Encode()
  9808  	req, err := http.NewRequest("GET", urls, body)
  9809  	if err != nil {
  9810  		return nil, err
  9811  	}
  9812  	req.Header = reqHeaders
  9813  	googleapi.Expand(req.URL, map[string]string{
  9814  		"parent": c.parent,
  9815  	})
  9816  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9817  }
  9818  
  9819  // Do executes the "healthcare.projects.locations.datasets.annotationStores.list" call.
  9820  // Any non-2xx status code is an error. Response headers are in either
  9821  // *ListAnnotationStoresResponse.ServerResponse.Header or (if a response was
  9822  // returned at all) in error.(*googleapi.Error).Header. Use
  9823  // googleapi.IsNotModified to check whether the returned error was because
  9824  // http.StatusNotModified was returned.
  9825  func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Do(opts ...googleapi.CallOption) (*ListAnnotationStoresResponse, error) {
  9826  	gensupport.SetOptions(c.urlParams_, opts...)
  9827  	res, err := c.doRequest("json")
  9828  	if res != nil && res.StatusCode == http.StatusNotModified {
  9829  		if res.Body != nil {
  9830  			res.Body.Close()
  9831  		}
  9832  		return nil, gensupport.WrapError(&googleapi.Error{
  9833  			Code:   res.StatusCode,
  9834  			Header: res.Header,
  9835  		})
  9836  	}
  9837  	if err != nil {
  9838  		return nil, err
  9839  	}
  9840  	defer googleapi.CloseBody(res)
  9841  	if err := googleapi.CheckResponse(res); err != nil {
  9842  		return nil, gensupport.WrapError(err)
  9843  	}
  9844  	ret := &ListAnnotationStoresResponse{
  9845  		ServerResponse: googleapi.ServerResponse{
  9846  			Header:         res.Header,
  9847  			HTTPStatusCode: res.StatusCode,
  9848  		},
  9849  	}
  9850  	target := &ret
  9851  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9852  		return nil, err
  9853  	}
  9854  	return ret, nil
  9855  }
  9856  
  9857  // Pages invokes f for each page of results.
  9858  // A non-nil error returned from f will halt the iteration.
  9859  // The provided context supersedes any context provided to the Context method.
  9860  func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Pages(ctx context.Context, f func(*ListAnnotationStoresResponse) error) error {
  9861  	c.ctx_ = ctx
  9862  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  9863  	for {
  9864  		x, err := c.Do()
  9865  		if err != nil {
  9866  			return err
  9867  		}
  9868  		if err := f(x); err != nil {
  9869  			return err
  9870  		}
  9871  		if x.NextPageToken == "" {
  9872  			return nil
  9873  		}
  9874  		c.PageToken(x.NextPageToken)
  9875  	}
  9876  }
  9877  
  9878  type ProjectsLocationsDatasetsAnnotationStoresPatchCall struct {
  9879  	s               *Service
  9880  	name            string
  9881  	annotationstore *AnnotationStore
  9882  	urlParams_      gensupport.URLParams
  9883  	ctx_            context.Context
  9884  	header_         http.Header
  9885  }
  9886  
  9887  // Patch: Updates the specified Annotation store.
  9888  //
  9889  //   - name: Identifier. Resource name of the Annotation store, of the form
  9890  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annota
  9891  //     tionStores/{annotation_store_id}`.
  9892  func (r *ProjectsLocationsDatasetsAnnotationStoresService) Patch(name string, annotationstore *AnnotationStore) *ProjectsLocationsDatasetsAnnotationStoresPatchCall {
  9893  	c := &ProjectsLocationsDatasetsAnnotationStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9894  	c.name = name
  9895  	c.annotationstore = annotationstore
  9896  	return c
  9897  }
  9898  
  9899  // UpdateMask sets the optional parameter "updateMask": Required. The update
  9900  // mask applies to the resource. For the `FieldMask` definition, see
  9901  // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
  9902  func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsAnnotationStoresPatchCall {
  9903  	c.urlParams_.Set("updateMask", updateMask)
  9904  	return c
  9905  }
  9906  
  9907  // Fields allows partial responses to be retrieved. See
  9908  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9909  // details.
  9910  func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresPatchCall {
  9911  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9912  	return c
  9913  }
  9914  
  9915  // Context sets the context to be used in this call's Do method.
  9916  func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresPatchCall {
  9917  	c.ctx_ = ctx
  9918  	return c
  9919  }
  9920  
  9921  // Header returns a http.Header that can be modified by the caller to add
  9922  // headers to the request.
  9923  func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) Header() http.Header {
  9924  	if c.header_ == nil {
  9925  		c.header_ = make(http.Header)
  9926  	}
  9927  	return c.header_
  9928  }
  9929  
  9930  func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) doRequest(alt string) (*http.Response, error) {
  9931  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9932  	var body io.Reader = nil
  9933  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.annotationstore)
  9934  	if err != nil {
  9935  		return nil, err
  9936  	}
  9937  	c.urlParams_.Set("alt", alt)
  9938  	c.urlParams_.Set("prettyPrint", "false")
  9939  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
  9940  	urls += "?" + c.urlParams_.Encode()
  9941  	req, err := http.NewRequest("PATCH", urls, body)
  9942  	if err != nil {
  9943  		return nil, err
  9944  	}
  9945  	req.Header = reqHeaders
  9946  	googleapi.Expand(req.URL, map[string]string{
  9947  		"name": c.name,
  9948  	})
  9949  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9950  }
  9951  
  9952  // Do executes the "healthcare.projects.locations.datasets.annotationStores.patch" call.
  9953  // Any non-2xx status code is an error. Response headers are in either
  9954  // *AnnotationStore.ServerResponse.Header or (if a response was returned at
  9955  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  9956  // check whether the returned error was because http.StatusNotModified was
  9957  // returned.
  9958  func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) Do(opts ...googleapi.CallOption) (*AnnotationStore, error) {
  9959  	gensupport.SetOptions(c.urlParams_, opts...)
  9960  	res, err := c.doRequest("json")
  9961  	if res != nil && res.StatusCode == http.StatusNotModified {
  9962  		if res.Body != nil {
  9963  			res.Body.Close()
  9964  		}
  9965  		return nil, gensupport.WrapError(&googleapi.Error{
  9966  			Code:   res.StatusCode,
  9967  			Header: res.Header,
  9968  		})
  9969  	}
  9970  	if err != nil {
  9971  		return nil, err
  9972  	}
  9973  	defer googleapi.CloseBody(res)
  9974  	if err := googleapi.CheckResponse(res); err != nil {
  9975  		return nil, gensupport.WrapError(err)
  9976  	}
  9977  	ret := &AnnotationStore{
  9978  		ServerResponse: googleapi.ServerResponse{
  9979  			Header:         res.Header,
  9980  			HTTPStatusCode: res.StatusCode,
  9981  		},
  9982  	}
  9983  	target := &ret
  9984  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9985  		return nil, err
  9986  	}
  9987  	return ret, nil
  9988  }
  9989  
  9990  type ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall struct {
  9991  	s                   *Service
  9992  	resource            string
  9993  	setiampolicyrequest *SetIamPolicyRequest
  9994  	urlParams_          gensupport.URLParams
  9995  	ctx_                context.Context
  9996  	header_             http.Header
  9997  }
  9998  
  9999  // SetIamPolicy: Sets the access control policy on the specified resource.
 10000  // Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`,
 10001  // and `PERMISSION_DENIED` errors.
 10002  //
 10003  //   - resource: REQUIRED: The resource for which the policy is being specified.
 10004  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 10005  //     for the appropriate value for this field.
 10006  func (r *ProjectsLocationsDatasetsAnnotationStoresService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall {
 10007  	c := &ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10008  	c.resource = resource
 10009  	c.setiampolicyrequest = setiampolicyrequest
 10010  	return c
 10011  }
 10012  
 10013  // Fields allows partial responses to be retrieved. See
 10014  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10015  // details.
 10016  func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall {
 10017  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10018  	return c
 10019  }
 10020  
 10021  // Context sets the context to be used in this call's Do method.
 10022  func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall {
 10023  	c.ctx_ = ctx
 10024  	return c
 10025  }
 10026  
 10027  // Header returns a http.Header that can be modified by the caller to add
 10028  // headers to the request.
 10029  func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) Header() http.Header {
 10030  	if c.header_ == nil {
 10031  		c.header_ = make(http.Header)
 10032  	}
 10033  	return c.header_
 10034  }
 10035  
 10036  func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 10037  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10038  	var body io.Reader = nil
 10039  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
 10040  	if err != nil {
 10041  		return nil, err
 10042  	}
 10043  	c.urlParams_.Set("alt", alt)
 10044  	c.urlParams_.Set("prettyPrint", "false")
 10045  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy")
 10046  	urls += "?" + c.urlParams_.Encode()
 10047  	req, err := http.NewRequest("POST", urls, body)
 10048  	if err != nil {
 10049  		return nil, err
 10050  	}
 10051  	req.Header = reqHeaders
 10052  	googleapi.Expand(req.URL, map[string]string{
 10053  		"resource": c.resource,
 10054  	})
 10055  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10056  }
 10057  
 10058  // Do executes the "healthcare.projects.locations.datasets.annotationStores.setIamPolicy" call.
 10059  // Any non-2xx status code is an error. Response headers are in either
 10060  // *Policy.ServerResponse.Header or (if a response was returned at all) in
 10061  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10062  // whether the returned error was because http.StatusNotModified was returned.
 10063  func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
 10064  	gensupport.SetOptions(c.urlParams_, opts...)
 10065  	res, err := c.doRequest("json")
 10066  	if res != nil && res.StatusCode == http.StatusNotModified {
 10067  		if res.Body != nil {
 10068  			res.Body.Close()
 10069  		}
 10070  		return nil, gensupport.WrapError(&googleapi.Error{
 10071  			Code:   res.StatusCode,
 10072  			Header: res.Header,
 10073  		})
 10074  	}
 10075  	if err != nil {
 10076  		return nil, err
 10077  	}
 10078  	defer googleapi.CloseBody(res)
 10079  	if err := googleapi.CheckResponse(res); err != nil {
 10080  		return nil, gensupport.WrapError(err)
 10081  	}
 10082  	ret := &Policy{
 10083  		ServerResponse: googleapi.ServerResponse{
 10084  			Header:         res.Header,
 10085  			HTTPStatusCode: res.StatusCode,
 10086  		},
 10087  	}
 10088  	target := &ret
 10089  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10090  		return nil, err
 10091  	}
 10092  	return ret, nil
 10093  }
 10094  
 10095  type ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall struct {
 10096  	s                         *Service
 10097  	resource                  string
 10098  	testiampermissionsrequest *TestIamPermissionsRequest
 10099  	urlParams_                gensupport.URLParams
 10100  	ctx_                      context.Context
 10101  	header_                   http.Header
 10102  }
 10103  
 10104  // TestIamPermissions: Returns permissions that a caller has on the specified
 10105  // resource. If the resource does not exist, this will return an empty set of
 10106  // permissions, not a `NOT_FOUND` error. Note: This operation is designed to be
 10107  // used for building permission-aware UIs and command-line tools, not for
 10108  // authorization checking. This operation may "fail open" without warning.
 10109  //
 10110  //   - resource: REQUIRED: The resource for which the policy detail is being
 10111  //     requested. See Resource names
 10112  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
 10113  //     value for this field.
 10114  func (r *ProjectsLocationsDatasetsAnnotationStoresService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall {
 10115  	c := &ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10116  	c.resource = resource
 10117  	c.testiampermissionsrequest = testiampermissionsrequest
 10118  	return c
 10119  }
 10120  
 10121  // Fields allows partial responses to be retrieved. See
 10122  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10123  // details.
 10124  func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall {
 10125  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10126  	return c
 10127  }
 10128  
 10129  // Context sets the context to be used in this call's Do method.
 10130  func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall {
 10131  	c.ctx_ = ctx
 10132  	return c
 10133  }
 10134  
 10135  // Header returns a http.Header that can be modified by the caller to add
 10136  // headers to the request.
 10137  func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) Header() http.Header {
 10138  	if c.header_ == nil {
 10139  		c.header_ = make(http.Header)
 10140  	}
 10141  	return c.header_
 10142  }
 10143  
 10144  func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
 10145  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10146  	var body io.Reader = nil
 10147  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
 10148  	if err != nil {
 10149  		return nil, err
 10150  	}
 10151  	c.urlParams_.Set("alt", alt)
 10152  	c.urlParams_.Set("prettyPrint", "false")
 10153  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions")
 10154  	urls += "?" + c.urlParams_.Encode()
 10155  	req, err := http.NewRequest("POST", urls, body)
 10156  	if err != nil {
 10157  		return nil, err
 10158  	}
 10159  	req.Header = reqHeaders
 10160  	googleapi.Expand(req.URL, map[string]string{
 10161  		"resource": c.resource,
 10162  	})
 10163  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10164  }
 10165  
 10166  // Do executes the "healthcare.projects.locations.datasets.annotationStores.testIamPermissions" call.
 10167  // Any non-2xx status code is an error. Response headers are in either
 10168  // *TestIamPermissionsResponse.ServerResponse.Header or (if a response was
 10169  // returned at all) in error.(*googleapi.Error).Header. Use
 10170  // googleapi.IsNotModified to check whether the returned error was because
 10171  // http.StatusNotModified was returned.
 10172  func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
 10173  	gensupport.SetOptions(c.urlParams_, opts...)
 10174  	res, err := c.doRequest("json")
 10175  	if res != nil && res.StatusCode == http.StatusNotModified {
 10176  		if res.Body != nil {
 10177  			res.Body.Close()
 10178  		}
 10179  		return nil, gensupport.WrapError(&googleapi.Error{
 10180  			Code:   res.StatusCode,
 10181  			Header: res.Header,
 10182  		})
 10183  	}
 10184  	if err != nil {
 10185  		return nil, err
 10186  	}
 10187  	defer googleapi.CloseBody(res)
 10188  	if err := googleapi.CheckResponse(res); err != nil {
 10189  		return nil, gensupport.WrapError(err)
 10190  	}
 10191  	ret := &TestIamPermissionsResponse{
 10192  		ServerResponse: googleapi.ServerResponse{
 10193  			Header:         res.Header,
 10194  			HTTPStatusCode: res.StatusCode,
 10195  		},
 10196  	}
 10197  	target := &ret
 10198  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10199  		return nil, err
 10200  	}
 10201  	return ret, nil
 10202  }
 10203  
 10204  type ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall struct {
 10205  	s          *Service
 10206  	parent     string
 10207  	annotation *Annotation
 10208  	urlParams_ gensupport.URLParams
 10209  	ctx_       context.Context
 10210  	header_    http.Header
 10211  }
 10212  
 10213  // Create: Creates a new Annotation record. It is valid to create Annotation
 10214  // objects for the same source more than once since a unique ID is assigned to
 10215  // each record by this service.
 10216  //
 10217  //   - parent: The name of the Annotation store this annotation belongs to. For
 10218  //     example,
 10219  //     `projects/my-project/locations/us-central1/datasets/mydataset/annotationSto
 10220  //     res/myannotationstore`.
 10221  func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) Create(parent string, annotation *Annotation) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall {
 10222  	c := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10223  	c.parent = parent
 10224  	c.annotation = annotation
 10225  	return c
 10226  }
 10227  
 10228  // Fields allows partial responses to be retrieved. See
 10229  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10230  // details.
 10231  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall {
 10232  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10233  	return c
 10234  }
 10235  
 10236  // Context sets the context to be used in this call's Do method.
 10237  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall {
 10238  	c.ctx_ = ctx
 10239  	return c
 10240  }
 10241  
 10242  // Header returns a http.Header that can be modified by the caller to add
 10243  // headers to the request.
 10244  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) Header() http.Header {
 10245  	if c.header_ == nil {
 10246  		c.header_ = make(http.Header)
 10247  	}
 10248  	return c.header_
 10249  }
 10250  
 10251  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) doRequest(alt string) (*http.Response, error) {
 10252  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10253  	var body io.Reader = nil
 10254  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.annotation)
 10255  	if err != nil {
 10256  		return nil, err
 10257  	}
 10258  	c.urlParams_.Set("alt", alt)
 10259  	c.urlParams_.Set("prettyPrint", "false")
 10260  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/annotations")
 10261  	urls += "?" + c.urlParams_.Encode()
 10262  	req, err := http.NewRequest("POST", urls, body)
 10263  	if err != nil {
 10264  		return nil, err
 10265  	}
 10266  	req.Header = reqHeaders
 10267  	googleapi.Expand(req.URL, map[string]string{
 10268  		"parent": c.parent,
 10269  	})
 10270  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10271  }
 10272  
 10273  // Do executes the "healthcare.projects.locations.datasets.annotationStores.annotations.create" call.
 10274  // Any non-2xx status code is an error. Response headers are in either
 10275  // *Annotation.ServerResponse.Header or (if a response was returned at all) in
 10276  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10277  // whether the returned error was because http.StatusNotModified was returned.
 10278  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) Do(opts ...googleapi.CallOption) (*Annotation, error) {
 10279  	gensupport.SetOptions(c.urlParams_, opts...)
 10280  	res, err := c.doRequest("json")
 10281  	if res != nil && res.StatusCode == http.StatusNotModified {
 10282  		if res.Body != nil {
 10283  			res.Body.Close()
 10284  		}
 10285  		return nil, gensupport.WrapError(&googleapi.Error{
 10286  			Code:   res.StatusCode,
 10287  			Header: res.Header,
 10288  		})
 10289  	}
 10290  	if err != nil {
 10291  		return nil, err
 10292  	}
 10293  	defer googleapi.CloseBody(res)
 10294  	if err := googleapi.CheckResponse(res); err != nil {
 10295  		return nil, gensupport.WrapError(err)
 10296  	}
 10297  	ret := &Annotation{
 10298  		ServerResponse: googleapi.ServerResponse{
 10299  			Header:         res.Header,
 10300  			HTTPStatusCode: res.StatusCode,
 10301  		},
 10302  	}
 10303  	target := &ret
 10304  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10305  		return nil, err
 10306  	}
 10307  	return ret, nil
 10308  }
 10309  
 10310  type ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall struct {
 10311  	s          *Service
 10312  	name       string
 10313  	urlParams_ gensupport.URLParams
 10314  	ctx_       context.Context
 10315  	header_    http.Header
 10316  }
 10317  
 10318  // Delete: Deletes an Annotation or returns NOT_FOUND if it does not exist.
 10319  //
 10320  // - name: The resource name of the Annotation to delete.
 10321  func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) Delete(name string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall {
 10322  	c := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10323  	c.name = name
 10324  	return c
 10325  }
 10326  
 10327  // Fields allows partial responses to be retrieved. See
 10328  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10329  // details.
 10330  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall {
 10331  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10332  	return c
 10333  }
 10334  
 10335  // Context sets the context to be used in this call's Do method.
 10336  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall {
 10337  	c.ctx_ = ctx
 10338  	return c
 10339  }
 10340  
 10341  // Header returns a http.Header that can be modified by the caller to add
 10342  // headers to the request.
 10343  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) Header() http.Header {
 10344  	if c.header_ == nil {
 10345  		c.header_ = make(http.Header)
 10346  	}
 10347  	return c.header_
 10348  }
 10349  
 10350  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) doRequest(alt string) (*http.Response, error) {
 10351  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10352  	var body io.Reader = nil
 10353  	c.urlParams_.Set("alt", alt)
 10354  	c.urlParams_.Set("prettyPrint", "false")
 10355  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 10356  	urls += "?" + c.urlParams_.Encode()
 10357  	req, err := http.NewRequest("DELETE", urls, body)
 10358  	if err != nil {
 10359  		return nil, err
 10360  	}
 10361  	req.Header = reqHeaders
 10362  	googleapi.Expand(req.URL, map[string]string{
 10363  		"name": c.name,
 10364  	})
 10365  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10366  }
 10367  
 10368  // Do executes the "healthcare.projects.locations.datasets.annotationStores.annotations.delete" call.
 10369  // Any non-2xx status code is an error. Response headers are in either
 10370  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 10371  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10372  // whether the returned error was because http.StatusNotModified was returned.
 10373  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 10374  	gensupport.SetOptions(c.urlParams_, opts...)
 10375  	res, err := c.doRequest("json")
 10376  	if res != nil && res.StatusCode == http.StatusNotModified {
 10377  		if res.Body != nil {
 10378  			res.Body.Close()
 10379  		}
 10380  		return nil, gensupport.WrapError(&googleapi.Error{
 10381  			Code:   res.StatusCode,
 10382  			Header: res.Header,
 10383  		})
 10384  	}
 10385  	if err != nil {
 10386  		return nil, err
 10387  	}
 10388  	defer googleapi.CloseBody(res)
 10389  	if err := googleapi.CheckResponse(res); err != nil {
 10390  		return nil, gensupport.WrapError(err)
 10391  	}
 10392  	ret := &Empty{
 10393  		ServerResponse: googleapi.ServerResponse{
 10394  			Header:         res.Header,
 10395  			HTTPStatusCode: res.StatusCode,
 10396  		},
 10397  	}
 10398  	target := &ret
 10399  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10400  		return nil, err
 10401  	}
 10402  	return ret, nil
 10403  }
 10404  
 10405  type ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall struct {
 10406  	s            *Service
 10407  	name         string
 10408  	urlParams_   gensupport.URLParams
 10409  	ifNoneMatch_ string
 10410  	ctx_         context.Context
 10411  	header_      http.Header
 10412  }
 10413  
 10414  // Get: Gets an Annotation.
 10415  //
 10416  // - name: The resource name of the Annotation to retrieve.
 10417  func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) Get(name string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall {
 10418  	c := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10419  	c.name = name
 10420  	return c
 10421  }
 10422  
 10423  // Fields allows partial responses to be retrieved. See
 10424  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10425  // details.
 10426  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall {
 10427  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10428  	return c
 10429  }
 10430  
 10431  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10432  // object's ETag matches the given value. This is useful for getting updates
 10433  // only after the object has changed since the last request.
 10434  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall {
 10435  	c.ifNoneMatch_ = entityTag
 10436  	return c
 10437  }
 10438  
 10439  // Context sets the context to be used in this call's Do method.
 10440  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall {
 10441  	c.ctx_ = ctx
 10442  	return c
 10443  }
 10444  
 10445  // Header returns a http.Header that can be modified by the caller to add
 10446  // headers to the request.
 10447  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) Header() http.Header {
 10448  	if c.header_ == nil {
 10449  		c.header_ = make(http.Header)
 10450  	}
 10451  	return c.header_
 10452  }
 10453  
 10454  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) doRequest(alt string) (*http.Response, error) {
 10455  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10456  	if c.ifNoneMatch_ != "" {
 10457  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10458  	}
 10459  	var body io.Reader = nil
 10460  	c.urlParams_.Set("alt", alt)
 10461  	c.urlParams_.Set("prettyPrint", "false")
 10462  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 10463  	urls += "?" + c.urlParams_.Encode()
 10464  	req, err := http.NewRequest("GET", urls, body)
 10465  	if err != nil {
 10466  		return nil, err
 10467  	}
 10468  	req.Header = reqHeaders
 10469  	googleapi.Expand(req.URL, map[string]string{
 10470  		"name": c.name,
 10471  	})
 10472  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10473  }
 10474  
 10475  // Do executes the "healthcare.projects.locations.datasets.annotationStores.annotations.get" call.
 10476  // Any non-2xx status code is an error. Response headers are in either
 10477  // *Annotation.ServerResponse.Header or (if a response was returned at all) in
 10478  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10479  // whether the returned error was because http.StatusNotModified was returned.
 10480  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) Do(opts ...googleapi.CallOption) (*Annotation, error) {
 10481  	gensupport.SetOptions(c.urlParams_, opts...)
 10482  	res, err := c.doRequest("json")
 10483  	if res != nil && res.StatusCode == http.StatusNotModified {
 10484  		if res.Body != nil {
 10485  			res.Body.Close()
 10486  		}
 10487  		return nil, gensupport.WrapError(&googleapi.Error{
 10488  			Code:   res.StatusCode,
 10489  			Header: res.Header,
 10490  		})
 10491  	}
 10492  	if err != nil {
 10493  		return nil, err
 10494  	}
 10495  	defer googleapi.CloseBody(res)
 10496  	if err := googleapi.CheckResponse(res); err != nil {
 10497  		return nil, gensupport.WrapError(err)
 10498  	}
 10499  	ret := &Annotation{
 10500  		ServerResponse: googleapi.ServerResponse{
 10501  			Header:         res.Header,
 10502  			HTTPStatusCode: res.StatusCode,
 10503  		},
 10504  	}
 10505  	target := &ret
 10506  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10507  		return nil, err
 10508  	}
 10509  	return ret, nil
 10510  }
 10511  
 10512  type ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall struct {
 10513  	s            *Service
 10514  	parent       string
 10515  	urlParams_   gensupport.URLParams
 10516  	ifNoneMatch_ string
 10517  	ctx_         context.Context
 10518  	header_      http.Header
 10519  }
 10520  
 10521  // List: Lists the Annotations in the given Annotation store for a source
 10522  // resource.
 10523  //
 10524  // - parent: Name of the Annotation store to retrieve Annotations from.
 10525  func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) List(parent string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
 10526  	c := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10527  	c.parent = parent
 10528  	return c
 10529  }
 10530  
 10531  // Filter sets the optional parameter "filter": Restricts Annotations returned
 10532  // to those matching a filter. Functions available for filtering are: -
 10533  // `matches("annotation_source.cloud_healthcare_source.name", substring)`.
 10534  // Filter on `cloud_healthcare_source.name`. For example:
 10535  // `matches("annotation_source.cloud_healthcare_source.name", "some source")`.
 10536  // - `matches("annotation", substring)`. Filter on all fields of annotation.
 10537  // For example: `matches("annotation", "some-content")`. - `type("text")`,
 10538  // `type("image")`, `type("resource")`. Filter on the type of annotation
 10539  // `data`.
 10540  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Filter(filter string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
 10541  	c.urlParams_.Set("filter", filter)
 10542  	return c
 10543  }
 10544  
 10545  // PageSize sets the optional parameter "pageSize": Limit on the number of
 10546  // Annotations to return in a single response. If not specified, 100 is used.
 10547  // May not be larger than 1000.
 10548  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
 10549  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 10550  	return c
 10551  }
 10552  
 10553  // PageToken sets the optional parameter "pageToken": The next_page_token value
 10554  // returned from the previous List request, if any.
 10555  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
 10556  	c.urlParams_.Set("pageToken", pageToken)
 10557  	return c
 10558  }
 10559  
 10560  // View sets the optional parameter "view": Controls which fields are populated
 10561  // in the response.
 10562  //
 10563  // Possible values:
 10564  //
 10565  //	"ANNOTATION_VIEW_UNSPECIFIED" - Same as BASIC.
 10566  //	"ANNOTATION_VIEW_BASIC" - Only `name`, `annotation_source` and
 10567  //
 10568  // `custom_data` fields are populated.
 10569  //
 10570  //	"ANNOTATION_VIEW_FULL" - All fields are populated.
 10571  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) View(view string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
 10572  	c.urlParams_.Set("view", view)
 10573  	return c
 10574  }
 10575  
 10576  // Fields allows partial responses to be retrieved. See
 10577  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10578  // details.
 10579  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
 10580  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10581  	return c
 10582  }
 10583  
 10584  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10585  // object's ETag matches the given value. This is useful for getting updates
 10586  // only after the object has changed since the last request.
 10587  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
 10588  	c.ifNoneMatch_ = entityTag
 10589  	return c
 10590  }
 10591  
 10592  // Context sets the context to be used in this call's Do method.
 10593  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
 10594  	c.ctx_ = ctx
 10595  	return c
 10596  }
 10597  
 10598  // Header returns a http.Header that can be modified by the caller to add
 10599  // headers to the request.
 10600  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Header() http.Header {
 10601  	if c.header_ == nil {
 10602  		c.header_ = make(http.Header)
 10603  	}
 10604  	return c.header_
 10605  }
 10606  
 10607  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) doRequest(alt string) (*http.Response, error) {
 10608  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10609  	if c.ifNoneMatch_ != "" {
 10610  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10611  	}
 10612  	var body io.Reader = nil
 10613  	c.urlParams_.Set("alt", alt)
 10614  	c.urlParams_.Set("prettyPrint", "false")
 10615  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/annotations")
 10616  	urls += "?" + c.urlParams_.Encode()
 10617  	req, err := http.NewRequest("GET", urls, body)
 10618  	if err != nil {
 10619  		return nil, err
 10620  	}
 10621  	req.Header = reqHeaders
 10622  	googleapi.Expand(req.URL, map[string]string{
 10623  		"parent": c.parent,
 10624  	})
 10625  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10626  }
 10627  
 10628  // Do executes the "healthcare.projects.locations.datasets.annotationStores.annotations.list" call.
 10629  // Any non-2xx status code is an error. Response headers are in either
 10630  // *ListAnnotationsResponse.ServerResponse.Header or (if a response was
 10631  // returned at all) in error.(*googleapi.Error).Header. Use
 10632  // googleapi.IsNotModified to check whether the returned error was because
 10633  // http.StatusNotModified was returned.
 10634  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Do(opts ...googleapi.CallOption) (*ListAnnotationsResponse, error) {
 10635  	gensupport.SetOptions(c.urlParams_, opts...)
 10636  	res, err := c.doRequest("json")
 10637  	if res != nil && res.StatusCode == http.StatusNotModified {
 10638  		if res.Body != nil {
 10639  			res.Body.Close()
 10640  		}
 10641  		return nil, gensupport.WrapError(&googleapi.Error{
 10642  			Code:   res.StatusCode,
 10643  			Header: res.Header,
 10644  		})
 10645  	}
 10646  	if err != nil {
 10647  		return nil, err
 10648  	}
 10649  	defer googleapi.CloseBody(res)
 10650  	if err := googleapi.CheckResponse(res); err != nil {
 10651  		return nil, gensupport.WrapError(err)
 10652  	}
 10653  	ret := &ListAnnotationsResponse{
 10654  		ServerResponse: googleapi.ServerResponse{
 10655  			Header:         res.Header,
 10656  			HTTPStatusCode: res.StatusCode,
 10657  		},
 10658  	}
 10659  	target := &ret
 10660  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10661  		return nil, err
 10662  	}
 10663  	return ret, nil
 10664  }
 10665  
 10666  // Pages invokes f for each page of results.
 10667  // A non-nil error returned from f will halt the iteration.
 10668  // The provided context supersedes any context provided to the Context method.
 10669  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Pages(ctx context.Context, f func(*ListAnnotationsResponse) error) error {
 10670  	c.ctx_ = ctx
 10671  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 10672  	for {
 10673  		x, err := c.Do()
 10674  		if err != nil {
 10675  			return err
 10676  		}
 10677  		if err := f(x); err != nil {
 10678  			return err
 10679  		}
 10680  		if x.NextPageToken == "" {
 10681  			return nil
 10682  		}
 10683  		c.PageToken(x.NextPageToken)
 10684  	}
 10685  }
 10686  
 10687  type ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall struct {
 10688  	s          *Service
 10689  	name       string
 10690  	annotation *Annotation
 10691  	urlParams_ gensupport.URLParams
 10692  	ctx_       context.Context
 10693  	header_    http.Header
 10694  }
 10695  
 10696  // Patch: Updates the Annotation.
 10697  //
 10698  //   - name: Identifier. Resource name of the Annotation, of the form
 10699  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annota
 10700  //     tionStores/{annotation_store_id}/annotations/{annotation_id}`.
 10701  func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) Patch(name string, annotation *Annotation) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall {
 10702  	c := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10703  	c.name = name
 10704  	c.annotation = annotation
 10705  	return c
 10706  }
 10707  
 10708  // UpdateMask sets the optional parameter "updateMask": Required. The update
 10709  // mask applies to the resource. For the `FieldMask` definition, see
 10710  // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
 10711  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall {
 10712  	c.urlParams_.Set("updateMask", updateMask)
 10713  	return c
 10714  }
 10715  
 10716  // Fields allows partial responses to be retrieved. See
 10717  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10718  // details.
 10719  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall {
 10720  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10721  	return c
 10722  }
 10723  
 10724  // Context sets the context to be used in this call's Do method.
 10725  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall {
 10726  	c.ctx_ = ctx
 10727  	return c
 10728  }
 10729  
 10730  // Header returns a http.Header that can be modified by the caller to add
 10731  // headers to the request.
 10732  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) Header() http.Header {
 10733  	if c.header_ == nil {
 10734  		c.header_ = make(http.Header)
 10735  	}
 10736  	return c.header_
 10737  }
 10738  
 10739  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) doRequest(alt string) (*http.Response, error) {
 10740  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10741  	var body io.Reader = nil
 10742  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.annotation)
 10743  	if err != nil {
 10744  		return nil, err
 10745  	}
 10746  	c.urlParams_.Set("alt", alt)
 10747  	c.urlParams_.Set("prettyPrint", "false")
 10748  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 10749  	urls += "?" + c.urlParams_.Encode()
 10750  	req, err := http.NewRequest("PATCH", urls, body)
 10751  	if err != nil {
 10752  		return nil, err
 10753  	}
 10754  	req.Header = reqHeaders
 10755  	googleapi.Expand(req.URL, map[string]string{
 10756  		"name": c.name,
 10757  	})
 10758  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10759  }
 10760  
 10761  // Do executes the "healthcare.projects.locations.datasets.annotationStores.annotations.patch" call.
 10762  // Any non-2xx status code is an error. Response headers are in either
 10763  // *Annotation.ServerResponse.Header or (if a response was returned at all) in
 10764  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10765  // whether the returned error was because http.StatusNotModified was returned.
 10766  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) Do(opts ...googleapi.CallOption) (*Annotation, error) {
 10767  	gensupport.SetOptions(c.urlParams_, opts...)
 10768  	res, err := c.doRequest("json")
 10769  	if res != nil && res.StatusCode == http.StatusNotModified {
 10770  		if res.Body != nil {
 10771  			res.Body.Close()
 10772  		}
 10773  		return nil, gensupport.WrapError(&googleapi.Error{
 10774  			Code:   res.StatusCode,
 10775  			Header: res.Header,
 10776  		})
 10777  	}
 10778  	if err != nil {
 10779  		return nil, err
 10780  	}
 10781  	defer googleapi.CloseBody(res)
 10782  	if err := googleapi.CheckResponse(res); err != nil {
 10783  		return nil, gensupport.WrapError(err)
 10784  	}
 10785  	ret := &Annotation{
 10786  		ServerResponse: googleapi.ServerResponse{
 10787  			Header:         res.Header,
 10788  			HTTPStatusCode: res.StatusCode,
 10789  		},
 10790  	}
 10791  	target := &ret
 10792  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10793  		return nil, err
 10794  	}
 10795  	return ret, nil
 10796  }
 10797  
 10798  type ProjectsLocationsDatasetsConsentStoresCheckDataAccessCall struct {
 10799  	s                      *Service
 10800  	consentStore           string
 10801  	checkdataaccessrequest *CheckDataAccessRequest
 10802  	urlParams_             gensupport.URLParams
 10803  	ctx_                   context.Context
 10804  	header_                http.Header
 10805  }
 10806  
 10807  // CheckDataAccess: Checks if a particular data_id of a User data mapping in
 10808  // the specified consent store is consented for the specified use.
 10809  //
 10810  //   - consentStore: Name of the consent store where the requested data_id is
 10811  //     stored, of the form
 10812  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consen
 10813  //     tStores/{consent_store_id}`.
 10814  func (r *ProjectsLocationsDatasetsConsentStoresService) CheckDataAccess(consentStore string, checkdataaccessrequest *CheckDataAccessRequest) *ProjectsLocationsDatasetsConsentStoresCheckDataAccessCall {
 10815  	c := &ProjectsLocationsDatasetsConsentStoresCheckDataAccessCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10816  	c.consentStore = consentStore
 10817  	c.checkdataaccessrequest = checkdataaccessrequest
 10818  	return c
 10819  }
 10820  
 10821  // Fields allows partial responses to be retrieved. See
 10822  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10823  // details.
 10824  func (c *ProjectsLocationsDatasetsConsentStoresCheckDataAccessCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresCheckDataAccessCall {
 10825  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10826  	return c
 10827  }
 10828  
 10829  // Context sets the context to be used in this call's Do method.
 10830  func (c *ProjectsLocationsDatasetsConsentStoresCheckDataAccessCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresCheckDataAccessCall {
 10831  	c.ctx_ = ctx
 10832  	return c
 10833  }
 10834  
 10835  // Header returns a http.Header that can be modified by the caller to add
 10836  // headers to the request.
 10837  func (c *ProjectsLocationsDatasetsConsentStoresCheckDataAccessCall) Header() http.Header {
 10838  	if c.header_ == nil {
 10839  		c.header_ = make(http.Header)
 10840  	}
 10841  	return c.header_
 10842  }
 10843  
 10844  func (c *ProjectsLocationsDatasetsConsentStoresCheckDataAccessCall) doRequest(alt string) (*http.Response, error) {
 10845  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10846  	var body io.Reader = nil
 10847  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.checkdataaccessrequest)
 10848  	if err != nil {
 10849  		return nil, err
 10850  	}
 10851  	c.urlParams_.Set("alt", alt)
 10852  	c.urlParams_.Set("prettyPrint", "false")
 10853  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+consentStore}:checkDataAccess")
 10854  	urls += "?" + c.urlParams_.Encode()
 10855  	req, err := http.NewRequest("POST", urls, body)
 10856  	if err != nil {
 10857  		return nil, err
 10858  	}
 10859  	req.Header = reqHeaders
 10860  	googleapi.Expand(req.URL, map[string]string{
 10861  		"consentStore": c.consentStore,
 10862  	})
 10863  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10864  }
 10865  
 10866  // Do executes the "healthcare.projects.locations.datasets.consentStores.checkDataAccess" call.
 10867  // Any non-2xx status code is an error. Response headers are in either
 10868  // *CheckDataAccessResponse.ServerResponse.Header or (if a response was
 10869  // returned at all) in error.(*googleapi.Error).Header. Use
 10870  // googleapi.IsNotModified to check whether the returned error was because
 10871  // http.StatusNotModified was returned.
 10872  func (c *ProjectsLocationsDatasetsConsentStoresCheckDataAccessCall) Do(opts ...googleapi.CallOption) (*CheckDataAccessResponse, error) {
 10873  	gensupport.SetOptions(c.urlParams_, opts...)
 10874  	res, err := c.doRequest("json")
 10875  	if res != nil && res.StatusCode == http.StatusNotModified {
 10876  		if res.Body != nil {
 10877  			res.Body.Close()
 10878  		}
 10879  		return nil, gensupport.WrapError(&googleapi.Error{
 10880  			Code:   res.StatusCode,
 10881  			Header: res.Header,
 10882  		})
 10883  	}
 10884  	if err != nil {
 10885  		return nil, err
 10886  	}
 10887  	defer googleapi.CloseBody(res)
 10888  	if err := googleapi.CheckResponse(res); err != nil {
 10889  		return nil, gensupport.WrapError(err)
 10890  	}
 10891  	ret := &CheckDataAccessResponse{
 10892  		ServerResponse: googleapi.ServerResponse{
 10893  			Header:         res.Header,
 10894  			HTTPStatusCode: res.StatusCode,
 10895  		},
 10896  	}
 10897  	target := &ret
 10898  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10899  		return nil, err
 10900  	}
 10901  	return ret, nil
 10902  }
 10903  
 10904  type ProjectsLocationsDatasetsConsentStoresCreateCall struct {
 10905  	s            *Service
 10906  	parent       string
 10907  	consentstore *ConsentStore
 10908  	urlParams_   gensupport.URLParams
 10909  	ctx_         context.Context
 10910  	header_      http.Header
 10911  }
 10912  
 10913  // Create: Creates a new consent store in the parent dataset. Attempting to
 10914  // create a consent store with the same ID as an existing store fails with an
 10915  // ALREADY_EXISTS error.
 10916  //
 10917  // - parent: The name of the dataset this consent store belongs to.
 10918  func (r *ProjectsLocationsDatasetsConsentStoresService) Create(parent string, consentstore *ConsentStore) *ProjectsLocationsDatasetsConsentStoresCreateCall {
 10919  	c := &ProjectsLocationsDatasetsConsentStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10920  	c.parent = parent
 10921  	c.consentstore = consentstore
 10922  	return c
 10923  }
 10924  
 10925  // ConsentStoreId sets the optional parameter "consentStoreId": Required. The
 10926  // ID of the consent store to create. The string must match the following
 10927  // regex: `[\p{L}\p{N}_\-\.]{1,256}`. Cannot be changed after creation.
 10928  func (c *ProjectsLocationsDatasetsConsentStoresCreateCall) ConsentStoreId(consentStoreId string) *ProjectsLocationsDatasetsConsentStoresCreateCall {
 10929  	c.urlParams_.Set("consentStoreId", consentStoreId)
 10930  	return c
 10931  }
 10932  
 10933  // Fields allows partial responses to be retrieved. See
 10934  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10935  // details.
 10936  func (c *ProjectsLocationsDatasetsConsentStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresCreateCall {
 10937  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10938  	return c
 10939  }
 10940  
 10941  // Context sets the context to be used in this call's Do method.
 10942  func (c *ProjectsLocationsDatasetsConsentStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresCreateCall {
 10943  	c.ctx_ = ctx
 10944  	return c
 10945  }
 10946  
 10947  // Header returns a http.Header that can be modified by the caller to add
 10948  // headers to the request.
 10949  func (c *ProjectsLocationsDatasetsConsentStoresCreateCall) Header() http.Header {
 10950  	if c.header_ == nil {
 10951  		c.header_ = make(http.Header)
 10952  	}
 10953  	return c.header_
 10954  }
 10955  
 10956  func (c *ProjectsLocationsDatasetsConsentStoresCreateCall) doRequest(alt string) (*http.Response, error) {
 10957  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10958  	var body io.Reader = nil
 10959  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.consentstore)
 10960  	if err != nil {
 10961  		return nil, err
 10962  	}
 10963  	c.urlParams_.Set("alt", alt)
 10964  	c.urlParams_.Set("prettyPrint", "false")
 10965  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/consentStores")
 10966  	urls += "?" + c.urlParams_.Encode()
 10967  	req, err := http.NewRequest("POST", urls, body)
 10968  	if err != nil {
 10969  		return nil, err
 10970  	}
 10971  	req.Header = reqHeaders
 10972  	googleapi.Expand(req.URL, map[string]string{
 10973  		"parent": c.parent,
 10974  	})
 10975  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10976  }
 10977  
 10978  // Do executes the "healthcare.projects.locations.datasets.consentStores.create" call.
 10979  // Any non-2xx status code is an error. Response headers are in either
 10980  // *ConsentStore.ServerResponse.Header or (if a response was returned at all)
 10981  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10982  // whether the returned error was because http.StatusNotModified was returned.
 10983  func (c *ProjectsLocationsDatasetsConsentStoresCreateCall) Do(opts ...googleapi.CallOption) (*ConsentStore, error) {
 10984  	gensupport.SetOptions(c.urlParams_, opts...)
 10985  	res, err := c.doRequest("json")
 10986  	if res != nil && res.StatusCode == http.StatusNotModified {
 10987  		if res.Body != nil {
 10988  			res.Body.Close()
 10989  		}
 10990  		return nil, gensupport.WrapError(&googleapi.Error{
 10991  			Code:   res.StatusCode,
 10992  			Header: res.Header,
 10993  		})
 10994  	}
 10995  	if err != nil {
 10996  		return nil, err
 10997  	}
 10998  	defer googleapi.CloseBody(res)
 10999  	if err := googleapi.CheckResponse(res); err != nil {
 11000  		return nil, gensupport.WrapError(err)
 11001  	}
 11002  	ret := &ConsentStore{
 11003  		ServerResponse: googleapi.ServerResponse{
 11004  			Header:         res.Header,
 11005  			HTTPStatusCode: res.StatusCode,
 11006  		},
 11007  	}
 11008  	target := &ret
 11009  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11010  		return nil, err
 11011  	}
 11012  	return ret, nil
 11013  }
 11014  
 11015  type ProjectsLocationsDatasetsConsentStoresDeleteCall struct {
 11016  	s          *Service
 11017  	name       string
 11018  	urlParams_ gensupport.URLParams
 11019  	ctx_       context.Context
 11020  	header_    http.Header
 11021  }
 11022  
 11023  // Delete: Deletes the specified consent store and removes all the consent
 11024  // store's data.
 11025  //
 11026  // - name: The resource name of the consent store to delete.
 11027  func (r *ProjectsLocationsDatasetsConsentStoresService) Delete(name string) *ProjectsLocationsDatasetsConsentStoresDeleteCall {
 11028  	c := &ProjectsLocationsDatasetsConsentStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11029  	c.name = name
 11030  	return c
 11031  }
 11032  
 11033  // Fields allows partial responses to be retrieved. See
 11034  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11035  // details.
 11036  func (c *ProjectsLocationsDatasetsConsentStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresDeleteCall {
 11037  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11038  	return c
 11039  }
 11040  
 11041  // Context sets the context to be used in this call's Do method.
 11042  func (c *ProjectsLocationsDatasetsConsentStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresDeleteCall {
 11043  	c.ctx_ = ctx
 11044  	return c
 11045  }
 11046  
 11047  // Header returns a http.Header that can be modified by the caller to add
 11048  // headers to the request.
 11049  func (c *ProjectsLocationsDatasetsConsentStoresDeleteCall) Header() http.Header {
 11050  	if c.header_ == nil {
 11051  		c.header_ = make(http.Header)
 11052  	}
 11053  	return c.header_
 11054  }
 11055  
 11056  func (c *ProjectsLocationsDatasetsConsentStoresDeleteCall) doRequest(alt string) (*http.Response, error) {
 11057  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11058  	var body io.Reader = nil
 11059  	c.urlParams_.Set("alt", alt)
 11060  	c.urlParams_.Set("prettyPrint", "false")
 11061  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 11062  	urls += "?" + c.urlParams_.Encode()
 11063  	req, err := http.NewRequest("DELETE", urls, body)
 11064  	if err != nil {
 11065  		return nil, err
 11066  	}
 11067  	req.Header = reqHeaders
 11068  	googleapi.Expand(req.URL, map[string]string{
 11069  		"name": c.name,
 11070  	})
 11071  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11072  }
 11073  
 11074  // Do executes the "healthcare.projects.locations.datasets.consentStores.delete" call.
 11075  // Any non-2xx status code is an error. Response headers are in either
 11076  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 11077  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11078  // whether the returned error was because http.StatusNotModified was returned.
 11079  func (c *ProjectsLocationsDatasetsConsentStoresDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 11080  	gensupport.SetOptions(c.urlParams_, opts...)
 11081  	res, err := c.doRequest("json")
 11082  	if res != nil && res.StatusCode == http.StatusNotModified {
 11083  		if res.Body != nil {
 11084  			res.Body.Close()
 11085  		}
 11086  		return nil, gensupport.WrapError(&googleapi.Error{
 11087  			Code:   res.StatusCode,
 11088  			Header: res.Header,
 11089  		})
 11090  	}
 11091  	if err != nil {
 11092  		return nil, err
 11093  	}
 11094  	defer googleapi.CloseBody(res)
 11095  	if err := googleapi.CheckResponse(res); err != nil {
 11096  		return nil, gensupport.WrapError(err)
 11097  	}
 11098  	ret := &Empty{
 11099  		ServerResponse: googleapi.ServerResponse{
 11100  			Header:         res.Header,
 11101  			HTTPStatusCode: res.StatusCode,
 11102  		},
 11103  	}
 11104  	target := &ret
 11105  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11106  		return nil, err
 11107  	}
 11108  	return ret, nil
 11109  }
 11110  
 11111  type ProjectsLocationsDatasetsConsentStoresEvaluateUserConsentsCall struct {
 11112  	s                           *Service
 11113  	consentStore                string
 11114  	evaluateuserconsentsrequest *EvaluateUserConsentsRequest
 11115  	urlParams_                  gensupport.URLParams
 11116  	ctx_                        context.Context
 11117  	header_                     http.Header
 11118  }
 11119  
 11120  // EvaluateUserConsents: Evaluates the user's Consents for all matching User
 11121  // data mappings. Note: User data mappings are indexed asynchronously, which
 11122  // can cause a slight delay between the time mappings are created or updated
 11123  // and when they are included in EvaluateUserConsents results.
 11124  //
 11125  //   - consentStore: Name of the consent store to retrieve User data mappings
 11126  //     from.
 11127  func (r *ProjectsLocationsDatasetsConsentStoresService) EvaluateUserConsents(consentStore string, evaluateuserconsentsrequest *EvaluateUserConsentsRequest) *ProjectsLocationsDatasetsConsentStoresEvaluateUserConsentsCall {
 11128  	c := &ProjectsLocationsDatasetsConsentStoresEvaluateUserConsentsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11129  	c.consentStore = consentStore
 11130  	c.evaluateuserconsentsrequest = evaluateuserconsentsrequest
 11131  	return c
 11132  }
 11133  
 11134  // Fields allows partial responses to be retrieved. See
 11135  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11136  // details.
 11137  func (c *ProjectsLocationsDatasetsConsentStoresEvaluateUserConsentsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresEvaluateUserConsentsCall {
 11138  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11139  	return c
 11140  }
 11141  
 11142  // Context sets the context to be used in this call's Do method.
 11143  func (c *ProjectsLocationsDatasetsConsentStoresEvaluateUserConsentsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresEvaluateUserConsentsCall {
 11144  	c.ctx_ = ctx
 11145  	return c
 11146  }
 11147  
 11148  // Header returns a http.Header that can be modified by the caller to add
 11149  // headers to the request.
 11150  func (c *ProjectsLocationsDatasetsConsentStoresEvaluateUserConsentsCall) Header() http.Header {
 11151  	if c.header_ == nil {
 11152  		c.header_ = make(http.Header)
 11153  	}
 11154  	return c.header_
 11155  }
 11156  
 11157  func (c *ProjectsLocationsDatasetsConsentStoresEvaluateUserConsentsCall) doRequest(alt string) (*http.Response, error) {
 11158  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11159  	var body io.Reader = nil
 11160  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.evaluateuserconsentsrequest)
 11161  	if err != nil {
 11162  		return nil, err
 11163  	}
 11164  	c.urlParams_.Set("alt", alt)
 11165  	c.urlParams_.Set("prettyPrint", "false")
 11166  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+consentStore}:evaluateUserConsents")
 11167  	urls += "?" + c.urlParams_.Encode()
 11168  	req, err := http.NewRequest("POST", urls, body)
 11169  	if err != nil {
 11170  		return nil, err
 11171  	}
 11172  	req.Header = reqHeaders
 11173  	googleapi.Expand(req.URL, map[string]string{
 11174  		"consentStore": c.consentStore,
 11175  	})
 11176  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11177  }
 11178  
 11179  // Do executes the "healthcare.projects.locations.datasets.consentStores.evaluateUserConsents" call.
 11180  // Any non-2xx status code is an error. Response headers are in either
 11181  // *EvaluateUserConsentsResponse.ServerResponse.Header or (if a response was
 11182  // returned at all) in error.(*googleapi.Error).Header. Use
 11183  // googleapi.IsNotModified to check whether the returned error was because
 11184  // http.StatusNotModified was returned.
 11185  func (c *ProjectsLocationsDatasetsConsentStoresEvaluateUserConsentsCall) Do(opts ...googleapi.CallOption) (*EvaluateUserConsentsResponse, error) {
 11186  	gensupport.SetOptions(c.urlParams_, opts...)
 11187  	res, err := c.doRequest("json")
 11188  	if res != nil && res.StatusCode == http.StatusNotModified {
 11189  		if res.Body != nil {
 11190  			res.Body.Close()
 11191  		}
 11192  		return nil, gensupport.WrapError(&googleapi.Error{
 11193  			Code:   res.StatusCode,
 11194  			Header: res.Header,
 11195  		})
 11196  	}
 11197  	if err != nil {
 11198  		return nil, err
 11199  	}
 11200  	defer googleapi.CloseBody(res)
 11201  	if err := googleapi.CheckResponse(res); err != nil {
 11202  		return nil, gensupport.WrapError(err)
 11203  	}
 11204  	ret := &EvaluateUserConsentsResponse{
 11205  		ServerResponse: googleapi.ServerResponse{
 11206  			Header:         res.Header,
 11207  			HTTPStatusCode: res.StatusCode,
 11208  		},
 11209  	}
 11210  	target := &ret
 11211  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11212  		return nil, err
 11213  	}
 11214  	return ret, nil
 11215  }
 11216  
 11217  // Pages invokes f for each page of results.
 11218  // A non-nil error returned from f will halt the iteration.
 11219  // The provided context supersedes any context provided to the Context method.
 11220  func (c *ProjectsLocationsDatasetsConsentStoresEvaluateUserConsentsCall) Pages(ctx context.Context, f func(*EvaluateUserConsentsResponse) error) error {
 11221  	c.ctx_ = ctx
 11222  	defer func(pt string) { c.evaluateuserconsentsrequest.PageToken = pt }(c.evaluateuserconsentsrequest.PageToken)
 11223  	for {
 11224  		x, err := c.Do()
 11225  		if err != nil {
 11226  			return err
 11227  		}
 11228  		if err := f(x); err != nil {
 11229  			return err
 11230  		}
 11231  		if x.NextPageToken == "" {
 11232  			return nil
 11233  		}
 11234  		c.evaluateuserconsentsrequest.PageToken = x.NextPageToken
 11235  	}
 11236  }
 11237  
 11238  type ProjectsLocationsDatasetsConsentStoresGetCall struct {
 11239  	s            *Service
 11240  	name         string
 11241  	urlParams_   gensupport.URLParams
 11242  	ifNoneMatch_ string
 11243  	ctx_         context.Context
 11244  	header_      http.Header
 11245  }
 11246  
 11247  // Get: Gets the specified consent store.
 11248  //
 11249  // - name: The resource name of the consent store to get.
 11250  func (r *ProjectsLocationsDatasetsConsentStoresService) Get(name string) *ProjectsLocationsDatasetsConsentStoresGetCall {
 11251  	c := &ProjectsLocationsDatasetsConsentStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11252  	c.name = name
 11253  	return c
 11254  }
 11255  
 11256  // Fields allows partial responses to be retrieved. See
 11257  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11258  // details.
 11259  func (c *ProjectsLocationsDatasetsConsentStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresGetCall {
 11260  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11261  	return c
 11262  }
 11263  
 11264  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11265  // object's ETag matches the given value. This is useful for getting updates
 11266  // only after the object has changed since the last request.
 11267  func (c *ProjectsLocationsDatasetsConsentStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsConsentStoresGetCall {
 11268  	c.ifNoneMatch_ = entityTag
 11269  	return c
 11270  }
 11271  
 11272  // Context sets the context to be used in this call's Do method.
 11273  func (c *ProjectsLocationsDatasetsConsentStoresGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresGetCall {
 11274  	c.ctx_ = ctx
 11275  	return c
 11276  }
 11277  
 11278  // Header returns a http.Header that can be modified by the caller to add
 11279  // headers to the request.
 11280  func (c *ProjectsLocationsDatasetsConsentStoresGetCall) Header() http.Header {
 11281  	if c.header_ == nil {
 11282  		c.header_ = make(http.Header)
 11283  	}
 11284  	return c.header_
 11285  }
 11286  
 11287  func (c *ProjectsLocationsDatasetsConsentStoresGetCall) doRequest(alt string) (*http.Response, error) {
 11288  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11289  	if c.ifNoneMatch_ != "" {
 11290  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11291  	}
 11292  	var body io.Reader = nil
 11293  	c.urlParams_.Set("alt", alt)
 11294  	c.urlParams_.Set("prettyPrint", "false")
 11295  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 11296  	urls += "?" + c.urlParams_.Encode()
 11297  	req, err := http.NewRequest("GET", urls, body)
 11298  	if err != nil {
 11299  		return nil, err
 11300  	}
 11301  	req.Header = reqHeaders
 11302  	googleapi.Expand(req.URL, map[string]string{
 11303  		"name": c.name,
 11304  	})
 11305  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11306  }
 11307  
 11308  // Do executes the "healthcare.projects.locations.datasets.consentStores.get" call.
 11309  // Any non-2xx status code is an error. Response headers are in either
 11310  // *ConsentStore.ServerResponse.Header or (if a response was returned at all)
 11311  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11312  // whether the returned error was because http.StatusNotModified was returned.
 11313  func (c *ProjectsLocationsDatasetsConsentStoresGetCall) Do(opts ...googleapi.CallOption) (*ConsentStore, error) {
 11314  	gensupport.SetOptions(c.urlParams_, opts...)
 11315  	res, err := c.doRequest("json")
 11316  	if res != nil && res.StatusCode == http.StatusNotModified {
 11317  		if res.Body != nil {
 11318  			res.Body.Close()
 11319  		}
 11320  		return nil, gensupport.WrapError(&googleapi.Error{
 11321  			Code:   res.StatusCode,
 11322  			Header: res.Header,
 11323  		})
 11324  	}
 11325  	if err != nil {
 11326  		return nil, err
 11327  	}
 11328  	defer googleapi.CloseBody(res)
 11329  	if err := googleapi.CheckResponse(res); err != nil {
 11330  		return nil, gensupport.WrapError(err)
 11331  	}
 11332  	ret := &ConsentStore{
 11333  		ServerResponse: googleapi.ServerResponse{
 11334  			Header:         res.Header,
 11335  			HTTPStatusCode: res.StatusCode,
 11336  		},
 11337  	}
 11338  	target := &ret
 11339  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11340  		return nil, err
 11341  	}
 11342  	return ret, nil
 11343  }
 11344  
 11345  type ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall struct {
 11346  	s            *Service
 11347  	resource     string
 11348  	urlParams_   gensupport.URLParams
 11349  	ifNoneMatch_ string
 11350  	ctx_         context.Context
 11351  	header_      http.Header
 11352  }
 11353  
 11354  // GetIamPolicy: Gets the access control policy for a resource. Returns an
 11355  // empty policy if the resource exists and does not have a policy set.
 11356  //
 11357  //   - resource: REQUIRED: The resource for which the policy is being requested.
 11358  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 11359  //     for the appropriate value for this field.
 11360  func (r *ProjectsLocationsDatasetsConsentStoresService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall {
 11361  	c := &ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11362  	c.resource = resource
 11363  	return c
 11364  }
 11365  
 11366  // OptionsRequestedPolicyVersion sets the optional parameter
 11367  // "options.requestedPolicyVersion": The maximum policy version that will be
 11368  // used to format the policy. Valid values are 0, 1, and 3. Requests specifying
 11369  // an invalid value will be rejected. Requests for policies with any
 11370  // conditional role bindings must specify version 3. Policies with no
 11371  // conditional role bindings may specify any valid value or leave the field
 11372  // unset. The policy in the response might use the policy version that you
 11373  // specified, or it might use a lower policy version. For example, if you
 11374  // specify version 3, but the policy has no conditional role bindings, the
 11375  // response uses version 1. To learn which resources support conditions in
 11376  // their IAM policies, see the IAM documentation
 11377  // (https://cloud.google.com/iam/help/conditions/resource-policies).
 11378  func (c *ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall {
 11379  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
 11380  	return c
 11381  }
 11382  
 11383  // Fields allows partial responses to be retrieved. See
 11384  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11385  // details.
 11386  func (c *ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall {
 11387  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11388  	return c
 11389  }
 11390  
 11391  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11392  // object's ETag matches the given value. This is useful for getting updates
 11393  // only after the object has changed since the last request.
 11394  func (c *ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall {
 11395  	c.ifNoneMatch_ = entityTag
 11396  	return c
 11397  }
 11398  
 11399  // Context sets the context to be used in this call's Do method.
 11400  func (c *ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall {
 11401  	c.ctx_ = ctx
 11402  	return c
 11403  }
 11404  
 11405  // Header returns a http.Header that can be modified by the caller to add
 11406  // headers to the request.
 11407  func (c *ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall) Header() http.Header {
 11408  	if c.header_ == nil {
 11409  		c.header_ = make(http.Header)
 11410  	}
 11411  	return c.header_
 11412  }
 11413  
 11414  func (c *ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 11415  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11416  	if c.ifNoneMatch_ != "" {
 11417  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11418  	}
 11419  	var body io.Reader = nil
 11420  	c.urlParams_.Set("alt", alt)
 11421  	c.urlParams_.Set("prettyPrint", "false")
 11422  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy")
 11423  	urls += "?" + c.urlParams_.Encode()
 11424  	req, err := http.NewRequest("GET", urls, body)
 11425  	if err != nil {
 11426  		return nil, err
 11427  	}
 11428  	req.Header = reqHeaders
 11429  	googleapi.Expand(req.URL, map[string]string{
 11430  		"resource": c.resource,
 11431  	})
 11432  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11433  }
 11434  
 11435  // Do executes the "healthcare.projects.locations.datasets.consentStores.getIamPolicy" call.
 11436  // Any non-2xx status code is an error. Response headers are in either
 11437  // *Policy.ServerResponse.Header or (if a response was returned at all) in
 11438  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11439  // whether the returned error was because http.StatusNotModified was returned.
 11440  func (c *ProjectsLocationsDatasetsConsentStoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
 11441  	gensupport.SetOptions(c.urlParams_, opts...)
 11442  	res, err := c.doRequest("json")
 11443  	if res != nil && res.StatusCode == http.StatusNotModified {
 11444  		if res.Body != nil {
 11445  			res.Body.Close()
 11446  		}
 11447  		return nil, gensupport.WrapError(&googleapi.Error{
 11448  			Code:   res.StatusCode,
 11449  			Header: res.Header,
 11450  		})
 11451  	}
 11452  	if err != nil {
 11453  		return nil, err
 11454  	}
 11455  	defer googleapi.CloseBody(res)
 11456  	if err := googleapi.CheckResponse(res); err != nil {
 11457  		return nil, gensupport.WrapError(err)
 11458  	}
 11459  	ret := &Policy{
 11460  		ServerResponse: googleapi.ServerResponse{
 11461  			Header:         res.Header,
 11462  			HTTPStatusCode: res.StatusCode,
 11463  		},
 11464  	}
 11465  	target := &ret
 11466  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11467  		return nil, err
 11468  	}
 11469  	return ret, nil
 11470  }
 11471  
 11472  type ProjectsLocationsDatasetsConsentStoresListCall struct {
 11473  	s            *Service
 11474  	parent       string
 11475  	urlParams_   gensupport.URLParams
 11476  	ifNoneMatch_ string
 11477  	ctx_         context.Context
 11478  	header_      http.Header
 11479  }
 11480  
 11481  // List: Lists the consent stores in the specified dataset.
 11482  //
 11483  // - parent: Name of the dataset.
 11484  func (r *ProjectsLocationsDatasetsConsentStoresService) List(parent string) *ProjectsLocationsDatasetsConsentStoresListCall {
 11485  	c := &ProjectsLocationsDatasetsConsentStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11486  	c.parent = parent
 11487  	return c
 11488  }
 11489  
 11490  // Filter sets the optional parameter "filter": Restricts the stores returned
 11491  // to those matching a filter. The following syntax is available: * A string
 11492  // field value can be written as text inside quotation marks, for example
 11493  // "query text". The only valid relational operation for text fields is
 11494  // equality (`=`), where text is searched within the field, rather than having
 11495  // the field be equal to the text. For example, "Comment = great" returns
 11496  // messages with `great` in the comment field. * A number field value can be
 11497  // written as an integer, a decimal, or an exponential. The valid relational
 11498  // operators for number fields are the equality operator (`=`), along with the
 11499  // less than/greater than operators (`<`, `<=`, `>`, `>=`). Note that there is
 11500  // no inequality (`!=`) operator. You can prepend the `NOT` operator to an
 11501  // expression to negate it. * A date field value must be written in
 11502  // `yyyy-mm-dd` form. Fields with date and time use the RFC3339 time format.
 11503  // Leading zeros are required for one-digit months and days. The valid
 11504  // relational operators for date fields are the equality operator (`=`) , along
 11505  // with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note that
 11506  // there is no inequality (`!=`) operator. You can prepend the `NOT` operator
 11507  // to an expression to negate it. * Multiple field query expressions can be
 11508  // combined in one query by adding `AND` or `OR` operators between the
 11509  // expressions. If a boolean operator appears within a quoted string, it is not
 11510  // treated as special, it's just another part of the character string to be
 11511  // matched. You can prepend the `NOT` operator to an expression to negate it.
 11512  // Only filtering on labels is supported. For example,
 11513  // `filter=labels.key=value`.
 11514  func (c *ProjectsLocationsDatasetsConsentStoresListCall) Filter(filter string) *ProjectsLocationsDatasetsConsentStoresListCall {
 11515  	c.urlParams_.Set("filter", filter)
 11516  	return c
 11517  }
 11518  
 11519  // PageSize sets the optional parameter "pageSize": Limit on the number of
 11520  // consent stores to return in a single response. If not specified, 100 is
 11521  // used. May not be larger than 1000.
 11522  func (c *ProjectsLocationsDatasetsConsentStoresListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsConsentStoresListCall {
 11523  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 11524  	return c
 11525  }
 11526  
 11527  // PageToken sets the optional parameter "pageToken": Token to retrieve the
 11528  // next page of results, or empty to get the first page.
 11529  func (c *ProjectsLocationsDatasetsConsentStoresListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsConsentStoresListCall {
 11530  	c.urlParams_.Set("pageToken", pageToken)
 11531  	return c
 11532  }
 11533  
 11534  // Fields allows partial responses to be retrieved. See
 11535  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11536  // details.
 11537  func (c *ProjectsLocationsDatasetsConsentStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresListCall {
 11538  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11539  	return c
 11540  }
 11541  
 11542  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11543  // object's ETag matches the given value. This is useful for getting updates
 11544  // only after the object has changed since the last request.
 11545  func (c *ProjectsLocationsDatasetsConsentStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsConsentStoresListCall {
 11546  	c.ifNoneMatch_ = entityTag
 11547  	return c
 11548  }
 11549  
 11550  // Context sets the context to be used in this call's Do method.
 11551  func (c *ProjectsLocationsDatasetsConsentStoresListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresListCall {
 11552  	c.ctx_ = ctx
 11553  	return c
 11554  }
 11555  
 11556  // Header returns a http.Header that can be modified by the caller to add
 11557  // headers to the request.
 11558  func (c *ProjectsLocationsDatasetsConsentStoresListCall) Header() http.Header {
 11559  	if c.header_ == nil {
 11560  		c.header_ = make(http.Header)
 11561  	}
 11562  	return c.header_
 11563  }
 11564  
 11565  func (c *ProjectsLocationsDatasetsConsentStoresListCall) doRequest(alt string) (*http.Response, error) {
 11566  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11567  	if c.ifNoneMatch_ != "" {
 11568  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11569  	}
 11570  	var body io.Reader = nil
 11571  	c.urlParams_.Set("alt", alt)
 11572  	c.urlParams_.Set("prettyPrint", "false")
 11573  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/consentStores")
 11574  	urls += "?" + c.urlParams_.Encode()
 11575  	req, err := http.NewRequest("GET", urls, body)
 11576  	if err != nil {
 11577  		return nil, err
 11578  	}
 11579  	req.Header = reqHeaders
 11580  	googleapi.Expand(req.URL, map[string]string{
 11581  		"parent": c.parent,
 11582  	})
 11583  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11584  }
 11585  
 11586  // Do executes the "healthcare.projects.locations.datasets.consentStores.list" call.
 11587  // Any non-2xx status code is an error. Response headers are in either
 11588  // *ListConsentStoresResponse.ServerResponse.Header or (if a response was
 11589  // returned at all) in error.(*googleapi.Error).Header. Use
 11590  // googleapi.IsNotModified to check whether the returned error was because
 11591  // http.StatusNotModified was returned.
 11592  func (c *ProjectsLocationsDatasetsConsentStoresListCall) Do(opts ...googleapi.CallOption) (*ListConsentStoresResponse, error) {
 11593  	gensupport.SetOptions(c.urlParams_, opts...)
 11594  	res, err := c.doRequest("json")
 11595  	if res != nil && res.StatusCode == http.StatusNotModified {
 11596  		if res.Body != nil {
 11597  			res.Body.Close()
 11598  		}
 11599  		return nil, gensupport.WrapError(&googleapi.Error{
 11600  			Code:   res.StatusCode,
 11601  			Header: res.Header,
 11602  		})
 11603  	}
 11604  	if err != nil {
 11605  		return nil, err
 11606  	}
 11607  	defer googleapi.CloseBody(res)
 11608  	if err := googleapi.CheckResponse(res); err != nil {
 11609  		return nil, gensupport.WrapError(err)
 11610  	}
 11611  	ret := &ListConsentStoresResponse{
 11612  		ServerResponse: googleapi.ServerResponse{
 11613  			Header:         res.Header,
 11614  			HTTPStatusCode: res.StatusCode,
 11615  		},
 11616  	}
 11617  	target := &ret
 11618  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11619  		return nil, err
 11620  	}
 11621  	return ret, nil
 11622  }
 11623  
 11624  // Pages invokes f for each page of results.
 11625  // A non-nil error returned from f will halt the iteration.
 11626  // The provided context supersedes any context provided to the Context method.
 11627  func (c *ProjectsLocationsDatasetsConsentStoresListCall) Pages(ctx context.Context, f func(*ListConsentStoresResponse) error) error {
 11628  	c.ctx_ = ctx
 11629  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 11630  	for {
 11631  		x, err := c.Do()
 11632  		if err != nil {
 11633  			return err
 11634  		}
 11635  		if err := f(x); err != nil {
 11636  			return err
 11637  		}
 11638  		if x.NextPageToken == "" {
 11639  			return nil
 11640  		}
 11641  		c.PageToken(x.NextPageToken)
 11642  	}
 11643  }
 11644  
 11645  type ProjectsLocationsDatasetsConsentStoresPatchCall struct {
 11646  	s            *Service
 11647  	name         string
 11648  	consentstore *ConsentStore
 11649  	urlParams_   gensupport.URLParams
 11650  	ctx_         context.Context
 11651  	header_      http.Header
 11652  }
 11653  
 11654  // Patch: Updates the specified consent store.
 11655  //
 11656  //   - name: Resource name of the consent store, of the form
 11657  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consen
 11658  //     tStores/{consent_store_id}`. Cannot be changed after creation.
 11659  func (r *ProjectsLocationsDatasetsConsentStoresService) Patch(name string, consentstore *ConsentStore) *ProjectsLocationsDatasetsConsentStoresPatchCall {
 11660  	c := &ProjectsLocationsDatasetsConsentStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11661  	c.name = name
 11662  	c.consentstore = consentstore
 11663  	return c
 11664  }
 11665  
 11666  // UpdateMask sets the optional parameter "updateMask": Required. The update
 11667  // mask that applies to the resource. For the `FieldMask` definition, see
 11668  // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
 11669  // Only the `labels`, `default_consent_ttl`, and
 11670  // `enable_consent_create_on_update` fields are allowed to be updated.
 11671  func (c *ProjectsLocationsDatasetsConsentStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsConsentStoresPatchCall {
 11672  	c.urlParams_.Set("updateMask", updateMask)
 11673  	return c
 11674  }
 11675  
 11676  // Fields allows partial responses to be retrieved. See
 11677  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11678  // details.
 11679  func (c *ProjectsLocationsDatasetsConsentStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresPatchCall {
 11680  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11681  	return c
 11682  }
 11683  
 11684  // Context sets the context to be used in this call's Do method.
 11685  func (c *ProjectsLocationsDatasetsConsentStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresPatchCall {
 11686  	c.ctx_ = ctx
 11687  	return c
 11688  }
 11689  
 11690  // Header returns a http.Header that can be modified by the caller to add
 11691  // headers to the request.
 11692  func (c *ProjectsLocationsDatasetsConsentStoresPatchCall) Header() http.Header {
 11693  	if c.header_ == nil {
 11694  		c.header_ = make(http.Header)
 11695  	}
 11696  	return c.header_
 11697  }
 11698  
 11699  func (c *ProjectsLocationsDatasetsConsentStoresPatchCall) doRequest(alt string) (*http.Response, error) {
 11700  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11701  	var body io.Reader = nil
 11702  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.consentstore)
 11703  	if err != nil {
 11704  		return nil, err
 11705  	}
 11706  	c.urlParams_.Set("alt", alt)
 11707  	c.urlParams_.Set("prettyPrint", "false")
 11708  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 11709  	urls += "?" + c.urlParams_.Encode()
 11710  	req, err := http.NewRequest("PATCH", urls, body)
 11711  	if err != nil {
 11712  		return nil, err
 11713  	}
 11714  	req.Header = reqHeaders
 11715  	googleapi.Expand(req.URL, map[string]string{
 11716  		"name": c.name,
 11717  	})
 11718  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11719  }
 11720  
 11721  // Do executes the "healthcare.projects.locations.datasets.consentStores.patch" call.
 11722  // Any non-2xx status code is an error. Response headers are in either
 11723  // *ConsentStore.ServerResponse.Header or (if a response was returned at all)
 11724  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11725  // whether the returned error was because http.StatusNotModified was returned.
 11726  func (c *ProjectsLocationsDatasetsConsentStoresPatchCall) Do(opts ...googleapi.CallOption) (*ConsentStore, error) {
 11727  	gensupport.SetOptions(c.urlParams_, opts...)
 11728  	res, err := c.doRequest("json")
 11729  	if res != nil && res.StatusCode == http.StatusNotModified {
 11730  		if res.Body != nil {
 11731  			res.Body.Close()
 11732  		}
 11733  		return nil, gensupport.WrapError(&googleapi.Error{
 11734  			Code:   res.StatusCode,
 11735  			Header: res.Header,
 11736  		})
 11737  	}
 11738  	if err != nil {
 11739  		return nil, err
 11740  	}
 11741  	defer googleapi.CloseBody(res)
 11742  	if err := googleapi.CheckResponse(res); err != nil {
 11743  		return nil, gensupport.WrapError(err)
 11744  	}
 11745  	ret := &ConsentStore{
 11746  		ServerResponse: googleapi.ServerResponse{
 11747  			Header:         res.Header,
 11748  			HTTPStatusCode: res.StatusCode,
 11749  		},
 11750  	}
 11751  	target := &ret
 11752  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11753  		return nil, err
 11754  	}
 11755  	return ret, nil
 11756  }
 11757  
 11758  type ProjectsLocationsDatasetsConsentStoresQueryAccessibleDataCall struct {
 11759  	s                          *Service
 11760  	consentStore               string
 11761  	queryaccessibledatarequest *QueryAccessibleDataRequest
 11762  	urlParams_                 gensupport.URLParams
 11763  	ctx_                       context.Context
 11764  	header_                    http.Header
 11765  }
 11766  
 11767  // QueryAccessibleData: Queries all data_ids that are consented for a specified
 11768  // use in the given consent store and writes them to a specified destination.
 11769  // The returned Operation includes a progress counter for the number of User
 11770  // data mappings processed. If the request is successful, a detailed response
 11771  // is returned of type QueryAccessibleDataResponse, contained in the response
 11772  // field when the operation finishes. The metadata field type is
 11773  // OperationMetadata. Errors are logged to Cloud Logging (see Viewing error
 11774  // logs in Cloud Logging
 11775  // (https://cloud.google.com/healthcare/docs/how-tos/logging)). For example,
 11776  // the following sample log entry shows a `failed to evaluate consent policy`
 11777  // error that occurred during a QueryAccessibleData call to consent store
 11778  // `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentS
 11779  // tores/{consent_store_id}`. ```json jsonPayload: { @type:
 11780  // "type.googleapis.com/google.cloud.healthcare.logging.QueryAccessibleDataLogEn
 11781  // try" error: { code: 9 message: "failed to evaluate consent policy" }
 11782  // resourceName:
 11783  // "projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentS
 11784  // tores/{consent_store_id}/consents/{consent_id}" } logName:
 11785  // "projects/{project_id}/logs/healthcare.googleapis.com%2Fquery_accessible_data
 11786  // " operation: { id:
 11787  // "projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/operatio
 11788  // ns/{operation_id}" producer: "healthcare.googleapis.com/QueryAccessibleData"
 11789  // } receiveTimestamp: "TIMESTAMP" resource: { labels: { consent_store_id:
 11790  // "{consent_store_id}" dataset_id: "{dataset_id}" location: "{location_id}"
 11791  // project_id: "{project_id}" } type: "healthcare_consent_store" } severity:
 11792  // "ERROR" timestamp: "TIMESTAMP" ```
 11793  //
 11794  //   - consentStore: Name of the consent store to retrieve User data mappings
 11795  //     from.
 11796  func (r *ProjectsLocationsDatasetsConsentStoresService) QueryAccessibleData(consentStore string, queryaccessibledatarequest *QueryAccessibleDataRequest) *ProjectsLocationsDatasetsConsentStoresQueryAccessibleDataCall {
 11797  	c := &ProjectsLocationsDatasetsConsentStoresQueryAccessibleDataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11798  	c.consentStore = consentStore
 11799  	c.queryaccessibledatarequest = queryaccessibledatarequest
 11800  	return c
 11801  }
 11802  
 11803  // Fields allows partial responses to be retrieved. See
 11804  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11805  // details.
 11806  func (c *ProjectsLocationsDatasetsConsentStoresQueryAccessibleDataCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresQueryAccessibleDataCall {
 11807  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11808  	return c
 11809  }
 11810  
 11811  // Context sets the context to be used in this call's Do method.
 11812  func (c *ProjectsLocationsDatasetsConsentStoresQueryAccessibleDataCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresQueryAccessibleDataCall {
 11813  	c.ctx_ = ctx
 11814  	return c
 11815  }
 11816  
 11817  // Header returns a http.Header that can be modified by the caller to add
 11818  // headers to the request.
 11819  func (c *ProjectsLocationsDatasetsConsentStoresQueryAccessibleDataCall) Header() http.Header {
 11820  	if c.header_ == nil {
 11821  		c.header_ = make(http.Header)
 11822  	}
 11823  	return c.header_
 11824  }
 11825  
 11826  func (c *ProjectsLocationsDatasetsConsentStoresQueryAccessibleDataCall) doRequest(alt string) (*http.Response, error) {
 11827  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11828  	var body io.Reader = nil
 11829  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.queryaccessibledatarequest)
 11830  	if err != nil {
 11831  		return nil, err
 11832  	}
 11833  	c.urlParams_.Set("alt", alt)
 11834  	c.urlParams_.Set("prettyPrint", "false")
 11835  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+consentStore}:queryAccessibleData")
 11836  	urls += "?" + c.urlParams_.Encode()
 11837  	req, err := http.NewRequest("POST", urls, body)
 11838  	if err != nil {
 11839  		return nil, err
 11840  	}
 11841  	req.Header = reqHeaders
 11842  	googleapi.Expand(req.URL, map[string]string{
 11843  		"consentStore": c.consentStore,
 11844  	})
 11845  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11846  }
 11847  
 11848  // Do executes the "healthcare.projects.locations.datasets.consentStores.queryAccessibleData" call.
 11849  // Any non-2xx status code is an error. Response headers are in either
 11850  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 11851  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11852  // whether the returned error was because http.StatusNotModified was returned.
 11853  func (c *ProjectsLocationsDatasetsConsentStoresQueryAccessibleDataCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 11854  	gensupport.SetOptions(c.urlParams_, opts...)
 11855  	res, err := c.doRequest("json")
 11856  	if res != nil && res.StatusCode == http.StatusNotModified {
 11857  		if res.Body != nil {
 11858  			res.Body.Close()
 11859  		}
 11860  		return nil, gensupport.WrapError(&googleapi.Error{
 11861  			Code:   res.StatusCode,
 11862  			Header: res.Header,
 11863  		})
 11864  	}
 11865  	if err != nil {
 11866  		return nil, err
 11867  	}
 11868  	defer googleapi.CloseBody(res)
 11869  	if err := googleapi.CheckResponse(res); err != nil {
 11870  		return nil, gensupport.WrapError(err)
 11871  	}
 11872  	ret := &Operation{
 11873  		ServerResponse: googleapi.ServerResponse{
 11874  			Header:         res.Header,
 11875  			HTTPStatusCode: res.StatusCode,
 11876  		},
 11877  	}
 11878  	target := &ret
 11879  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11880  		return nil, err
 11881  	}
 11882  	return ret, nil
 11883  }
 11884  
 11885  type ProjectsLocationsDatasetsConsentStoresSetIamPolicyCall struct {
 11886  	s                   *Service
 11887  	resource            string
 11888  	setiampolicyrequest *SetIamPolicyRequest
 11889  	urlParams_          gensupport.URLParams
 11890  	ctx_                context.Context
 11891  	header_             http.Header
 11892  }
 11893  
 11894  // SetIamPolicy: Sets the access control policy on the specified resource.
 11895  // Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`,
 11896  // and `PERMISSION_DENIED` errors.
 11897  //
 11898  //   - resource: REQUIRED: The resource for which the policy is being specified.
 11899  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 11900  //     for the appropriate value for this field.
 11901  func (r *ProjectsLocationsDatasetsConsentStoresService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsConsentStoresSetIamPolicyCall {
 11902  	c := &ProjectsLocationsDatasetsConsentStoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11903  	c.resource = resource
 11904  	c.setiampolicyrequest = setiampolicyrequest
 11905  	return c
 11906  }
 11907  
 11908  // Fields allows partial responses to be retrieved. See
 11909  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11910  // details.
 11911  func (c *ProjectsLocationsDatasetsConsentStoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresSetIamPolicyCall {
 11912  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11913  	return c
 11914  }
 11915  
 11916  // Context sets the context to be used in this call's Do method.
 11917  func (c *ProjectsLocationsDatasetsConsentStoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresSetIamPolicyCall {
 11918  	c.ctx_ = ctx
 11919  	return c
 11920  }
 11921  
 11922  // Header returns a http.Header that can be modified by the caller to add
 11923  // headers to the request.
 11924  func (c *ProjectsLocationsDatasetsConsentStoresSetIamPolicyCall) Header() http.Header {
 11925  	if c.header_ == nil {
 11926  		c.header_ = make(http.Header)
 11927  	}
 11928  	return c.header_
 11929  }
 11930  
 11931  func (c *ProjectsLocationsDatasetsConsentStoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 11932  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11933  	var body io.Reader = nil
 11934  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
 11935  	if err != nil {
 11936  		return nil, err
 11937  	}
 11938  	c.urlParams_.Set("alt", alt)
 11939  	c.urlParams_.Set("prettyPrint", "false")
 11940  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy")
 11941  	urls += "?" + c.urlParams_.Encode()
 11942  	req, err := http.NewRequest("POST", urls, body)
 11943  	if err != nil {
 11944  		return nil, err
 11945  	}
 11946  	req.Header = reqHeaders
 11947  	googleapi.Expand(req.URL, map[string]string{
 11948  		"resource": c.resource,
 11949  	})
 11950  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11951  }
 11952  
 11953  // Do executes the "healthcare.projects.locations.datasets.consentStores.setIamPolicy" call.
 11954  // Any non-2xx status code is an error. Response headers are in either
 11955  // *Policy.ServerResponse.Header or (if a response was returned at all) in
 11956  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11957  // whether the returned error was because http.StatusNotModified was returned.
 11958  func (c *ProjectsLocationsDatasetsConsentStoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
 11959  	gensupport.SetOptions(c.urlParams_, opts...)
 11960  	res, err := c.doRequest("json")
 11961  	if res != nil && res.StatusCode == http.StatusNotModified {
 11962  		if res.Body != nil {
 11963  			res.Body.Close()
 11964  		}
 11965  		return nil, gensupport.WrapError(&googleapi.Error{
 11966  			Code:   res.StatusCode,
 11967  			Header: res.Header,
 11968  		})
 11969  	}
 11970  	if err != nil {
 11971  		return nil, err
 11972  	}
 11973  	defer googleapi.CloseBody(res)
 11974  	if err := googleapi.CheckResponse(res); err != nil {
 11975  		return nil, gensupport.WrapError(err)
 11976  	}
 11977  	ret := &Policy{
 11978  		ServerResponse: googleapi.ServerResponse{
 11979  			Header:         res.Header,
 11980  			HTTPStatusCode: res.StatusCode,
 11981  		},
 11982  	}
 11983  	target := &ret
 11984  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11985  		return nil, err
 11986  	}
 11987  	return ret, nil
 11988  }
 11989  
 11990  type ProjectsLocationsDatasetsConsentStoresTestIamPermissionsCall struct {
 11991  	s                         *Service
 11992  	resource                  string
 11993  	testiampermissionsrequest *TestIamPermissionsRequest
 11994  	urlParams_                gensupport.URLParams
 11995  	ctx_                      context.Context
 11996  	header_                   http.Header
 11997  }
 11998  
 11999  // TestIamPermissions: Returns permissions that a caller has on the specified
 12000  // resource. If the resource does not exist, this will return an empty set of
 12001  // permissions, not a `NOT_FOUND` error. Note: This operation is designed to be
 12002  // used for building permission-aware UIs and command-line tools, not for
 12003  // authorization checking. This operation may "fail open" without warning.
 12004  //
 12005  //   - resource: REQUIRED: The resource for which the policy detail is being
 12006  //     requested. See Resource names
 12007  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
 12008  //     value for this field.
 12009  func (r *ProjectsLocationsDatasetsConsentStoresService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsConsentStoresTestIamPermissionsCall {
 12010  	c := &ProjectsLocationsDatasetsConsentStoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12011  	c.resource = resource
 12012  	c.testiampermissionsrequest = testiampermissionsrequest
 12013  	return c
 12014  }
 12015  
 12016  // Fields allows partial responses to be retrieved. See
 12017  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12018  // details.
 12019  func (c *ProjectsLocationsDatasetsConsentStoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresTestIamPermissionsCall {
 12020  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12021  	return c
 12022  }
 12023  
 12024  // Context sets the context to be used in this call's Do method.
 12025  func (c *ProjectsLocationsDatasetsConsentStoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresTestIamPermissionsCall {
 12026  	c.ctx_ = ctx
 12027  	return c
 12028  }
 12029  
 12030  // Header returns a http.Header that can be modified by the caller to add
 12031  // headers to the request.
 12032  func (c *ProjectsLocationsDatasetsConsentStoresTestIamPermissionsCall) Header() http.Header {
 12033  	if c.header_ == nil {
 12034  		c.header_ = make(http.Header)
 12035  	}
 12036  	return c.header_
 12037  }
 12038  
 12039  func (c *ProjectsLocationsDatasetsConsentStoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
 12040  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12041  	var body io.Reader = nil
 12042  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
 12043  	if err != nil {
 12044  		return nil, err
 12045  	}
 12046  	c.urlParams_.Set("alt", alt)
 12047  	c.urlParams_.Set("prettyPrint", "false")
 12048  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions")
 12049  	urls += "?" + c.urlParams_.Encode()
 12050  	req, err := http.NewRequest("POST", urls, body)
 12051  	if err != nil {
 12052  		return nil, err
 12053  	}
 12054  	req.Header = reqHeaders
 12055  	googleapi.Expand(req.URL, map[string]string{
 12056  		"resource": c.resource,
 12057  	})
 12058  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12059  }
 12060  
 12061  // Do executes the "healthcare.projects.locations.datasets.consentStores.testIamPermissions" call.
 12062  // Any non-2xx status code is an error. Response headers are in either
 12063  // *TestIamPermissionsResponse.ServerResponse.Header or (if a response was
 12064  // returned at all) in error.(*googleapi.Error).Header. Use
 12065  // googleapi.IsNotModified to check whether the returned error was because
 12066  // http.StatusNotModified was returned.
 12067  func (c *ProjectsLocationsDatasetsConsentStoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
 12068  	gensupport.SetOptions(c.urlParams_, opts...)
 12069  	res, err := c.doRequest("json")
 12070  	if res != nil && res.StatusCode == http.StatusNotModified {
 12071  		if res.Body != nil {
 12072  			res.Body.Close()
 12073  		}
 12074  		return nil, gensupport.WrapError(&googleapi.Error{
 12075  			Code:   res.StatusCode,
 12076  			Header: res.Header,
 12077  		})
 12078  	}
 12079  	if err != nil {
 12080  		return nil, err
 12081  	}
 12082  	defer googleapi.CloseBody(res)
 12083  	if err := googleapi.CheckResponse(res); err != nil {
 12084  		return nil, gensupport.WrapError(err)
 12085  	}
 12086  	ret := &TestIamPermissionsResponse{
 12087  		ServerResponse: googleapi.ServerResponse{
 12088  			Header:         res.Header,
 12089  			HTTPStatusCode: res.StatusCode,
 12090  		},
 12091  	}
 12092  	target := &ret
 12093  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12094  		return nil, err
 12095  	}
 12096  	return ret, nil
 12097  }
 12098  
 12099  type ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsCreateCall struct {
 12100  	s                   *Service
 12101  	parent              string
 12102  	attributedefinition *AttributeDefinition
 12103  	urlParams_          gensupport.URLParams
 12104  	ctx_                context.Context
 12105  	header_             http.Header
 12106  }
 12107  
 12108  // Create: Creates a new Attribute definition in the parent consent store.
 12109  //
 12110  //   - parent: The name of the consent store that this Attribute definition
 12111  //     belongs to.
 12112  func (r *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsService) Create(parent string, attributedefinition *AttributeDefinition) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsCreateCall {
 12113  	c := &ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12114  	c.parent = parent
 12115  	c.attributedefinition = attributedefinition
 12116  	return c
 12117  }
 12118  
 12119  // AttributeDefinitionId sets the optional parameter "attributeDefinitionId":
 12120  // Required. The ID of the Attribute definition to create. The string must
 12121  // match the following regex: `_a-zA-Z{0,255}` and must not be a reserved
 12122  // keyword within the Common Expression Language as listed on
 12123  // https://github.com/google/cel-spec/blob/master/doc/langdef.md.
 12124  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsCreateCall) AttributeDefinitionId(attributeDefinitionId string) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsCreateCall {
 12125  	c.urlParams_.Set("attributeDefinitionId", attributeDefinitionId)
 12126  	return c
 12127  }
 12128  
 12129  // Fields allows partial responses to be retrieved. See
 12130  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12131  // details.
 12132  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsCreateCall {
 12133  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12134  	return c
 12135  }
 12136  
 12137  // Context sets the context to be used in this call's Do method.
 12138  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsCreateCall {
 12139  	c.ctx_ = ctx
 12140  	return c
 12141  }
 12142  
 12143  // Header returns a http.Header that can be modified by the caller to add
 12144  // headers to the request.
 12145  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsCreateCall) Header() http.Header {
 12146  	if c.header_ == nil {
 12147  		c.header_ = make(http.Header)
 12148  	}
 12149  	return c.header_
 12150  }
 12151  
 12152  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsCreateCall) doRequest(alt string) (*http.Response, error) {
 12153  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12154  	var body io.Reader = nil
 12155  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.attributedefinition)
 12156  	if err != nil {
 12157  		return nil, err
 12158  	}
 12159  	c.urlParams_.Set("alt", alt)
 12160  	c.urlParams_.Set("prettyPrint", "false")
 12161  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/attributeDefinitions")
 12162  	urls += "?" + c.urlParams_.Encode()
 12163  	req, err := http.NewRequest("POST", urls, body)
 12164  	if err != nil {
 12165  		return nil, err
 12166  	}
 12167  	req.Header = reqHeaders
 12168  	googleapi.Expand(req.URL, map[string]string{
 12169  		"parent": c.parent,
 12170  	})
 12171  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12172  }
 12173  
 12174  // Do executes the "healthcare.projects.locations.datasets.consentStores.attributeDefinitions.create" call.
 12175  // Any non-2xx status code is an error. Response headers are in either
 12176  // *AttributeDefinition.ServerResponse.Header or (if a response was returned at
 12177  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 12178  // check whether the returned error was because http.StatusNotModified was
 12179  // returned.
 12180  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsCreateCall) Do(opts ...googleapi.CallOption) (*AttributeDefinition, error) {
 12181  	gensupport.SetOptions(c.urlParams_, opts...)
 12182  	res, err := c.doRequest("json")
 12183  	if res != nil && res.StatusCode == http.StatusNotModified {
 12184  		if res.Body != nil {
 12185  			res.Body.Close()
 12186  		}
 12187  		return nil, gensupport.WrapError(&googleapi.Error{
 12188  			Code:   res.StatusCode,
 12189  			Header: res.Header,
 12190  		})
 12191  	}
 12192  	if err != nil {
 12193  		return nil, err
 12194  	}
 12195  	defer googleapi.CloseBody(res)
 12196  	if err := googleapi.CheckResponse(res); err != nil {
 12197  		return nil, gensupport.WrapError(err)
 12198  	}
 12199  	ret := &AttributeDefinition{
 12200  		ServerResponse: googleapi.ServerResponse{
 12201  			Header:         res.Header,
 12202  			HTTPStatusCode: res.StatusCode,
 12203  		},
 12204  	}
 12205  	target := &ret
 12206  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12207  		return nil, err
 12208  	}
 12209  	return ret, nil
 12210  }
 12211  
 12212  type ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsDeleteCall struct {
 12213  	s          *Service
 12214  	name       string
 12215  	urlParams_ gensupport.URLParams
 12216  	ctx_       context.Context
 12217  	header_    http.Header
 12218  }
 12219  
 12220  // Delete: Deletes the specified Attribute definition. Fails if the Attribute
 12221  // definition is referenced by any User data mapping, or the latest revision of
 12222  // any Consent.
 12223  //
 12224  //   - name: The resource name of the Attribute definition to delete. To preserve
 12225  //     referential integrity, Attribute definitions referenced by a User data
 12226  //     mapping or the latest revision of a Consent cannot be deleted.
 12227  func (r *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsService) Delete(name string) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsDeleteCall {
 12228  	c := &ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12229  	c.name = name
 12230  	return c
 12231  }
 12232  
 12233  // Fields allows partial responses to be retrieved. See
 12234  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12235  // details.
 12236  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsDeleteCall {
 12237  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12238  	return c
 12239  }
 12240  
 12241  // Context sets the context to be used in this call's Do method.
 12242  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsDeleteCall {
 12243  	c.ctx_ = ctx
 12244  	return c
 12245  }
 12246  
 12247  // Header returns a http.Header that can be modified by the caller to add
 12248  // headers to the request.
 12249  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsDeleteCall) Header() http.Header {
 12250  	if c.header_ == nil {
 12251  		c.header_ = make(http.Header)
 12252  	}
 12253  	return c.header_
 12254  }
 12255  
 12256  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsDeleteCall) doRequest(alt string) (*http.Response, error) {
 12257  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12258  	var body io.Reader = nil
 12259  	c.urlParams_.Set("alt", alt)
 12260  	c.urlParams_.Set("prettyPrint", "false")
 12261  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 12262  	urls += "?" + c.urlParams_.Encode()
 12263  	req, err := http.NewRequest("DELETE", urls, body)
 12264  	if err != nil {
 12265  		return nil, err
 12266  	}
 12267  	req.Header = reqHeaders
 12268  	googleapi.Expand(req.URL, map[string]string{
 12269  		"name": c.name,
 12270  	})
 12271  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12272  }
 12273  
 12274  // Do executes the "healthcare.projects.locations.datasets.consentStores.attributeDefinitions.delete" call.
 12275  // Any non-2xx status code is an error. Response headers are in either
 12276  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 12277  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 12278  // whether the returned error was because http.StatusNotModified was returned.
 12279  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 12280  	gensupport.SetOptions(c.urlParams_, opts...)
 12281  	res, err := c.doRequest("json")
 12282  	if res != nil && res.StatusCode == http.StatusNotModified {
 12283  		if res.Body != nil {
 12284  			res.Body.Close()
 12285  		}
 12286  		return nil, gensupport.WrapError(&googleapi.Error{
 12287  			Code:   res.StatusCode,
 12288  			Header: res.Header,
 12289  		})
 12290  	}
 12291  	if err != nil {
 12292  		return nil, err
 12293  	}
 12294  	defer googleapi.CloseBody(res)
 12295  	if err := googleapi.CheckResponse(res); err != nil {
 12296  		return nil, gensupport.WrapError(err)
 12297  	}
 12298  	ret := &Empty{
 12299  		ServerResponse: googleapi.ServerResponse{
 12300  			Header:         res.Header,
 12301  			HTTPStatusCode: res.StatusCode,
 12302  		},
 12303  	}
 12304  	target := &ret
 12305  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12306  		return nil, err
 12307  	}
 12308  	return ret, nil
 12309  }
 12310  
 12311  type ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsGetCall struct {
 12312  	s            *Service
 12313  	name         string
 12314  	urlParams_   gensupport.URLParams
 12315  	ifNoneMatch_ string
 12316  	ctx_         context.Context
 12317  	header_      http.Header
 12318  }
 12319  
 12320  // Get: Gets the specified Attribute definition.
 12321  //
 12322  // - name: The resource name of the Attribute definition to get.
 12323  func (r *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsService) Get(name string) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsGetCall {
 12324  	c := &ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12325  	c.name = name
 12326  	return c
 12327  }
 12328  
 12329  // Fields allows partial responses to be retrieved. See
 12330  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12331  // details.
 12332  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsGetCall {
 12333  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12334  	return c
 12335  }
 12336  
 12337  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12338  // object's ETag matches the given value. This is useful for getting updates
 12339  // only after the object has changed since the last request.
 12340  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsGetCall {
 12341  	c.ifNoneMatch_ = entityTag
 12342  	return c
 12343  }
 12344  
 12345  // Context sets the context to be used in this call's Do method.
 12346  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsGetCall {
 12347  	c.ctx_ = ctx
 12348  	return c
 12349  }
 12350  
 12351  // Header returns a http.Header that can be modified by the caller to add
 12352  // headers to the request.
 12353  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsGetCall) Header() http.Header {
 12354  	if c.header_ == nil {
 12355  		c.header_ = make(http.Header)
 12356  	}
 12357  	return c.header_
 12358  }
 12359  
 12360  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsGetCall) doRequest(alt string) (*http.Response, error) {
 12361  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12362  	if c.ifNoneMatch_ != "" {
 12363  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12364  	}
 12365  	var body io.Reader = nil
 12366  	c.urlParams_.Set("alt", alt)
 12367  	c.urlParams_.Set("prettyPrint", "false")
 12368  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 12369  	urls += "?" + c.urlParams_.Encode()
 12370  	req, err := http.NewRequest("GET", urls, body)
 12371  	if err != nil {
 12372  		return nil, err
 12373  	}
 12374  	req.Header = reqHeaders
 12375  	googleapi.Expand(req.URL, map[string]string{
 12376  		"name": c.name,
 12377  	})
 12378  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12379  }
 12380  
 12381  // Do executes the "healthcare.projects.locations.datasets.consentStores.attributeDefinitions.get" call.
 12382  // Any non-2xx status code is an error. Response headers are in either
 12383  // *AttributeDefinition.ServerResponse.Header or (if a response was returned at
 12384  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 12385  // check whether the returned error was because http.StatusNotModified was
 12386  // returned.
 12387  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsGetCall) Do(opts ...googleapi.CallOption) (*AttributeDefinition, error) {
 12388  	gensupport.SetOptions(c.urlParams_, opts...)
 12389  	res, err := c.doRequest("json")
 12390  	if res != nil && res.StatusCode == http.StatusNotModified {
 12391  		if res.Body != nil {
 12392  			res.Body.Close()
 12393  		}
 12394  		return nil, gensupport.WrapError(&googleapi.Error{
 12395  			Code:   res.StatusCode,
 12396  			Header: res.Header,
 12397  		})
 12398  	}
 12399  	if err != nil {
 12400  		return nil, err
 12401  	}
 12402  	defer googleapi.CloseBody(res)
 12403  	if err := googleapi.CheckResponse(res); err != nil {
 12404  		return nil, gensupport.WrapError(err)
 12405  	}
 12406  	ret := &AttributeDefinition{
 12407  		ServerResponse: googleapi.ServerResponse{
 12408  			Header:         res.Header,
 12409  			HTTPStatusCode: res.StatusCode,
 12410  		},
 12411  	}
 12412  	target := &ret
 12413  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12414  		return nil, err
 12415  	}
 12416  	return ret, nil
 12417  }
 12418  
 12419  type ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall struct {
 12420  	s            *Service
 12421  	parent       string
 12422  	urlParams_   gensupport.URLParams
 12423  	ifNoneMatch_ string
 12424  	ctx_         context.Context
 12425  	header_      http.Header
 12426  }
 12427  
 12428  // List: Lists the Attribute definitions in the specified consent store.
 12429  //
 12430  // - parent: Name of the consent store to retrieve Attribute definitions from.
 12431  func (r *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsService) List(parent string) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall {
 12432  	c := &ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12433  	c.parent = parent
 12434  	return c
 12435  }
 12436  
 12437  // Filter sets the optional parameter "filter": Restricts the attributes
 12438  // returned to those matching a filter. The following syntax is available: * A
 12439  // string field value can be written as text inside quotation marks, for
 12440  // example "query text". The only valid relational operation for text fields
 12441  // is equality (`=`), where text is searched within the field, rather than
 12442  // having the field be equal to the text. For example, "Comment = great"
 12443  // returns messages with `great` in the comment field. * A number field value
 12444  // can be written as an integer, a decimal, or an exponential. The valid
 12445  // relational operators for number fields are the equality operator (`=`),
 12446  // along with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note
 12447  // that there is no inequality (`!=`) operator. You can prepend the `NOT`
 12448  // operator to an expression to negate it. * A date field value must be written
 12449  // in `yyyy-mm-dd` form. Fields with date and time use the RFC3339 time format.
 12450  // Leading zeros are required for one-digit months and days. The valid
 12451  // relational operators for date fields are the equality operator (`=`) , along
 12452  // with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note that
 12453  // there is no inequality (`!=`) operator. You can prepend the `NOT` operator
 12454  // to an expression to negate it. * Multiple field query expressions can be
 12455  // combined in one query by adding `AND` or `OR` operators between the
 12456  // expressions. If a boolean operator appears within a quoted string, it is not
 12457  // treated as special, it's just another part of the character string to be
 12458  // matched. You can prepend the `NOT` operator to an expression to negate it.
 12459  // The only field available for filtering is `category`. For example,
 12460  // `filter=category=\"REQUEST\".
 12461  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall) Filter(filter string) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall {
 12462  	c.urlParams_.Set("filter", filter)
 12463  	return c
 12464  }
 12465  
 12466  // PageSize sets the optional parameter "pageSize": Limit on the number of
 12467  // Attribute definitions to return in a single response. If not specified, 100
 12468  // is used. May not be larger than 1000.
 12469  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall {
 12470  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 12471  	return c
 12472  }
 12473  
 12474  // PageToken sets the optional parameter "pageToken": Token to retrieve the
 12475  // next page of results or empty to get the first page.
 12476  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall {
 12477  	c.urlParams_.Set("pageToken", pageToken)
 12478  	return c
 12479  }
 12480  
 12481  // Fields allows partial responses to be retrieved. See
 12482  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12483  // details.
 12484  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall {
 12485  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12486  	return c
 12487  }
 12488  
 12489  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12490  // object's ETag matches the given value. This is useful for getting updates
 12491  // only after the object has changed since the last request.
 12492  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall {
 12493  	c.ifNoneMatch_ = entityTag
 12494  	return c
 12495  }
 12496  
 12497  // Context sets the context to be used in this call's Do method.
 12498  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall {
 12499  	c.ctx_ = ctx
 12500  	return c
 12501  }
 12502  
 12503  // Header returns a http.Header that can be modified by the caller to add
 12504  // headers to the request.
 12505  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall) Header() http.Header {
 12506  	if c.header_ == nil {
 12507  		c.header_ = make(http.Header)
 12508  	}
 12509  	return c.header_
 12510  }
 12511  
 12512  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall) doRequest(alt string) (*http.Response, error) {
 12513  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12514  	if c.ifNoneMatch_ != "" {
 12515  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12516  	}
 12517  	var body io.Reader = nil
 12518  	c.urlParams_.Set("alt", alt)
 12519  	c.urlParams_.Set("prettyPrint", "false")
 12520  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/attributeDefinitions")
 12521  	urls += "?" + c.urlParams_.Encode()
 12522  	req, err := http.NewRequest("GET", urls, body)
 12523  	if err != nil {
 12524  		return nil, err
 12525  	}
 12526  	req.Header = reqHeaders
 12527  	googleapi.Expand(req.URL, map[string]string{
 12528  		"parent": c.parent,
 12529  	})
 12530  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12531  }
 12532  
 12533  // Do executes the "healthcare.projects.locations.datasets.consentStores.attributeDefinitions.list" call.
 12534  // Any non-2xx status code is an error. Response headers are in either
 12535  // *ListAttributeDefinitionsResponse.ServerResponse.Header or (if a response
 12536  // was returned at all) in error.(*googleapi.Error).Header. Use
 12537  // googleapi.IsNotModified to check whether the returned error was because
 12538  // http.StatusNotModified was returned.
 12539  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall) Do(opts ...googleapi.CallOption) (*ListAttributeDefinitionsResponse, error) {
 12540  	gensupport.SetOptions(c.urlParams_, opts...)
 12541  	res, err := c.doRequest("json")
 12542  	if res != nil && res.StatusCode == http.StatusNotModified {
 12543  		if res.Body != nil {
 12544  			res.Body.Close()
 12545  		}
 12546  		return nil, gensupport.WrapError(&googleapi.Error{
 12547  			Code:   res.StatusCode,
 12548  			Header: res.Header,
 12549  		})
 12550  	}
 12551  	if err != nil {
 12552  		return nil, err
 12553  	}
 12554  	defer googleapi.CloseBody(res)
 12555  	if err := googleapi.CheckResponse(res); err != nil {
 12556  		return nil, gensupport.WrapError(err)
 12557  	}
 12558  	ret := &ListAttributeDefinitionsResponse{
 12559  		ServerResponse: googleapi.ServerResponse{
 12560  			Header:         res.Header,
 12561  			HTTPStatusCode: res.StatusCode,
 12562  		},
 12563  	}
 12564  	target := &ret
 12565  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12566  		return nil, err
 12567  	}
 12568  	return ret, nil
 12569  }
 12570  
 12571  // Pages invokes f for each page of results.
 12572  // A non-nil error returned from f will halt the iteration.
 12573  // The provided context supersedes any context provided to the Context method.
 12574  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsListCall) Pages(ctx context.Context, f func(*ListAttributeDefinitionsResponse) error) error {
 12575  	c.ctx_ = ctx
 12576  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 12577  	for {
 12578  		x, err := c.Do()
 12579  		if err != nil {
 12580  			return err
 12581  		}
 12582  		if err := f(x); err != nil {
 12583  			return err
 12584  		}
 12585  		if x.NextPageToken == "" {
 12586  			return nil
 12587  		}
 12588  		c.PageToken(x.NextPageToken)
 12589  	}
 12590  }
 12591  
 12592  type ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsPatchCall struct {
 12593  	s                   *Service
 12594  	name                string
 12595  	attributedefinition *AttributeDefinition
 12596  	urlParams_          gensupport.URLParams
 12597  	ctx_                context.Context
 12598  	header_             http.Header
 12599  }
 12600  
 12601  // Patch: Updates the specified Attribute definition.
 12602  //
 12603  //   - name: Identifier. Resource name of the Attribute definition, of the form
 12604  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consen
 12605  //     tStores/{consent_store_id}/attributeDefinitions/{attribute_definition_id}`.
 12606  //     Cannot be changed after creation.
 12607  func (r *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsService) Patch(name string, attributedefinition *AttributeDefinition) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsPatchCall {
 12608  	c := &ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12609  	c.name = name
 12610  	c.attributedefinition = attributedefinition
 12611  	return c
 12612  }
 12613  
 12614  // UpdateMask sets the optional parameter "updateMask": Required. The update
 12615  // mask that applies to the resource. For the `FieldMask` definition, see
 12616  // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
 12617  // Only the `description`, `allowed_values`, `consent_default_values` and
 12618  // `data_mapping_default_value` fields can be updated. The updated
 12619  // `allowed_values` must contain all values from the previous `allowed_values`.
 12620  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsPatchCall {
 12621  	c.urlParams_.Set("updateMask", updateMask)
 12622  	return c
 12623  }
 12624  
 12625  // Fields allows partial responses to be retrieved. See
 12626  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12627  // details.
 12628  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsPatchCall {
 12629  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12630  	return c
 12631  }
 12632  
 12633  // Context sets the context to be used in this call's Do method.
 12634  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsPatchCall {
 12635  	c.ctx_ = ctx
 12636  	return c
 12637  }
 12638  
 12639  // Header returns a http.Header that can be modified by the caller to add
 12640  // headers to the request.
 12641  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsPatchCall) Header() http.Header {
 12642  	if c.header_ == nil {
 12643  		c.header_ = make(http.Header)
 12644  	}
 12645  	return c.header_
 12646  }
 12647  
 12648  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsPatchCall) doRequest(alt string) (*http.Response, error) {
 12649  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12650  	var body io.Reader = nil
 12651  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.attributedefinition)
 12652  	if err != nil {
 12653  		return nil, err
 12654  	}
 12655  	c.urlParams_.Set("alt", alt)
 12656  	c.urlParams_.Set("prettyPrint", "false")
 12657  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 12658  	urls += "?" + c.urlParams_.Encode()
 12659  	req, err := http.NewRequest("PATCH", urls, body)
 12660  	if err != nil {
 12661  		return nil, err
 12662  	}
 12663  	req.Header = reqHeaders
 12664  	googleapi.Expand(req.URL, map[string]string{
 12665  		"name": c.name,
 12666  	})
 12667  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12668  }
 12669  
 12670  // Do executes the "healthcare.projects.locations.datasets.consentStores.attributeDefinitions.patch" call.
 12671  // Any non-2xx status code is an error. Response headers are in either
 12672  // *AttributeDefinition.ServerResponse.Header or (if a response was returned at
 12673  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 12674  // check whether the returned error was because http.StatusNotModified was
 12675  // returned.
 12676  func (c *ProjectsLocationsDatasetsConsentStoresAttributeDefinitionsPatchCall) Do(opts ...googleapi.CallOption) (*AttributeDefinition, error) {
 12677  	gensupport.SetOptions(c.urlParams_, opts...)
 12678  	res, err := c.doRequest("json")
 12679  	if res != nil && res.StatusCode == http.StatusNotModified {
 12680  		if res.Body != nil {
 12681  			res.Body.Close()
 12682  		}
 12683  		return nil, gensupport.WrapError(&googleapi.Error{
 12684  			Code:   res.StatusCode,
 12685  			Header: res.Header,
 12686  		})
 12687  	}
 12688  	if err != nil {
 12689  		return nil, err
 12690  	}
 12691  	defer googleapi.CloseBody(res)
 12692  	if err := googleapi.CheckResponse(res); err != nil {
 12693  		return nil, gensupport.WrapError(err)
 12694  	}
 12695  	ret := &AttributeDefinition{
 12696  		ServerResponse: googleapi.ServerResponse{
 12697  			Header:         res.Header,
 12698  			HTTPStatusCode: res.StatusCode,
 12699  		},
 12700  	}
 12701  	target := &ret
 12702  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12703  		return nil, err
 12704  	}
 12705  	return ret, nil
 12706  }
 12707  
 12708  type ProjectsLocationsDatasetsConsentStoresConsentArtifactsCreateCall struct {
 12709  	s               *Service
 12710  	parent          string
 12711  	consentartifact *ConsentArtifact
 12712  	urlParams_      gensupport.URLParams
 12713  	ctx_            context.Context
 12714  	header_         http.Header
 12715  }
 12716  
 12717  // Create: Creates a new Consent artifact in the parent consent store.
 12718  //
 12719  // - parent: The name of the consent store this Consent artifact belongs to.
 12720  func (r *ProjectsLocationsDatasetsConsentStoresConsentArtifactsService) Create(parent string, consentartifact *ConsentArtifact) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsCreateCall {
 12721  	c := &ProjectsLocationsDatasetsConsentStoresConsentArtifactsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12722  	c.parent = parent
 12723  	c.consentartifact = consentartifact
 12724  	return c
 12725  }
 12726  
 12727  // Fields allows partial responses to be retrieved. See
 12728  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12729  // details.
 12730  func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsCreateCall {
 12731  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12732  	return c
 12733  }
 12734  
 12735  // Context sets the context to be used in this call's Do method.
 12736  func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsCreateCall {
 12737  	c.ctx_ = ctx
 12738  	return c
 12739  }
 12740  
 12741  // Header returns a http.Header that can be modified by the caller to add
 12742  // headers to the request.
 12743  func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsCreateCall) Header() http.Header {
 12744  	if c.header_ == nil {
 12745  		c.header_ = make(http.Header)
 12746  	}
 12747  	return c.header_
 12748  }
 12749  
 12750  func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsCreateCall) doRequest(alt string) (*http.Response, error) {
 12751  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12752  	var body io.Reader = nil
 12753  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.consentartifact)
 12754  	if err != nil {
 12755  		return nil, err
 12756  	}
 12757  	c.urlParams_.Set("alt", alt)
 12758  	c.urlParams_.Set("prettyPrint", "false")
 12759  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/consentArtifacts")
 12760  	urls += "?" + c.urlParams_.Encode()
 12761  	req, err := http.NewRequest("POST", urls, body)
 12762  	if err != nil {
 12763  		return nil, err
 12764  	}
 12765  	req.Header = reqHeaders
 12766  	googleapi.Expand(req.URL, map[string]string{
 12767  		"parent": c.parent,
 12768  	})
 12769  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12770  }
 12771  
 12772  // Do executes the "healthcare.projects.locations.datasets.consentStores.consentArtifacts.create" call.
 12773  // Any non-2xx status code is an error. Response headers are in either
 12774  // *ConsentArtifact.ServerResponse.Header or (if a response was returned at
 12775  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 12776  // check whether the returned error was because http.StatusNotModified was
 12777  // returned.
 12778  func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsCreateCall) Do(opts ...googleapi.CallOption) (*ConsentArtifact, error) {
 12779  	gensupport.SetOptions(c.urlParams_, opts...)
 12780  	res, err := c.doRequest("json")
 12781  	if res != nil && res.StatusCode == http.StatusNotModified {
 12782  		if res.Body != nil {
 12783  			res.Body.Close()
 12784  		}
 12785  		return nil, gensupport.WrapError(&googleapi.Error{
 12786  			Code:   res.StatusCode,
 12787  			Header: res.Header,
 12788  		})
 12789  	}
 12790  	if err != nil {
 12791  		return nil, err
 12792  	}
 12793  	defer googleapi.CloseBody(res)
 12794  	if err := googleapi.CheckResponse(res); err != nil {
 12795  		return nil, gensupport.WrapError(err)
 12796  	}
 12797  	ret := &ConsentArtifact{
 12798  		ServerResponse: googleapi.ServerResponse{
 12799  			Header:         res.Header,
 12800  			HTTPStatusCode: res.StatusCode,
 12801  		},
 12802  	}
 12803  	target := &ret
 12804  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12805  		return nil, err
 12806  	}
 12807  	return ret, nil
 12808  }
 12809  
 12810  type ProjectsLocationsDatasetsConsentStoresConsentArtifactsDeleteCall struct {
 12811  	s          *Service
 12812  	name       string
 12813  	urlParams_ gensupport.URLParams
 12814  	ctx_       context.Context
 12815  	header_    http.Header
 12816  }
 12817  
 12818  // Delete: Deletes the specified Consent artifact. Fails if the artifact is
 12819  // referenced by the latest revision of any Consent.
 12820  //
 12821  //   - name: The resource name of the Consent artifact to delete. To preserve
 12822  //     referential integrity, Consent artifacts referenced by the latest revision
 12823  //     of a Consent cannot be deleted.
 12824  func (r *ProjectsLocationsDatasetsConsentStoresConsentArtifactsService) Delete(name string) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsDeleteCall {
 12825  	c := &ProjectsLocationsDatasetsConsentStoresConsentArtifactsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12826  	c.name = name
 12827  	return c
 12828  }
 12829  
 12830  // Fields allows partial responses to be retrieved. See
 12831  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12832  // details.
 12833  func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsDeleteCall {
 12834  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12835  	return c
 12836  }
 12837  
 12838  // Context sets the context to be used in this call's Do method.
 12839  func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsDeleteCall {
 12840  	c.ctx_ = ctx
 12841  	return c
 12842  }
 12843  
 12844  // Header returns a http.Header that can be modified by the caller to add
 12845  // headers to the request.
 12846  func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsDeleteCall) Header() http.Header {
 12847  	if c.header_ == nil {
 12848  		c.header_ = make(http.Header)
 12849  	}
 12850  	return c.header_
 12851  }
 12852  
 12853  func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsDeleteCall) doRequest(alt string) (*http.Response, error) {
 12854  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12855  	var body io.Reader = nil
 12856  	c.urlParams_.Set("alt", alt)
 12857  	c.urlParams_.Set("prettyPrint", "false")
 12858  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 12859  	urls += "?" + c.urlParams_.Encode()
 12860  	req, err := http.NewRequest("DELETE", urls, body)
 12861  	if err != nil {
 12862  		return nil, err
 12863  	}
 12864  	req.Header = reqHeaders
 12865  	googleapi.Expand(req.URL, map[string]string{
 12866  		"name": c.name,
 12867  	})
 12868  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12869  }
 12870  
 12871  // Do executes the "healthcare.projects.locations.datasets.consentStores.consentArtifacts.delete" call.
 12872  // Any non-2xx status code is an error. Response headers are in either
 12873  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 12874  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 12875  // whether the returned error was because http.StatusNotModified was returned.
 12876  func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 12877  	gensupport.SetOptions(c.urlParams_, opts...)
 12878  	res, err := c.doRequest("json")
 12879  	if res != nil && res.StatusCode == http.StatusNotModified {
 12880  		if res.Body != nil {
 12881  			res.Body.Close()
 12882  		}
 12883  		return nil, gensupport.WrapError(&googleapi.Error{
 12884  			Code:   res.StatusCode,
 12885  			Header: res.Header,
 12886  		})
 12887  	}
 12888  	if err != nil {
 12889  		return nil, err
 12890  	}
 12891  	defer googleapi.CloseBody(res)
 12892  	if err := googleapi.CheckResponse(res); err != nil {
 12893  		return nil, gensupport.WrapError(err)
 12894  	}
 12895  	ret := &Empty{
 12896  		ServerResponse: googleapi.ServerResponse{
 12897  			Header:         res.Header,
 12898  			HTTPStatusCode: res.StatusCode,
 12899  		},
 12900  	}
 12901  	target := &ret
 12902  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12903  		return nil, err
 12904  	}
 12905  	return ret, nil
 12906  }
 12907  
 12908  type ProjectsLocationsDatasetsConsentStoresConsentArtifactsGetCall struct {
 12909  	s            *Service
 12910  	name         string
 12911  	urlParams_   gensupport.URLParams
 12912  	ifNoneMatch_ string
 12913  	ctx_         context.Context
 12914  	header_      http.Header
 12915  }
 12916  
 12917  // Get: Gets the specified Consent artifact.
 12918  //
 12919  // - name: The resource name of the Consent artifact to retrieve.
 12920  func (r *ProjectsLocationsDatasetsConsentStoresConsentArtifactsService) Get(name string) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsGetCall {
 12921  	c := &ProjectsLocationsDatasetsConsentStoresConsentArtifactsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12922  	c.name = name
 12923  	return c
 12924  }
 12925  
 12926  // Fields allows partial responses to be retrieved. See
 12927  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12928  // details.
 12929  func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsGetCall {
 12930  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12931  	return c
 12932  }
 12933  
 12934  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12935  // object's ETag matches the given value. This is useful for getting updates
 12936  // only after the object has changed since the last request.
 12937  func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsGetCall {
 12938  	c.ifNoneMatch_ = entityTag
 12939  	return c
 12940  }
 12941  
 12942  // Context sets the context to be used in this call's Do method.
 12943  func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsGetCall {
 12944  	c.ctx_ = ctx
 12945  	return c
 12946  }
 12947  
 12948  // Header returns a http.Header that can be modified by the caller to add
 12949  // headers to the request.
 12950  func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsGetCall) Header() http.Header {
 12951  	if c.header_ == nil {
 12952  		c.header_ = make(http.Header)
 12953  	}
 12954  	return c.header_
 12955  }
 12956  
 12957  func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsGetCall) doRequest(alt string) (*http.Response, error) {
 12958  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12959  	if c.ifNoneMatch_ != "" {
 12960  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12961  	}
 12962  	var body io.Reader = nil
 12963  	c.urlParams_.Set("alt", alt)
 12964  	c.urlParams_.Set("prettyPrint", "false")
 12965  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 12966  	urls += "?" + c.urlParams_.Encode()
 12967  	req, err := http.NewRequest("GET", urls, body)
 12968  	if err != nil {
 12969  		return nil, err
 12970  	}
 12971  	req.Header = reqHeaders
 12972  	googleapi.Expand(req.URL, map[string]string{
 12973  		"name": c.name,
 12974  	})
 12975  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12976  }
 12977  
 12978  // Do executes the "healthcare.projects.locations.datasets.consentStores.consentArtifacts.get" call.
 12979  // Any non-2xx status code is an error. Response headers are in either
 12980  // *ConsentArtifact.ServerResponse.Header or (if a response was returned at
 12981  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 12982  // check whether the returned error was because http.StatusNotModified was
 12983  // returned.
 12984  func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsGetCall) Do(opts ...googleapi.CallOption) (*ConsentArtifact, error) {
 12985  	gensupport.SetOptions(c.urlParams_, opts...)
 12986  	res, err := c.doRequest("json")
 12987  	if res != nil && res.StatusCode == http.StatusNotModified {
 12988  		if res.Body != nil {
 12989  			res.Body.Close()
 12990  		}
 12991  		return nil, gensupport.WrapError(&googleapi.Error{
 12992  			Code:   res.StatusCode,
 12993  			Header: res.Header,
 12994  		})
 12995  	}
 12996  	if err != nil {
 12997  		return nil, err
 12998  	}
 12999  	defer googleapi.CloseBody(res)
 13000  	if err := googleapi.CheckResponse(res); err != nil {
 13001  		return nil, gensupport.WrapError(err)
 13002  	}
 13003  	ret := &ConsentArtifact{
 13004  		ServerResponse: googleapi.ServerResponse{
 13005  			Header:         res.Header,
 13006  			HTTPStatusCode: res.StatusCode,
 13007  		},
 13008  	}
 13009  	target := &ret
 13010  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13011  		return nil, err
 13012  	}
 13013  	return ret, nil
 13014  }
 13015  
 13016  type ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall struct {
 13017  	s            *Service
 13018  	parent       string
 13019  	urlParams_   gensupport.URLParams
 13020  	ifNoneMatch_ string
 13021  	ctx_         context.Context
 13022  	header_      http.Header
 13023  }
 13024  
 13025  // List: Lists the Consent artifacts in the specified consent store.
 13026  //
 13027  // - parent: Name of the consent store to retrieve consent artifacts from.
 13028  func (r *ProjectsLocationsDatasetsConsentStoresConsentArtifactsService) List(parent string) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall {
 13029  	c := &ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13030  	c.parent = parent
 13031  	return c
 13032  }
 13033  
 13034  // Filter sets the optional parameter "filter": Restricts the artifacts
 13035  // returned to those matching a filter. The following syntax is available: * A
 13036  // string field value can be written as text inside quotation marks, for
 13037  // example "query text". The only valid relational operation for text fields
 13038  // is equality (`=`), where text is searched within the field, rather than
 13039  // having the field be equal to the text. For example, "Comment = great"
 13040  // returns messages with `great` in the comment field. * A number field value
 13041  // can be written as an integer, a decimal, or an exponential. The valid
 13042  // relational operators for number fields are the equality operator (`=`),
 13043  // along with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note
 13044  // that there is no inequality (`!=`) operator. You can prepend the `NOT`
 13045  // operator to an expression to negate it. * A date field value must be written
 13046  // in `yyyy-mm-dd` form. Fields with date and time use the RFC3339 time format.
 13047  // Leading zeros are required for one-digit months and days. The valid
 13048  // relational operators for date fields are the equality operator (`=`) , along
 13049  // with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note that
 13050  // there is no inequality (`!=`) operator. You can prepend the `NOT` operator
 13051  // to an expression to negate it. * Multiple field query expressions can be
 13052  // combined in one query by adding `AND` or `OR` operators between the
 13053  // expressions. If a boolean operator appears within a quoted string, it is not
 13054  // treated as special, it's just another part of the character string to be
 13055  // matched. You can prepend the `NOT` operator to an expression to negate it.
 13056  // The fields available for filtering are: - user_id. For example,
 13057  // `filter=user_id=\"user123\". - consent_content_version - metadata. For
 13058  // example, `filter=Metadata(\"testkey\")=\"value\" or
 13059  // `filter=HasMetadata(\"testkey\")`.
 13060  func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall) Filter(filter string) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall {
 13061  	c.urlParams_.Set("filter", filter)
 13062  	return c
 13063  }
 13064  
 13065  // PageSize sets the optional parameter "pageSize": Limit on the number of
 13066  // consent artifacts to return in a single response. If not specified, 100 is
 13067  // used. May not be larger than 1000.
 13068  func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall {
 13069  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 13070  	return c
 13071  }
 13072  
 13073  // PageToken sets the optional parameter "pageToken": The next_page_token value
 13074  // returned from the previous List request, if any.
 13075  func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall {
 13076  	c.urlParams_.Set("pageToken", pageToken)
 13077  	return c
 13078  }
 13079  
 13080  // Fields allows partial responses to be retrieved. See
 13081  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13082  // details.
 13083  func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall {
 13084  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13085  	return c
 13086  }
 13087  
 13088  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13089  // object's ETag matches the given value. This is useful for getting updates
 13090  // only after the object has changed since the last request.
 13091  func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall {
 13092  	c.ifNoneMatch_ = entityTag
 13093  	return c
 13094  }
 13095  
 13096  // Context sets the context to be used in this call's Do method.
 13097  func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall {
 13098  	c.ctx_ = ctx
 13099  	return c
 13100  }
 13101  
 13102  // Header returns a http.Header that can be modified by the caller to add
 13103  // headers to the request.
 13104  func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall) Header() http.Header {
 13105  	if c.header_ == nil {
 13106  		c.header_ = make(http.Header)
 13107  	}
 13108  	return c.header_
 13109  }
 13110  
 13111  func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall) doRequest(alt string) (*http.Response, error) {
 13112  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13113  	if c.ifNoneMatch_ != "" {
 13114  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13115  	}
 13116  	var body io.Reader = nil
 13117  	c.urlParams_.Set("alt", alt)
 13118  	c.urlParams_.Set("prettyPrint", "false")
 13119  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/consentArtifacts")
 13120  	urls += "?" + c.urlParams_.Encode()
 13121  	req, err := http.NewRequest("GET", urls, body)
 13122  	if err != nil {
 13123  		return nil, err
 13124  	}
 13125  	req.Header = reqHeaders
 13126  	googleapi.Expand(req.URL, map[string]string{
 13127  		"parent": c.parent,
 13128  	})
 13129  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13130  }
 13131  
 13132  // Do executes the "healthcare.projects.locations.datasets.consentStores.consentArtifacts.list" call.
 13133  // Any non-2xx status code is an error. Response headers are in either
 13134  // *ListConsentArtifactsResponse.ServerResponse.Header or (if a response was
 13135  // returned at all) in error.(*googleapi.Error).Header. Use
 13136  // googleapi.IsNotModified to check whether the returned error was because
 13137  // http.StatusNotModified was returned.
 13138  func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall) Do(opts ...googleapi.CallOption) (*ListConsentArtifactsResponse, error) {
 13139  	gensupport.SetOptions(c.urlParams_, opts...)
 13140  	res, err := c.doRequest("json")
 13141  	if res != nil && res.StatusCode == http.StatusNotModified {
 13142  		if res.Body != nil {
 13143  			res.Body.Close()
 13144  		}
 13145  		return nil, gensupport.WrapError(&googleapi.Error{
 13146  			Code:   res.StatusCode,
 13147  			Header: res.Header,
 13148  		})
 13149  	}
 13150  	if err != nil {
 13151  		return nil, err
 13152  	}
 13153  	defer googleapi.CloseBody(res)
 13154  	if err := googleapi.CheckResponse(res); err != nil {
 13155  		return nil, gensupport.WrapError(err)
 13156  	}
 13157  	ret := &ListConsentArtifactsResponse{
 13158  		ServerResponse: googleapi.ServerResponse{
 13159  			Header:         res.Header,
 13160  			HTTPStatusCode: res.StatusCode,
 13161  		},
 13162  	}
 13163  	target := &ret
 13164  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13165  		return nil, err
 13166  	}
 13167  	return ret, nil
 13168  }
 13169  
 13170  // Pages invokes f for each page of results.
 13171  // A non-nil error returned from f will halt the iteration.
 13172  // The provided context supersedes any context provided to the Context method.
 13173  func (c *ProjectsLocationsDatasetsConsentStoresConsentArtifactsListCall) Pages(ctx context.Context, f func(*ListConsentArtifactsResponse) error) error {
 13174  	c.ctx_ = ctx
 13175  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 13176  	for {
 13177  		x, err := c.Do()
 13178  		if err != nil {
 13179  			return err
 13180  		}
 13181  		if err := f(x); err != nil {
 13182  			return err
 13183  		}
 13184  		if x.NextPageToken == "" {
 13185  			return nil
 13186  		}
 13187  		c.PageToken(x.NextPageToken)
 13188  	}
 13189  }
 13190  
 13191  type ProjectsLocationsDatasetsConsentStoresConsentsActivateCall struct {
 13192  	s                      *Service
 13193  	name                   string
 13194  	activateconsentrequest *ActivateConsentRequest
 13195  	urlParams_             gensupport.URLParams
 13196  	ctx_                   context.Context
 13197  	header_                http.Header
 13198  }
 13199  
 13200  // Activate: Activates the latest revision of the specified Consent by
 13201  // committing a new revision with `state` updated to `ACTIVE`. If the latest
 13202  // revision of the specified Consent is in the `ACTIVE` state, no new revision
 13203  // is committed. A FAILED_PRECONDITION error occurs if the latest revision of
 13204  // the specified consent is in the `REJECTED` or `REVOKED` state.
 13205  //
 13206  //   - name: The resource name of the Consent to activate, of the form
 13207  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consen
 13208  //     tStores/{consent_store_id}/consents/{consent_id}`. An INVALID_ARGUMENT
 13209  //     error occurs if `revision_id` is specified in the name.
 13210  func (r *ProjectsLocationsDatasetsConsentStoresConsentsService) Activate(name string, activateconsentrequest *ActivateConsentRequest) *ProjectsLocationsDatasetsConsentStoresConsentsActivateCall {
 13211  	c := &ProjectsLocationsDatasetsConsentStoresConsentsActivateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13212  	c.name = name
 13213  	c.activateconsentrequest = activateconsentrequest
 13214  	return c
 13215  }
 13216  
 13217  // Fields allows partial responses to be retrieved. See
 13218  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13219  // details.
 13220  func (c *ProjectsLocationsDatasetsConsentStoresConsentsActivateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresConsentsActivateCall {
 13221  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13222  	return c
 13223  }
 13224  
 13225  // Context sets the context to be used in this call's Do method.
 13226  func (c *ProjectsLocationsDatasetsConsentStoresConsentsActivateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresConsentsActivateCall {
 13227  	c.ctx_ = ctx
 13228  	return c
 13229  }
 13230  
 13231  // Header returns a http.Header that can be modified by the caller to add
 13232  // headers to the request.
 13233  func (c *ProjectsLocationsDatasetsConsentStoresConsentsActivateCall) Header() http.Header {
 13234  	if c.header_ == nil {
 13235  		c.header_ = make(http.Header)
 13236  	}
 13237  	return c.header_
 13238  }
 13239  
 13240  func (c *ProjectsLocationsDatasetsConsentStoresConsentsActivateCall) doRequest(alt string) (*http.Response, error) {
 13241  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13242  	var body io.Reader = nil
 13243  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.activateconsentrequest)
 13244  	if err != nil {
 13245  		return nil, err
 13246  	}
 13247  	c.urlParams_.Set("alt", alt)
 13248  	c.urlParams_.Set("prettyPrint", "false")
 13249  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:activate")
 13250  	urls += "?" + c.urlParams_.Encode()
 13251  	req, err := http.NewRequest("POST", urls, body)
 13252  	if err != nil {
 13253  		return nil, err
 13254  	}
 13255  	req.Header = reqHeaders
 13256  	googleapi.Expand(req.URL, map[string]string{
 13257  		"name": c.name,
 13258  	})
 13259  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13260  }
 13261  
 13262  // Do executes the "healthcare.projects.locations.datasets.consentStores.consents.activate" call.
 13263  // Any non-2xx status code is an error. Response headers are in either
 13264  // *Consent.ServerResponse.Header or (if a response was returned at all) in
 13265  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 13266  // whether the returned error was because http.StatusNotModified was returned.
 13267  func (c *ProjectsLocationsDatasetsConsentStoresConsentsActivateCall) Do(opts ...googleapi.CallOption) (*Consent, error) {
 13268  	gensupport.SetOptions(c.urlParams_, opts...)
 13269  	res, err := c.doRequest("json")
 13270  	if res != nil && res.StatusCode == http.StatusNotModified {
 13271  		if res.Body != nil {
 13272  			res.Body.Close()
 13273  		}
 13274  		return nil, gensupport.WrapError(&googleapi.Error{
 13275  			Code:   res.StatusCode,
 13276  			Header: res.Header,
 13277  		})
 13278  	}
 13279  	if err != nil {
 13280  		return nil, err
 13281  	}
 13282  	defer googleapi.CloseBody(res)
 13283  	if err := googleapi.CheckResponse(res); err != nil {
 13284  		return nil, gensupport.WrapError(err)
 13285  	}
 13286  	ret := &Consent{
 13287  		ServerResponse: googleapi.ServerResponse{
 13288  			Header:         res.Header,
 13289  			HTTPStatusCode: res.StatusCode,
 13290  		},
 13291  	}
 13292  	target := &ret
 13293  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13294  		return nil, err
 13295  	}
 13296  	return ret, nil
 13297  }
 13298  
 13299  type ProjectsLocationsDatasetsConsentStoresConsentsCreateCall struct {
 13300  	s          *Service
 13301  	parent     string
 13302  	consent    *Consent
 13303  	urlParams_ gensupport.URLParams
 13304  	ctx_       context.Context
 13305  	header_    http.Header
 13306  }
 13307  
 13308  // Create: Creates a new Consent in the parent consent store.
 13309  //
 13310  // - parent: Name of the consent store.
 13311  func (r *ProjectsLocationsDatasetsConsentStoresConsentsService) Create(parent string, consent *Consent) *ProjectsLocationsDatasetsConsentStoresConsentsCreateCall {
 13312  	c := &ProjectsLocationsDatasetsConsentStoresConsentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13313  	c.parent = parent
 13314  	c.consent = consent
 13315  	return c
 13316  }
 13317  
 13318  // Fields allows partial responses to be retrieved. See
 13319  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13320  // details.
 13321  func (c *ProjectsLocationsDatasetsConsentStoresConsentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresConsentsCreateCall {
 13322  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13323  	return c
 13324  }
 13325  
 13326  // Context sets the context to be used in this call's Do method.
 13327  func (c *ProjectsLocationsDatasetsConsentStoresConsentsCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresConsentsCreateCall {
 13328  	c.ctx_ = ctx
 13329  	return c
 13330  }
 13331  
 13332  // Header returns a http.Header that can be modified by the caller to add
 13333  // headers to the request.
 13334  func (c *ProjectsLocationsDatasetsConsentStoresConsentsCreateCall) Header() http.Header {
 13335  	if c.header_ == nil {
 13336  		c.header_ = make(http.Header)
 13337  	}
 13338  	return c.header_
 13339  }
 13340  
 13341  func (c *ProjectsLocationsDatasetsConsentStoresConsentsCreateCall) doRequest(alt string) (*http.Response, error) {
 13342  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13343  	var body io.Reader = nil
 13344  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.consent)
 13345  	if err != nil {
 13346  		return nil, err
 13347  	}
 13348  	c.urlParams_.Set("alt", alt)
 13349  	c.urlParams_.Set("prettyPrint", "false")
 13350  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/consents")
 13351  	urls += "?" + c.urlParams_.Encode()
 13352  	req, err := http.NewRequest("POST", urls, body)
 13353  	if err != nil {
 13354  		return nil, err
 13355  	}
 13356  	req.Header = reqHeaders
 13357  	googleapi.Expand(req.URL, map[string]string{
 13358  		"parent": c.parent,
 13359  	})
 13360  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13361  }
 13362  
 13363  // Do executes the "healthcare.projects.locations.datasets.consentStores.consents.create" call.
 13364  // Any non-2xx status code is an error. Response headers are in either
 13365  // *Consent.ServerResponse.Header or (if a response was returned at all) in
 13366  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 13367  // whether the returned error was because http.StatusNotModified was returned.
 13368  func (c *ProjectsLocationsDatasetsConsentStoresConsentsCreateCall) Do(opts ...googleapi.CallOption) (*Consent, error) {
 13369  	gensupport.SetOptions(c.urlParams_, opts...)
 13370  	res, err := c.doRequest("json")
 13371  	if res != nil && res.StatusCode == http.StatusNotModified {
 13372  		if res.Body != nil {
 13373  			res.Body.Close()
 13374  		}
 13375  		return nil, gensupport.WrapError(&googleapi.Error{
 13376  			Code:   res.StatusCode,
 13377  			Header: res.Header,
 13378  		})
 13379  	}
 13380  	if err != nil {
 13381  		return nil, err
 13382  	}
 13383  	defer googleapi.CloseBody(res)
 13384  	if err := googleapi.CheckResponse(res); err != nil {
 13385  		return nil, gensupport.WrapError(err)
 13386  	}
 13387  	ret := &Consent{
 13388  		ServerResponse: googleapi.ServerResponse{
 13389  			Header:         res.Header,
 13390  			HTTPStatusCode: res.StatusCode,
 13391  		},
 13392  	}
 13393  	target := &ret
 13394  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13395  		return nil, err
 13396  	}
 13397  	return ret, nil
 13398  }
 13399  
 13400  type ProjectsLocationsDatasetsConsentStoresConsentsDeleteCall struct {
 13401  	s          *Service
 13402  	name       string
 13403  	urlParams_ gensupport.URLParams
 13404  	ctx_       context.Context
 13405  	header_    http.Header
 13406  }
 13407  
 13408  // Delete: Deletes the Consent and its revisions. To keep a record of the
 13409  // Consent but mark it inactive, see [RevokeConsent]. To delete a revision of a
 13410  // Consent, see [DeleteConsentRevision]. This operation does not delete the
 13411  // related Consent artifact.
 13412  //
 13413  //   - name: The resource name of the Consent to delete, of the form
 13414  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consen
 13415  //     tStores/{consent_store_id}/consents/{consent_id}`. An INVALID_ARGUMENT
 13416  //     error occurs if `revision_id` is specified in the name.
 13417  func (r *ProjectsLocationsDatasetsConsentStoresConsentsService) Delete(name string) *ProjectsLocationsDatasetsConsentStoresConsentsDeleteCall {
 13418  	c := &ProjectsLocationsDatasetsConsentStoresConsentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13419  	c.name = name
 13420  	return c
 13421  }
 13422  
 13423  // Fields allows partial responses to be retrieved. See
 13424  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13425  // details.
 13426  func (c *ProjectsLocationsDatasetsConsentStoresConsentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresConsentsDeleteCall {
 13427  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13428  	return c
 13429  }
 13430  
 13431  // Context sets the context to be used in this call's Do method.
 13432  func (c *ProjectsLocationsDatasetsConsentStoresConsentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresConsentsDeleteCall {
 13433  	c.ctx_ = ctx
 13434  	return c
 13435  }
 13436  
 13437  // Header returns a http.Header that can be modified by the caller to add
 13438  // headers to the request.
 13439  func (c *ProjectsLocationsDatasetsConsentStoresConsentsDeleteCall) Header() http.Header {
 13440  	if c.header_ == nil {
 13441  		c.header_ = make(http.Header)
 13442  	}
 13443  	return c.header_
 13444  }
 13445  
 13446  func (c *ProjectsLocationsDatasetsConsentStoresConsentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 13447  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13448  	var body io.Reader = nil
 13449  	c.urlParams_.Set("alt", alt)
 13450  	c.urlParams_.Set("prettyPrint", "false")
 13451  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 13452  	urls += "?" + c.urlParams_.Encode()
 13453  	req, err := http.NewRequest("DELETE", urls, body)
 13454  	if err != nil {
 13455  		return nil, err
 13456  	}
 13457  	req.Header = reqHeaders
 13458  	googleapi.Expand(req.URL, map[string]string{
 13459  		"name": c.name,
 13460  	})
 13461  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13462  }
 13463  
 13464  // Do executes the "healthcare.projects.locations.datasets.consentStores.consents.delete" call.
 13465  // Any non-2xx status code is an error. Response headers are in either
 13466  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 13467  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 13468  // whether the returned error was because http.StatusNotModified was returned.
 13469  func (c *ProjectsLocationsDatasetsConsentStoresConsentsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 13470  	gensupport.SetOptions(c.urlParams_, opts...)
 13471  	res, err := c.doRequest("json")
 13472  	if res != nil && res.StatusCode == http.StatusNotModified {
 13473  		if res.Body != nil {
 13474  			res.Body.Close()
 13475  		}
 13476  		return nil, gensupport.WrapError(&googleapi.Error{
 13477  			Code:   res.StatusCode,
 13478  			Header: res.Header,
 13479  		})
 13480  	}
 13481  	if err != nil {
 13482  		return nil, err
 13483  	}
 13484  	defer googleapi.CloseBody(res)
 13485  	if err := googleapi.CheckResponse(res); err != nil {
 13486  		return nil, gensupport.WrapError(err)
 13487  	}
 13488  	ret := &Empty{
 13489  		ServerResponse: googleapi.ServerResponse{
 13490  			Header:         res.Header,
 13491  			HTTPStatusCode: res.StatusCode,
 13492  		},
 13493  	}
 13494  	target := &ret
 13495  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13496  		return nil, err
 13497  	}
 13498  	return ret, nil
 13499  }
 13500  
 13501  type ProjectsLocationsDatasetsConsentStoresConsentsDeleteRevisionCall struct {
 13502  	s          *Service
 13503  	name       string
 13504  	urlParams_ gensupport.URLParams
 13505  	ctx_       context.Context
 13506  	header_    http.Header
 13507  }
 13508  
 13509  // DeleteRevision: Deletes the specified revision of a Consent. An
 13510  // INVALID_ARGUMENT error occurs if the specified revision is the latest
 13511  // revision.
 13512  //
 13513  //   - name: The resource name of the Consent revision to delete, of the form
 13514  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consen
 13515  //     tStores/{consent_store_id}/consents/{consent_id}@{revision_id}`. An
 13516  //     INVALID_ARGUMENT error occurs if `revision_id` is not specified in the
 13517  //     name.
 13518  func (r *ProjectsLocationsDatasetsConsentStoresConsentsService) DeleteRevision(name string) *ProjectsLocationsDatasetsConsentStoresConsentsDeleteRevisionCall {
 13519  	c := &ProjectsLocationsDatasetsConsentStoresConsentsDeleteRevisionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13520  	c.name = name
 13521  	return c
 13522  }
 13523  
 13524  // Fields allows partial responses to be retrieved. See
 13525  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13526  // details.
 13527  func (c *ProjectsLocationsDatasetsConsentStoresConsentsDeleteRevisionCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresConsentsDeleteRevisionCall {
 13528  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13529  	return c
 13530  }
 13531  
 13532  // Context sets the context to be used in this call's Do method.
 13533  func (c *ProjectsLocationsDatasetsConsentStoresConsentsDeleteRevisionCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresConsentsDeleteRevisionCall {
 13534  	c.ctx_ = ctx
 13535  	return c
 13536  }
 13537  
 13538  // Header returns a http.Header that can be modified by the caller to add
 13539  // headers to the request.
 13540  func (c *ProjectsLocationsDatasetsConsentStoresConsentsDeleteRevisionCall) Header() http.Header {
 13541  	if c.header_ == nil {
 13542  		c.header_ = make(http.Header)
 13543  	}
 13544  	return c.header_
 13545  }
 13546  
 13547  func (c *ProjectsLocationsDatasetsConsentStoresConsentsDeleteRevisionCall) doRequest(alt string) (*http.Response, error) {
 13548  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13549  	var body io.Reader = nil
 13550  	c.urlParams_.Set("alt", alt)
 13551  	c.urlParams_.Set("prettyPrint", "false")
 13552  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:deleteRevision")
 13553  	urls += "?" + c.urlParams_.Encode()
 13554  	req, err := http.NewRequest("DELETE", urls, body)
 13555  	if err != nil {
 13556  		return nil, err
 13557  	}
 13558  	req.Header = reqHeaders
 13559  	googleapi.Expand(req.URL, map[string]string{
 13560  		"name": c.name,
 13561  	})
 13562  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13563  }
 13564  
 13565  // Do executes the "healthcare.projects.locations.datasets.consentStores.consents.deleteRevision" call.
 13566  // Any non-2xx status code is an error. Response headers are in either
 13567  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 13568  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 13569  // whether the returned error was because http.StatusNotModified was returned.
 13570  func (c *ProjectsLocationsDatasetsConsentStoresConsentsDeleteRevisionCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 13571  	gensupport.SetOptions(c.urlParams_, opts...)
 13572  	res, err := c.doRequest("json")
 13573  	if res != nil && res.StatusCode == http.StatusNotModified {
 13574  		if res.Body != nil {
 13575  			res.Body.Close()
 13576  		}
 13577  		return nil, gensupport.WrapError(&googleapi.Error{
 13578  			Code:   res.StatusCode,
 13579  			Header: res.Header,
 13580  		})
 13581  	}
 13582  	if err != nil {
 13583  		return nil, err
 13584  	}
 13585  	defer googleapi.CloseBody(res)
 13586  	if err := googleapi.CheckResponse(res); err != nil {
 13587  		return nil, gensupport.WrapError(err)
 13588  	}
 13589  	ret := &Empty{
 13590  		ServerResponse: googleapi.ServerResponse{
 13591  			Header:         res.Header,
 13592  			HTTPStatusCode: res.StatusCode,
 13593  		},
 13594  	}
 13595  	target := &ret
 13596  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13597  		return nil, err
 13598  	}
 13599  	return ret, nil
 13600  }
 13601  
 13602  type ProjectsLocationsDatasetsConsentStoresConsentsGetCall struct {
 13603  	s            *Service
 13604  	name         string
 13605  	urlParams_   gensupport.URLParams
 13606  	ifNoneMatch_ string
 13607  	ctx_         context.Context
 13608  	header_      http.Header
 13609  }
 13610  
 13611  // Get: Gets the specified revision of a Consent, or the latest revision if
 13612  // `revision_id` is not specified in the resource name.
 13613  //
 13614  //   - name: The resource name of the Consent to retrieve, of the form
 13615  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consen
 13616  //     tStores/{consent_store_id}/consents/{consent_id}`. In order to retrieve a
 13617  //     previous revision of the Consent, also provide the revision ID:
 13618  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consen
 13619  //     tStores/{consent_store_id}/consents/{consent_id}@{revision_id}`.
 13620  func (r *ProjectsLocationsDatasetsConsentStoresConsentsService) Get(name string) *ProjectsLocationsDatasetsConsentStoresConsentsGetCall {
 13621  	c := &ProjectsLocationsDatasetsConsentStoresConsentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13622  	c.name = name
 13623  	return c
 13624  }
 13625  
 13626  // Fields allows partial responses to be retrieved. See
 13627  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13628  // details.
 13629  func (c *ProjectsLocationsDatasetsConsentStoresConsentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresConsentsGetCall {
 13630  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13631  	return c
 13632  }
 13633  
 13634  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13635  // object's ETag matches the given value. This is useful for getting updates
 13636  // only after the object has changed since the last request.
 13637  func (c *ProjectsLocationsDatasetsConsentStoresConsentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsConsentStoresConsentsGetCall {
 13638  	c.ifNoneMatch_ = entityTag
 13639  	return c
 13640  }
 13641  
 13642  // Context sets the context to be used in this call's Do method.
 13643  func (c *ProjectsLocationsDatasetsConsentStoresConsentsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresConsentsGetCall {
 13644  	c.ctx_ = ctx
 13645  	return c
 13646  }
 13647  
 13648  // Header returns a http.Header that can be modified by the caller to add
 13649  // headers to the request.
 13650  func (c *ProjectsLocationsDatasetsConsentStoresConsentsGetCall) Header() http.Header {
 13651  	if c.header_ == nil {
 13652  		c.header_ = make(http.Header)
 13653  	}
 13654  	return c.header_
 13655  }
 13656  
 13657  func (c *ProjectsLocationsDatasetsConsentStoresConsentsGetCall) doRequest(alt string) (*http.Response, error) {
 13658  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13659  	if c.ifNoneMatch_ != "" {
 13660  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13661  	}
 13662  	var body io.Reader = nil
 13663  	c.urlParams_.Set("alt", alt)
 13664  	c.urlParams_.Set("prettyPrint", "false")
 13665  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 13666  	urls += "?" + c.urlParams_.Encode()
 13667  	req, err := http.NewRequest("GET", urls, body)
 13668  	if err != nil {
 13669  		return nil, err
 13670  	}
 13671  	req.Header = reqHeaders
 13672  	googleapi.Expand(req.URL, map[string]string{
 13673  		"name": c.name,
 13674  	})
 13675  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13676  }
 13677  
 13678  // Do executes the "healthcare.projects.locations.datasets.consentStores.consents.get" call.
 13679  // Any non-2xx status code is an error. Response headers are in either
 13680  // *Consent.ServerResponse.Header or (if a response was returned at all) in
 13681  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 13682  // whether the returned error was because http.StatusNotModified was returned.
 13683  func (c *ProjectsLocationsDatasetsConsentStoresConsentsGetCall) Do(opts ...googleapi.CallOption) (*Consent, error) {
 13684  	gensupport.SetOptions(c.urlParams_, opts...)
 13685  	res, err := c.doRequest("json")
 13686  	if res != nil && res.StatusCode == http.StatusNotModified {
 13687  		if res.Body != nil {
 13688  			res.Body.Close()
 13689  		}
 13690  		return nil, gensupport.WrapError(&googleapi.Error{
 13691  			Code:   res.StatusCode,
 13692  			Header: res.Header,
 13693  		})
 13694  	}
 13695  	if err != nil {
 13696  		return nil, err
 13697  	}
 13698  	defer googleapi.CloseBody(res)
 13699  	if err := googleapi.CheckResponse(res); err != nil {
 13700  		return nil, gensupport.WrapError(err)
 13701  	}
 13702  	ret := &Consent{
 13703  		ServerResponse: googleapi.ServerResponse{
 13704  			Header:         res.Header,
 13705  			HTTPStatusCode: res.StatusCode,
 13706  		},
 13707  	}
 13708  	target := &ret
 13709  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13710  		return nil, err
 13711  	}
 13712  	return ret, nil
 13713  }
 13714  
 13715  type ProjectsLocationsDatasetsConsentStoresConsentsListCall struct {
 13716  	s            *Service
 13717  	parent       string
 13718  	urlParams_   gensupport.URLParams
 13719  	ifNoneMatch_ string
 13720  	ctx_         context.Context
 13721  	header_      http.Header
 13722  }
 13723  
 13724  // List: Lists the Consent in the given consent store, returning each Consent's
 13725  // latest revision.
 13726  //
 13727  // - parent: Name of the consent store to retrieve Consents from.
 13728  func (r *ProjectsLocationsDatasetsConsentStoresConsentsService) List(parent string) *ProjectsLocationsDatasetsConsentStoresConsentsListCall {
 13729  	c := &ProjectsLocationsDatasetsConsentStoresConsentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13730  	c.parent = parent
 13731  	return c
 13732  }
 13733  
 13734  // Filter sets the optional parameter "filter": Restricts the consents returned
 13735  // to those matching a filter. The following syntax is available: * A string
 13736  // field value can be written as text inside quotation marks, for example
 13737  // "query text". The only valid relational operation for text fields is
 13738  // equality (`=`), where text is searched within the field, rather than having
 13739  // the field be equal to the text. For example, "Comment = great" returns
 13740  // messages with `great` in the comment field. * A number field value can be
 13741  // written as an integer, a decimal, or an exponential. The valid relational
 13742  // operators for number fields are the equality operator (`=`), along with the
 13743  // less than/greater than operators (`<`, `<=`, `>`, `>=`). Note that there is
 13744  // no inequality (`!=`) operator. You can prepend the `NOT` operator to an
 13745  // expression to negate it. * A date field value must be written in
 13746  // `yyyy-mm-dd` form. Fields with date and time use the RFC3339 time format.
 13747  // Leading zeros are required for one-digit months and days. The valid
 13748  // relational operators for date fields are the equality operator (`=`) , along
 13749  // with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note that
 13750  // there is no inequality (`!=`) operator. You can prepend the `NOT` operator
 13751  // to an expression to negate it. * Multiple field query expressions can be
 13752  // combined in one query by adding `AND` or `OR` operators between the
 13753  // expressions. If a boolean operator appears within a quoted string, it is not
 13754  // treated as special, it's just another part of the character string to be
 13755  // matched. You can prepend the `NOT` operator to an expression to negate it.
 13756  // The fields available for filtering are: - user_id. For example,
 13757  // `filter='user_id="user123"'`. - consent_artifact - state -
 13758  // revision_create_time - metadata. For example,
 13759  // `filter=Metadata(\"testkey\")=\"value\" or
 13760  // `filter=HasMetadata(\"testkey\")`.
 13761  func (c *ProjectsLocationsDatasetsConsentStoresConsentsListCall) Filter(filter string) *ProjectsLocationsDatasetsConsentStoresConsentsListCall {
 13762  	c.urlParams_.Set("filter", filter)
 13763  	return c
 13764  }
 13765  
 13766  // PageSize sets the optional parameter "pageSize": Limit on the number of
 13767  // Consents to return in a single response. If not specified, 100 is used. May
 13768  // not be larger than 1000.
 13769  func (c *ProjectsLocationsDatasetsConsentStoresConsentsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsConsentStoresConsentsListCall {
 13770  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 13771  	return c
 13772  }
 13773  
 13774  // PageToken sets the optional parameter "pageToken": The next_page_token value
 13775  // returned from the previous List request, if any.
 13776  func (c *ProjectsLocationsDatasetsConsentStoresConsentsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsConsentStoresConsentsListCall {
 13777  	c.urlParams_.Set("pageToken", pageToken)
 13778  	return c
 13779  }
 13780  
 13781  // Fields allows partial responses to be retrieved. See
 13782  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13783  // details.
 13784  func (c *ProjectsLocationsDatasetsConsentStoresConsentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresConsentsListCall {
 13785  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13786  	return c
 13787  }
 13788  
 13789  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13790  // object's ETag matches the given value. This is useful for getting updates
 13791  // only after the object has changed since the last request.
 13792  func (c *ProjectsLocationsDatasetsConsentStoresConsentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsConsentStoresConsentsListCall {
 13793  	c.ifNoneMatch_ = entityTag
 13794  	return c
 13795  }
 13796  
 13797  // Context sets the context to be used in this call's Do method.
 13798  func (c *ProjectsLocationsDatasetsConsentStoresConsentsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresConsentsListCall {
 13799  	c.ctx_ = ctx
 13800  	return c
 13801  }
 13802  
 13803  // Header returns a http.Header that can be modified by the caller to add
 13804  // headers to the request.
 13805  func (c *ProjectsLocationsDatasetsConsentStoresConsentsListCall) Header() http.Header {
 13806  	if c.header_ == nil {
 13807  		c.header_ = make(http.Header)
 13808  	}
 13809  	return c.header_
 13810  }
 13811  
 13812  func (c *ProjectsLocationsDatasetsConsentStoresConsentsListCall) doRequest(alt string) (*http.Response, error) {
 13813  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13814  	if c.ifNoneMatch_ != "" {
 13815  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13816  	}
 13817  	var body io.Reader = nil
 13818  	c.urlParams_.Set("alt", alt)
 13819  	c.urlParams_.Set("prettyPrint", "false")
 13820  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/consents")
 13821  	urls += "?" + c.urlParams_.Encode()
 13822  	req, err := http.NewRequest("GET", urls, body)
 13823  	if err != nil {
 13824  		return nil, err
 13825  	}
 13826  	req.Header = reqHeaders
 13827  	googleapi.Expand(req.URL, map[string]string{
 13828  		"parent": c.parent,
 13829  	})
 13830  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13831  }
 13832  
 13833  // Do executes the "healthcare.projects.locations.datasets.consentStores.consents.list" call.
 13834  // Any non-2xx status code is an error. Response headers are in either
 13835  // *ListConsentsResponse.ServerResponse.Header or (if a response was returned
 13836  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 13837  // check whether the returned error was because http.StatusNotModified was
 13838  // returned.
 13839  func (c *ProjectsLocationsDatasetsConsentStoresConsentsListCall) Do(opts ...googleapi.CallOption) (*ListConsentsResponse, error) {
 13840  	gensupport.SetOptions(c.urlParams_, opts...)
 13841  	res, err := c.doRequest("json")
 13842  	if res != nil && res.StatusCode == http.StatusNotModified {
 13843  		if res.Body != nil {
 13844  			res.Body.Close()
 13845  		}
 13846  		return nil, gensupport.WrapError(&googleapi.Error{
 13847  			Code:   res.StatusCode,
 13848  			Header: res.Header,
 13849  		})
 13850  	}
 13851  	if err != nil {
 13852  		return nil, err
 13853  	}
 13854  	defer googleapi.CloseBody(res)
 13855  	if err := googleapi.CheckResponse(res); err != nil {
 13856  		return nil, gensupport.WrapError(err)
 13857  	}
 13858  	ret := &ListConsentsResponse{
 13859  		ServerResponse: googleapi.ServerResponse{
 13860  			Header:         res.Header,
 13861  			HTTPStatusCode: res.StatusCode,
 13862  		},
 13863  	}
 13864  	target := &ret
 13865  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13866  		return nil, err
 13867  	}
 13868  	return ret, nil
 13869  }
 13870  
 13871  // Pages invokes f for each page of results.
 13872  // A non-nil error returned from f will halt the iteration.
 13873  // The provided context supersedes any context provided to the Context method.
 13874  func (c *ProjectsLocationsDatasetsConsentStoresConsentsListCall) Pages(ctx context.Context, f func(*ListConsentsResponse) error) error {
 13875  	c.ctx_ = ctx
 13876  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 13877  	for {
 13878  		x, err := c.Do()
 13879  		if err != nil {
 13880  			return err
 13881  		}
 13882  		if err := f(x); err != nil {
 13883  			return err
 13884  		}
 13885  		if x.NextPageToken == "" {
 13886  			return nil
 13887  		}
 13888  		c.PageToken(x.NextPageToken)
 13889  	}
 13890  }
 13891  
 13892  type ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall struct {
 13893  	s            *Service
 13894  	name         string
 13895  	urlParams_   gensupport.URLParams
 13896  	ifNoneMatch_ string
 13897  	ctx_         context.Context
 13898  	header_      http.Header
 13899  }
 13900  
 13901  // ListRevisions: Lists the revisions of the specified Consent in reverse
 13902  // chronological order.
 13903  //
 13904  // - name: The resource name of the Consent to retrieve revisions for.
 13905  func (r *ProjectsLocationsDatasetsConsentStoresConsentsService) ListRevisions(name string) *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall {
 13906  	c := &ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13907  	c.name = name
 13908  	return c
 13909  }
 13910  
 13911  // Filter sets the optional parameter "filter": Restricts the revisions
 13912  // returned to those matching a filter. The following syntax is available: * A
 13913  // string field value can be written as text inside quotation marks, for
 13914  // example "query text". The only valid relational operation for text fields
 13915  // is equality (`=`), where text is searched within the field, rather than
 13916  // having the field be equal to the text. For example, "Comment = great"
 13917  // returns messages with `great` in the comment field. * A number field value
 13918  // can be written as an integer, a decimal, or an exponential. The valid
 13919  // relational operators for number fields are the equality operator (`=`),
 13920  // along with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note
 13921  // that there is no inequality (`!=`) operator. You can prepend the `NOT`
 13922  // operator to an expression to negate it. * A date field value must be written
 13923  // in `yyyy-mm-dd` form. Fields with date and time use the RFC3339 time format.
 13924  // Leading zeros are required for one-digit months and days. The valid
 13925  // relational operators for date fields are the equality operator (`=`) , along
 13926  // with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note that
 13927  // there is no inequality (`!=`) operator. You can prepend the `NOT` operator
 13928  // to an expression to negate it. * Multiple field query expressions can be
 13929  // combined in one query by adding `AND` or `OR` operators between the
 13930  // expressions. If a boolean operator appears within a quoted string, it is not
 13931  // treated as special, it's just another part of the character string to be
 13932  // matched. You can prepend the `NOT` operator to an expression to negate it.
 13933  // Fields/functions available for filtering are: - user_id. For example,
 13934  // `filter='user_id="user123"'`. - consent_artifact - state -
 13935  // revision_create_time - metadata. For example,
 13936  // `filter=Metadata(\"testkey\")=\"value\" or
 13937  // `filter=HasMetadata(\"testkey\")`.
 13938  func (c *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall) Filter(filter string) *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall {
 13939  	c.urlParams_.Set("filter", filter)
 13940  	return c
 13941  }
 13942  
 13943  // PageSize sets the optional parameter "pageSize": Limit on the number of
 13944  // revisions to return in a single response. If not specified, 100 is used. May
 13945  // not be larger than 1000.
 13946  func (c *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall {
 13947  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 13948  	return c
 13949  }
 13950  
 13951  // PageToken sets the optional parameter "pageToken": Token to retrieve the
 13952  // next page of results or empty if there are no more results in the list.
 13953  func (c *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall) PageToken(pageToken string) *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall {
 13954  	c.urlParams_.Set("pageToken", pageToken)
 13955  	return c
 13956  }
 13957  
 13958  // Fields allows partial responses to be retrieved. See
 13959  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13960  // details.
 13961  func (c *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall {
 13962  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13963  	return c
 13964  }
 13965  
 13966  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13967  // object's ETag matches the given value. This is useful for getting updates
 13968  // only after the object has changed since the last request.
 13969  func (c *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall {
 13970  	c.ifNoneMatch_ = entityTag
 13971  	return c
 13972  }
 13973  
 13974  // Context sets the context to be used in this call's Do method.
 13975  func (c *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall {
 13976  	c.ctx_ = ctx
 13977  	return c
 13978  }
 13979  
 13980  // Header returns a http.Header that can be modified by the caller to add
 13981  // headers to the request.
 13982  func (c *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall) Header() http.Header {
 13983  	if c.header_ == nil {
 13984  		c.header_ = make(http.Header)
 13985  	}
 13986  	return c.header_
 13987  }
 13988  
 13989  func (c *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall) doRequest(alt string) (*http.Response, error) {
 13990  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13991  	if c.ifNoneMatch_ != "" {
 13992  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13993  	}
 13994  	var body io.Reader = nil
 13995  	c.urlParams_.Set("alt", alt)
 13996  	c.urlParams_.Set("prettyPrint", "false")
 13997  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:listRevisions")
 13998  	urls += "?" + c.urlParams_.Encode()
 13999  	req, err := http.NewRequest("GET", urls, body)
 14000  	if err != nil {
 14001  		return nil, err
 14002  	}
 14003  	req.Header = reqHeaders
 14004  	googleapi.Expand(req.URL, map[string]string{
 14005  		"name": c.name,
 14006  	})
 14007  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14008  }
 14009  
 14010  // Do executes the "healthcare.projects.locations.datasets.consentStores.consents.listRevisions" call.
 14011  // Any non-2xx status code is an error. Response headers are in either
 14012  // *ListConsentRevisionsResponse.ServerResponse.Header or (if a response was
 14013  // returned at all) in error.(*googleapi.Error).Header. Use
 14014  // googleapi.IsNotModified to check whether the returned error was because
 14015  // http.StatusNotModified was returned.
 14016  func (c *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall) Do(opts ...googleapi.CallOption) (*ListConsentRevisionsResponse, error) {
 14017  	gensupport.SetOptions(c.urlParams_, opts...)
 14018  	res, err := c.doRequest("json")
 14019  	if res != nil && res.StatusCode == http.StatusNotModified {
 14020  		if res.Body != nil {
 14021  			res.Body.Close()
 14022  		}
 14023  		return nil, gensupport.WrapError(&googleapi.Error{
 14024  			Code:   res.StatusCode,
 14025  			Header: res.Header,
 14026  		})
 14027  	}
 14028  	if err != nil {
 14029  		return nil, err
 14030  	}
 14031  	defer googleapi.CloseBody(res)
 14032  	if err := googleapi.CheckResponse(res); err != nil {
 14033  		return nil, gensupport.WrapError(err)
 14034  	}
 14035  	ret := &ListConsentRevisionsResponse{
 14036  		ServerResponse: googleapi.ServerResponse{
 14037  			Header:         res.Header,
 14038  			HTTPStatusCode: res.StatusCode,
 14039  		},
 14040  	}
 14041  	target := &ret
 14042  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14043  		return nil, err
 14044  	}
 14045  	return ret, nil
 14046  }
 14047  
 14048  // Pages invokes f for each page of results.
 14049  // A non-nil error returned from f will halt the iteration.
 14050  // The provided context supersedes any context provided to the Context method.
 14051  func (c *ProjectsLocationsDatasetsConsentStoresConsentsListRevisionsCall) Pages(ctx context.Context, f func(*ListConsentRevisionsResponse) error) error {
 14052  	c.ctx_ = ctx
 14053  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 14054  	for {
 14055  		x, err := c.Do()
 14056  		if err != nil {
 14057  			return err
 14058  		}
 14059  		if err := f(x); err != nil {
 14060  			return err
 14061  		}
 14062  		if x.NextPageToken == "" {
 14063  			return nil
 14064  		}
 14065  		c.PageToken(x.NextPageToken)
 14066  	}
 14067  }
 14068  
 14069  type ProjectsLocationsDatasetsConsentStoresConsentsPatchCall struct {
 14070  	s          *Service
 14071  	name       string
 14072  	consent    *Consent
 14073  	urlParams_ gensupport.URLParams
 14074  	ctx_       context.Context
 14075  	header_    http.Header
 14076  }
 14077  
 14078  // Patch: Updates the latest revision of the specified Consent by committing a
 14079  // new revision with the changes. A FAILED_PRECONDITION error occurs if the
 14080  // latest revision of the specified Consent is in the `REJECTED` or `REVOKED`
 14081  // state.
 14082  //
 14083  //   - name: Identifier. Resource name of the Consent, of the form
 14084  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consen
 14085  //     tStores/{consent_store_id}/consents/{consent_id}`. Cannot be changed after
 14086  //     creation.
 14087  func (r *ProjectsLocationsDatasetsConsentStoresConsentsService) Patch(name string, consent *Consent) *ProjectsLocationsDatasetsConsentStoresConsentsPatchCall {
 14088  	c := &ProjectsLocationsDatasetsConsentStoresConsentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14089  	c.name = name
 14090  	c.consent = consent
 14091  	return c
 14092  }
 14093  
 14094  // UpdateMask sets the optional parameter "updateMask": Required. The update
 14095  // mask to apply to the resource. For the `FieldMask` definition, see
 14096  // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
 14097  // Only the `user_id`, `policies`, `consent_artifact`, and `metadata` fields
 14098  // can be updated.
 14099  func (c *ProjectsLocationsDatasetsConsentStoresConsentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsConsentStoresConsentsPatchCall {
 14100  	c.urlParams_.Set("updateMask", updateMask)
 14101  	return c
 14102  }
 14103  
 14104  // Fields allows partial responses to be retrieved. See
 14105  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14106  // details.
 14107  func (c *ProjectsLocationsDatasetsConsentStoresConsentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresConsentsPatchCall {
 14108  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14109  	return c
 14110  }
 14111  
 14112  // Context sets the context to be used in this call's Do method.
 14113  func (c *ProjectsLocationsDatasetsConsentStoresConsentsPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresConsentsPatchCall {
 14114  	c.ctx_ = ctx
 14115  	return c
 14116  }
 14117  
 14118  // Header returns a http.Header that can be modified by the caller to add
 14119  // headers to the request.
 14120  func (c *ProjectsLocationsDatasetsConsentStoresConsentsPatchCall) Header() http.Header {
 14121  	if c.header_ == nil {
 14122  		c.header_ = make(http.Header)
 14123  	}
 14124  	return c.header_
 14125  }
 14126  
 14127  func (c *ProjectsLocationsDatasetsConsentStoresConsentsPatchCall) doRequest(alt string) (*http.Response, error) {
 14128  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14129  	var body io.Reader = nil
 14130  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.consent)
 14131  	if err != nil {
 14132  		return nil, err
 14133  	}
 14134  	c.urlParams_.Set("alt", alt)
 14135  	c.urlParams_.Set("prettyPrint", "false")
 14136  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 14137  	urls += "?" + c.urlParams_.Encode()
 14138  	req, err := http.NewRequest("PATCH", urls, body)
 14139  	if err != nil {
 14140  		return nil, err
 14141  	}
 14142  	req.Header = reqHeaders
 14143  	googleapi.Expand(req.URL, map[string]string{
 14144  		"name": c.name,
 14145  	})
 14146  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14147  }
 14148  
 14149  // Do executes the "healthcare.projects.locations.datasets.consentStores.consents.patch" call.
 14150  // Any non-2xx status code is an error. Response headers are in either
 14151  // *Consent.ServerResponse.Header or (if a response was returned at all) in
 14152  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 14153  // whether the returned error was because http.StatusNotModified was returned.
 14154  func (c *ProjectsLocationsDatasetsConsentStoresConsentsPatchCall) Do(opts ...googleapi.CallOption) (*Consent, error) {
 14155  	gensupport.SetOptions(c.urlParams_, opts...)
 14156  	res, err := c.doRequest("json")
 14157  	if res != nil && res.StatusCode == http.StatusNotModified {
 14158  		if res.Body != nil {
 14159  			res.Body.Close()
 14160  		}
 14161  		return nil, gensupport.WrapError(&googleapi.Error{
 14162  			Code:   res.StatusCode,
 14163  			Header: res.Header,
 14164  		})
 14165  	}
 14166  	if err != nil {
 14167  		return nil, err
 14168  	}
 14169  	defer googleapi.CloseBody(res)
 14170  	if err := googleapi.CheckResponse(res); err != nil {
 14171  		return nil, gensupport.WrapError(err)
 14172  	}
 14173  	ret := &Consent{
 14174  		ServerResponse: googleapi.ServerResponse{
 14175  			Header:         res.Header,
 14176  			HTTPStatusCode: res.StatusCode,
 14177  		},
 14178  	}
 14179  	target := &ret
 14180  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14181  		return nil, err
 14182  	}
 14183  	return ret, nil
 14184  }
 14185  
 14186  type ProjectsLocationsDatasetsConsentStoresConsentsRejectCall struct {
 14187  	s                    *Service
 14188  	name                 string
 14189  	rejectconsentrequest *RejectConsentRequest
 14190  	urlParams_           gensupport.URLParams
 14191  	ctx_                 context.Context
 14192  	header_              http.Header
 14193  }
 14194  
 14195  // Reject: Rejects the latest revision of the specified Consent by committing a
 14196  // new revision with `state` updated to `REJECTED`. If the latest revision of
 14197  // the specified Consent is in the `REJECTED` state, no new revision is
 14198  // committed. A FAILED_PRECONDITION error occurs if the latest revision of the
 14199  // specified Consent is in the `ACTIVE` or `REVOKED` state.
 14200  //
 14201  //   - name: The resource name of the Consent to reject, of the form
 14202  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consen
 14203  //     tStores/{consent_store_id}/consents/{consent_id}`. An INVALID_ARGUMENT
 14204  //     error occurs if `revision_id` is specified in the name.
 14205  func (r *ProjectsLocationsDatasetsConsentStoresConsentsService) Reject(name string, rejectconsentrequest *RejectConsentRequest) *ProjectsLocationsDatasetsConsentStoresConsentsRejectCall {
 14206  	c := &ProjectsLocationsDatasetsConsentStoresConsentsRejectCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14207  	c.name = name
 14208  	c.rejectconsentrequest = rejectconsentrequest
 14209  	return c
 14210  }
 14211  
 14212  // Fields allows partial responses to be retrieved. See
 14213  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14214  // details.
 14215  func (c *ProjectsLocationsDatasetsConsentStoresConsentsRejectCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresConsentsRejectCall {
 14216  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14217  	return c
 14218  }
 14219  
 14220  // Context sets the context to be used in this call's Do method.
 14221  func (c *ProjectsLocationsDatasetsConsentStoresConsentsRejectCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresConsentsRejectCall {
 14222  	c.ctx_ = ctx
 14223  	return c
 14224  }
 14225  
 14226  // Header returns a http.Header that can be modified by the caller to add
 14227  // headers to the request.
 14228  func (c *ProjectsLocationsDatasetsConsentStoresConsentsRejectCall) Header() http.Header {
 14229  	if c.header_ == nil {
 14230  		c.header_ = make(http.Header)
 14231  	}
 14232  	return c.header_
 14233  }
 14234  
 14235  func (c *ProjectsLocationsDatasetsConsentStoresConsentsRejectCall) doRequest(alt string) (*http.Response, error) {
 14236  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14237  	var body io.Reader = nil
 14238  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.rejectconsentrequest)
 14239  	if err != nil {
 14240  		return nil, err
 14241  	}
 14242  	c.urlParams_.Set("alt", alt)
 14243  	c.urlParams_.Set("prettyPrint", "false")
 14244  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:reject")
 14245  	urls += "?" + c.urlParams_.Encode()
 14246  	req, err := http.NewRequest("POST", urls, body)
 14247  	if err != nil {
 14248  		return nil, err
 14249  	}
 14250  	req.Header = reqHeaders
 14251  	googleapi.Expand(req.URL, map[string]string{
 14252  		"name": c.name,
 14253  	})
 14254  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14255  }
 14256  
 14257  // Do executes the "healthcare.projects.locations.datasets.consentStores.consents.reject" call.
 14258  // Any non-2xx status code is an error. Response headers are in either
 14259  // *Consent.ServerResponse.Header or (if a response was returned at all) in
 14260  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 14261  // whether the returned error was because http.StatusNotModified was returned.
 14262  func (c *ProjectsLocationsDatasetsConsentStoresConsentsRejectCall) Do(opts ...googleapi.CallOption) (*Consent, error) {
 14263  	gensupport.SetOptions(c.urlParams_, opts...)
 14264  	res, err := c.doRequest("json")
 14265  	if res != nil && res.StatusCode == http.StatusNotModified {
 14266  		if res.Body != nil {
 14267  			res.Body.Close()
 14268  		}
 14269  		return nil, gensupport.WrapError(&googleapi.Error{
 14270  			Code:   res.StatusCode,
 14271  			Header: res.Header,
 14272  		})
 14273  	}
 14274  	if err != nil {
 14275  		return nil, err
 14276  	}
 14277  	defer googleapi.CloseBody(res)
 14278  	if err := googleapi.CheckResponse(res); err != nil {
 14279  		return nil, gensupport.WrapError(err)
 14280  	}
 14281  	ret := &Consent{
 14282  		ServerResponse: googleapi.ServerResponse{
 14283  			Header:         res.Header,
 14284  			HTTPStatusCode: res.StatusCode,
 14285  		},
 14286  	}
 14287  	target := &ret
 14288  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14289  		return nil, err
 14290  	}
 14291  	return ret, nil
 14292  }
 14293  
 14294  type ProjectsLocationsDatasetsConsentStoresConsentsRevokeCall struct {
 14295  	s                    *Service
 14296  	name                 string
 14297  	revokeconsentrequest *RevokeConsentRequest
 14298  	urlParams_           gensupport.URLParams
 14299  	ctx_                 context.Context
 14300  	header_              http.Header
 14301  }
 14302  
 14303  // Revoke: Revokes the latest revision of the specified Consent by committing a
 14304  // new revision with `state` updated to `REVOKED`. If the latest revision of
 14305  // the specified Consent is in the `REVOKED` state, no new revision is
 14306  // committed. A FAILED_PRECONDITION error occurs if the latest revision of the
 14307  // given consent is in `DRAFT` or `REJECTED` state.
 14308  //
 14309  //   - name: The resource name of the Consent to revoke, of the form
 14310  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consen
 14311  //     tStores/{consent_store_id}/consents/{consent_id}`. An INVALID_ARGUMENT
 14312  //     error occurs if `revision_id` is specified in the name.
 14313  func (r *ProjectsLocationsDatasetsConsentStoresConsentsService) Revoke(name string, revokeconsentrequest *RevokeConsentRequest) *ProjectsLocationsDatasetsConsentStoresConsentsRevokeCall {
 14314  	c := &ProjectsLocationsDatasetsConsentStoresConsentsRevokeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14315  	c.name = name
 14316  	c.revokeconsentrequest = revokeconsentrequest
 14317  	return c
 14318  }
 14319  
 14320  // Fields allows partial responses to be retrieved. See
 14321  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14322  // details.
 14323  func (c *ProjectsLocationsDatasetsConsentStoresConsentsRevokeCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresConsentsRevokeCall {
 14324  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14325  	return c
 14326  }
 14327  
 14328  // Context sets the context to be used in this call's Do method.
 14329  func (c *ProjectsLocationsDatasetsConsentStoresConsentsRevokeCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresConsentsRevokeCall {
 14330  	c.ctx_ = ctx
 14331  	return c
 14332  }
 14333  
 14334  // Header returns a http.Header that can be modified by the caller to add
 14335  // headers to the request.
 14336  func (c *ProjectsLocationsDatasetsConsentStoresConsentsRevokeCall) Header() http.Header {
 14337  	if c.header_ == nil {
 14338  		c.header_ = make(http.Header)
 14339  	}
 14340  	return c.header_
 14341  }
 14342  
 14343  func (c *ProjectsLocationsDatasetsConsentStoresConsentsRevokeCall) doRequest(alt string) (*http.Response, error) {
 14344  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14345  	var body io.Reader = nil
 14346  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.revokeconsentrequest)
 14347  	if err != nil {
 14348  		return nil, err
 14349  	}
 14350  	c.urlParams_.Set("alt", alt)
 14351  	c.urlParams_.Set("prettyPrint", "false")
 14352  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:revoke")
 14353  	urls += "?" + c.urlParams_.Encode()
 14354  	req, err := http.NewRequest("POST", urls, body)
 14355  	if err != nil {
 14356  		return nil, err
 14357  	}
 14358  	req.Header = reqHeaders
 14359  	googleapi.Expand(req.URL, map[string]string{
 14360  		"name": c.name,
 14361  	})
 14362  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14363  }
 14364  
 14365  // Do executes the "healthcare.projects.locations.datasets.consentStores.consents.revoke" call.
 14366  // Any non-2xx status code is an error. Response headers are in either
 14367  // *Consent.ServerResponse.Header or (if a response was returned at all) in
 14368  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 14369  // whether the returned error was because http.StatusNotModified was returned.
 14370  func (c *ProjectsLocationsDatasetsConsentStoresConsentsRevokeCall) Do(opts ...googleapi.CallOption) (*Consent, error) {
 14371  	gensupport.SetOptions(c.urlParams_, opts...)
 14372  	res, err := c.doRequest("json")
 14373  	if res != nil && res.StatusCode == http.StatusNotModified {
 14374  		if res.Body != nil {
 14375  			res.Body.Close()
 14376  		}
 14377  		return nil, gensupport.WrapError(&googleapi.Error{
 14378  			Code:   res.StatusCode,
 14379  			Header: res.Header,
 14380  		})
 14381  	}
 14382  	if err != nil {
 14383  		return nil, err
 14384  	}
 14385  	defer googleapi.CloseBody(res)
 14386  	if err := googleapi.CheckResponse(res); err != nil {
 14387  		return nil, gensupport.WrapError(err)
 14388  	}
 14389  	ret := &Consent{
 14390  		ServerResponse: googleapi.ServerResponse{
 14391  			Header:         res.Header,
 14392  			HTTPStatusCode: res.StatusCode,
 14393  		},
 14394  	}
 14395  	target := &ret
 14396  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14397  		return nil, err
 14398  	}
 14399  	return ret, nil
 14400  }
 14401  
 14402  type ProjectsLocationsDatasetsConsentStoresUserDataMappingsArchiveCall struct {
 14403  	s                             *Service
 14404  	name                          string
 14405  	archiveuserdatamappingrequest *ArchiveUserDataMappingRequest
 14406  	urlParams_                    gensupport.URLParams
 14407  	ctx_                          context.Context
 14408  	header_                       http.Header
 14409  }
 14410  
 14411  // Archive: Archives the specified User data mapping.
 14412  //
 14413  // - name: The resource name of the User data mapping to archive.
 14414  func (r *ProjectsLocationsDatasetsConsentStoresUserDataMappingsService) Archive(name string, archiveuserdatamappingrequest *ArchiveUserDataMappingRequest) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsArchiveCall {
 14415  	c := &ProjectsLocationsDatasetsConsentStoresUserDataMappingsArchiveCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14416  	c.name = name
 14417  	c.archiveuserdatamappingrequest = archiveuserdatamappingrequest
 14418  	return c
 14419  }
 14420  
 14421  // Fields allows partial responses to be retrieved. See
 14422  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14423  // details.
 14424  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsArchiveCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsArchiveCall {
 14425  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14426  	return c
 14427  }
 14428  
 14429  // Context sets the context to be used in this call's Do method.
 14430  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsArchiveCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsArchiveCall {
 14431  	c.ctx_ = ctx
 14432  	return c
 14433  }
 14434  
 14435  // Header returns a http.Header that can be modified by the caller to add
 14436  // headers to the request.
 14437  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsArchiveCall) Header() http.Header {
 14438  	if c.header_ == nil {
 14439  		c.header_ = make(http.Header)
 14440  	}
 14441  	return c.header_
 14442  }
 14443  
 14444  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsArchiveCall) doRequest(alt string) (*http.Response, error) {
 14445  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14446  	var body io.Reader = nil
 14447  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.archiveuserdatamappingrequest)
 14448  	if err != nil {
 14449  		return nil, err
 14450  	}
 14451  	c.urlParams_.Set("alt", alt)
 14452  	c.urlParams_.Set("prettyPrint", "false")
 14453  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:archive")
 14454  	urls += "?" + c.urlParams_.Encode()
 14455  	req, err := http.NewRequest("POST", urls, body)
 14456  	if err != nil {
 14457  		return nil, err
 14458  	}
 14459  	req.Header = reqHeaders
 14460  	googleapi.Expand(req.URL, map[string]string{
 14461  		"name": c.name,
 14462  	})
 14463  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14464  }
 14465  
 14466  // Do executes the "healthcare.projects.locations.datasets.consentStores.userDataMappings.archive" call.
 14467  // Any non-2xx status code is an error. Response headers are in either
 14468  // *ArchiveUserDataMappingResponse.ServerResponse.Header or (if a response was
 14469  // returned at all) in error.(*googleapi.Error).Header. Use
 14470  // googleapi.IsNotModified to check whether the returned error was because
 14471  // http.StatusNotModified was returned.
 14472  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsArchiveCall) Do(opts ...googleapi.CallOption) (*ArchiveUserDataMappingResponse, error) {
 14473  	gensupport.SetOptions(c.urlParams_, opts...)
 14474  	res, err := c.doRequest("json")
 14475  	if res != nil && res.StatusCode == http.StatusNotModified {
 14476  		if res.Body != nil {
 14477  			res.Body.Close()
 14478  		}
 14479  		return nil, gensupport.WrapError(&googleapi.Error{
 14480  			Code:   res.StatusCode,
 14481  			Header: res.Header,
 14482  		})
 14483  	}
 14484  	if err != nil {
 14485  		return nil, err
 14486  	}
 14487  	defer googleapi.CloseBody(res)
 14488  	if err := googleapi.CheckResponse(res); err != nil {
 14489  		return nil, gensupport.WrapError(err)
 14490  	}
 14491  	ret := &ArchiveUserDataMappingResponse{
 14492  		ServerResponse: googleapi.ServerResponse{
 14493  			Header:         res.Header,
 14494  			HTTPStatusCode: res.StatusCode,
 14495  		},
 14496  	}
 14497  	target := &ret
 14498  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14499  		return nil, err
 14500  	}
 14501  	return ret, nil
 14502  }
 14503  
 14504  type ProjectsLocationsDatasetsConsentStoresUserDataMappingsCreateCall struct {
 14505  	s               *Service
 14506  	parent          string
 14507  	userdatamapping *UserDataMapping
 14508  	urlParams_      gensupport.URLParams
 14509  	ctx_            context.Context
 14510  	header_         http.Header
 14511  }
 14512  
 14513  // Create: Creates a new User data mapping in the parent consent store.
 14514  //
 14515  // - parent: Name of the consent store.
 14516  func (r *ProjectsLocationsDatasetsConsentStoresUserDataMappingsService) Create(parent string, userdatamapping *UserDataMapping) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsCreateCall {
 14517  	c := &ProjectsLocationsDatasetsConsentStoresUserDataMappingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14518  	c.parent = parent
 14519  	c.userdatamapping = userdatamapping
 14520  	return c
 14521  }
 14522  
 14523  // Fields allows partial responses to be retrieved. See
 14524  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14525  // details.
 14526  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsCreateCall {
 14527  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14528  	return c
 14529  }
 14530  
 14531  // Context sets the context to be used in this call's Do method.
 14532  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsCreateCall {
 14533  	c.ctx_ = ctx
 14534  	return c
 14535  }
 14536  
 14537  // Header returns a http.Header that can be modified by the caller to add
 14538  // headers to the request.
 14539  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsCreateCall) Header() http.Header {
 14540  	if c.header_ == nil {
 14541  		c.header_ = make(http.Header)
 14542  	}
 14543  	return c.header_
 14544  }
 14545  
 14546  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsCreateCall) doRequest(alt string) (*http.Response, error) {
 14547  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14548  	var body io.Reader = nil
 14549  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.userdatamapping)
 14550  	if err != nil {
 14551  		return nil, err
 14552  	}
 14553  	c.urlParams_.Set("alt", alt)
 14554  	c.urlParams_.Set("prettyPrint", "false")
 14555  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/userDataMappings")
 14556  	urls += "?" + c.urlParams_.Encode()
 14557  	req, err := http.NewRequest("POST", urls, body)
 14558  	if err != nil {
 14559  		return nil, err
 14560  	}
 14561  	req.Header = reqHeaders
 14562  	googleapi.Expand(req.URL, map[string]string{
 14563  		"parent": c.parent,
 14564  	})
 14565  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14566  }
 14567  
 14568  // Do executes the "healthcare.projects.locations.datasets.consentStores.userDataMappings.create" call.
 14569  // Any non-2xx status code is an error. Response headers are in either
 14570  // *UserDataMapping.ServerResponse.Header or (if a response was returned at
 14571  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 14572  // check whether the returned error was because http.StatusNotModified was
 14573  // returned.
 14574  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsCreateCall) Do(opts ...googleapi.CallOption) (*UserDataMapping, error) {
 14575  	gensupport.SetOptions(c.urlParams_, opts...)
 14576  	res, err := c.doRequest("json")
 14577  	if res != nil && res.StatusCode == http.StatusNotModified {
 14578  		if res.Body != nil {
 14579  			res.Body.Close()
 14580  		}
 14581  		return nil, gensupport.WrapError(&googleapi.Error{
 14582  			Code:   res.StatusCode,
 14583  			Header: res.Header,
 14584  		})
 14585  	}
 14586  	if err != nil {
 14587  		return nil, err
 14588  	}
 14589  	defer googleapi.CloseBody(res)
 14590  	if err := googleapi.CheckResponse(res); err != nil {
 14591  		return nil, gensupport.WrapError(err)
 14592  	}
 14593  	ret := &UserDataMapping{
 14594  		ServerResponse: googleapi.ServerResponse{
 14595  			Header:         res.Header,
 14596  			HTTPStatusCode: res.StatusCode,
 14597  		},
 14598  	}
 14599  	target := &ret
 14600  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14601  		return nil, err
 14602  	}
 14603  	return ret, nil
 14604  }
 14605  
 14606  type ProjectsLocationsDatasetsConsentStoresUserDataMappingsDeleteCall struct {
 14607  	s          *Service
 14608  	name       string
 14609  	urlParams_ gensupport.URLParams
 14610  	ctx_       context.Context
 14611  	header_    http.Header
 14612  }
 14613  
 14614  // Delete: Deletes the specified User data mapping.
 14615  //
 14616  // - name: The resource name of the User data mapping to delete.
 14617  func (r *ProjectsLocationsDatasetsConsentStoresUserDataMappingsService) Delete(name string) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsDeleteCall {
 14618  	c := &ProjectsLocationsDatasetsConsentStoresUserDataMappingsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14619  	c.name = name
 14620  	return c
 14621  }
 14622  
 14623  // Fields allows partial responses to be retrieved. See
 14624  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14625  // details.
 14626  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsDeleteCall {
 14627  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14628  	return c
 14629  }
 14630  
 14631  // Context sets the context to be used in this call's Do method.
 14632  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsDeleteCall {
 14633  	c.ctx_ = ctx
 14634  	return c
 14635  }
 14636  
 14637  // Header returns a http.Header that can be modified by the caller to add
 14638  // headers to the request.
 14639  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsDeleteCall) Header() http.Header {
 14640  	if c.header_ == nil {
 14641  		c.header_ = make(http.Header)
 14642  	}
 14643  	return c.header_
 14644  }
 14645  
 14646  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsDeleteCall) doRequest(alt string) (*http.Response, error) {
 14647  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14648  	var body io.Reader = nil
 14649  	c.urlParams_.Set("alt", alt)
 14650  	c.urlParams_.Set("prettyPrint", "false")
 14651  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 14652  	urls += "?" + c.urlParams_.Encode()
 14653  	req, err := http.NewRequest("DELETE", urls, body)
 14654  	if err != nil {
 14655  		return nil, err
 14656  	}
 14657  	req.Header = reqHeaders
 14658  	googleapi.Expand(req.URL, map[string]string{
 14659  		"name": c.name,
 14660  	})
 14661  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14662  }
 14663  
 14664  // Do executes the "healthcare.projects.locations.datasets.consentStores.userDataMappings.delete" call.
 14665  // Any non-2xx status code is an error. Response headers are in either
 14666  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 14667  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 14668  // whether the returned error was because http.StatusNotModified was returned.
 14669  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 14670  	gensupport.SetOptions(c.urlParams_, opts...)
 14671  	res, err := c.doRequest("json")
 14672  	if res != nil && res.StatusCode == http.StatusNotModified {
 14673  		if res.Body != nil {
 14674  			res.Body.Close()
 14675  		}
 14676  		return nil, gensupport.WrapError(&googleapi.Error{
 14677  			Code:   res.StatusCode,
 14678  			Header: res.Header,
 14679  		})
 14680  	}
 14681  	if err != nil {
 14682  		return nil, err
 14683  	}
 14684  	defer googleapi.CloseBody(res)
 14685  	if err := googleapi.CheckResponse(res); err != nil {
 14686  		return nil, gensupport.WrapError(err)
 14687  	}
 14688  	ret := &Empty{
 14689  		ServerResponse: googleapi.ServerResponse{
 14690  			Header:         res.Header,
 14691  			HTTPStatusCode: res.StatusCode,
 14692  		},
 14693  	}
 14694  	target := &ret
 14695  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14696  		return nil, err
 14697  	}
 14698  	return ret, nil
 14699  }
 14700  
 14701  type ProjectsLocationsDatasetsConsentStoresUserDataMappingsGetCall struct {
 14702  	s            *Service
 14703  	name         string
 14704  	urlParams_   gensupport.URLParams
 14705  	ifNoneMatch_ string
 14706  	ctx_         context.Context
 14707  	header_      http.Header
 14708  }
 14709  
 14710  // Get: Gets the specified User data mapping.
 14711  //
 14712  // - name: The resource name of the User data mapping to retrieve.
 14713  func (r *ProjectsLocationsDatasetsConsentStoresUserDataMappingsService) Get(name string) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsGetCall {
 14714  	c := &ProjectsLocationsDatasetsConsentStoresUserDataMappingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14715  	c.name = name
 14716  	return c
 14717  }
 14718  
 14719  // Fields allows partial responses to be retrieved. See
 14720  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14721  // details.
 14722  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsGetCall {
 14723  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14724  	return c
 14725  }
 14726  
 14727  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14728  // object's ETag matches the given value. This is useful for getting updates
 14729  // only after the object has changed since the last request.
 14730  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsGetCall {
 14731  	c.ifNoneMatch_ = entityTag
 14732  	return c
 14733  }
 14734  
 14735  // Context sets the context to be used in this call's Do method.
 14736  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsGetCall {
 14737  	c.ctx_ = ctx
 14738  	return c
 14739  }
 14740  
 14741  // Header returns a http.Header that can be modified by the caller to add
 14742  // headers to the request.
 14743  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsGetCall) Header() http.Header {
 14744  	if c.header_ == nil {
 14745  		c.header_ = make(http.Header)
 14746  	}
 14747  	return c.header_
 14748  }
 14749  
 14750  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsGetCall) doRequest(alt string) (*http.Response, error) {
 14751  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14752  	if c.ifNoneMatch_ != "" {
 14753  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14754  	}
 14755  	var body io.Reader = nil
 14756  	c.urlParams_.Set("alt", alt)
 14757  	c.urlParams_.Set("prettyPrint", "false")
 14758  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 14759  	urls += "?" + c.urlParams_.Encode()
 14760  	req, err := http.NewRequest("GET", urls, body)
 14761  	if err != nil {
 14762  		return nil, err
 14763  	}
 14764  	req.Header = reqHeaders
 14765  	googleapi.Expand(req.URL, map[string]string{
 14766  		"name": c.name,
 14767  	})
 14768  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14769  }
 14770  
 14771  // Do executes the "healthcare.projects.locations.datasets.consentStores.userDataMappings.get" call.
 14772  // Any non-2xx status code is an error. Response headers are in either
 14773  // *UserDataMapping.ServerResponse.Header or (if a response was returned at
 14774  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 14775  // check whether the returned error was because http.StatusNotModified was
 14776  // returned.
 14777  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsGetCall) Do(opts ...googleapi.CallOption) (*UserDataMapping, error) {
 14778  	gensupport.SetOptions(c.urlParams_, opts...)
 14779  	res, err := c.doRequest("json")
 14780  	if res != nil && res.StatusCode == http.StatusNotModified {
 14781  		if res.Body != nil {
 14782  			res.Body.Close()
 14783  		}
 14784  		return nil, gensupport.WrapError(&googleapi.Error{
 14785  			Code:   res.StatusCode,
 14786  			Header: res.Header,
 14787  		})
 14788  	}
 14789  	if err != nil {
 14790  		return nil, err
 14791  	}
 14792  	defer googleapi.CloseBody(res)
 14793  	if err := googleapi.CheckResponse(res); err != nil {
 14794  		return nil, gensupport.WrapError(err)
 14795  	}
 14796  	ret := &UserDataMapping{
 14797  		ServerResponse: googleapi.ServerResponse{
 14798  			Header:         res.Header,
 14799  			HTTPStatusCode: res.StatusCode,
 14800  		},
 14801  	}
 14802  	target := &ret
 14803  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14804  		return nil, err
 14805  	}
 14806  	return ret, nil
 14807  }
 14808  
 14809  type ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall struct {
 14810  	s            *Service
 14811  	parent       string
 14812  	urlParams_   gensupport.URLParams
 14813  	ifNoneMatch_ string
 14814  	ctx_         context.Context
 14815  	header_      http.Header
 14816  }
 14817  
 14818  // List: Lists the User data mappings in the specified consent store.
 14819  //
 14820  // - parent: Name of the consent store to retrieve User data mappings from.
 14821  func (r *ProjectsLocationsDatasetsConsentStoresUserDataMappingsService) List(parent string) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall {
 14822  	c := &ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14823  	c.parent = parent
 14824  	return c
 14825  }
 14826  
 14827  // Filter sets the optional parameter "filter": Restricts the user data
 14828  // mappings returned to those matching a filter. The following syntax is
 14829  // available: * A string field value can be written as text inside quotation
 14830  // marks, for example "query text". The only valid relational operation for
 14831  // text fields is equality (`=`), where text is searched within the field,
 14832  // rather than having the field be equal to the text. For example, "Comment =
 14833  // great" returns messages with `great` in the comment field. * A number field
 14834  // value can be written as an integer, a decimal, or an exponential. The valid
 14835  // relational operators for number fields are the equality operator (`=`),
 14836  // along with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note
 14837  // that there is no inequality (`!=`) operator. You can prepend the `NOT`
 14838  // operator to an expression to negate it. * A date field value must be written
 14839  // in `yyyy-mm-dd` form. Fields with date and time use the RFC3339 time format.
 14840  // Leading zeros are required for one-digit months and days. The valid
 14841  // relational operators for date fields are the equality operator (`=`) , along
 14842  // with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note that
 14843  // there is no inequality (`!=`) operator. You can prepend the `NOT` operator
 14844  // to an expression to negate it. * Multiple field query expressions can be
 14845  // combined in one query by adding `AND` or `OR` operators between the
 14846  // expressions. If a boolean operator appears within a quoted string, it is not
 14847  // treated as special, it's just another part of the character string to be
 14848  // matched. You can prepend the `NOT` operator to an expression to negate it.
 14849  // The fields available for filtering are: - data_id - user_id. For example,
 14850  // `filter=user_id=\"user123\". - archived - archive_time
 14851  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall) Filter(filter string) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall {
 14852  	c.urlParams_.Set("filter", filter)
 14853  	return c
 14854  }
 14855  
 14856  // PageSize sets the optional parameter "pageSize": Limit on the number of User
 14857  // data mappings to return in a single response. If not specified, 100 is used.
 14858  // May not be larger than 1000.
 14859  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall {
 14860  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 14861  	return c
 14862  }
 14863  
 14864  // PageToken sets the optional parameter "pageToken": Token to retrieve the
 14865  // next page of results, or empty to get the first page.
 14866  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall {
 14867  	c.urlParams_.Set("pageToken", pageToken)
 14868  	return c
 14869  }
 14870  
 14871  // Fields allows partial responses to be retrieved. See
 14872  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14873  // details.
 14874  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall {
 14875  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14876  	return c
 14877  }
 14878  
 14879  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14880  // object's ETag matches the given value. This is useful for getting updates
 14881  // only after the object has changed since the last request.
 14882  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall {
 14883  	c.ifNoneMatch_ = entityTag
 14884  	return c
 14885  }
 14886  
 14887  // Context sets the context to be used in this call's Do method.
 14888  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall {
 14889  	c.ctx_ = ctx
 14890  	return c
 14891  }
 14892  
 14893  // Header returns a http.Header that can be modified by the caller to add
 14894  // headers to the request.
 14895  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall) Header() http.Header {
 14896  	if c.header_ == nil {
 14897  		c.header_ = make(http.Header)
 14898  	}
 14899  	return c.header_
 14900  }
 14901  
 14902  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall) doRequest(alt string) (*http.Response, error) {
 14903  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14904  	if c.ifNoneMatch_ != "" {
 14905  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14906  	}
 14907  	var body io.Reader = nil
 14908  	c.urlParams_.Set("alt", alt)
 14909  	c.urlParams_.Set("prettyPrint", "false")
 14910  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/userDataMappings")
 14911  	urls += "?" + c.urlParams_.Encode()
 14912  	req, err := http.NewRequest("GET", urls, body)
 14913  	if err != nil {
 14914  		return nil, err
 14915  	}
 14916  	req.Header = reqHeaders
 14917  	googleapi.Expand(req.URL, map[string]string{
 14918  		"parent": c.parent,
 14919  	})
 14920  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14921  }
 14922  
 14923  // Do executes the "healthcare.projects.locations.datasets.consentStores.userDataMappings.list" call.
 14924  // Any non-2xx status code is an error. Response headers are in either
 14925  // *ListUserDataMappingsResponse.ServerResponse.Header or (if a response was
 14926  // returned at all) in error.(*googleapi.Error).Header. Use
 14927  // googleapi.IsNotModified to check whether the returned error was because
 14928  // http.StatusNotModified was returned.
 14929  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall) Do(opts ...googleapi.CallOption) (*ListUserDataMappingsResponse, error) {
 14930  	gensupport.SetOptions(c.urlParams_, opts...)
 14931  	res, err := c.doRequest("json")
 14932  	if res != nil && res.StatusCode == http.StatusNotModified {
 14933  		if res.Body != nil {
 14934  			res.Body.Close()
 14935  		}
 14936  		return nil, gensupport.WrapError(&googleapi.Error{
 14937  			Code:   res.StatusCode,
 14938  			Header: res.Header,
 14939  		})
 14940  	}
 14941  	if err != nil {
 14942  		return nil, err
 14943  	}
 14944  	defer googleapi.CloseBody(res)
 14945  	if err := googleapi.CheckResponse(res); err != nil {
 14946  		return nil, gensupport.WrapError(err)
 14947  	}
 14948  	ret := &ListUserDataMappingsResponse{
 14949  		ServerResponse: googleapi.ServerResponse{
 14950  			Header:         res.Header,
 14951  			HTTPStatusCode: res.StatusCode,
 14952  		},
 14953  	}
 14954  	target := &ret
 14955  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14956  		return nil, err
 14957  	}
 14958  	return ret, nil
 14959  }
 14960  
 14961  // Pages invokes f for each page of results.
 14962  // A non-nil error returned from f will halt the iteration.
 14963  // The provided context supersedes any context provided to the Context method.
 14964  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsListCall) Pages(ctx context.Context, f func(*ListUserDataMappingsResponse) error) error {
 14965  	c.ctx_ = ctx
 14966  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 14967  	for {
 14968  		x, err := c.Do()
 14969  		if err != nil {
 14970  			return err
 14971  		}
 14972  		if err := f(x); err != nil {
 14973  			return err
 14974  		}
 14975  		if x.NextPageToken == "" {
 14976  			return nil
 14977  		}
 14978  		c.PageToken(x.NextPageToken)
 14979  	}
 14980  }
 14981  
 14982  type ProjectsLocationsDatasetsConsentStoresUserDataMappingsPatchCall struct {
 14983  	s               *Service
 14984  	name            string
 14985  	userdatamapping *UserDataMapping
 14986  	urlParams_      gensupport.URLParams
 14987  	ctx_            context.Context
 14988  	header_         http.Header
 14989  }
 14990  
 14991  // Patch: Updates the specified User data mapping.
 14992  //
 14993  //   - name: Resource name of the User data mapping, of the form
 14994  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consen
 14995  //     tStores/{consent_store_id}/userDataMappings/{user_data_mapping_id}`.
 14996  func (r *ProjectsLocationsDatasetsConsentStoresUserDataMappingsService) Patch(name string, userdatamapping *UserDataMapping) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsPatchCall {
 14997  	c := &ProjectsLocationsDatasetsConsentStoresUserDataMappingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14998  	c.name = name
 14999  	c.userdatamapping = userdatamapping
 15000  	return c
 15001  }
 15002  
 15003  // UpdateMask sets the optional parameter "updateMask": Required. The update
 15004  // mask that applies to the resource. For the `FieldMask` definition, see
 15005  // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
 15006  // Only the `data_id`, `user_id` and `resource_attributes` fields can be
 15007  // updated.
 15008  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsPatchCall {
 15009  	c.urlParams_.Set("updateMask", updateMask)
 15010  	return c
 15011  }
 15012  
 15013  // Fields allows partial responses to be retrieved. See
 15014  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15015  // details.
 15016  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsPatchCall {
 15017  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15018  	return c
 15019  }
 15020  
 15021  // Context sets the context to be used in this call's Do method.
 15022  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsConsentStoresUserDataMappingsPatchCall {
 15023  	c.ctx_ = ctx
 15024  	return c
 15025  }
 15026  
 15027  // Header returns a http.Header that can be modified by the caller to add
 15028  // headers to the request.
 15029  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsPatchCall) Header() http.Header {
 15030  	if c.header_ == nil {
 15031  		c.header_ = make(http.Header)
 15032  	}
 15033  	return c.header_
 15034  }
 15035  
 15036  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsPatchCall) doRequest(alt string) (*http.Response, error) {
 15037  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15038  	var body io.Reader = nil
 15039  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.userdatamapping)
 15040  	if err != nil {
 15041  		return nil, err
 15042  	}
 15043  	c.urlParams_.Set("alt", alt)
 15044  	c.urlParams_.Set("prettyPrint", "false")
 15045  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 15046  	urls += "?" + c.urlParams_.Encode()
 15047  	req, err := http.NewRequest("PATCH", urls, body)
 15048  	if err != nil {
 15049  		return nil, err
 15050  	}
 15051  	req.Header = reqHeaders
 15052  	googleapi.Expand(req.URL, map[string]string{
 15053  		"name": c.name,
 15054  	})
 15055  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15056  }
 15057  
 15058  // Do executes the "healthcare.projects.locations.datasets.consentStores.userDataMappings.patch" call.
 15059  // Any non-2xx status code is an error. Response headers are in either
 15060  // *UserDataMapping.ServerResponse.Header or (if a response was returned at
 15061  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 15062  // check whether the returned error was because http.StatusNotModified was
 15063  // returned.
 15064  func (c *ProjectsLocationsDatasetsConsentStoresUserDataMappingsPatchCall) Do(opts ...googleapi.CallOption) (*UserDataMapping, error) {
 15065  	gensupport.SetOptions(c.urlParams_, opts...)
 15066  	res, err := c.doRequest("json")
 15067  	if res != nil && res.StatusCode == http.StatusNotModified {
 15068  		if res.Body != nil {
 15069  			res.Body.Close()
 15070  		}
 15071  		return nil, gensupport.WrapError(&googleapi.Error{
 15072  			Code:   res.StatusCode,
 15073  			Header: res.Header,
 15074  		})
 15075  	}
 15076  	if err != nil {
 15077  		return nil, err
 15078  	}
 15079  	defer googleapi.CloseBody(res)
 15080  	if err := googleapi.CheckResponse(res); err != nil {
 15081  		return nil, gensupport.WrapError(err)
 15082  	}
 15083  	ret := &UserDataMapping{
 15084  		ServerResponse: googleapi.ServerResponse{
 15085  			Header:         res.Header,
 15086  			HTTPStatusCode: res.StatusCode,
 15087  		},
 15088  	}
 15089  	target := &ret
 15090  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15091  		return nil, err
 15092  	}
 15093  	return ret, nil
 15094  }
 15095  
 15096  type ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall struct {
 15097  	s            *Service
 15098  	resource     string
 15099  	urlParams_   gensupport.URLParams
 15100  	ifNoneMatch_ string
 15101  	ctx_         context.Context
 15102  	header_      http.Header
 15103  }
 15104  
 15105  // GetIamPolicy: Gets the access control policy for a resource. Returns an
 15106  // empty policy if the resource exists and does not have a policy set.
 15107  //
 15108  //   - resource: REQUIRED: The resource for which the policy is being requested.
 15109  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 15110  //     for the appropriate value for this field.
 15111  func (r *ProjectsLocationsDatasetsDataMapperWorkspacesService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall {
 15112  	c := &ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15113  	c.resource = resource
 15114  	return c
 15115  }
 15116  
 15117  // OptionsRequestedPolicyVersion sets the optional parameter
 15118  // "options.requestedPolicyVersion": The maximum policy version that will be
 15119  // used to format the policy. Valid values are 0, 1, and 3. Requests specifying
 15120  // an invalid value will be rejected. Requests for policies with any
 15121  // conditional role bindings must specify version 3. Policies with no
 15122  // conditional role bindings may specify any valid value or leave the field
 15123  // unset. The policy in the response might use the policy version that you
 15124  // specified, or it might use a lower policy version. For example, if you
 15125  // specify version 3, but the policy has no conditional role bindings, the
 15126  // response uses version 1. To learn which resources support conditions in
 15127  // their IAM policies, see the IAM documentation
 15128  // (https://cloud.google.com/iam/help/conditions/resource-policies).
 15129  func (c *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall {
 15130  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
 15131  	return c
 15132  }
 15133  
 15134  // Fields allows partial responses to be retrieved. See
 15135  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15136  // details.
 15137  func (c *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall {
 15138  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15139  	return c
 15140  }
 15141  
 15142  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15143  // object's ETag matches the given value. This is useful for getting updates
 15144  // only after the object has changed since the last request.
 15145  func (c *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall {
 15146  	c.ifNoneMatch_ = entityTag
 15147  	return c
 15148  }
 15149  
 15150  // Context sets the context to be used in this call's Do method.
 15151  func (c *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall {
 15152  	c.ctx_ = ctx
 15153  	return c
 15154  }
 15155  
 15156  // Header returns a http.Header that can be modified by the caller to add
 15157  // headers to the request.
 15158  func (c *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall) Header() http.Header {
 15159  	if c.header_ == nil {
 15160  		c.header_ = make(http.Header)
 15161  	}
 15162  	return c.header_
 15163  }
 15164  
 15165  func (c *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 15166  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15167  	if c.ifNoneMatch_ != "" {
 15168  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15169  	}
 15170  	var body io.Reader = nil
 15171  	c.urlParams_.Set("alt", alt)
 15172  	c.urlParams_.Set("prettyPrint", "false")
 15173  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy")
 15174  	urls += "?" + c.urlParams_.Encode()
 15175  	req, err := http.NewRequest("GET", urls, body)
 15176  	if err != nil {
 15177  		return nil, err
 15178  	}
 15179  	req.Header = reqHeaders
 15180  	googleapi.Expand(req.URL, map[string]string{
 15181  		"resource": c.resource,
 15182  	})
 15183  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15184  }
 15185  
 15186  // Do executes the "healthcare.projects.locations.datasets.dataMapperWorkspaces.getIamPolicy" call.
 15187  // Any non-2xx status code is an error. Response headers are in either
 15188  // *Policy.ServerResponse.Header or (if a response was returned at all) in
 15189  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 15190  // whether the returned error was because http.StatusNotModified was returned.
 15191  func (c *ProjectsLocationsDatasetsDataMapperWorkspacesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
 15192  	gensupport.SetOptions(c.urlParams_, opts...)
 15193  	res, err := c.doRequest("json")
 15194  	if res != nil && res.StatusCode == http.StatusNotModified {
 15195  		if res.Body != nil {
 15196  			res.Body.Close()
 15197  		}
 15198  		return nil, gensupport.WrapError(&googleapi.Error{
 15199  			Code:   res.StatusCode,
 15200  			Header: res.Header,
 15201  		})
 15202  	}
 15203  	if err != nil {
 15204  		return nil, err
 15205  	}
 15206  	defer googleapi.CloseBody(res)
 15207  	if err := googleapi.CheckResponse(res); err != nil {
 15208  		return nil, gensupport.WrapError(err)
 15209  	}
 15210  	ret := &Policy{
 15211  		ServerResponse: googleapi.ServerResponse{
 15212  			Header:         res.Header,
 15213  			HTTPStatusCode: res.StatusCode,
 15214  		},
 15215  	}
 15216  	target := &ret
 15217  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15218  		return nil, err
 15219  	}
 15220  	return ret, nil
 15221  }
 15222  
 15223  type ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall struct {
 15224  	s                   *Service
 15225  	resource            string
 15226  	setiampolicyrequest *SetIamPolicyRequest
 15227  	urlParams_          gensupport.URLParams
 15228  	ctx_                context.Context
 15229  	header_             http.Header
 15230  }
 15231  
 15232  // SetIamPolicy: Sets the access control policy on the specified resource.
 15233  // Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`,
 15234  // and `PERMISSION_DENIED` errors.
 15235  //
 15236  //   - resource: REQUIRED: The resource for which the policy is being specified.
 15237  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 15238  //     for the appropriate value for this field.
 15239  func (r *ProjectsLocationsDatasetsDataMapperWorkspacesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall {
 15240  	c := &ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15241  	c.resource = resource
 15242  	c.setiampolicyrequest = setiampolicyrequest
 15243  	return c
 15244  }
 15245  
 15246  // Fields allows partial responses to be retrieved. See
 15247  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15248  // details.
 15249  func (c *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall {
 15250  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15251  	return c
 15252  }
 15253  
 15254  // Context sets the context to be used in this call's Do method.
 15255  func (c *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall {
 15256  	c.ctx_ = ctx
 15257  	return c
 15258  }
 15259  
 15260  // Header returns a http.Header that can be modified by the caller to add
 15261  // headers to the request.
 15262  func (c *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall) Header() http.Header {
 15263  	if c.header_ == nil {
 15264  		c.header_ = make(http.Header)
 15265  	}
 15266  	return c.header_
 15267  }
 15268  
 15269  func (c *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 15270  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15271  	var body io.Reader = nil
 15272  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
 15273  	if err != nil {
 15274  		return nil, err
 15275  	}
 15276  	c.urlParams_.Set("alt", alt)
 15277  	c.urlParams_.Set("prettyPrint", "false")
 15278  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy")
 15279  	urls += "?" + c.urlParams_.Encode()
 15280  	req, err := http.NewRequest("POST", urls, body)
 15281  	if err != nil {
 15282  		return nil, err
 15283  	}
 15284  	req.Header = reqHeaders
 15285  	googleapi.Expand(req.URL, map[string]string{
 15286  		"resource": c.resource,
 15287  	})
 15288  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15289  }
 15290  
 15291  // Do executes the "healthcare.projects.locations.datasets.dataMapperWorkspaces.setIamPolicy" call.
 15292  // Any non-2xx status code is an error. Response headers are in either
 15293  // *Policy.ServerResponse.Header or (if a response was returned at all) in
 15294  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 15295  // whether the returned error was because http.StatusNotModified was returned.
 15296  func (c *ProjectsLocationsDatasetsDataMapperWorkspacesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
 15297  	gensupport.SetOptions(c.urlParams_, opts...)
 15298  	res, err := c.doRequest("json")
 15299  	if res != nil && res.StatusCode == http.StatusNotModified {
 15300  		if res.Body != nil {
 15301  			res.Body.Close()
 15302  		}
 15303  		return nil, gensupport.WrapError(&googleapi.Error{
 15304  			Code:   res.StatusCode,
 15305  			Header: res.Header,
 15306  		})
 15307  	}
 15308  	if err != nil {
 15309  		return nil, err
 15310  	}
 15311  	defer googleapi.CloseBody(res)
 15312  	if err := googleapi.CheckResponse(res); err != nil {
 15313  		return nil, gensupport.WrapError(err)
 15314  	}
 15315  	ret := &Policy{
 15316  		ServerResponse: googleapi.ServerResponse{
 15317  			Header:         res.Header,
 15318  			HTTPStatusCode: res.StatusCode,
 15319  		},
 15320  	}
 15321  	target := &ret
 15322  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15323  		return nil, err
 15324  	}
 15325  	return ret, nil
 15326  }
 15327  
 15328  type ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall struct {
 15329  	s                         *Service
 15330  	resource                  string
 15331  	testiampermissionsrequest *TestIamPermissionsRequest
 15332  	urlParams_                gensupport.URLParams
 15333  	ctx_                      context.Context
 15334  	header_                   http.Header
 15335  }
 15336  
 15337  // TestIamPermissions: Returns permissions that a caller has on the specified
 15338  // resource. If the resource does not exist, this will return an empty set of
 15339  // permissions, not a `NOT_FOUND` error. Note: This operation is designed to be
 15340  // used for building permission-aware UIs and command-line tools, not for
 15341  // authorization checking. This operation may "fail open" without warning.
 15342  //
 15343  //   - resource: REQUIRED: The resource for which the policy detail is being
 15344  //     requested. See Resource names
 15345  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
 15346  //     value for this field.
 15347  func (r *ProjectsLocationsDatasetsDataMapperWorkspacesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall {
 15348  	c := &ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15349  	c.resource = resource
 15350  	c.testiampermissionsrequest = testiampermissionsrequest
 15351  	return c
 15352  }
 15353  
 15354  // Fields allows partial responses to be retrieved. See
 15355  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15356  // details.
 15357  func (c *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall {
 15358  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15359  	return c
 15360  }
 15361  
 15362  // Context sets the context to be used in this call's Do method.
 15363  func (c *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall {
 15364  	c.ctx_ = ctx
 15365  	return c
 15366  }
 15367  
 15368  // Header returns a http.Header that can be modified by the caller to add
 15369  // headers to the request.
 15370  func (c *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall) Header() http.Header {
 15371  	if c.header_ == nil {
 15372  		c.header_ = make(http.Header)
 15373  	}
 15374  	return c.header_
 15375  }
 15376  
 15377  func (c *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
 15378  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15379  	var body io.Reader = nil
 15380  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
 15381  	if err != nil {
 15382  		return nil, err
 15383  	}
 15384  	c.urlParams_.Set("alt", alt)
 15385  	c.urlParams_.Set("prettyPrint", "false")
 15386  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions")
 15387  	urls += "?" + c.urlParams_.Encode()
 15388  	req, err := http.NewRequest("POST", urls, body)
 15389  	if err != nil {
 15390  		return nil, err
 15391  	}
 15392  	req.Header = reqHeaders
 15393  	googleapi.Expand(req.URL, map[string]string{
 15394  		"resource": c.resource,
 15395  	})
 15396  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15397  }
 15398  
 15399  // Do executes the "healthcare.projects.locations.datasets.dataMapperWorkspaces.testIamPermissions" call.
 15400  // Any non-2xx status code is an error. Response headers are in either
 15401  // *TestIamPermissionsResponse.ServerResponse.Header or (if a response was
 15402  // returned at all) in error.(*googleapi.Error).Header. Use
 15403  // googleapi.IsNotModified to check whether the returned error was because
 15404  // http.StatusNotModified was returned.
 15405  func (c *ProjectsLocationsDatasetsDataMapperWorkspacesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
 15406  	gensupport.SetOptions(c.urlParams_, opts...)
 15407  	res, err := c.doRequest("json")
 15408  	if res != nil && res.StatusCode == http.StatusNotModified {
 15409  		if res.Body != nil {
 15410  			res.Body.Close()
 15411  		}
 15412  		return nil, gensupport.WrapError(&googleapi.Error{
 15413  			Code:   res.StatusCode,
 15414  			Header: res.Header,
 15415  		})
 15416  	}
 15417  	if err != nil {
 15418  		return nil, err
 15419  	}
 15420  	defer googleapi.CloseBody(res)
 15421  	if err := googleapi.CheckResponse(res); err != nil {
 15422  		return nil, gensupport.WrapError(err)
 15423  	}
 15424  	ret := &TestIamPermissionsResponse{
 15425  		ServerResponse: googleapi.ServerResponse{
 15426  			Header:         res.Header,
 15427  			HTTPStatusCode: res.StatusCode,
 15428  		},
 15429  	}
 15430  	target := &ret
 15431  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15432  		return nil, err
 15433  	}
 15434  	return ret, nil
 15435  }
 15436  
 15437  type ProjectsLocationsDatasetsDicomStoresCreateCall struct {
 15438  	s          *Service
 15439  	parent     string
 15440  	dicomstore *DicomStore
 15441  	urlParams_ gensupport.URLParams
 15442  	ctx_       context.Context
 15443  	header_    http.Header
 15444  }
 15445  
 15446  // Create: Creates a new DICOM store within the parent dataset.
 15447  //
 15448  // - parent: The name of the dataset this DICOM store belongs to.
 15449  func (r *ProjectsLocationsDatasetsDicomStoresService) Create(parent string, dicomstore *DicomStore) *ProjectsLocationsDatasetsDicomStoresCreateCall {
 15450  	c := &ProjectsLocationsDatasetsDicomStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15451  	c.parent = parent
 15452  	c.dicomstore = dicomstore
 15453  	return c
 15454  }
 15455  
 15456  // DicomStoreId sets the optional parameter "dicomStoreId": Required. The ID of
 15457  // the DICOM store that is being created. Any string value up to 256 characters
 15458  // in length.
 15459  func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) DicomStoreId(dicomStoreId string) *ProjectsLocationsDatasetsDicomStoresCreateCall {
 15460  	c.urlParams_.Set("dicomStoreId", dicomStoreId)
 15461  	return c
 15462  }
 15463  
 15464  // Fields allows partial responses to be retrieved. See
 15465  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15466  // details.
 15467  func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresCreateCall {
 15468  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15469  	return c
 15470  }
 15471  
 15472  // Context sets the context to be used in this call's Do method.
 15473  func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresCreateCall {
 15474  	c.ctx_ = ctx
 15475  	return c
 15476  }
 15477  
 15478  // Header returns a http.Header that can be modified by the caller to add
 15479  // headers to the request.
 15480  func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) Header() http.Header {
 15481  	if c.header_ == nil {
 15482  		c.header_ = make(http.Header)
 15483  	}
 15484  	return c.header_
 15485  }
 15486  
 15487  func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) doRequest(alt string) (*http.Response, error) {
 15488  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15489  	var body io.Reader = nil
 15490  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.dicomstore)
 15491  	if err != nil {
 15492  		return nil, err
 15493  	}
 15494  	c.urlParams_.Set("alt", alt)
 15495  	c.urlParams_.Set("prettyPrint", "false")
 15496  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomStores")
 15497  	urls += "?" + c.urlParams_.Encode()
 15498  	req, err := http.NewRequest("POST", urls, body)
 15499  	if err != nil {
 15500  		return nil, err
 15501  	}
 15502  	req.Header = reqHeaders
 15503  	googleapi.Expand(req.URL, map[string]string{
 15504  		"parent": c.parent,
 15505  	})
 15506  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15507  }
 15508  
 15509  // Do executes the "healthcare.projects.locations.datasets.dicomStores.create" call.
 15510  // Any non-2xx status code is an error. Response headers are in either
 15511  // *DicomStore.ServerResponse.Header or (if a response was returned at all) in
 15512  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 15513  // whether the returned error was because http.StatusNotModified was returned.
 15514  func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) Do(opts ...googleapi.CallOption) (*DicomStore, error) {
 15515  	gensupport.SetOptions(c.urlParams_, opts...)
 15516  	res, err := c.doRequest("json")
 15517  	if res != nil && res.StatusCode == http.StatusNotModified {
 15518  		if res.Body != nil {
 15519  			res.Body.Close()
 15520  		}
 15521  		return nil, gensupport.WrapError(&googleapi.Error{
 15522  			Code:   res.StatusCode,
 15523  			Header: res.Header,
 15524  		})
 15525  	}
 15526  	if err != nil {
 15527  		return nil, err
 15528  	}
 15529  	defer googleapi.CloseBody(res)
 15530  	if err := googleapi.CheckResponse(res); err != nil {
 15531  		return nil, gensupport.WrapError(err)
 15532  	}
 15533  	ret := &DicomStore{
 15534  		ServerResponse: googleapi.ServerResponse{
 15535  			Header:         res.Header,
 15536  			HTTPStatusCode: res.StatusCode,
 15537  		},
 15538  	}
 15539  	target := &ret
 15540  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15541  		return nil, err
 15542  	}
 15543  	return ret, nil
 15544  }
 15545  
 15546  type ProjectsLocationsDatasetsDicomStoresDeidentifyCall struct {
 15547  	s                           *Service
 15548  	sourceStore                 string
 15549  	deidentifydicomstorerequest *DeidentifyDicomStoreRequest
 15550  	urlParams_                  gensupport.URLParams
 15551  	ctx_                        context.Context
 15552  	header_                     http.Header
 15553  }
 15554  
 15555  // Deidentify: De-identifies data from the source store and writes it to the
 15556  // destination store. The metadata field type is OperationMetadata. If the
 15557  // request is successful, the response field type is
 15558  // DeidentifyDicomStoreSummary. The LRO result may still be successful if
 15559  // de-identification fails for some DICOM instances. The output DICOM store
 15560  // will not contain these failed resources. The number of resources processed
 15561  // are tracked in Operation.metadata. Error details are logged to Cloud
 15562  // Logging. For more information, see Viewing error logs in Cloud Logging
 15563  // (https://cloud.google.com/healthcare/docs/how-tos/logging).
 15564  //
 15565  //   - sourceStore: Source DICOM store resource name. For example,
 15566  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS
 15567  //     tores/{dicom_store_id}`.
 15568  func (r *ProjectsLocationsDatasetsDicomStoresService) Deidentify(sourceStore string, deidentifydicomstorerequest *DeidentifyDicomStoreRequest) *ProjectsLocationsDatasetsDicomStoresDeidentifyCall {
 15569  	c := &ProjectsLocationsDatasetsDicomStoresDeidentifyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15570  	c.sourceStore = sourceStore
 15571  	c.deidentifydicomstorerequest = deidentifydicomstorerequest
 15572  	return c
 15573  }
 15574  
 15575  // Fields allows partial responses to be retrieved. See
 15576  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15577  // details.
 15578  func (c *ProjectsLocationsDatasetsDicomStoresDeidentifyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDeidentifyCall {
 15579  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15580  	return c
 15581  }
 15582  
 15583  // Context sets the context to be used in this call's Do method.
 15584  func (c *ProjectsLocationsDatasetsDicomStoresDeidentifyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDeidentifyCall {
 15585  	c.ctx_ = ctx
 15586  	return c
 15587  }
 15588  
 15589  // Header returns a http.Header that can be modified by the caller to add
 15590  // headers to the request.
 15591  func (c *ProjectsLocationsDatasetsDicomStoresDeidentifyCall) Header() http.Header {
 15592  	if c.header_ == nil {
 15593  		c.header_ = make(http.Header)
 15594  	}
 15595  	return c.header_
 15596  }
 15597  
 15598  func (c *ProjectsLocationsDatasetsDicomStoresDeidentifyCall) doRequest(alt string) (*http.Response, error) {
 15599  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15600  	var body io.Reader = nil
 15601  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.deidentifydicomstorerequest)
 15602  	if err != nil {
 15603  		return nil, err
 15604  	}
 15605  	c.urlParams_.Set("alt", alt)
 15606  	c.urlParams_.Set("prettyPrint", "false")
 15607  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+sourceStore}:deidentify")
 15608  	urls += "?" + c.urlParams_.Encode()
 15609  	req, err := http.NewRequest("POST", urls, body)
 15610  	if err != nil {
 15611  		return nil, err
 15612  	}
 15613  	req.Header = reqHeaders
 15614  	googleapi.Expand(req.URL, map[string]string{
 15615  		"sourceStore": c.sourceStore,
 15616  	})
 15617  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15618  }
 15619  
 15620  // Do executes the "healthcare.projects.locations.datasets.dicomStores.deidentify" call.
 15621  // Any non-2xx status code is an error. Response headers are in either
 15622  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 15623  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 15624  // whether the returned error was because http.StatusNotModified was returned.
 15625  func (c *ProjectsLocationsDatasetsDicomStoresDeidentifyCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 15626  	gensupport.SetOptions(c.urlParams_, opts...)
 15627  	res, err := c.doRequest("json")
 15628  	if res != nil && res.StatusCode == http.StatusNotModified {
 15629  		if res.Body != nil {
 15630  			res.Body.Close()
 15631  		}
 15632  		return nil, gensupport.WrapError(&googleapi.Error{
 15633  			Code:   res.StatusCode,
 15634  			Header: res.Header,
 15635  		})
 15636  	}
 15637  	if err != nil {
 15638  		return nil, err
 15639  	}
 15640  	defer googleapi.CloseBody(res)
 15641  	if err := googleapi.CheckResponse(res); err != nil {
 15642  		return nil, gensupport.WrapError(err)
 15643  	}
 15644  	ret := &Operation{
 15645  		ServerResponse: googleapi.ServerResponse{
 15646  			Header:         res.Header,
 15647  			HTTPStatusCode: res.StatusCode,
 15648  		},
 15649  	}
 15650  	target := &ret
 15651  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15652  		return nil, err
 15653  	}
 15654  	return ret, nil
 15655  }
 15656  
 15657  type ProjectsLocationsDatasetsDicomStoresDeleteCall struct {
 15658  	s          *Service
 15659  	name       string
 15660  	urlParams_ gensupport.URLParams
 15661  	ctx_       context.Context
 15662  	header_    http.Header
 15663  }
 15664  
 15665  // Delete: Deletes the specified DICOM store and removes all images that are
 15666  // contained within it.
 15667  //
 15668  // - name: The resource name of the DICOM store to delete.
 15669  func (r *ProjectsLocationsDatasetsDicomStoresService) Delete(name string) *ProjectsLocationsDatasetsDicomStoresDeleteCall {
 15670  	c := &ProjectsLocationsDatasetsDicomStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15671  	c.name = name
 15672  	return c
 15673  }
 15674  
 15675  // Fields allows partial responses to be retrieved. See
 15676  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15677  // details.
 15678  func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDeleteCall {
 15679  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15680  	return c
 15681  }
 15682  
 15683  // Context sets the context to be used in this call's Do method.
 15684  func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDeleteCall {
 15685  	c.ctx_ = ctx
 15686  	return c
 15687  }
 15688  
 15689  // Header returns a http.Header that can be modified by the caller to add
 15690  // headers to the request.
 15691  func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) Header() http.Header {
 15692  	if c.header_ == nil {
 15693  		c.header_ = make(http.Header)
 15694  	}
 15695  	return c.header_
 15696  }
 15697  
 15698  func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) doRequest(alt string) (*http.Response, error) {
 15699  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15700  	var body io.Reader = nil
 15701  	c.urlParams_.Set("alt", alt)
 15702  	c.urlParams_.Set("prettyPrint", "false")
 15703  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 15704  	urls += "?" + c.urlParams_.Encode()
 15705  	req, err := http.NewRequest("DELETE", urls, body)
 15706  	if err != nil {
 15707  		return nil, err
 15708  	}
 15709  	req.Header = reqHeaders
 15710  	googleapi.Expand(req.URL, map[string]string{
 15711  		"name": c.name,
 15712  	})
 15713  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15714  }
 15715  
 15716  // Do executes the "healthcare.projects.locations.datasets.dicomStores.delete" call.
 15717  // Any non-2xx status code is an error. Response headers are in either
 15718  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 15719  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 15720  // whether the returned error was because http.StatusNotModified was returned.
 15721  func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 15722  	gensupport.SetOptions(c.urlParams_, opts...)
 15723  	res, err := c.doRequest("json")
 15724  	if res != nil && res.StatusCode == http.StatusNotModified {
 15725  		if res.Body != nil {
 15726  			res.Body.Close()
 15727  		}
 15728  		return nil, gensupport.WrapError(&googleapi.Error{
 15729  			Code:   res.StatusCode,
 15730  			Header: res.Header,
 15731  		})
 15732  	}
 15733  	if err != nil {
 15734  		return nil, err
 15735  	}
 15736  	defer googleapi.CloseBody(res)
 15737  	if err := googleapi.CheckResponse(res); err != nil {
 15738  		return nil, gensupport.WrapError(err)
 15739  	}
 15740  	ret := &Empty{
 15741  		ServerResponse: googleapi.ServerResponse{
 15742  			Header:         res.Header,
 15743  			HTTPStatusCode: res.StatusCode,
 15744  		},
 15745  	}
 15746  	target := &ret
 15747  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15748  		return nil, err
 15749  	}
 15750  	return ret, nil
 15751  }
 15752  
 15753  type ProjectsLocationsDatasetsDicomStoresExportCall struct {
 15754  	s                      *Service
 15755  	name                   string
 15756  	exportdicomdatarequest *ExportDicomDataRequest
 15757  	urlParams_             gensupport.URLParams
 15758  	ctx_                   context.Context
 15759  	header_                http.Header
 15760  }
 15761  
 15762  // Export: Exports data to the specified destination by copying it from the
 15763  // DICOM store. Errors are also logged to Cloud Logging. For more information,
 15764  // see Viewing errors in Cloud Logging
 15765  // (https://cloud.google.com/healthcare/docs/how-tos/logging). The metadata
 15766  // field type is OperationMetadata.
 15767  //
 15768  //   - name: The DICOM store resource name from which to export the data. For
 15769  //     example,
 15770  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS
 15771  //     tores/{dicom_store_id}`.
 15772  func (r *ProjectsLocationsDatasetsDicomStoresService) Export(name string, exportdicomdatarequest *ExportDicomDataRequest) *ProjectsLocationsDatasetsDicomStoresExportCall {
 15773  	c := &ProjectsLocationsDatasetsDicomStoresExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15774  	c.name = name
 15775  	c.exportdicomdatarequest = exportdicomdatarequest
 15776  	return c
 15777  }
 15778  
 15779  // Fields allows partial responses to be retrieved. See
 15780  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15781  // details.
 15782  func (c *ProjectsLocationsDatasetsDicomStoresExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresExportCall {
 15783  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15784  	return c
 15785  }
 15786  
 15787  // Context sets the context to be used in this call's Do method.
 15788  func (c *ProjectsLocationsDatasetsDicomStoresExportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresExportCall {
 15789  	c.ctx_ = ctx
 15790  	return c
 15791  }
 15792  
 15793  // Header returns a http.Header that can be modified by the caller to add
 15794  // headers to the request.
 15795  func (c *ProjectsLocationsDatasetsDicomStoresExportCall) Header() http.Header {
 15796  	if c.header_ == nil {
 15797  		c.header_ = make(http.Header)
 15798  	}
 15799  	return c.header_
 15800  }
 15801  
 15802  func (c *ProjectsLocationsDatasetsDicomStoresExportCall) doRequest(alt string) (*http.Response, error) {
 15803  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15804  	var body io.Reader = nil
 15805  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.exportdicomdatarequest)
 15806  	if err != nil {
 15807  		return nil, err
 15808  	}
 15809  	c.urlParams_.Set("alt", alt)
 15810  	c.urlParams_.Set("prettyPrint", "false")
 15811  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:export")
 15812  	urls += "?" + c.urlParams_.Encode()
 15813  	req, err := http.NewRequest("POST", urls, body)
 15814  	if err != nil {
 15815  		return nil, err
 15816  	}
 15817  	req.Header = reqHeaders
 15818  	googleapi.Expand(req.URL, map[string]string{
 15819  		"name": c.name,
 15820  	})
 15821  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15822  }
 15823  
 15824  // Do executes the "healthcare.projects.locations.datasets.dicomStores.export" call.
 15825  // Any non-2xx status code is an error. Response headers are in either
 15826  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 15827  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 15828  // whether the returned error was because http.StatusNotModified was returned.
 15829  func (c *ProjectsLocationsDatasetsDicomStoresExportCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 15830  	gensupport.SetOptions(c.urlParams_, opts...)
 15831  	res, err := c.doRequest("json")
 15832  	if res != nil && res.StatusCode == http.StatusNotModified {
 15833  		if res.Body != nil {
 15834  			res.Body.Close()
 15835  		}
 15836  		return nil, gensupport.WrapError(&googleapi.Error{
 15837  			Code:   res.StatusCode,
 15838  			Header: res.Header,
 15839  		})
 15840  	}
 15841  	if err != nil {
 15842  		return nil, err
 15843  	}
 15844  	defer googleapi.CloseBody(res)
 15845  	if err := googleapi.CheckResponse(res); err != nil {
 15846  		return nil, gensupport.WrapError(err)
 15847  	}
 15848  	ret := &Operation{
 15849  		ServerResponse: googleapi.ServerResponse{
 15850  			Header:         res.Header,
 15851  			HTTPStatusCode: res.StatusCode,
 15852  		},
 15853  	}
 15854  	target := &ret
 15855  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15856  		return nil, err
 15857  	}
 15858  	return ret, nil
 15859  }
 15860  
 15861  type ProjectsLocationsDatasetsDicomStoresGetCall struct {
 15862  	s            *Service
 15863  	name         string
 15864  	urlParams_   gensupport.URLParams
 15865  	ifNoneMatch_ string
 15866  	ctx_         context.Context
 15867  	header_      http.Header
 15868  }
 15869  
 15870  // Get: Gets the specified DICOM store.
 15871  //
 15872  // - name: The resource name of the DICOM store to get.
 15873  func (r *ProjectsLocationsDatasetsDicomStoresService) Get(name string) *ProjectsLocationsDatasetsDicomStoresGetCall {
 15874  	c := &ProjectsLocationsDatasetsDicomStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15875  	c.name = name
 15876  	return c
 15877  }
 15878  
 15879  // Fields allows partial responses to be retrieved. See
 15880  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15881  // details.
 15882  func (c *ProjectsLocationsDatasetsDicomStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresGetCall {
 15883  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15884  	return c
 15885  }
 15886  
 15887  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15888  // object's ETag matches the given value. This is useful for getting updates
 15889  // only after the object has changed since the last request.
 15890  func (c *ProjectsLocationsDatasetsDicomStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresGetCall {
 15891  	c.ifNoneMatch_ = entityTag
 15892  	return c
 15893  }
 15894  
 15895  // Context sets the context to be used in this call's Do method.
 15896  func (c *ProjectsLocationsDatasetsDicomStoresGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresGetCall {
 15897  	c.ctx_ = ctx
 15898  	return c
 15899  }
 15900  
 15901  // Header returns a http.Header that can be modified by the caller to add
 15902  // headers to the request.
 15903  func (c *ProjectsLocationsDatasetsDicomStoresGetCall) Header() http.Header {
 15904  	if c.header_ == nil {
 15905  		c.header_ = make(http.Header)
 15906  	}
 15907  	return c.header_
 15908  }
 15909  
 15910  func (c *ProjectsLocationsDatasetsDicomStoresGetCall) doRequest(alt string) (*http.Response, error) {
 15911  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15912  	if c.ifNoneMatch_ != "" {
 15913  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15914  	}
 15915  	var body io.Reader = nil
 15916  	c.urlParams_.Set("alt", alt)
 15917  	c.urlParams_.Set("prettyPrint", "false")
 15918  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 15919  	urls += "?" + c.urlParams_.Encode()
 15920  	req, err := http.NewRequest("GET", urls, body)
 15921  	if err != nil {
 15922  		return nil, err
 15923  	}
 15924  	req.Header = reqHeaders
 15925  	googleapi.Expand(req.URL, map[string]string{
 15926  		"name": c.name,
 15927  	})
 15928  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15929  }
 15930  
 15931  // Do executes the "healthcare.projects.locations.datasets.dicomStores.get" call.
 15932  // Any non-2xx status code is an error. Response headers are in either
 15933  // *DicomStore.ServerResponse.Header or (if a response was returned at all) in
 15934  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 15935  // whether the returned error was because http.StatusNotModified was returned.
 15936  func (c *ProjectsLocationsDatasetsDicomStoresGetCall) Do(opts ...googleapi.CallOption) (*DicomStore, error) {
 15937  	gensupport.SetOptions(c.urlParams_, opts...)
 15938  	res, err := c.doRequest("json")
 15939  	if res != nil && res.StatusCode == http.StatusNotModified {
 15940  		if res.Body != nil {
 15941  			res.Body.Close()
 15942  		}
 15943  		return nil, gensupport.WrapError(&googleapi.Error{
 15944  			Code:   res.StatusCode,
 15945  			Header: res.Header,
 15946  		})
 15947  	}
 15948  	if err != nil {
 15949  		return nil, err
 15950  	}
 15951  	defer googleapi.CloseBody(res)
 15952  	if err := googleapi.CheckResponse(res); err != nil {
 15953  		return nil, gensupport.WrapError(err)
 15954  	}
 15955  	ret := &DicomStore{
 15956  		ServerResponse: googleapi.ServerResponse{
 15957  			Header:         res.Header,
 15958  			HTTPStatusCode: res.StatusCode,
 15959  		},
 15960  	}
 15961  	target := &ret
 15962  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15963  		return nil, err
 15964  	}
 15965  	return ret, nil
 15966  }
 15967  
 15968  type ProjectsLocationsDatasetsDicomStoresGetDICOMStoreMetricsCall struct {
 15969  	s            *Service
 15970  	name         string
 15971  	urlParams_   gensupport.URLParams
 15972  	ifNoneMatch_ string
 15973  	ctx_         context.Context
 15974  	header_      http.Header
 15975  }
 15976  
 15977  // GetDICOMStoreMetrics: Gets metrics associated with the DICOM store.
 15978  //
 15979  // - name: The resource name of the DICOM store to get metrics for.
 15980  func (r *ProjectsLocationsDatasetsDicomStoresService) GetDICOMStoreMetrics(name string) *ProjectsLocationsDatasetsDicomStoresGetDICOMStoreMetricsCall {
 15981  	c := &ProjectsLocationsDatasetsDicomStoresGetDICOMStoreMetricsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15982  	c.name = name
 15983  	return c
 15984  }
 15985  
 15986  // Fields allows partial responses to be retrieved. See
 15987  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15988  // details.
 15989  func (c *ProjectsLocationsDatasetsDicomStoresGetDICOMStoreMetricsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresGetDICOMStoreMetricsCall {
 15990  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15991  	return c
 15992  }
 15993  
 15994  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15995  // object's ETag matches the given value. This is useful for getting updates
 15996  // only after the object has changed since the last request.
 15997  func (c *ProjectsLocationsDatasetsDicomStoresGetDICOMStoreMetricsCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresGetDICOMStoreMetricsCall {
 15998  	c.ifNoneMatch_ = entityTag
 15999  	return c
 16000  }
 16001  
 16002  // Context sets the context to be used in this call's Do method.
 16003  func (c *ProjectsLocationsDatasetsDicomStoresGetDICOMStoreMetricsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresGetDICOMStoreMetricsCall {
 16004  	c.ctx_ = ctx
 16005  	return c
 16006  }
 16007  
 16008  // Header returns a http.Header that can be modified by the caller to add
 16009  // headers to the request.
 16010  func (c *ProjectsLocationsDatasetsDicomStoresGetDICOMStoreMetricsCall) Header() http.Header {
 16011  	if c.header_ == nil {
 16012  		c.header_ = make(http.Header)
 16013  	}
 16014  	return c.header_
 16015  }
 16016  
 16017  func (c *ProjectsLocationsDatasetsDicomStoresGetDICOMStoreMetricsCall) doRequest(alt string) (*http.Response, error) {
 16018  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16019  	if c.ifNoneMatch_ != "" {
 16020  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16021  	}
 16022  	var body io.Reader = nil
 16023  	c.urlParams_.Set("alt", alt)
 16024  	c.urlParams_.Set("prettyPrint", "false")
 16025  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:getDICOMStoreMetrics")
 16026  	urls += "?" + c.urlParams_.Encode()
 16027  	req, err := http.NewRequest("GET", urls, body)
 16028  	if err != nil {
 16029  		return nil, err
 16030  	}
 16031  	req.Header = reqHeaders
 16032  	googleapi.Expand(req.URL, map[string]string{
 16033  		"name": c.name,
 16034  	})
 16035  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16036  }
 16037  
 16038  // Do executes the "healthcare.projects.locations.datasets.dicomStores.getDICOMStoreMetrics" call.
 16039  // Any non-2xx status code is an error. Response headers are in either
 16040  // *DicomStoreMetrics.ServerResponse.Header or (if a response was returned at
 16041  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 16042  // check whether the returned error was because http.StatusNotModified was
 16043  // returned.
 16044  func (c *ProjectsLocationsDatasetsDicomStoresGetDICOMStoreMetricsCall) Do(opts ...googleapi.CallOption) (*DicomStoreMetrics, error) {
 16045  	gensupport.SetOptions(c.urlParams_, opts...)
 16046  	res, err := c.doRequest("json")
 16047  	if res != nil && res.StatusCode == http.StatusNotModified {
 16048  		if res.Body != nil {
 16049  			res.Body.Close()
 16050  		}
 16051  		return nil, gensupport.WrapError(&googleapi.Error{
 16052  			Code:   res.StatusCode,
 16053  			Header: res.Header,
 16054  		})
 16055  	}
 16056  	if err != nil {
 16057  		return nil, err
 16058  	}
 16059  	defer googleapi.CloseBody(res)
 16060  	if err := googleapi.CheckResponse(res); err != nil {
 16061  		return nil, gensupport.WrapError(err)
 16062  	}
 16063  	ret := &DicomStoreMetrics{
 16064  		ServerResponse: googleapi.ServerResponse{
 16065  			Header:         res.Header,
 16066  			HTTPStatusCode: res.StatusCode,
 16067  		},
 16068  	}
 16069  	target := &ret
 16070  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16071  		return nil, err
 16072  	}
 16073  	return ret, nil
 16074  }
 16075  
 16076  type ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall struct {
 16077  	s            *Service
 16078  	resource     string
 16079  	urlParams_   gensupport.URLParams
 16080  	ifNoneMatch_ string
 16081  	ctx_         context.Context
 16082  	header_      http.Header
 16083  }
 16084  
 16085  // GetIamPolicy: Gets the access control policy for a resource. Returns an
 16086  // empty policy if the resource exists and does not have a policy set.
 16087  //
 16088  //   - resource: REQUIRED: The resource for which the policy is being requested.
 16089  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 16090  //     for the appropriate value for this field.
 16091  func (r *ProjectsLocationsDatasetsDicomStoresService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall {
 16092  	c := &ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16093  	c.resource = resource
 16094  	return c
 16095  }
 16096  
 16097  // OptionsRequestedPolicyVersion sets the optional parameter
 16098  // "options.requestedPolicyVersion": The maximum policy version that will be
 16099  // used to format the policy. Valid values are 0, 1, and 3. Requests specifying
 16100  // an invalid value will be rejected. Requests for policies with any
 16101  // conditional role bindings must specify version 3. Policies with no
 16102  // conditional role bindings may specify any valid value or leave the field
 16103  // unset. The policy in the response might use the policy version that you
 16104  // specified, or it might use a lower policy version. For example, if you
 16105  // specify version 3, but the policy has no conditional role bindings, the
 16106  // response uses version 1. To learn which resources support conditions in
 16107  // their IAM policies, see the IAM documentation
 16108  // (https://cloud.google.com/iam/help/conditions/resource-policies).
 16109  func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall {
 16110  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
 16111  	return c
 16112  }
 16113  
 16114  // Fields allows partial responses to be retrieved. See
 16115  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16116  // details.
 16117  func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall {
 16118  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16119  	return c
 16120  }
 16121  
 16122  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16123  // object's ETag matches the given value. This is useful for getting updates
 16124  // only after the object has changed since the last request.
 16125  func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall {
 16126  	c.ifNoneMatch_ = entityTag
 16127  	return c
 16128  }
 16129  
 16130  // Context sets the context to be used in this call's Do method.
 16131  func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall {
 16132  	c.ctx_ = ctx
 16133  	return c
 16134  }
 16135  
 16136  // Header returns a http.Header that can be modified by the caller to add
 16137  // headers to the request.
 16138  func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Header() http.Header {
 16139  	if c.header_ == nil {
 16140  		c.header_ = make(http.Header)
 16141  	}
 16142  	return c.header_
 16143  }
 16144  
 16145  func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 16146  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16147  	if c.ifNoneMatch_ != "" {
 16148  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16149  	}
 16150  	var body io.Reader = nil
 16151  	c.urlParams_.Set("alt", alt)
 16152  	c.urlParams_.Set("prettyPrint", "false")
 16153  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy")
 16154  	urls += "?" + c.urlParams_.Encode()
 16155  	req, err := http.NewRequest("GET", urls, body)
 16156  	if err != nil {
 16157  		return nil, err
 16158  	}
 16159  	req.Header = reqHeaders
 16160  	googleapi.Expand(req.URL, map[string]string{
 16161  		"resource": c.resource,
 16162  	})
 16163  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16164  }
 16165  
 16166  // Do executes the "healthcare.projects.locations.datasets.dicomStores.getIamPolicy" call.
 16167  // Any non-2xx status code is an error. Response headers are in either
 16168  // *Policy.ServerResponse.Header or (if a response was returned at all) in
 16169  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 16170  // whether the returned error was because http.StatusNotModified was returned.
 16171  func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
 16172  	gensupport.SetOptions(c.urlParams_, opts...)
 16173  	res, err := c.doRequest("json")
 16174  	if res != nil && res.StatusCode == http.StatusNotModified {
 16175  		if res.Body != nil {
 16176  			res.Body.Close()
 16177  		}
 16178  		return nil, gensupport.WrapError(&googleapi.Error{
 16179  			Code:   res.StatusCode,
 16180  			Header: res.Header,
 16181  		})
 16182  	}
 16183  	if err != nil {
 16184  		return nil, err
 16185  	}
 16186  	defer googleapi.CloseBody(res)
 16187  	if err := googleapi.CheckResponse(res); err != nil {
 16188  		return nil, gensupport.WrapError(err)
 16189  	}
 16190  	ret := &Policy{
 16191  		ServerResponse: googleapi.ServerResponse{
 16192  			Header:         res.Header,
 16193  			HTTPStatusCode: res.StatusCode,
 16194  		},
 16195  	}
 16196  	target := &ret
 16197  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16198  		return nil, err
 16199  	}
 16200  	return ret, nil
 16201  }
 16202  
 16203  type ProjectsLocationsDatasetsDicomStoresImportCall struct {
 16204  	s                      *Service
 16205  	name                   string
 16206  	importdicomdatarequest *ImportDicomDataRequest
 16207  	urlParams_             gensupport.URLParams
 16208  	ctx_                   context.Context
 16209  	header_                http.Header
 16210  }
 16211  
 16212  // Import: Imports data into the DICOM store by copying it from the specified
 16213  // source. Errors are logged to Cloud Logging. For more information, see
 16214  // Viewing error logs in Cloud Logging
 16215  // (https://cloud.google.com/healthcare/docs/how-tos/logging). The metadata
 16216  // field type is OperationMetadata.
 16217  //
 16218  //   - name: The name of the DICOM store resource into which the data is
 16219  //     imported. For example,
 16220  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS
 16221  //     tores/{dicom_store_id}`.
 16222  func (r *ProjectsLocationsDatasetsDicomStoresService) Import(name string, importdicomdatarequest *ImportDicomDataRequest) *ProjectsLocationsDatasetsDicomStoresImportCall {
 16223  	c := &ProjectsLocationsDatasetsDicomStoresImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16224  	c.name = name
 16225  	c.importdicomdatarequest = importdicomdatarequest
 16226  	return c
 16227  }
 16228  
 16229  // Fields allows partial responses to be retrieved. See
 16230  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16231  // details.
 16232  func (c *ProjectsLocationsDatasetsDicomStoresImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresImportCall {
 16233  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16234  	return c
 16235  }
 16236  
 16237  // Context sets the context to be used in this call's Do method.
 16238  func (c *ProjectsLocationsDatasetsDicomStoresImportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresImportCall {
 16239  	c.ctx_ = ctx
 16240  	return c
 16241  }
 16242  
 16243  // Header returns a http.Header that can be modified by the caller to add
 16244  // headers to the request.
 16245  func (c *ProjectsLocationsDatasetsDicomStoresImportCall) Header() http.Header {
 16246  	if c.header_ == nil {
 16247  		c.header_ = make(http.Header)
 16248  	}
 16249  	return c.header_
 16250  }
 16251  
 16252  func (c *ProjectsLocationsDatasetsDicomStoresImportCall) doRequest(alt string) (*http.Response, error) {
 16253  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16254  	var body io.Reader = nil
 16255  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.importdicomdatarequest)
 16256  	if err != nil {
 16257  		return nil, err
 16258  	}
 16259  	c.urlParams_.Set("alt", alt)
 16260  	c.urlParams_.Set("prettyPrint", "false")
 16261  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:import")
 16262  	urls += "?" + c.urlParams_.Encode()
 16263  	req, err := http.NewRequest("POST", urls, body)
 16264  	if err != nil {
 16265  		return nil, err
 16266  	}
 16267  	req.Header = reqHeaders
 16268  	googleapi.Expand(req.URL, map[string]string{
 16269  		"name": c.name,
 16270  	})
 16271  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16272  }
 16273  
 16274  // Do executes the "healthcare.projects.locations.datasets.dicomStores.import" call.
 16275  // Any non-2xx status code is an error. Response headers are in either
 16276  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 16277  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 16278  // whether the returned error was because http.StatusNotModified was returned.
 16279  func (c *ProjectsLocationsDatasetsDicomStoresImportCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 16280  	gensupport.SetOptions(c.urlParams_, opts...)
 16281  	res, err := c.doRequest("json")
 16282  	if res != nil && res.StatusCode == http.StatusNotModified {
 16283  		if res.Body != nil {
 16284  			res.Body.Close()
 16285  		}
 16286  		return nil, gensupport.WrapError(&googleapi.Error{
 16287  			Code:   res.StatusCode,
 16288  			Header: res.Header,
 16289  		})
 16290  	}
 16291  	if err != nil {
 16292  		return nil, err
 16293  	}
 16294  	defer googleapi.CloseBody(res)
 16295  	if err := googleapi.CheckResponse(res); err != nil {
 16296  		return nil, gensupport.WrapError(err)
 16297  	}
 16298  	ret := &Operation{
 16299  		ServerResponse: googleapi.ServerResponse{
 16300  			Header:         res.Header,
 16301  			HTTPStatusCode: res.StatusCode,
 16302  		},
 16303  	}
 16304  	target := &ret
 16305  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16306  		return nil, err
 16307  	}
 16308  	return ret, nil
 16309  }
 16310  
 16311  type ProjectsLocationsDatasetsDicomStoresListCall struct {
 16312  	s            *Service
 16313  	parent       string
 16314  	urlParams_   gensupport.URLParams
 16315  	ifNoneMatch_ string
 16316  	ctx_         context.Context
 16317  	header_      http.Header
 16318  }
 16319  
 16320  // List: Lists the DICOM stores in the given dataset.
 16321  //
 16322  // - parent: Name of the dataset.
 16323  func (r *ProjectsLocationsDatasetsDicomStoresService) List(parent string) *ProjectsLocationsDatasetsDicomStoresListCall {
 16324  	c := &ProjectsLocationsDatasetsDicomStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16325  	c.parent = parent
 16326  	return c
 16327  }
 16328  
 16329  // Filter sets the optional parameter "filter": Restricts stores returned to
 16330  // those matching a filter. The following syntax is available: * A string field
 16331  // value can be written as text inside quotation marks, for example "query
 16332  // text". The only valid relational operation for text fields is equality
 16333  // (`=`), where text is searched within the field, rather than having the field
 16334  // be equal to the text. For example, "Comment = great" returns messages with
 16335  // `great` in the comment field. * A number field value can be written as an
 16336  // integer, a decimal, or an exponential. The valid relational operators for
 16337  // number fields are the equality operator (`=`), along with the less
 16338  // than/greater than operators (`<`, `<=`, `>`, `>=`). Note that there is no
 16339  // inequality (`!=`) operator. You can prepend the `NOT` operator to an
 16340  // expression to negate it. * A date field value must be written in
 16341  // `yyyy-mm-dd` form. Fields with date and time use the RFC3339 time format.
 16342  // Leading zeros are required for one-digit months and days. The valid
 16343  // relational operators for date fields are the equality operator (`=`) , along
 16344  // with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note that
 16345  // there is no inequality (`!=`) operator. You can prepend the `NOT` operator
 16346  // to an expression to negate it. * Multiple field query expressions can be
 16347  // combined in one query by adding `AND` or `OR` operators between the
 16348  // expressions. If a boolean operator appears within a quoted string, it is not
 16349  // treated as special, it's just another part of the character string to be
 16350  // matched. You can prepend the `NOT` operator to an expression to negate it.
 16351  // Only filtering on labels is supported. For example, `labels.key=value`.
 16352  func (c *ProjectsLocationsDatasetsDicomStoresListCall) Filter(filter string) *ProjectsLocationsDatasetsDicomStoresListCall {
 16353  	c.urlParams_.Set("filter", filter)
 16354  	return c
 16355  }
 16356  
 16357  // PageSize sets the optional parameter "pageSize": Limit on the number of
 16358  // DICOM stores to return in a single response. If not specified, 100 is used.
 16359  // May not be larger than 1000.
 16360  func (c *ProjectsLocationsDatasetsDicomStoresListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsDicomStoresListCall {
 16361  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 16362  	return c
 16363  }
 16364  
 16365  // PageToken sets the optional parameter "pageToken": The next_page_token value
 16366  // returned from the previous List request, if any.
 16367  func (c *ProjectsLocationsDatasetsDicomStoresListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsDicomStoresListCall {
 16368  	c.urlParams_.Set("pageToken", pageToken)
 16369  	return c
 16370  }
 16371  
 16372  // Fields allows partial responses to be retrieved. See
 16373  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16374  // details.
 16375  func (c *ProjectsLocationsDatasetsDicomStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresListCall {
 16376  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16377  	return c
 16378  }
 16379  
 16380  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16381  // object's ETag matches the given value. This is useful for getting updates
 16382  // only after the object has changed since the last request.
 16383  func (c *ProjectsLocationsDatasetsDicomStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresListCall {
 16384  	c.ifNoneMatch_ = entityTag
 16385  	return c
 16386  }
 16387  
 16388  // Context sets the context to be used in this call's Do method.
 16389  func (c *ProjectsLocationsDatasetsDicomStoresListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresListCall {
 16390  	c.ctx_ = ctx
 16391  	return c
 16392  }
 16393  
 16394  // Header returns a http.Header that can be modified by the caller to add
 16395  // headers to the request.
 16396  func (c *ProjectsLocationsDatasetsDicomStoresListCall) Header() http.Header {
 16397  	if c.header_ == nil {
 16398  		c.header_ = make(http.Header)
 16399  	}
 16400  	return c.header_
 16401  }
 16402  
 16403  func (c *ProjectsLocationsDatasetsDicomStoresListCall) doRequest(alt string) (*http.Response, error) {
 16404  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16405  	if c.ifNoneMatch_ != "" {
 16406  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16407  	}
 16408  	var body io.Reader = nil
 16409  	c.urlParams_.Set("alt", alt)
 16410  	c.urlParams_.Set("prettyPrint", "false")
 16411  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomStores")
 16412  	urls += "?" + c.urlParams_.Encode()
 16413  	req, err := http.NewRequest("GET", urls, body)
 16414  	if err != nil {
 16415  		return nil, err
 16416  	}
 16417  	req.Header = reqHeaders
 16418  	googleapi.Expand(req.URL, map[string]string{
 16419  		"parent": c.parent,
 16420  	})
 16421  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16422  }
 16423  
 16424  // Do executes the "healthcare.projects.locations.datasets.dicomStores.list" call.
 16425  // Any non-2xx status code is an error. Response headers are in either
 16426  // *ListDicomStoresResponse.ServerResponse.Header or (if a response was
 16427  // returned at all) in error.(*googleapi.Error).Header. Use
 16428  // googleapi.IsNotModified to check whether the returned error was because
 16429  // http.StatusNotModified was returned.
 16430  func (c *ProjectsLocationsDatasetsDicomStoresListCall) Do(opts ...googleapi.CallOption) (*ListDicomStoresResponse, error) {
 16431  	gensupport.SetOptions(c.urlParams_, opts...)
 16432  	res, err := c.doRequest("json")
 16433  	if res != nil && res.StatusCode == http.StatusNotModified {
 16434  		if res.Body != nil {
 16435  			res.Body.Close()
 16436  		}
 16437  		return nil, gensupport.WrapError(&googleapi.Error{
 16438  			Code:   res.StatusCode,
 16439  			Header: res.Header,
 16440  		})
 16441  	}
 16442  	if err != nil {
 16443  		return nil, err
 16444  	}
 16445  	defer googleapi.CloseBody(res)
 16446  	if err := googleapi.CheckResponse(res); err != nil {
 16447  		return nil, gensupport.WrapError(err)
 16448  	}
 16449  	ret := &ListDicomStoresResponse{
 16450  		ServerResponse: googleapi.ServerResponse{
 16451  			Header:         res.Header,
 16452  			HTTPStatusCode: res.StatusCode,
 16453  		},
 16454  	}
 16455  	target := &ret
 16456  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16457  		return nil, err
 16458  	}
 16459  	return ret, nil
 16460  }
 16461  
 16462  // Pages invokes f for each page of results.
 16463  // A non-nil error returned from f will halt the iteration.
 16464  // The provided context supersedes any context provided to the Context method.
 16465  func (c *ProjectsLocationsDatasetsDicomStoresListCall) Pages(ctx context.Context, f func(*ListDicomStoresResponse) error) error {
 16466  	c.ctx_ = ctx
 16467  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 16468  	for {
 16469  		x, err := c.Do()
 16470  		if err != nil {
 16471  			return err
 16472  		}
 16473  		if err := f(x); err != nil {
 16474  			return err
 16475  		}
 16476  		if x.NextPageToken == "" {
 16477  			return nil
 16478  		}
 16479  		c.PageToken(x.NextPageToken)
 16480  	}
 16481  }
 16482  
 16483  type ProjectsLocationsDatasetsDicomStoresPatchCall struct {
 16484  	s          *Service
 16485  	name       string
 16486  	dicomstore *DicomStore
 16487  	urlParams_ gensupport.URLParams
 16488  	ctx_       context.Context
 16489  	header_    http.Header
 16490  }
 16491  
 16492  // Patch: Updates the specified DICOM store.
 16493  //
 16494  //   - name: Identifier. Resource name of the DICOM store, of the form
 16495  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS
 16496  //     tores/{dicom_store_id}`.
 16497  func (r *ProjectsLocationsDatasetsDicomStoresService) Patch(name string, dicomstore *DicomStore) *ProjectsLocationsDatasetsDicomStoresPatchCall {
 16498  	c := &ProjectsLocationsDatasetsDicomStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16499  	c.name = name
 16500  	c.dicomstore = dicomstore
 16501  	return c
 16502  }
 16503  
 16504  // UpdateMask sets the optional parameter "updateMask": The update mask applies
 16505  // to the resource. For the `FieldMask` definition, see
 16506  // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
 16507  func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsDicomStoresPatchCall {
 16508  	c.urlParams_.Set("updateMask", updateMask)
 16509  	return c
 16510  }
 16511  
 16512  // Fields allows partial responses to be retrieved. See
 16513  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16514  // details.
 16515  func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresPatchCall {
 16516  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16517  	return c
 16518  }
 16519  
 16520  // Context sets the context to be used in this call's Do method.
 16521  func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresPatchCall {
 16522  	c.ctx_ = ctx
 16523  	return c
 16524  }
 16525  
 16526  // Header returns a http.Header that can be modified by the caller to add
 16527  // headers to the request.
 16528  func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) Header() http.Header {
 16529  	if c.header_ == nil {
 16530  		c.header_ = make(http.Header)
 16531  	}
 16532  	return c.header_
 16533  }
 16534  
 16535  func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) doRequest(alt string) (*http.Response, error) {
 16536  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16537  	var body io.Reader = nil
 16538  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.dicomstore)
 16539  	if err != nil {
 16540  		return nil, err
 16541  	}
 16542  	c.urlParams_.Set("alt", alt)
 16543  	c.urlParams_.Set("prettyPrint", "false")
 16544  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 16545  	urls += "?" + c.urlParams_.Encode()
 16546  	req, err := http.NewRequest("PATCH", urls, body)
 16547  	if err != nil {
 16548  		return nil, err
 16549  	}
 16550  	req.Header = reqHeaders
 16551  	googleapi.Expand(req.URL, map[string]string{
 16552  		"name": c.name,
 16553  	})
 16554  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16555  }
 16556  
 16557  // Do executes the "healthcare.projects.locations.datasets.dicomStores.patch" call.
 16558  // Any non-2xx status code is an error. Response headers are in either
 16559  // *DicomStore.ServerResponse.Header or (if a response was returned at all) in
 16560  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 16561  // whether the returned error was because http.StatusNotModified was returned.
 16562  func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) Do(opts ...googleapi.CallOption) (*DicomStore, error) {
 16563  	gensupport.SetOptions(c.urlParams_, opts...)
 16564  	res, err := c.doRequest("json")
 16565  	if res != nil && res.StatusCode == http.StatusNotModified {
 16566  		if res.Body != nil {
 16567  			res.Body.Close()
 16568  		}
 16569  		return nil, gensupport.WrapError(&googleapi.Error{
 16570  			Code:   res.StatusCode,
 16571  			Header: res.Header,
 16572  		})
 16573  	}
 16574  	if err != nil {
 16575  		return nil, err
 16576  	}
 16577  	defer googleapi.CloseBody(res)
 16578  	if err := googleapi.CheckResponse(res); err != nil {
 16579  		return nil, gensupport.WrapError(err)
 16580  	}
 16581  	ret := &DicomStore{
 16582  		ServerResponse: googleapi.ServerResponse{
 16583  			Header:         res.Header,
 16584  			HTTPStatusCode: res.StatusCode,
 16585  		},
 16586  	}
 16587  	target := &ret
 16588  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16589  		return nil, err
 16590  	}
 16591  	return ret, nil
 16592  }
 16593  
 16594  type ProjectsLocationsDatasetsDicomStoresSearchForInstancesCall struct {
 16595  	s            *Service
 16596  	parent       string
 16597  	dicomWebPath string
 16598  	urlParams_   gensupport.URLParams
 16599  	ifNoneMatch_ string
 16600  	ctx_         context.Context
 16601  	header_      http.Header
 16602  }
 16603  
 16604  // SearchForInstances: SearchForInstances returns a list of matching instances.
 16605  // See RetrieveTransaction
 16606  // (http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4).
 16607  // For details on the implementation of SearchForInstances, see Search
 16608  // transaction
 16609  // (https://cloud.google.com/healthcare/docs/dicom#search_transaction) in the
 16610  // Cloud Healthcare API conformance statement. For samples that show how to
 16611  // call SearchForInstances, see Search for DICOM data
 16612  // (https://cloud.google.com/healthcare/docs/how-tos/dicomweb#search-dicom).
 16613  //
 16614  //   - dicomWebPath: The path of the SearchForInstancesRequest DICOMweb request.
 16615  //     For example, `instances`, `series/{series_uid}/instances`, or
 16616  //     `studies/{study_uid}/instances`.
 16617  //   - parent: The name of the DICOM store that is being accessed. For example,
 16618  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS
 16619  //     tores/{dicom_store_id}`.
 16620  func (r *ProjectsLocationsDatasetsDicomStoresService) SearchForInstances(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresSearchForInstancesCall {
 16621  	c := &ProjectsLocationsDatasetsDicomStoresSearchForInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16622  	c.parent = parent
 16623  	c.dicomWebPath = dicomWebPath
 16624  	return c
 16625  }
 16626  
 16627  // Fields allows partial responses to be retrieved. See
 16628  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16629  // details.
 16630  func (c *ProjectsLocationsDatasetsDicomStoresSearchForInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresSearchForInstancesCall {
 16631  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16632  	return c
 16633  }
 16634  
 16635  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16636  // object's ETag matches the given value. This is useful for getting updates
 16637  // only after the object has changed since the last request.
 16638  func (c *ProjectsLocationsDatasetsDicomStoresSearchForInstancesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresSearchForInstancesCall {
 16639  	c.ifNoneMatch_ = entityTag
 16640  	return c
 16641  }
 16642  
 16643  // Context sets the context to be used in this call's Do method.
 16644  func (c *ProjectsLocationsDatasetsDicomStoresSearchForInstancesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresSearchForInstancesCall {
 16645  	c.ctx_ = ctx
 16646  	return c
 16647  }
 16648  
 16649  // Header returns a http.Header that can be modified by the caller to add
 16650  // headers to the request.
 16651  func (c *ProjectsLocationsDatasetsDicomStoresSearchForInstancesCall) Header() http.Header {
 16652  	if c.header_ == nil {
 16653  		c.header_ = make(http.Header)
 16654  	}
 16655  	return c.header_
 16656  }
 16657  
 16658  func (c *ProjectsLocationsDatasetsDicomStoresSearchForInstancesCall) doRequest(alt string) (*http.Response, error) {
 16659  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16660  	if c.ifNoneMatch_ != "" {
 16661  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16662  	}
 16663  	var body io.Reader = nil
 16664  	c.urlParams_.Set("alt", alt)
 16665  	c.urlParams_.Set("prettyPrint", "false")
 16666  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
 16667  	urls += "?" + c.urlParams_.Encode()
 16668  	req, err := http.NewRequest("GET", urls, body)
 16669  	if err != nil {
 16670  		return nil, err
 16671  	}
 16672  	req.Header = reqHeaders
 16673  	googleapi.Expand(req.URL, map[string]string{
 16674  		"parent":       c.parent,
 16675  		"dicomWebPath": c.dicomWebPath,
 16676  	})
 16677  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16678  }
 16679  
 16680  // Do executes the "healthcare.projects.locations.datasets.dicomStores.searchForInstances" call.
 16681  func (c *ProjectsLocationsDatasetsDicomStoresSearchForInstancesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 16682  	gensupport.SetOptions(c.urlParams_, opts...)
 16683  	return c.doRequest("")
 16684  }
 16685  
 16686  type ProjectsLocationsDatasetsDicomStoresSearchForSeriesCall struct {
 16687  	s            *Service
 16688  	parent       string
 16689  	dicomWebPath string
 16690  	urlParams_   gensupport.URLParams
 16691  	ifNoneMatch_ string
 16692  	ctx_         context.Context
 16693  	header_      http.Header
 16694  }
 16695  
 16696  // SearchForSeries: SearchForSeries returns a list of matching series. See
 16697  // RetrieveTransaction
 16698  // (http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4).
 16699  // For details on the implementation of SearchForSeries, see Search transaction
 16700  // (https://cloud.google.com/healthcare/docs/dicom#search_transaction) in the
 16701  // Cloud Healthcare API conformance statement. For samples that show how to
 16702  // call SearchForSeries, see Search for DICOM data
 16703  // (https://cloud.google.com/healthcare/docs/how-tos/dicomweb#search-dicom).
 16704  //
 16705  //   - dicomWebPath: The path of the SearchForSeries DICOMweb request. For
 16706  //     example, `series` or `studies/{study_uid}/series`.
 16707  //   - parent: The name of the DICOM store that is being accessed. For example,
 16708  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS
 16709  //     tores/{dicom_store_id}`.
 16710  func (r *ProjectsLocationsDatasetsDicomStoresService) SearchForSeries(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresSearchForSeriesCall {
 16711  	c := &ProjectsLocationsDatasetsDicomStoresSearchForSeriesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16712  	c.parent = parent
 16713  	c.dicomWebPath = dicomWebPath
 16714  	return c
 16715  }
 16716  
 16717  // Fields allows partial responses to be retrieved. See
 16718  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16719  // details.
 16720  func (c *ProjectsLocationsDatasetsDicomStoresSearchForSeriesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresSearchForSeriesCall {
 16721  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16722  	return c
 16723  }
 16724  
 16725  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16726  // object's ETag matches the given value. This is useful for getting updates
 16727  // only after the object has changed since the last request.
 16728  func (c *ProjectsLocationsDatasetsDicomStoresSearchForSeriesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresSearchForSeriesCall {
 16729  	c.ifNoneMatch_ = entityTag
 16730  	return c
 16731  }
 16732  
 16733  // Context sets the context to be used in this call's Do method.
 16734  func (c *ProjectsLocationsDatasetsDicomStoresSearchForSeriesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresSearchForSeriesCall {
 16735  	c.ctx_ = ctx
 16736  	return c
 16737  }
 16738  
 16739  // Header returns a http.Header that can be modified by the caller to add
 16740  // headers to the request.
 16741  func (c *ProjectsLocationsDatasetsDicomStoresSearchForSeriesCall) Header() http.Header {
 16742  	if c.header_ == nil {
 16743  		c.header_ = make(http.Header)
 16744  	}
 16745  	return c.header_
 16746  }
 16747  
 16748  func (c *ProjectsLocationsDatasetsDicomStoresSearchForSeriesCall) doRequest(alt string) (*http.Response, error) {
 16749  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16750  	if c.ifNoneMatch_ != "" {
 16751  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16752  	}
 16753  	var body io.Reader = nil
 16754  	c.urlParams_.Set("alt", alt)
 16755  	c.urlParams_.Set("prettyPrint", "false")
 16756  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
 16757  	urls += "?" + c.urlParams_.Encode()
 16758  	req, err := http.NewRequest("GET", urls, body)
 16759  	if err != nil {
 16760  		return nil, err
 16761  	}
 16762  	req.Header = reqHeaders
 16763  	googleapi.Expand(req.URL, map[string]string{
 16764  		"parent":       c.parent,
 16765  		"dicomWebPath": c.dicomWebPath,
 16766  	})
 16767  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16768  }
 16769  
 16770  // Do executes the "healthcare.projects.locations.datasets.dicomStores.searchForSeries" call.
 16771  func (c *ProjectsLocationsDatasetsDicomStoresSearchForSeriesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 16772  	gensupport.SetOptions(c.urlParams_, opts...)
 16773  	return c.doRequest("")
 16774  }
 16775  
 16776  type ProjectsLocationsDatasetsDicomStoresSearchForStudiesCall struct {
 16777  	s            *Service
 16778  	parent       string
 16779  	dicomWebPath string
 16780  	urlParams_   gensupport.URLParams
 16781  	ifNoneMatch_ string
 16782  	ctx_         context.Context
 16783  	header_      http.Header
 16784  }
 16785  
 16786  // SearchForStudies: SearchForStudies returns a list of matching studies. See
 16787  // RetrieveTransaction
 16788  // (http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4).
 16789  // For details on the implementation of SearchForStudies, see Search
 16790  // transaction
 16791  // (https://cloud.google.com/healthcare/docs/dicom#search_transaction) in the
 16792  // Cloud Healthcare API conformance statement. For samples that show how to
 16793  // call SearchForStudies, see Search for DICOM data
 16794  // (https://cloud.google.com/healthcare/docs/how-tos/dicomweb#search-dicom).
 16795  //
 16796  //   - dicomWebPath: The path of the SearchForStudies DICOMweb request. For
 16797  //     example, `studies`.
 16798  //   - parent: The name of the DICOM store that is being accessed. For example,
 16799  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS
 16800  //     tores/{dicom_store_id}`.
 16801  func (r *ProjectsLocationsDatasetsDicomStoresService) SearchForStudies(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresSearchForStudiesCall {
 16802  	c := &ProjectsLocationsDatasetsDicomStoresSearchForStudiesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16803  	c.parent = parent
 16804  	c.dicomWebPath = dicomWebPath
 16805  	return c
 16806  }
 16807  
 16808  // Fields allows partial responses to be retrieved. See
 16809  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16810  // details.
 16811  func (c *ProjectsLocationsDatasetsDicomStoresSearchForStudiesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresSearchForStudiesCall {
 16812  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16813  	return c
 16814  }
 16815  
 16816  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16817  // object's ETag matches the given value. This is useful for getting updates
 16818  // only after the object has changed since the last request.
 16819  func (c *ProjectsLocationsDatasetsDicomStoresSearchForStudiesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresSearchForStudiesCall {
 16820  	c.ifNoneMatch_ = entityTag
 16821  	return c
 16822  }
 16823  
 16824  // Context sets the context to be used in this call's Do method.
 16825  func (c *ProjectsLocationsDatasetsDicomStoresSearchForStudiesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresSearchForStudiesCall {
 16826  	c.ctx_ = ctx
 16827  	return c
 16828  }
 16829  
 16830  // Header returns a http.Header that can be modified by the caller to add
 16831  // headers to the request.
 16832  func (c *ProjectsLocationsDatasetsDicomStoresSearchForStudiesCall) Header() http.Header {
 16833  	if c.header_ == nil {
 16834  		c.header_ = make(http.Header)
 16835  	}
 16836  	return c.header_
 16837  }
 16838  
 16839  func (c *ProjectsLocationsDatasetsDicomStoresSearchForStudiesCall) doRequest(alt string) (*http.Response, error) {
 16840  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16841  	if c.ifNoneMatch_ != "" {
 16842  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16843  	}
 16844  	var body io.Reader = nil
 16845  	c.urlParams_.Set("alt", alt)
 16846  	c.urlParams_.Set("prettyPrint", "false")
 16847  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
 16848  	urls += "?" + c.urlParams_.Encode()
 16849  	req, err := http.NewRequest("GET", urls, body)
 16850  	if err != nil {
 16851  		return nil, err
 16852  	}
 16853  	req.Header = reqHeaders
 16854  	googleapi.Expand(req.URL, map[string]string{
 16855  		"parent":       c.parent,
 16856  		"dicomWebPath": c.dicomWebPath,
 16857  	})
 16858  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16859  }
 16860  
 16861  // Do executes the "healthcare.projects.locations.datasets.dicomStores.searchForStudies" call.
 16862  func (c *ProjectsLocationsDatasetsDicomStoresSearchForStudiesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 16863  	gensupport.SetOptions(c.urlParams_, opts...)
 16864  	return c.doRequest("")
 16865  }
 16866  
 16867  type ProjectsLocationsDatasetsDicomStoresSetBlobStorageSettingsCall struct {
 16868  	s                             *Service
 16869  	resource                      string
 16870  	setblobstoragesettingsrequest *SetBlobStorageSettingsRequest
 16871  	urlParams_                    gensupport.URLParams
 16872  	ctx_                          context.Context
 16873  	header_                       http.Header
 16874  }
 16875  
 16876  // SetBlobStorageSettings: SetBlobStorageSettings sets the blob storage
 16877  // settings of the specified resources.
 16878  //
 16879  //   - resource: The path of the resource to update the blob storage settings in
 16880  //     the format of
 16881  //     `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStor
 16882  //     es/{dicomStoreID}/dicomWeb/studies/{studyUID}`,
 16883  //     `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStor
 16884  //     es/{dicomStoreID}/dicomWeb/studies/{studyUID}/series/{seriesUID}/`, or
 16885  //     `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStor
 16886  //     es/{dicomStoreID}/dicomWeb/studies/{studyUID}/series/{seriesUID}/instances/
 16887  //     {instanceUID}`. If `filter_config` is specified, set the value of
 16888  //     `resource` to the resource name of a DICOM store in the format
 16889  //     `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStor
 16890  //     es/{dicomStoreID}`.
 16891  func (r *ProjectsLocationsDatasetsDicomStoresService) SetBlobStorageSettings(resource string, setblobstoragesettingsrequest *SetBlobStorageSettingsRequest) *ProjectsLocationsDatasetsDicomStoresSetBlobStorageSettingsCall {
 16892  	c := &ProjectsLocationsDatasetsDicomStoresSetBlobStorageSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16893  	c.resource = resource
 16894  	c.setblobstoragesettingsrequest = setblobstoragesettingsrequest
 16895  	return c
 16896  }
 16897  
 16898  // Fields allows partial responses to be retrieved. See
 16899  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16900  // details.
 16901  func (c *ProjectsLocationsDatasetsDicomStoresSetBlobStorageSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresSetBlobStorageSettingsCall {
 16902  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16903  	return c
 16904  }
 16905  
 16906  // Context sets the context to be used in this call's Do method.
 16907  func (c *ProjectsLocationsDatasetsDicomStoresSetBlobStorageSettingsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresSetBlobStorageSettingsCall {
 16908  	c.ctx_ = ctx
 16909  	return c
 16910  }
 16911  
 16912  // Header returns a http.Header that can be modified by the caller to add
 16913  // headers to the request.
 16914  func (c *ProjectsLocationsDatasetsDicomStoresSetBlobStorageSettingsCall) Header() http.Header {
 16915  	if c.header_ == nil {
 16916  		c.header_ = make(http.Header)
 16917  	}
 16918  	return c.header_
 16919  }
 16920  
 16921  func (c *ProjectsLocationsDatasetsDicomStoresSetBlobStorageSettingsCall) doRequest(alt string) (*http.Response, error) {
 16922  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16923  	var body io.Reader = nil
 16924  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setblobstoragesettingsrequest)
 16925  	if err != nil {
 16926  		return nil, err
 16927  	}
 16928  	c.urlParams_.Set("alt", alt)
 16929  	c.urlParams_.Set("prettyPrint", "false")
 16930  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setBlobStorageSettings")
 16931  	urls += "?" + c.urlParams_.Encode()
 16932  	req, err := http.NewRequest("POST", urls, body)
 16933  	if err != nil {
 16934  		return nil, err
 16935  	}
 16936  	req.Header = reqHeaders
 16937  	googleapi.Expand(req.URL, map[string]string{
 16938  		"resource": c.resource,
 16939  	})
 16940  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16941  }
 16942  
 16943  // Do executes the "healthcare.projects.locations.datasets.dicomStores.setBlobStorageSettings" call.
 16944  // Any non-2xx status code is an error. Response headers are in either
 16945  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 16946  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 16947  // whether the returned error was because http.StatusNotModified was returned.
 16948  func (c *ProjectsLocationsDatasetsDicomStoresSetBlobStorageSettingsCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 16949  	gensupport.SetOptions(c.urlParams_, opts...)
 16950  	res, err := c.doRequest("json")
 16951  	if res != nil && res.StatusCode == http.StatusNotModified {
 16952  		if res.Body != nil {
 16953  			res.Body.Close()
 16954  		}
 16955  		return nil, gensupport.WrapError(&googleapi.Error{
 16956  			Code:   res.StatusCode,
 16957  			Header: res.Header,
 16958  		})
 16959  	}
 16960  	if err != nil {
 16961  		return nil, err
 16962  	}
 16963  	defer googleapi.CloseBody(res)
 16964  	if err := googleapi.CheckResponse(res); err != nil {
 16965  		return nil, gensupport.WrapError(err)
 16966  	}
 16967  	ret := &Operation{
 16968  		ServerResponse: googleapi.ServerResponse{
 16969  			Header:         res.Header,
 16970  			HTTPStatusCode: res.StatusCode,
 16971  		},
 16972  	}
 16973  	target := &ret
 16974  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16975  		return nil, err
 16976  	}
 16977  	return ret, nil
 16978  }
 16979  
 16980  type ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall struct {
 16981  	s                   *Service
 16982  	resource            string
 16983  	setiampolicyrequest *SetIamPolicyRequest
 16984  	urlParams_          gensupport.URLParams
 16985  	ctx_                context.Context
 16986  	header_             http.Header
 16987  }
 16988  
 16989  // SetIamPolicy: Sets the access control policy on the specified resource.
 16990  // Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`,
 16991  // and `PERMISSION_DENIED` errors.
 16992  //
 16993  //   - resource: REQUIRED: The resource for which the policy is being specified.
 16994  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 16995  //     for the appropriate value for this field.
 16996  func (r *ProjectsLocationsDatasetsDicomStoresService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall {
 16997  	c := &ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16998  	c.resource = resource
 16999  	c.setiampolicyrequest = setiampolicyrequest
 17000  	return c
 17001  }
 17002  
 17003  // Fields allows partial responses to be retrieved. See
 17004  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17005  // details.
 17006  func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall {
 17007  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17008  	return c
 17009  }
 17010  
 17011  // Context sets the context to be used in this call's Do method.
 17012  func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall {
 17013  	c.ctx_ = ctx
 17014  	return c
 17015  }
 17016  
 17017  // Header returns a http.Header that can be modified by the caller to add
 17018  // headers to the request.
 17019  func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Header() http.Header {
 17020  	if c.header_ == nil {
 17021  		c.header_ = make(http.Header)
 17022  	}
 17023  	return c.header_
 17024  }
 17025  
 17026  func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 17027  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17028  	var body io.Reader = nil
 17029  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
 17030  	if err != nil {
 17031  		return nil, err
 17032  	}
 17033  	c.urlParams_.Set("alt", alt)
 17034  	c.urlParams_.Set("prettyPrint", "false")
 17035  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy")
 17036  	urls += "?" + c.urlParams_.Encode()
 17037  	req, err := http.NewRequest("POST", urls, body)
 17038  	if err != nil {
 17039  		return nil, err
 17040  	}
 17041  	req.Header = reqHeaders
 17042  	googleapi.Expand(req.URL, map[string]string{
 17043  		"resource": c.resource,
 17044  	})
 17045  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17046  }
 17047  
 17048  // Do executes the "healthcare.projects.locations.datasets.dicomStores.setIamPolicy" call.
 17049  // Any non-2xx status code is an error. Response headers are in either
 17050  // *Policy.ServerResponse.Header or (if a response was returned at all) in
 17051  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 17052  // whether the returned error was because http.StatusNotModified was returned.
 17053  func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
 17054  	gensupport.SetOptions(c.urlParams_, opts...)
 17055  	res, err := c.doRequest("json")
 17056  	if res != nil && res.StatusCode == http.StatusNotModified {
 17057  		if res.Body != nil {
 17058  			res.Body.Close()
 17059  		}
 17060  		return nil, gensupport.WrapError(&googleapi.Error{
 17061  			Code:   res.StatusCode,
 17062  			Header: res.Header,
 17063  		})
 17064  	}
 17065  	if err != nil {
 17066  		return nil, err
 17067  	}
 17068  	defer googleapi.CloseBody(res)
 17069  	if err := googleapi.CheckResponse(res); err != nil {
 17070  		return nil, gensupport.WrapError(err)
 17071  	}
 17072  	ret := &Policy{
 17073  		ServerResponse: googleapi.ServerResponse{
 17074  			Header:         res.Header,
 17075  			HTTPStatusCode: res.StatusCode,
 17076  		},
 17077  	}
 17078  	target := &ret
 17079  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17080  		return nil, err
 17081  	}
 17082  	return ret, nil
 17083  }
 17084  
 17085  type ProjectsLocationsDatasetsDicomStoresStoreInstancesCall struct {
 17086  	s            *Service
 17087  	parent       string
 17088  	dicomWebPath string
 17089  	body_        io.Reader
 17090  	urlParams_   gensupport.URLParams
 17091  	ctx_         context.Context
 17092  	header_      http.Header
 17093  }
 17094  
 17095  // StoreInstances: StoreInstances stores DICOM instances associated with study
 17096  // instance unique identifiers (SUID). See Store Transaction
 17097  // (http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.5).
 17098  // For details on the implementation of StoreInstances, see Store transaction
 17099  // (https://cloud.google.com/healthcare/docs/dicom#store_transaction) in the
 17100  // Cloud Healthcare API conformance statement. For samples that show how to
 17101  // call StoreInstances, see Store DICOM data
 17102  // (https://cloud.google.com/healthcare/docs/how-tos/dicomweb#store-dicom).
 17103  //
 17104  //   - dicomWebPath: The path of the StoreInstances DICOMweb request. For
 17105  //     example, `studies/[{study_uid}]`. Note that the `study_uid` is optional.
 17106  //   - parent: The name of the DICOM store that is being accessed. For example,
 17107  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS
 17108  //     tores/{dicom_store_id}`.
 17109  func (r *ProjectsLocationsDatasetsDicomStoresService) StoreInstances(parent string, dicomWebPath string, body_ io.Reader) *ProjectsLocationsDatasetsDicomStoresStoreInstancesCall {
 17110  	c := &ProjectsLocationsDatasetsDicomStoresStoreInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17111  	c.parent = parent
 17112  	c.dicomWebPath = dicomWebPath
 17113  	c.body_ = body_
 17114  	return c
 17115  }
 17116  
 17117  // Fields allows partial responses to be retrieved. See
 17118  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17119  // details.
 17120  func (c *ProjectsLocationsDatasetsDicomStoresStoreInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStoreInstancesCall {
 17121  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17122  	return c
 17123  }
 17124  
 17125  // Context sets the context to be used in this call's Do method.
 17126  func (c *ProjectsLocationsDatasetsDicomStoresStoreInstancesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStoreInstancesCall {
 17127  	c.ctx_ = ctx
 17128  	return c
 17129  }
 17130  
 17131  // Header returns a http.Header that can be modified by the caller to add
 17132  // headers to the request.
 17133  func (c *ProjectsLocationsDatasetsDicomStoresStoreInstancesCall) Header() http.Header {
 17134  	if c.header_ == nil {
 17135  		c.header_ = make(http.Header)
 17136  	}
 17137  	return c.header_
 17138  }
 17139  
 17140  func (c *ProjectsLocationsDatasetsDicomStoresStoreInstancesCall) doRequest(alt string) (*http.Response, error) {
 17141  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17142  	var body io.Reader = nil
 17143  	body = c.body_
 17144  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
 17145  	urls += "?" + c.urlParams_.Encode()
 17146  	req, err := http.NewRequest("POST", urls, body)
 17147  	if err != nil {
 17148  		return nil, err
 17149  	}
 17150  	req.Header = reqHeaders
 17151  	googleapi.Expand(req.URL, map[string]string{
 17152  		"parent":       c.parent,
 17153  		"dicomWebPath": c.dicomWebPath,
 17154  	})
 17155  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17156  }
 17157  
 17158  // Do executes the "healthcare.projects.locations.datasets.dicomStores.storeInstances" call.
 17159  func (c *ProjectsLocationsDatasetsDicomStoresStoreInstancesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 17160  	gensupport.SetOptions(c.urlParams_, opts...)
 17161  	return c.doRequest("")
 17162  }
 17163  
 17164  type ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall struct {
 17165  	s                         *Service
 17166  	resource                  string
 17167  	testiampermissionsrequest *TestIamPermissionsRequest
 17168  	urlParams_                gensupport.URLParams
 17169  	ctx_                      context.Context
 17170  	header_                   http.Header
 17171  }
 17172  
 17173  // TestIamPermissions: Returns permissions that a caller has on the specified
 17174  // resource. If the resource does not exist, this will return an empty set of
 17175  // permissions, not a `NOT_FOUND` error. Note: This operation is designed to be
 17176  // used for building permission-aware UIs and command-line tools, not for
 17177  // authorization checking. This operation may "fail open" without warning.
 17178  //
 17179  //   - resource: REQUIRED: The resource for which the policy detail is being
 17180  //     requested. See Resource names
 17181  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
 17182  //     value for this field.
 17183  func (r *ProjectsLocationsDatasetsDicomStoresService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall {
 17184  	c := &ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17185  	c.resource = resource
 17186  	c.testiampermissionsrequest = testiampermissionsrequest
 17187  	return c
 17188  }
 17189  
 17190  // Fields allows partial responses to be retrieved. See
 17191  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17192  // details.
 17193  func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall {
 17194  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17195  	return c
 17196  }
 17197  
 17198  // Context sets the context to be used in this call's Do method.
 17199  func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall {
 17200  	c.ctx_ = ctx
 17201  	return c
 17202  }
 17203  
 17204  // Header returns a http.Header that can be modified by the caller to add
 17205  // headers to the request.
 17206  func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Header() http.Header {
 17207  	if c.header_ == nil {
 17208  		c.header_ = make(http.Header)
 17209  	}
 17210  	return c.header_
 17211  }
 17212  
 17213  func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
 17214  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17215  	var body io.Reader = nil
 17216  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
 17217  	if err != nil {
 17218  		return nil, err
 17219  	}
 17220  	c.urlParams_.Set("alt", alt)
 17221  	c.urlParams_.Set("prettyPrint", "false")
 17222  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions")
 17223  	urls += "?" + c.urlParams_.Encode()
 17224  	req, err := http.NewRequest("POST", urls, body)
 17225  	if err != nil {
 17226  		return nil, err
 17227  	}
 17228  	req.Header = reqHeaders
 17229  	googleapi.Expand(req.URL, map[string]string{
 17230  		"resource": c.resource,
 17231  	})
 17232  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17233  }
 17234  
 17235  // Do executes the "healthcare.projects.locations.datasets.dicomStores.testIamPermissions" call.
 17236  // Any non-2xx status code is an error. Response headers are in either
 17237  // *TestIamPermissionsResponse.ServerResponse.Header or (if a response was
 17238  // returned at all) in error.(*googleapi.Error).Header. Use
 17239  // googleapi.IsNotModified to check whether the returned error was because
 17240  // http.StatusNotModified was returned.
 17241  func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
 17242  	gensupport.SetOptions(c.urlParams_, opts...)
 17243  	res, err := c.doRequest("json")
 17244  	if res != nil && res.StatusCode == http.StatusNotModified {
 17245  		if res.Body != nil {
 17246  			res.Body.Close()
 17247  		}
 17248  		return nil, gensupport.WrapError(&googleapi.Error{
 17249  			Code:   res.StatusCode,
 17250  			Header: res.Header,
 17251  		})
 17252  	}
 17253  	if err != nil {
 17254  		return nil, err
 17255  	}
 17256  	defer googleapi.CloseBody(res)
 17257  	if err := googleapi.CheckResponse(res); err != nil {
 17258  		return nil, gensupport.WrapError(err)
 17259  	}
 17260  	ret := &TestIamPermissionsResponse{
 17261  		ServerResponse: googleapi.ServerResponse{
 17262  			Header:         res.Header,
 17263  			HTTPStatusCode: res.StatusCode,
 17264  		},
 17265  	}
 17266  	target := &ret
 17267  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17268  		return nil, err
 17269  	}
 17270  	return ret, nil
 17271  }
 17272  
 17273  type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesGetStudyMetricsCall struct {
 17274  	s            *Service
 17275  	study        string
 17276  	urlParams_   gensupport.URLParams
 17277  	ifNoneMatch_ string
 17278  	ctx_         context.Context
 17279  	header_      http.Header
 17280  }
 17281  
 17282  // GetStudyMetrics: GetStudyMetrics returns metrics for a study.
 17283  //
 17284  //   - study: The study resource path. For example,
 17285  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS
 17286  //     tores/{dicom_store_id}/dicomWeb/studies/{study_uid}`.
 17287  func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) GetStudyMetrics(study string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesGetStudyMetricsCall {
 17288  	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesGetStudyMetricsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17289  	c.study = study
 17290  	return c
 17291  }
 17292  
 17293  // Fields allows partial responses to be retrieved. See
 17294  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17295  // details.
 17296  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesGetStudyMetricsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesGetStudyMetricsCall {
 17297  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17298  	return c
 17299  }
 17300  
 17301  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17302  // object's ETag matches the given value. This is useful for getting updates
 17303  // only after the object has changed since the last request.
 17304  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesGetStudyMetricsCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesGetStudyMetricsCall {
 17305  	c.ifNoneMatch_ = entityTag
 17306  	return c
 17307  }
 17308  
 17309  // Context sets the context to be used in this call's Do method.
 17310  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesGetStudyMetricsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesGetStudyMetricsCall {
 17311  	c.ctx_ = ctx
 17312  	return c
 17313  }
 17314  
 17315  // Header returns a http.Header that can be modified by the caller to add
 17316  // headers to the request.
 17317  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesGetStudyMetricsCall) Header() http.Header {
 17318  	if c.header_ == nil {
 17319  		c.header_ = make(http.Header)
 17320  	}
 17321  	return c.header_
 17322  }
 17323  
 17324  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesGetStudyMetricsCall) doRequest(alt string) (*http.Response, error) {
 17325  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17326  	if c.ifNoneMatch_ != "" {
 17327  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17328  	}
 17329  	var body io.Reader = nil
 17330  	c.urlParams_.Set("alt", alt)
 17331  	c.urlParams_.Set("prettyPrint", "false")
 17332  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+study}:getStudyMetrics")
 17333  	urls += "?" + c.urlParams_.Encode()
 17334  	req, err := http.NewRequest("GET", urls, body)
 17335  	if err != nil {
 17336  		return nil, err
 17337  	}
 17338  	req.Header = reqHeaders
 17339  	googleapi.Expand(req.URL, map[string]string{
 17340  		"study": c.study,
 17341  	})
 17342  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17343  }
 17344  
 17345  // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.getStudyMetrics" call.
 17346  // Any non-2xx status code is an error. Response headers are in either
 17347  // *StudyMetrics.ServerResponse.Header or (if a response was returned at all)
 17348  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 17349  // whether the returned error was because http.StatusNotModified was returned.
 17350  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesGetStudyMetricsCall) Do(opts ...googleapi.CallOption) (*StudyMetrics, error) {
 17351  	gensupport.SetOptions(c.urlParams_, opts...)
 17352  	res, err := c.doRequest("json")
 17353  	if res != nil && res.StatusCode == http.StatusNotModified {
 17354  		if res.Body != nil {
 17355  			res.Body.Close()
 17356  		}
 17357  		return nil, gensupport.WrapError(&googleapi.Error{
 17358  			Code:   res.StatusCode,
 17359  			Header: res.Header,
 17360  		})
 17361  	}
 17362  	if err != nil {
 17363  		return nil, err
 17364  	}
 17365  	defer googleapi.CloseBody(res)
 17366  	if err := googleapi.CheckResponse(res); err != nil {
 17367  		return nil, gensupport.WrapError(err)
 17368  	}
 17369  	ret := &StudyMetrics{
 17370  		ServerResponse: googleapi.ServerResponse{
 17371  			Header:         res.Header,
 17372  			HTTPStatusCode: res.StatusCode,
 17373  		},
 17374  	}
 17375  	target := &ret
 17376  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17377  		return nil, err
 17378  	}
 17379  	return ret, nil
 17380  }
 17381  
 17382  type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSetBlobStorageSettingsCall struct {
 17383  	s                             *Service
 17384  	resource                      string
 17385  	setblobstoragesettingsrequest *SetBlobStorageSettingsRequest
 17386  	urlParams_                    gensupport.URLParams
 17387  	ctx_                          context.Context
 17388  	header_                       http.Header
 17389  }
 17390  
 17391  // SetBlobStorageSettings: SetBlobStorageSettings sets the blob storage
 17392  // settings of the specified resources.
 17393  //
 17394  //   - resource: The path of the resource to update the blob storage settings in
 17395  //     the format of
 17396  //     `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStor
 17397  //     es/{dicomStoreID}/dicomWeb/studies/{studyUID}`,
 17398  //     `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStor
 17399  //     es/{dicomStoreID}/dicomWeb/studies/{studyUID}/series/{seriesUID}/`, or
 17400  //     `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStor
 17401  //     es/{dicomStoreID}/dicomWeb/studies/{studyUID}/series/{seriesUID}/instances/
 17402  //     {instanceUID}`. If `filter_config` is specified, set the value of
 17403  //     `resource` to the resource name of a DICOM store in the format
 17404  //     `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStor
 17405  //     es/{dicomStoreID}`.
 17406  func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) SetBlobStorageSettings(resource string, setblobstoragesettingsrequest *SetBlobStorageSettingsRequest) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSetBlobStorageSettingsCall {
 17407  	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSetBlobStorageSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17408  	c.resource = resource
 17409  	c.setblobstoragesettingsrequest = setblobstoragesettingsrequest
 17410  	return c
 17411  }
 17412  
 17413  // Fields allows partial responses to be retrieved. See
 17414  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17415  // details.
 17416  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSetBlobStorageSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSetBlobStorageSettingsCall {
 17417  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17418  	return c
 17419  }
 17420  
 17421  // Context sets the context to be used in this call's Do method.
 17422  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSetBlobStorageSettingsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSetBlobStorageSettingsCall {
 17423  	c.ctx_ = ctx
 17424  	return c
 17425  }
 17426  
 17427  // Header returns a http.Header that can be modified by the caller to add
 17428  // headers to the request.
 17429  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSetBlobStorageSettingsCall) Header() http.Header {
 17430  	if c.header_ == nil {
 17431  		c.header_ = make(http.Header)
 17432  	}
 17433  	return c.header_
 17434  }
 17435  
 17436  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSetBlobStorageSettingsCall) doRequest(alt string) (*http.Response, error) {
 17437  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17438  	var body io.Reader = nil
 17439  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setblobstoragesettingsrequest)
 17440  	if err != nil {
 17441  		return nil, err
 17442  	}
 17443  	c.urlParams_.Set("alt", alt)
 17444  	c.urlParams_.Set("prettyPrint", "false")
 17445  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setBlobStorageSettings")
 17446  	urls += "?" + c.urlParams_.Encode()
 17447  	req, err := http.NewRequest("POST", urls, body)
 17448  	if err != nil {
 17449  		return nil, err
 17450  	}
 17451  	req.Header = reqHeaders
 17452  	googleapi.Expand(req.URL, map[string]string{
 17453  		"resource": c.resource,
 17454  	})
 17455  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17456  }
 17457  
 17458  // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.setBlobStorageSettings" call.
 17459  // Any non-2xx status code is an error. Response headers are in either
 17460  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 17461  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 17462  // whether the returned error was because http.StatusNotModified was returned.
 17463  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSetBlobStorageSettingsCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 17464  	gensupport.SetOptions(c.urlParams_, opts...)
 17465  	res, err := c.doRequest("json")
 17466  	if res != nil && res.StatusCode == http.StatusNotModified {
 17467  		if res.Body != nil {
 17468  			res.Body.Close()
 17469  		}
 17470  		return nil, gensupport.WrapError(&googleapi.Error{
 17471  			Code:   res.StatusCode,
 17472  			Header: res.Header,
 17473  		})
 17474  	}
 17475  	if err != nil {
 17476  		return nil, err
 17477  	}
 17478  	defer googleapi.CloseBody(res)
 17479  	if err := googleapi.CheckResponse(res); err != nil {
 17480  		return nil, gensupport.WrapError(err)
 17481  	}
 17482  	ret := &Operation{
 17483  		ServerResponse: googleapi.ServerResponse{
 17484  			Header:         res.Header,
 17485  			HTTPStatusCode: res.StatusCode,
 17486  		},
 17487  	}
 17488  	target := &ret
 17489  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17490  		return nil, err
 17491  	}
 17492  	return ret, nil
 17493  }
 17494  
 17495  type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesGetSeriesMetricsCall struct {
 17496  	s            *Service
 17497  	series       string
 17498  	urlParams_   gensupport.URLParams
 17499  	ifNoneMatch_ string
 17500  	ctx_         context.Context
 17501  	header_      http.Header
 17502  }
 17503  
 17504  // GetSeriesMetrics: GetSeriesMetrics returns metrics for a series.
 17505  //
 17506  //   - series: The series resource path. For example,
 17507  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS
 17508  //     tores/{dicom_store_id}/dicomWeb/studies/{study_uid}/series/{series_uid}`.
 17509  func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService) GetSeriesMetrics(series string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesGetSeriesMetricsCall {
 17510  	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesGetSeriesMetricsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17511  	c.series = series
 17512  	return c
 17513  }
 17514  
 17515  // Fields allows partial responses to be retrieved. See
 17516  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17517  // details.
 17518  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesGetSeriesMetricsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesGetSeriesMetricsCall {
 17519  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17520  	return c
 17521  }
 17522  
 17523  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17524  // object's ETag matches the given value. This is useful for getting updates
 17525  // only after the object has changed since the last request.
 17526  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesGetSeriesMetricsCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesGetSeriesMetricsCall {
 17527  	c.ifNoneMatch_ = entityTag
 17528  	return c
 17529  }
 17530  
 17531  // Context sets the context to be used in this call's Do method.
 17532  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesGetSeriesMetricsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesGetSeriesMetricsCall {
 17533  	c.ctx_ = ctx
 17534  	return c
 17535  }
 17536  
 17537  // Header returns a http.Header that can be modified by the caller to add
 17538  // headers to the request.
 17539  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesGetSeriesMetricsCall) Header() http.Header {
 17540  	if c.header_ == nil {
 17541  		c.header_ = make(http.Header)
 17542  	}
 17543  	return c.header_
 17544  }
 17545  
 17546  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesGetSeriesMetricsCall) doRequest(alt string) (*http.Response, error) {
 17547  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17548  	if c.ifNoneMatch_ != "" {
 17549  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17550  	}
 17551  	var body io.Reader = nil
 17552  	c.urlParams_.Set("alt", alt)
 17553  	c.urlParams_.Set("prettyPrint", "false")
 17554  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+series}:getSeriesMetrics")
 17555  	urls += "?" + c.urlParams_.Encode()
 17556  	req, err := http.NewRequest("GET", urls, body)
 17557  	if err != nil {
 17558  		return nil, err
 17559  	}
 17560  	req.Header = reqHeaders
 17561  	googleapi.Expand(req.URL, map[string]string{
 17562  		"series": c.series,
 17563  	})
 17564  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17565  }
 17566  
 17567  // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.getSeriesMetrics" call.
 17568  // Any non-2xx status code is an error. Response headers are in either
 17569  // *SeriesMetrics.ServerResponse.Header or (if a response was returned at all)
 17570  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 17571  // whether the returned error was because http.StatusNotModified was returned.
 17572  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesGetSeriesMetricsCall) Do(opts ...googleapi.CallOption) (*SeriesMetrics, error) {
 17573  	gensupport.SetOptions(c.urlParams_, opts...)
 17574  	res, err := c.doRequest("json")
 17575  	if res != nil && res.StatusCode == http.StatusNotModified {
 17576  		if res.Body != nil {
 17577  			res.Body.Close()
 17578  		}
 17579  		return nil, gensupport.WrapError(&googleapi.Error{
 17580  			Code:   res.StatusCode,
 17581  			Header: res.Header,
 17582  		})
 17583  	}
 17584  	if err != nil {
 17585  		return nil, err
 17586  	}
 17587  	defer googleapi.CloseBody(res)
 17588  	if err := googleapi.CheckResponse(res); err != nil {
 17589  		return nil, gensupport.WrapError(err)
 17590  	}
 17591  	ret := &SeriesMetrics{
 17592  		ServerResponse: googleapi.ServerResponse{
 17593  			Header:         res.Header,
 17594  			HTTPStatusCode: res.StatusCode,
 17595  		},
 17596  	}
 17597  	target := &ret
 17598  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17599  		return nil, err
 17600  	}
 17601  	return ret, nil
 17602  }
 17603  
 17604  type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesGetStorageInfoCall struct {
 17605  	s            *Service
 17606  	resource     string
 17607  	urlParams_   gensupport.URLParams
 17608  	ifNoneMatch_ string
 17609  	ctx_         context.Context
 17610  	header_      http.Header
 17611  }
 17612  
 17613  // GetStorageInfo: GetStorageInfo returns the storage info of the specified
 17614  // resource.
 17615  //
 17616  //   - resource: The path of the resource for which the storage info is requested
 17617  //     (for exaxmple for a DICOM Instance:
 17618  //     `projects/{projectID}/locations/{locationID}/datasets/{datasetID}/dicomStor
 17619  //     es/{dicomStoreId}/dicomWeb/studies/{study_uid}/series/{series_uid}/instance
 17620  //     s/{instance_uid}`).
 17621  func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService) GetStorageInfo(resource string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesGetStorageInfoCall {
 17622  	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesGetStorageInfoCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17623  	c.resource = resource
 17624  	return c
 17625  }
 17626  
 17627  // Fields allows partial responses to be retrieved. See
 17628  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17629  // details.
 17630  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesGetStorageInfoCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesGetStorageInfoCall {
 17631  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17632  	return c
 17633  }
 17634  
 17635  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17636  // object's ETag matches the given value. This is useful for getting updates
 17637  // only after the object has changed since the last request.
 17638  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesGetStorageInfoCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesGetStorageInfoCall {
 17639  	c.ifNoneMatch_ = entityTag
 17640  	return c
 17641  }
 17642  
 17643  // Context sets the context to be used in this call's Do method.
 17644  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesGetStorageInfoCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesGetStorageInfoCall {
 17645  	c.ctx_ = ctx
 17646  	return c
 17647  }
 17648  
 17649  // Header returns a http.Header that can be modified by the caller to add
 17650  // headers to the request.
 17651  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesGetStorageInfoCall) Header() http.Header {
 17652  	if c.header_ == nil {
 17653  		c.header_ = make(http.Header)
 17654  	}
 17655  	return c.header_
 17656  }
 17657  
 17658  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesGetStorageInfoCall) doRequest(alt string) (*http.Response, error) {
 17659  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17660  	if c.ifNoneMatch_ != "" {
 17661  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17662  	}
 17663  	var body io.Reader = nil
 17664  	c.urlParams_.Set("alt", alt)
 17665  	c.urlParams_.Set("prettyPrint", "false")
 17666  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getStorageInfo")
 17667  	urls += "?" + c.urlParams_.Encode()
 17668  	req, err := http.NewRequest("GET", urls, body)
 17669  	if err != nil {
 17670  		return nil, err
 17671  	}
 17672  	req.Header = reqHeaders
 17673  	googleapi.Expand(req.URL, map[string]string{
 17674  		"resource": c.resource,
 17675  	})
 17676  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17677  }
 17678  
 17679  // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.getStorageInfo" call.
 17680  // Any non-2xx status code is an error. Response headers are in either
 17681  // *StorageInfo.ServerResponse.Header or (if a response was returned at all) in
 17682  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 17683  // whether the returned error was because http.StatusNotModified was returned.
 17684  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesGetStorageInfoCall) Do(opts ...googleapi.CallOption) (*StorageInfo, error) {
 17685  	gensupport.SetOptions(c.urlParams_, opts...)
 17686  	res, err := c.doRequest("json")
 17687  	if res != nil && res.StatusCode == http.StatusNotModified {
 17688  		if res.Body != nil {
 17689  			res.Body.Close()
 17690  		}
 17691  		return nil, gensupport.WrapError(&googleapi.Error{
 17692  			Code:   res.StatusCode,
 17693  			Header: res.Header,
 17694  		})
 17695  	}
 17696  	if err != nil {
 17697  		return nil, err
 17698  	}
 17699  	defer googleapi.CloseBody(res)
 17700  	if err := googleapi.CheckResponse(res); err != nil {
 17701  		return nil, gensupport.WrapError(err)
 17702  	}
 17703  	ret := &StorageInfo{
 17704  		ServerResponse: googleapi.ServerResponse{
 17705  			Header:         res.Header,
 17706  			HTTPStatusCode: res.StatusCode,
 17707  		},
 17708  	}
 17709  	target := &ret
 17710  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17711  		return nil, err
 17712  	}
 17713  	return ret, nil
 17714  }
 17715  
 17716  type ProjectsLocationsDatasetsDicomStoresStudiesDeleteCall struct {
 17717  	s            *Service
 17718  	parent       string
 17719  	dicomWebPath string
 17720  	urlParams_   gensupport.URLParams
 17721  	ctx_         context.Context
 17722  	header_      http.Header
 17723  }
 17724  
 17725  // Delete: DeleteStudy deletes all instances within the given study using a
 17726  // long running operation. The method returns an Operation which will be marked
 17727  // successful when the deletion is complete. Warning: Instances cannot be
 17728  // inserted into a study that is being deleted by an operation until the
 17729  // operation completes. For samples that show how to call DeleteStudy, see
 17730  // Delete a study, series, or instance
 17731  // (https://cloud.google.com/healthcare/docs/how-tos/dicomweb#delete-dicom).
 17732  //
 17733  //   - dicomWebPath: The path of the DeleteStudy request. For example,
 17734  //     `studies/{study_uid}`.
 17735  //   - parent: .
 17736  func (r *ProjectsLocationsDatasetsDicomStoresStudiesService) Delete(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesDeleteCall {
 17737  	c := &ProjectsLocationsDatasetsDicomStoresStudiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17738  	c.parent = parent
 17739  	c.dicomWebPath = dicomWebPath
 17740  	return c
 17741  }
 17742  
 17743  // Fields allows partial responses to be retrieved. See
 17744  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17745  // details.
 17746  func (c *ProjectsLocationsDatasetsDicomStoresStudiesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesDeleteCall {
 17747  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17748  	return c
 17749  }
 17750  
 17751  // Context sets the context to be used in this call's Do method.
 17752  func (c *ProjectsLocationsDatasetsDicomStoresStudiesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesDeleteCall {
 17753  	c.ctx_ = ctx
 17754  	return c
 17755  }
 17756  
 17757  // Header returns a http.Header that can be modified by the caller to add
 17758  // headers to the request.
 17759  func (c *ProjectsLocationsDatasetsDicomStoresStudiesDeleteCall) Header() http.Header {
 17760  	if c.header_ == nil {
 17761  		c.header_ = make(http.Header)
 17762  	}
 17763  	return c.header_
 17764  }
 17765  
 17766  func (c *ProjectsLocationsDatasetsDicomStoresStudiesDeleteCall) doRequest(alt string) (*http.Response, error) {
 17767  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17768  	var body io.Reader = nil
 17769  	c.urlParams_.Set("alt", alt)
 17770  	c.urlParams_.Set("prettyPrint", "false")
 17771  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
 17772  	urls += "?" + c.urlParams_.Encode()
 17773  	req, err := http.NewRequest("DELETE", urls, body)
 17774  	if err != nil {
 17775  		return nil, err
 17776  	}
 17777  	req.Header = reqHeaders
 17778  	googleapi.Expand(req.URL, map[string]string{
 17779  		"parent":       c.parent,
 17780  		"dicomWebPath": c.dicomWebPath,
 17781  	})
 17782  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17783  }
 17784  
 17785  // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.delete" call.
 17786  // Any non-2xx status code is an error. Response headers are in either
 17787  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 17788  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 17789  // whether the returned error was because http.StatusNotModified was returned.
 17790  func (c *ProjectsLocationsDatasetsDicomStoresStudiesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 17791  	gensupport.SetOptions(c.urlParams_, opts...)
 17792  	res, err := c.doRequest("json")
 17793  	if res != nil && res.StatusCode == http.StatusNotModified {
 17794  		if res.Body != nil {
 17795  			res.Body.Close()
 17796  		}
 17797  		return nil, gensupport.WrapError(&googleapi.Error{
 17798  			Code:   res.StatusCode,
 17799  			Header: res.Header,
 17800  		})
 17801  	}
 17802  	if err != nil {
 17803  		return nil, err
 17804  	}
 17805  	defer googleapi.CloseBody(res)
 17806  	if err := googleapi.CheckResponse(res); err != nil {
 17807  		return nil, gensupport.WrapError(err)
 17808  	}
 17809  	ret := &Operation{
 17810  		ServerResponse: googleapi.ServerResponse{
 17811  			Header:         res.Header,
 17812  			HTTPStatusCode: res.StatusCode,
 17813  		},
 17814  	}
 17815  	target := &ret
 17816  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17817  		return nil, err
 17818  	}
 17819  	return ret, nil
 17820  }
 17821  
 17822  type ProjectsLocationsDatasetsDicomStoresStudiesRetrieveMetadataCall struct {
 17823  	s            *Service
 17824  	parent       string
 17825  	dicomWebPath string
 17826  	urlParams_   gensupport.URLParams
 17827  	ifNoneMatch_ string
 17828  	ctx_         context.Context
 17829  	header_      http.Header
 17830  }
 17831  
 17832  // RetrieveMetadata: RetrieveStudyMetadata returns instance associated with the
 17833  // given study presented as metadata with the bulk data removed. See
 17834  // RetrieveTransaction
 17835  // (http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4).
 17836  // For details on the implementation of RetrieveStudyMetadata, see Metadata
 17837  // resources
 17838  // (https://cloud.google.com/healthcare/docs/dicom#metadata_resources) in the
 17839  // Cloud Healthcare API conformance statement. For samples that show how to
 17840  // call RetrieveStudyMetadata, see Retrieve metadata
 17841  // (https://cloud.google.com/healthcare/docs/how-tos/dicomweb#retrieve-metadata).
 17842  //
 17843  //   - dicomWebPath: The path of the RetrieveStudyMetadata DICOMweb request. For
 17844  //     example, `studies/{study_uid}/metadata`.
 17845  //   - parent: The name of the DICOM store that is being accessed. For example,
 17846  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS
 17847  //     tores/{dicom_store_id}`.
 17848  func (r *ProjectsLocationsDatasetsDicomStoresStudiesService) RetrieveMetadata(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveMetadataCall {
 17849  	c := &ProjectsLocationsDatasetsDicomStoresStudiesRetrieveMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17850  	c.parent = parent
 17851  	c.dicomWebPath = dicomWebPath
 17852  	return c
 17853  }
 17854  
 17855  // Fields allows partial responses to be retrieved. See
 17856  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17857  // details.
 17858  func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveMetadataCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveMetadataCall {
 17859  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17860  	return c
 17861  }
 17862  
 17863  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17864  // object's ETag matches the given value. This is useful for getting updates
 17865  // only after the object has changed since the last request.
 17866  func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveMetadataCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveMetadataCall {
 17867  	c.ifNoneMatch_ = entityTag
 17868  	return c
 17869  }
 17870  
 17871  // Context sets the context to be used in this call's Do method.
 17872  func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveMetadataCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveMetadataCall {
 17873  	c.ctx_ = ctx
 17874  	return c
 17875  }
 17876  
 17877  // Header returns a http.Header that can be modified by the caller to add
 17878  // headers to the request.
 17879  func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveMetadataCall) Header() http.Header {
 17880  	if c.header_ == nil {
 17881  		c.header_ = make(http.Header)
 17882  	}
 17883  	return c.header_
 17884  }
 17885  
 17886  func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveMetadataCall) doRequest(alt string) (*http.Response, error) {
 17887  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17888  	if c.ifNoneMatch_ != "" {
 17889  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17890  	}
 17891  	var body io.Reader = nil
 17892  	c.urlParams_.Set("alt", alt)
 17893  	c.urlParams_.Set("prettyPrint", "false")
 17894  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
 17895  	urls += "?" + c.urlParams_.Encode()
 17896  	req, err := http.NewRequest("GET", urls, body)
 17897  	if err != nil {
 17898  		return nil, err
 17899  	}
 17900  	req.Header = reqHeaders
 17901  	googleapi.Expand(req.URL, map[string]string{
 17902  		"parent":       c.parent,
 17903  		"dicomWebPath": c.dicomWebPath,
 17904  	})
 17905  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17906  }
 17907  
 17908  // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.retrieveMetadata" call.
 17909  func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveMetadataCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 17910  	gensupport.SetOptions(c.urlParams_, opts...)
 17911  	return c.doRequest("")
 17912  }
 17913  
 17914  type ProjectsLocationsDatasetsDicomStoresStudiesRetrieveStudyCall struct {
 17915  	s            *Service
 17916  	parent       string
 17917  	dicomWebPath string
 17918  	urlParams_   gensupport.URLParams
 17919  	ifNoneMatch_ string
 17920  	ctx_         context.Context
 17921  	header_      http.Header
 17922  }
 17923  
 17924  // RetrieveStudy: RetrieveStudy returns all instances within the given study.
 17925  // See RetrieveTransaction
 17926  // (http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4).
 17927  // For details on the implementation of RetrieveStudy, see DICOM
 17928  // study/series/instances
 17929  // (https://cloud.google.com/healthcare/docs/dicom#dicom_studyseriesinstances)
 17930  // in the Cloud Healthcare API conformance statement. For samples that show how
 17931  // to call RetrieveStudy, see Retrieve DICOM data
 17932  // (https://cloud.google.com/healthcare/docs/how-tos/dicomweb#retrieve-dicom).
 17933  //
 17934  //   - dicomWebPath: The path of the RetrieveStudy DICOMweb request. For example,
 17935  //     `studies/{study_uid}`.
 17936  //   - parent: The name of the DICOM store that is being accessed. For example,
 17937  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS
 17938  //     tores/{dicom_store_id}`.
 17939  func (r *ProjectsLocationsDatasetsDicomStoresStudiesService) RetrieveStudy(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveStudyCall {
 17940  	c := &ProjectsLocationsDatasetsDicomStoresStudiesRetrieveStudyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17941  	c.parent = parent
 17942  	c.dicomWebPath = dicomWebPath
 17943  	return c
 17944  }
 17945  
 17946  // Fields allows partial responses to be retrieved. See
 17947  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17948  // details.
 17949  func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveStudyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveStudyCall {
 17950  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17951  	return c
 17952  }
 17953  
 17954  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17955  // object's ETag matches the given value. This is useful for getting updates
 17956  // only after the object has changed since the last request.
 17957  func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveStudyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveStudyCall {
 17958  	c.ifNoneMatch_ = entityTag
 17959  	return c
 17960  }
 17961  
 17962  // Context sets the context to be used in this call's Do method.
 17963  func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveStudyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveStudyCall {
 17964  	c.ctx_ = ctx
 17965  	return c
 17966  }
 17967  
 17968  // Header returns a http.Header that can be modified by the caller to add
 17969  // headers to the request.
 17970  func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveStudyCall) Header() http.Header {
 17971  	if c.header_ == nil {
 17972  		c.header_ = make(http.Header)
 17973  	}
 17974  	return c.header_
 17975  }
 17976  
 17977  func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveStudyCall) doRequest(alt string) (*http.Response, error) {
 17978  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17979  	if c.ifNoneMatch_ != "" {
 17980  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17981  	}
 17982  	var body io.Reader = nil
 17983  	c.urlParams_.Set("alt", alt)
 17984  	c.urlParams_.Set("prettyPrint", "false")
 17985  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
 17986  	urls += "?" + c.urlParams_.Encode()
 17987  	req, err := http.NewRequest("GET", urls, body)
 17988  	if err != nil {
 17989  		return nil, err
 17990  	}
 17991  	req.Header = reqHeaders
 17992  	googleapi.Expand(req.URL, map[string]string{
 17993  		"parent":       c.parent,
 17994  		"dicomWebPath": c.dicomWebPath,
 17995  	})
 17996  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17997  }
 17998  
 17999  // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.retrieveStudy" call.
 18000  func (c *ProjectsLocationsDatasetsDicomStoresStudiesRetrieveStudyCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 18001  	gensupport.SetOptions(c.urlParams_, opts...)
 18002  	return c.doRequest("")
 18003  }
 18004  
 18005  type ProjectsLocationsDatasetsDicomStoresStudiesSearchForInstancesCall struct {
 18006  	s            *Service
 18007  	parent       string
 18008  	dicomWebPath string
 18009  	urlParams_   gensupport.URLParams
 18010  	ifNoneMatch_ string
 18011  	ctx_         context.Context
 18012  	header_      http.Header
 18013  }
 18014  
 18015  // SearchForInstances: SearchForInstances returns a list of matching instances.
 18016  // See RetrieveTransaction
 18017  // (http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4).
 18018  // For details on the implementation of SearchForInstances, see Search
 18019  // transaction
 18020  // (https://cloud.google.com/healthcare/docs/dicom#search_transaction) in the
 18021  // Cloud Healthcare API conformance statement. For samples that show how to
 18022  // call SearchForInstances, see Search for DICOM data
 18023  // (https://cloud.google.com/healthcare/docs/how-tos/dicomweb#search-dicom).
 18024  //
 18025  //   - dicomWebPath: The path of the SearchForInstancesRequest DICOMweb request.
 18026  //     For example, `instances`, `series/{series_uid}/instances`, or
 18027  //     `studies/{study_uid}/instances`.
 18028  //   - parent: The name of the DICOM store that is being accessed. For example,
 18029  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS
 18030  //     tores/{dicom_store_id}`.
 18031  func (r *ProjectsLocationsDatasetsDicomStoresStudiesService) SearchForInstances(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesSearchForInstancesCall {
 18032  	c := &ProjectsLocationsDatasetsDicomStoresStudiesSearchForInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18033  	c.parent = parent
 18034  	c.dicomWebPath = dicomWebPath
 18035  	return c
 18036  }
 18037  
 18038  // Fields allows partial responses to be retrieved. See
 18039  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18040  // details.
 18041  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesSearchForInstancesCall {
 18042  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18043  	return c
 18044  }
 18045  
 18046  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18047  // object's ETag matches the given value. This is useful for getting updates
 18048  // only after the object has changed since the last request.
 18049  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForInstancesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresStudiesSearchForInstancesCall {
 18050  	c.ifNoneMatch_ = entityTag
 18051  	return c
 18052  }
 18053  
 18054  // Context sets the context to be used in this call's Do method.
 18055  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForInstancesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesSearchForInstancesCall {
 18056  	c.ctx_ = ctx
 18057  	return c
 18058  }
 18059  
 18060  // Header returns a http.Header that can be modified by the caller to add
 18061  // headers to the request.
 18062  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForInstancesCall) Header() http.Header {
 18063  	if c.header_ == nil {
 18064  		c.header_ = make(http.Header)
 18065  	}
 18066  	return c.header_
 18067  }
 18068  
 18069  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForInstancesCall) doRequest(alt string) (*http.Response, error) {
 18070  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18071  	if c.ifNoneMatch_ != "" {
 18072  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18073  	}
 18074  	var body io.Reader = nil
 18075  	c.urlParams_.Set("alt", alt)
 18076  	c.urlParams_.Set("prettyPrint", "false")
 18077  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
 18078  	urls += "?" + c.urlParams_.Encode()
 18079  	req, err := http.NewRequest("GET", urls, body)
 18080  	if err != nil {
 18081  		return nil, err
 18082  	}
 18083  	req.Header = reqHeaders
 18084  	googleapi.Expand(req.URL, map[string]string{
 18085  		"parent":       c.parent,
 18086  		"dicomWebPath": c.dicomWebPath,
 18087  	})
 18088  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18089  }
 18090  
 18091  // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.searchForInstances" call.
 18092  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForInstancesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 18093  	gensupport.SetOptions(c.urlParams_, opts...)
 18094  	return c.doRequest("")
 18095  }
 18096  
 18097  type ProjectsLocationsDatasetsDicomStoresStudiesSearchForSeriesCall struct {
 18098  	s            *Service
 18099  	parent       string
 18100  	dicomWebPath string
 18101  	urlParams_   gensupport.URLParams
 18102  	ifNoneMatch_ string
 18103  	ctx_         context.Context
 18104  	header_      http.Header
 18105  }
 18106  
 18107  // SearchForSeries: SearchForSeries returns a list of matching series. See
 18108  // RetrieveTransaction
 18109  // (http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4).
 18110  // For details on the implementation of SearchForSeries, see Search transaction
 18111  // (https://cloud.google.com/healthcare/docs/dicom#search_transaction) in the
 18112  // Cloud Healthcare API conformance statement. For samples that show how to
 18113  // call SearchForSeries, see Search for DICOM data
 18114  // (https://cloud.google.com/healthcare/docs/how-tos/dicomweb#search-dicom).
 18115  //
 18116  //   - dicomWebPath: The path of the SearchForSeries DICOMweb request. For
 18117  //     example, `series` or `studies/{study_uid}/series`.
 18118  //   - parent: The name of the DICOM store that is being accessed. For example,
 18119  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS
 18120  //     tores/{dicom_store_id}`.
 18121  func (r *ProjectsLocationsDatasetsDicomStoresStudiesService) SearchForSeries(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesSearchForSeriesCall {
 18122  	c := &ProjectsLocationsDatasetsDicomStoresStudiesSearchForSeriesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18123  	c.parent = parent
 18124  	c.dicomWebPath = dicomWebPath
 18125  	return c
 18126  }
 18127  
 18128  // Fields allows partial responses to be retrieved. See
 18129  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18130  // details.
 18131  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForSeriesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesSearchForSeriesCall {
 18132  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18133  	return c
 18134  }
 18135  
 18136  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18137  // object's ETag matches the given value. This is useful for getting updates
 18138  // only after the object has changed since the last request.
 18139  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForSeriesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresStudiesSearchForSeriesCall {
 18140  	c.ifNoneMatch_ = entityTag
 18141  	return c
 18142  }
 18143  
 18144  // Context sets the context to be used in this call's Do method.
 18145  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForSeriesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesSearchForSeriesCall {
 18146  	c.ctx_ = ctx
 18147  	return c
 18148  }
 18149  
 18150  // Header returns a http.Header that can be modified by the caller to add
 18151  // headers to the request.
 18152  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForSeriesCall) Header() http.Header {
 18153  	if c.header_ == nil {
 18154  		c.header_ = make(http.Header)
 18155  	}
 18156  	return c.header_
 18157  }
 18158  
 18159  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForSeriesCall) doRequest(alt string) (*http.Response, error) {
 18160  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18161  	if c.ifNoneMatch_ != "" {
 18162  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18163  	}
 18164  	var body io.Reader = nil
 18165  	c.urlParams_.Set("alt", alt)
 18166  	c.urlParams_.Set("prettyPrint", "false")
 18167  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
 18168  	urls += "?" + c.urlParams_.Encode()
 18169  	req, err := http.NewRequest("GET", urls, body)
 18170  	if err != nil {
 18171  		return nil, err
 18172  	}
 18173  	req.Header = reqHeaders
 18174  	googleapi.Expand(req.URL, map[string]string{
 18175  		"parent":       c.parent,
 18176  		"dicomWebPath": c.dicomWebPath,
 18177  	})
 18178  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18179  }
 18180  
 18181  // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.searchForSeries" call.
 18182  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSearchForSeriesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 18183  	gensupport.SetOptions(c.urlParams_, opts...)
 18184  	return c.doRequest("")
 18185  }
 18186  
 18187  type ProjectsLocationsDatasetsDicomStoresStudiesStoreInstancesCall struct {
 18188  	s            *Service
 18189  	parent       string
 18190  	dicomWebPath string
 18191  	body_        io.Reader
 18192  	urlParams_   gensupport.URLParams
 18193  	ctx_         context.Context
 18194  	header_      http.Header
 18195  }
 18196  
 18197  // StoreInstances: StoreInstances stores DICOM instances associated with study
 18198  // instance unique identifiers (SUID). See Store Transaction
 18199  // (http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.5).
 18200  // For details on the implementation of StoreInstances, see Store transaction
 18201  // (https://cloud.google.com/healthcare/docs/dicom#store_transaction) in the
 18202  // Cloud Healthcare API conformance statement. For samples that show how to
 18203  // call StoreInstances, see Store DICOM data
 18204  // (https://cloud.google.com/healthcare/docs/how-tos/dicomweb#store-dicom).
 18205  //
 18206  //   - dicomWebPath: The path of the StoreInstances DICOMweb request. For
 18207  //     example, `studies/[{study_uid}]`. Note that the `study_uid` is optional.
 18208  //   - parent: The name of the DICOM store that is being accessed. For example,
 18209  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS
 18210  //     tores/{dicom_store_id}`.
 18211  func (r *ProjectsLocationsDatasetsDicomStoresStudiesService) StoreInstances(parent string, dicomWebPath string, body_ io.Reader) *ProjectsLocationsDatasetsDicomStoresStudiesStoreInstancesCall {
 18212  	c := &ProjectsLocationsDatasetsDicomStoresStudiesStoreInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18213  	c.parent = parent
 18214  	c.dicomWebPath = dicomWebPath
 18215  	c.body_ = body_
 18216  	return c
 18217  }
 18218  
 18219  // Fields allows partial responses to be retrieved. See
 18220  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18221  // details.
 18222  func (c *ProjectsLocationsDatasetsDicomStoresStudiesStoreInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesStoreInstancesCall {
 18223  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18224  	return c
 18225  }
 18226  
 18227  // Context sets the context to be used in this call's Do method.
 18228  func (c *ProjectsLocationsDatasetsDicomStoresStudiesStoreInstancesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesStoreInstancesCall {
 18229  	c.ctx_ = ctx
 18230  	return c
 18231  }
 18232  
 18233  // Header returns a http.Header that can be modified by the caller to add
 18234  // headers to the request.
 18235  func (c *ProjectsLocationsDatasetsDicomStoresStudiesStoreInstancesCall) Header() http.Header {
 18236  	if c.header_ == nil {
 18237  		c.header_ = make(http.Header)
 18238  	}
 18239  	return c.header_
 18240  }
 18241  
 18242  func (c *ProjectsLocationsDatasetsDicomStoresStudiesStoreInstancesCall) doRequest(alt string) (*http.Response, error) {
 18243  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18244  	var body io.Reader = nil
 18245  	body = c.body_
 18246  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
 18247  	urls += "?" + c.urlParams_.Encode()
 18248  	req, err := http.NewRequest("POST", urls, body)
 18249  	if err != nil {
 18250  		return nil, err
 18251  	}
 18252  	req.Header = reqHeaders
 18253  	googleapi.Expand(req.URL, map[string]string{
 18254  		"parent":       c.parent,
 18255  		"dicomWebPath": c.dicomWebPath,
 18256  	})
 18257  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18258  }
 18259  
 18260  // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.storeInstances" call.
 18261  func (c *ProjectsLocationsDatasetsDicomStoresStudiesStoreInstancesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 18262  	gensupport.SetOptions(c.urlParams_, opts...)
 18263  	return c.doRequest("")
 18264  }
 18265  
 18266  type ProjectsLocationsDatasetsDicomStoresStudiesSeriesDeleteCall struct {
 18267  	s            *Service
 18268  	parent       string
 18269  	dicomWebPath string
 18270  	urlParams_   gensupport.URLParams
 18271  	ctx_         context.Context
 18272  	header_      http.Header
 18273  }
 18274  
 18275  // Delete: DeleteSeries deletes all instances within the given study and series
 18276  // using a long running operation. The method returns an Operation which will
 18277  // be marked successful when the deletion is complete. Warning: Instances
 18278  // cannot be inserted into a series that is being deleted by an operation until
 18279  // the operation completes. For samples that show how to call DeleteSeries, see
 18280  // Delete a study, series, or instance
 18281  // (https://cloud.google.com/healthcare/docs/how-tos/dicomweb#delete-dicom).
 18282  //
 18283  //   - dicomWebPath: The path of the DeleteSeries request. For example,
 18284  //     `studies/{study_uid}/series/{series_uid}`.
 18285  //   - parent: The name of the DICOM store that is being accessed. For example,
 18286  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS
 18287  //     tores/{dicom_store_id}`.
 18288  func (r *ProjectsLocationsDatasetsDicomStoresStudiesSeriesService) Delete(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesDeleteCall {
 18289  	c := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18290  	c.parent = parent
 18291  	c.dicomWebPath = dicomWebPath
 18292  	return c
 18293  }
 18294  
 18295  // Fields allows partial responses to be retrieved. See
 18296  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18297  // details.
 18298  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesDeleteCall {
 18299  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18300  	return c
 18301  }
 18302  
 18303  // Context sets the context to be used in this call's Do method.
 18304  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesDeleteCall {
 18305  	c.ctx_ = ctx
 18306  	return c
 18307  }
 18308  
 18309  // Header returns a http.Header that can be modified by the caller to add
 18310  // headers to the request.
 18311  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesDeleteCall) Header() http.Header {
 18312  	if c.header_ == nil {
 18313  		c.header_ = make(http.Header)
 18314  	}
 18315  	return c.header_
 18316  }
 18317  
 18318  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesDeleteCall) doRequest(alt string) (*http.Response, error) {
 18319  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18320  	var body io.Reader = nil
 18321  	c.urlParams_.Set("alt", alt)
 18322  	c.urlParams_.Set("prettyPrint", "false")
 18323  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
 18324  	urls += "?" + c.urlParams_.Encode()
 18325  	req, err := http.NewRequest("DELETE", urls, body)
 18326  	if err != nil {
 18327  		return nil, err
 18328  	}
 18329  	req.Header = reqHeaders
 18330  	googleapi.Expand(req.URL, map[string]string{
 18331  		"parent":       c.parent,
 18332  		"dicomWebPath": c.dicomWebPath,
 18333  	})
 18334  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18335  }
 18336  
 18337  // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.delete" call.
 18338  // Any non-2xx status code is an error. Response headers are in either
 18339  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 18340  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 18341  // whether the returned error was because http.StatusNotModified was returned.
 18342  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 18343  	gensupport.SetOptions(c.urlParams_, opts...)
 18344  	res, err := c.doRequest("json")
 18345  	if res != nil && res.StatusCode == http.StatusNotModified {
 18346  		if res.Body != nil {
 18347  			res.Body.Close()
 18348  		}
 18349  		return nil, gensupport.WrapError(&googleapi.Error{
 18350  			Code:   res.StatusCode,
 18351  			Header: res.Header,
 18352  		})
 18353  	}
 18354  	if err != nil {
 18355  		return nil, err
 18356  	}
 18357  	defer googleapi.CloseBody(res)
 18358  	if err := googleapi.CheckResponse(res); err != nil {
 18359  		return nil, gensupport.WrapError(err)
 18360  	}
 18361  	ret := &Operation{
 18362  		ServerResponse: googleapi.ServerResponse{
 18363  			Header:         res.Header,
 18364  			HTTPStatusCode: res.StatusCode,
 18365  		},
 18366  	}
 18367  	target := &ret
 18368  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18369  		return nil, err
 18370  	}
 18371  	return ret, nil
 18372  }
 18373  
 18374  type ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveMetadataCall struct {
 18375  	s            *Service
 18376  	parent       string
 18377  	dicomWebPath string
 18378  	urlParams_   gensupport.URLParams
 18379  	ifNoneMatch_ string
 18380  	ctx_         context.Context
 18381  	header_      http.Header
 18382  }
 18383  
 18384  // RetrieveMetadata: RetrieveSeriesMetadata returns instance associated with
 18385  // the given study and series, presented as metadata with the bulk data
 18386  // removed. See RetrieveTransaction
 18387  // (http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4).
 18388  // For details on the implementation of RetrieveSeriesMetadata, see Metadata
 18389  // resources
 18390  // (https://cloud.google.com/healthcare/docs/dicom#metadata_resources) in the
 18391  // Cloud Healthcare API conformance statement. For samples that show how to
 18392  // call RetrieveSeriesMetadata, see Retrieve metadata
 18393  // (https://cloud.google.com/healthcare/docs/how-tos/dicomweb#retrieve-metadata).
 18394  //
 18395  //   - dicomWebPath: The path of the RetrieveSeriesMetadata DICOMweb request. For
 18396  //     example, `studies/{study_uid}/series/{series_uid}/metadata`.
 18397  //   - parent: The name of the DICOM store that is being accessed. For example,
 18398  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS
 18399  //     tores/{dicom_store_id}`.
 18400  func (r *ProjectsLocationsDatasetsDicomStoresStudiesSeriesService) RetrieveMetadata(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveMetadataCall {
 18401  	c := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18402  	c.parent = parent
 18403  	c.dicomWebPath = dicomWebPath
 18404  	return c
 18405  }
 18406  
 18407  // Fields allows partial responses to be retrieved. See
 18408  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18409  // details.
 18410  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveMetadataCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveMetadataCall {
 18411  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18412  	return c
 18413  }
 18414  
 18415  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18416  // object's ETag matches the given value. This is useful for getting updates
 18417  // only after the object has changed since the last request.
 18418  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveMetadataCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveMetadataCall {
 18419  	c.ifNoneMatch_ = entityTag
 18420  	return c
 18421  }
 18422  
 18423  // Context sets the context to be used in this call's Do method.
 18424  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveMetadataCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveMetadataCall {
 18425  	c.ctx_ = ctx
 18426  	return c
 18427  }
 18428  
 18429  // Header returns a http.Header that can be modified by the caller to add
 18430  // headers to the request.
 18431  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveMetadataCall) Header() http.Header {
 18432  	if c.header_ == nil {
 18433  		c.header_ = make(http.Header)
 18434  	}
 18435  	return c.header_
 18436  }
 18437  
 18438  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveMetadataCall) doRequest(alt string) (*http.Response, error) {
 18439  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18440  	if c.ifNoneMatch_ != "" {
 18441  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18442  	}
 18443  	var body io.Reader = nil
 18444  	c.urlParams_.Set("alt", alt)
 18445  	c.urlParams_.Set("prettyPrint", "false")
 18446  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
 18447  	urls += "?" + c.urlParams_.Encode()
 18448  	req, err := http.NewRequest("GET", urls, body)
 18449  	if err != nil {
 18450  		return nil, err
 18451  	}
 18452  	req.Header = reqHeaders
 18453  	googleapi.Expand(req.URL, map[string]string{
 18454  		"parent":       c.parent,
 18455  		"dicomWebPath": c.dicomWebPath,
 18456  	})
 18457  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18458  }
 18459  
 18460  // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.retrieveMetadata" call.
 18461  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveMetadataCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 18462  	gensupport.SetOptions(c.urlParams_, opts...)
 18463  	return c.doRequest("")
 18464  }
 18465  
 18466  type ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveSeriesCall struct {
 18467  	s            *Service
 18468  	parent       string
 18469  	dicomWebPath string
 18470  	urlParams_   gensupport.URLParams
 18471  	ifNoneMatch_ string
 18472  	ctx_         context.Context
 18473  	header_      http.Header
 18474  }
 18475  
 18476  // RetrieveSeries: RetrieveSeries returns all instances within the given study
 18477  // and series. See RetrieveTransaction
 18478  // (http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4).
 18479  // For details on the implementation of RetrieveSeries, see DICOM
 18480  // study/series/instances
 18481  // (https://cloud.google.com/healthcare/docs/dicom#dicom_studyseriesinstances)
 18482  // in the Cloud Healthcare API conformance statement. For samples that show how
 18483  // to call RetrieveSeries, see Retrieve DICOM data
 18484  // (https://cloud.google.com/healthcare/docs/how-tos/dicomweb#retrieve-dicom).
 18485  //
 18486  //   - dicomWebPath: The path of the RetrieveSeries DICOMweb request. For
 18487  //     example, `studies/{study_uid}/series/{series_uid}`.
 18488  //   - parent: The name of the DICOM store that is being accessed. For example,
 18489  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS
 18490  //     tores/{dicom_store_id}`.
 18491  func (r *ProjectsLocationsDatasetsDicomStoresStudiesSeriesService) RetrieveSeries(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveSeriesCall {
 18492  	c := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveSeriesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18493  	c.parent = parent
 18494  	c.dicomWebPath = dicomWebPath
 18495  	return c
 18496  }
 18497  
 18498  // Fields allows partial responses to be retrieved. See
 18499  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18500  // details.
 18501  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveSeriesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveSeriesCall {
 18502  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18503  	return c
 18504  }
 18505  
 18506  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18507  // object's ETag matches the given value. This is useful for getting updates
 18508  // only after the object has changed since the last request.
 18509  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveSeriesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveSeriesCall {
 18510  	c.ifNoneMatch_ = entityTag
 18511  	return c
 18512  }
 18513  
 18514  // Context sets the context to be used in this call's Do method.
 18515  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveSeriesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveSeriesCall {
 18516  	c.ctx_ = ctx
 18517  	return c
 18518  }
 18519  
 18520  // Header returns a http.Header that can be modified by the caller to add
 18521  // headers to the request.
 18522  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveSeriesCall) Header() http.Header {
 18523  	if c.header_ == nil {
 18524  		c.header_ = make(http.Header)
 18525  	}
 18526  	return c.header_
 18527  }
 18528  
 18529  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveSeriesCall) doRequest(alt string) (*http.Response, error) {
 18530  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18531  	if c.ifNoneMatch_ != "" {
 18532  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18533  	}
 18534  	var body io.Reader = nil
 18535  	c.urlParams_.Set("alt", alt)
 18536  	c.urlParams_.Set("prettyPrint", "false")
 18537  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
 18538  	urls += "?" + c.urlParams_.Encode()
 18539  	req, err := http.NewRequest("GET", urls, body)
 18540  	if err != nil {
 18541  		return nil, err
 18542  	}
 18543  	req.Header = reqHeaders
 18544  	googleapi.Expand(req.URL, map[string]string{
 18545  		"parent":       c.parent,
 18546  		"dicomWebPath": c.dicomWebPath,
 18547  	})
 18548  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18549  }
 18550  
 18551  // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.retrieveSeries" call.
 18552  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesRetrieveSeriesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 18553  	gensupport.SetOptions(c.urlParams_, opts...)
 18554  	return c.doRequest("")
 18555  }
 18556  
 18557  type ProjectsLocationsDatasetsDicomStoresStudiesSeriesSearchForInstancesCall struct {
 18558  	s            *Service
 18559  	parent       string
 18560  	dicomWebPath string
 18561  	urlParams_   gensupport.URLParams
 18562  	ifNoneMatch_ string
 18563  	ctx_         context.Context
 18564  	header_      http.Header
 18565  }
 18566  
 18567  // SearchForInstances: SearchForInstances returns a list of matching instances.
 18568  // See RetrieveTransaction
 18569  // (http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4).
 18570  // For details on the implementation of SearchForInstances, see Search
 18571  // transaction
 18572  // (https://cloud.google.com/healthcare/docs/dicom#search_transaction) in the
 18573  // Cloud Healthcare API conformance statement. For samples that show how to
 18574  // call SearchForInstances, see Search for DICOM data
 18575  // (https://cloud.google.com/healthcare/docs/how-tos/dicomweb#search-dicom).
 18576  //
 18577  //   - dicomWebPath: The path of the SearchForInstancesRequest DICOMweb request.
 18578  //     For example, `instances`, `series/{series_uid}/instances`, or
 18579  //     `studies/{study_uid}/instances`.
 18580  //   - parent: The name of the DICOM store that is being accessed. For example,
 18581  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS
 18582  //     tores/{dicom_store_id}`.
 18583  func (r *ProjectsLocationsDatasetsDicomStoresStudiesSeriesService) SearchForInstances(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesSearchForInstancesCall {
 18584  	c := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesSearchForInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18585  	c.parent = parent
 18586  	c.dicomWebPath = dicomWebPath
 18587  	return c
 18588  }
 18589  
 18590  // Fields allows partial responses to be retrieved. See
 18591  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18592  // details.
 18593  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesSearchForInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesSearchForInstancesCall {
 18594  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18595  	return c
 18596  }
 18597  
 18598  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18599  // object's ETag matches the given value. This is useful for getting updates
 18600  // only after the object has changed since the last request.
 18601  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesSearchForInstancesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesSearchForInstancesCall {
 18602  	c.ifNoneMatch_ = entityTag
 18603  	return c
 18604  }
 18605  
 18606  // Context sets the context to be used in this call's Do method.
 18607  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesSearchForInstancesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesSearchForInstancesCall {
 18608  	c.ctx_ = ctx
 18609  	return c
 18610  }
 18611  
 18612  // Header returns a http.Header that can be modified by the caller to add
 18613  // headers to the request.
 18614  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesSearchForInstancesCall) Header() http.Header {
 18615  	if c.header_ == nil {
 18616  		c.header_ = make(http.Header)
 18617  	}
 18618  	return c.header_
 18619  }
 18620  
 18621  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesSearchForInstancesCall) doRequest(alt string) (*http.Response, error) {
 18622  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18623  	if c.ifNoneMatch_ != "" {
 18624  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18625  	}
 18626  	var body io.Reader = nil
 18627  	c.urlParams_.Set("alt", alt)
 18628  	c.urlParams_.Set("prettyPrint", "false")
 18629  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
 18630  	urls += "?" + c.urlParams_.Encode()
 18631  	req, err := http.NewRequest("GET", urls, body)
 18632  	if err != nil {
 18633  		return nil, err
 18634  	}
 18635  	req.Header = reqHeaders
 18636  	googleapi.Expand(req.URL, map[string]string{
 18637  		"parent":       c.parent,
 18638  		"dicomWebPath": c.dicomWebPath,
 18639  	})
 18640  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18641  }
 18642  
 18643  // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.searchForInstances" call.
 18644  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesSearchForInstancesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 18645  	gensupport.SetOptions(c.urlParams_, opts...)
 18646  	return c.doRequest("")
 18647  }
 18648  
 18649  type ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesDeleteCall struct {
 18650  	s            *Service
 18651  	parent       string
 18652  	dicomWebPath string
 18653  	urlParams_   gensupport.URLParams
 18654  	ctx_         context.Context
 18655  	header_      http.Header
 18656  }
 18657  
 18658  // Delete: DeleteInstance deletes an instance associated with the given study,
 18659  // series, and SOP Instance UID. Delete requests are equivalent to the GET
 18660  // requests specified in the Retrieve transaction. Study and series search
 18661  // results can take a few seconds to be updated after an instance is deleted
 18662  // using DeleteInstance. For samples that show how to call DeleteInstance, see
 18663  // Delete a study, series, or instance
 18664  // (https://cloud.google.com/healthcare/docs/how-tos/dicomweb#delete-dicom).
 18665  //
 18666  //   - dicomWebPath: The path of the DeleteInstance request. For example,
 18667  //     `studies/{study_uid}/series/{series_uid}/instances/{instance_uid}`.
 18668  //   - parent: The name of the DICOM store that is being accessed. For example,
 18669  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS
 18670  //     tores/{dicom_store_id}`.
 18671  func (r *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesService) Delete(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesDeleteCall {
 18672  	c := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18673  	c.parent = parent
 18674  	c.dicomWebPath = dicomWebPath
 18675  	return c
 18676  }
 18677  
 18678  // Fields allows partial responses to be retrieved. See
 18679  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18680  // details.
 18681  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesDeleteCall {
 18682  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18683  	return c
 18684  }
 18685  
 18686  // Context sets the context to be used in this call's Do method.
 18687  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesDeleteCall {
 18688  	c.ctx_ = ctx
 18689  	return c
 18690  }
 18691  
 18692  // Header returns a http.Header that can be modified by the caller to add
 18693  // headers to the request.
 18694  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesDeleteCall) Header() http.Header {
 18695  	if c.header_ == nil {
 18696  		c.header_ = make(http.Header)
 18697  	}
 18698  	return c.header_
 18699  }
 18700  
 18701  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesDeleteCall) doRequest(alt string) (*http.Response, error) {
 18702  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18703  	var body io.Reader = nil
 18704  	c.urlParams_.Set("alt", alt)
 18705  	c.urlParams_.Set("prettyPrint", "false")
 18706  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
 18707  	urls += "?" + c.urlParams_.Encode()
 18708  	req, err := http.NewRequest("DELETE", urls, body)
 18709  	if err != nil {
 18710  		return nil, err
 18711  	}
 18712  	req.Header = reqHeaders
 18713  	googleapi.Expand(req.URL, map[string]string{
 18714  		"parent":       c.parent,
 18715  		"dicomWebPath": c.dicomWebPath,
 18716  	})
 18717  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18718  }
 18719  
 18720  // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.instances.delete" call.
 18721  // Any non-2xx status code is an error. Response headers are in either
 18722  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 18723  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 18724  // whether the returned error was because http.StatusNotModified was returned.
 18725  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 18726  	gensupport.SetOptions(c.urlParams_, opts...)
 18727  	res, err := c.doRequest("json")
 18728  	if res != nil && res.StatusCode == http.StatusNotModified {
 18729  		if res.Body != nil {
 18730  			res.Body.Close()
 18731  		}
 18732  		return nil, gensupport.WrapError(&googleapi.Error{
 18733  			Code:   res.StatusCode,
 18734  			Header: res.Header,
 18735  		})
 18736  	}
 18737  	if err != nil {
 18738  		return nil, err
 18739  	}
 18740  	defer googleapi.CloseBody(res)
 18741  	if err := googleapi.CheckResponse(res); err != nil {
 18742  		return nil, gensupport.WrapError(err)
 18743  	}
 18744  	ret := &Empty{
 18745  		ServerResponse: googleapi.ServerResponse{
 18746  			Header:         res.Header,
 18747  			HTTPStatusCode: res.StatusCode,
 18748  		},
 18749  	}
 18750  	target := &ret
 18751  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18752  		return nil, err
 18753  	}
 18754  	return ret, nil
 18755  }
 18756  
 18757  type ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveInstanceCall struct {
 18758  	s            *Service
 18759  	parent       string
 18760  	dicomWebPath string
 18761  	urlParams_   gensupport.URLParams
 18762  	ifNoneMatch_ string
 18763  	ctx_         context.Context
 18764  	header_      http.Header
 18765  }
 18766  
 18767  // RetrieveInstance: RetrieveInstance returns instance associated with the
 18768  // given study, series, and SOP Instance UID. See RetrieveTransaction
 18769  // (http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4).
 18770  // For details on the implementation of RetrieveInstance, see DICOM
 18771  // study/series/instances
 18772  // (https://cloud.google.com/healthcare/docs/dicom#dicom_studyseriesinstances)
 18773  // and DICOM instances
 18774  // (https://cloud.google.com/healthcare/docs/dicom#dicom_instances) in the
 18775  // Cloud Healthcare API conformance statement. For samples that show how to
 18776  // call RetrieveInstance, see Retrieve an instance
 18777  // (https://cloud.google.com/healthcare/docs/how-tos/dicomweb#retrieve-instance).
 18778  //
 18779  //   - dicomWebPath: The path of the RetrieveInstance DICOMweb request. For
 18780  //     example,
 18781  //     `studies/{study_uid}/series/{series_uid}/instances/{instance_uid}`.
 18782  //   - parent: The name of the DICOM store that is being accessed. For example,
 18783  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS
 18784  //     tores/{dicom_store_id}`.
 18785  func (r *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesService) RetrieveInstance(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveInstanceCall {
 18786  	c := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveInstanceCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18787  	c.parent = parent
 18788  	c.dicomWebPath = dicomWebPath
 18789  	return c
 18790  }
 18791  
 18792  // Fields allows partial responses to be retrieved. See
 18793  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18794  // details.
 18795  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveInstanceCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveInstanceCall {
 18796  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18797  	return c
 18798  }
 18799  
 18800  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18801  // object's ETag matches the given value. This is useful for getting updates
 18802  // only after the object has changed since the last request.
 18803  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveInstanceCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveInstanceCall {
 18804  	c.ifNoneMatch_ = entityTag
 18805  	return c
 18806  }
 18807  
 18808  // Context sets the context to be used in this call's Do method.
 18809  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveInstanceCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveInstanceCall {
 18810  	c.ctx_ = ctx
 18811  	return c
 18812  }
 18813  
 18814  // Header returns a http.Header that can be modified by the caller to add
 18815  // headers to the request.
 18816  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveInstanceCall) Header() http.Header {
 18817  	if c.header_ == nil {
 18818  		c.header_ = make(http.Header)
 18819  	}
 18820  	return c.header_
 18821  }
 18822  
 18823  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveInstanceCall) doRequest(alt string) (*http.Response, error) {
 18824  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18825  	if c.ifNoneMatch_ != "" {
 18826  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18827  	}
 18828  	var body io.Reader = nil
 18829  	c.urlParams_.Set("alt", alt)
 18830  	c.urlParams_.Set("prettyPrint", "false")
 18831  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
 18832  	urls += "?" + c.urlParams_.Encode()
 18833  	req, err := http.NewRequest("GET", urls, body)
 18834  	if err != nil {
 18835  		return nil, err
 18836  	}
 18837  	req.Header = reqHeaders
 18838  	googleapi.Expand(req.URL, map[string]string{
 18839  		"parent":       c.parent,
 18840  		"dicomWebPath": c.dicomWebPath,
 18841  	})
 18842  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18843  }
 18844  
 18845  // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.instances.retrieveInstance" call.
 18846  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveInstanceCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 18847  	gensupport.SetOptions(c.urlParams_, opts...)
 18848  	return c.doRequest("")
 18849  }
 18850  
 18851  type ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveMetadataCall struct {
 18852  	s            *Service
 18853  	parent       string
 18854  	dicomWebPath string
 18855  	urlParams_   gensupport.URLParams
 18856  	ifNoneMatch_ string
 18857  	ctx_         context.Context
 18858  	header_      http.Header
 18859  }
 18860  
 18861  // RetrieveMetadata: RetrieveInstanceMetadata returns instance associated with
 18862  // the given study, series, and SOP Instance UID presented as metadata with the
 18863  // bulk data removed. See RetrieveTransaction
 18864  // (http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4).
 18865  // For details on the implementation of RetrieveInstanceMetadata, see Metadata
 18866  // resources
 18867  // (https://cloud.google.com/healthcare/docs/dicom#metadata_resources) in the
 18868  // Cloud Healthcare API conformance statement. For samples that show how to
 18869  // call RetrieveInstanceMetadata, see Retrieve metadata
 18870  // (https://cloud.google.com/healthcare/docs/how-tos/dicomweb#retrieve-metadata).
 18871  //
 18872  //   - dicomWebPath: The path of the RetrieveInstanceMetadata DICOMweb request.
 18873  //     For example,
 18874  //     `studies/{study_uid}/series/{series_uid}/instances/{instance_uid}/metadata`
 18875  //     .
 18876  //   - parent: The name of the DICOM store that is being accessed. For example,
 18877  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS
 18878  //     tores/{dicom_store_id}`.
 18879  func (r *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesService) RetrieveMetadata(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveMetadataCall {
 18880  	c := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18881  	c.parent = parent
 18882  	c.dicomWebPath = dicomWebPath
 18883  	return c
 18884  }
 18885  
 18886  // Fields allows partial responses to be retrieved. See
 18887  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18888  // details.
 18889  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveMetadataCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveMetadataCall {
 18890  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18891  	return c
 18892  }
 18893  
 18894  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18895  // object's ETag matches the given value. This is useful for getting updates
 18896  // only after the object has changed since the last request.
 18897  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveMetadataCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveMetadataCall {
 18898  	c.ifNoneMatch_ = entityTag
 18899  	return c
 18900  }
 18901  
 18902  // Context sets the context to be used in this call's Do method.
 18903  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveMetadataCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveMetadataCall {
 18904  	c.ctx_ = ctx
 18905  	return c
 18906  }
 18907  
 18908  // Header returns a http.Header that can be modified by the caller to add
 18909  // headers to the request.
 18910  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveMetadataCall) Header() http.Header {
 18911  	if c.header_ == nil {
 18912  		c.header_ = make(http.Header)
 18913  	}
 18914  	return c.header_
 18915  }
 18916  
 18917  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveMetadataCall) doRequest(alt string) (*http.Response, error) {
 18918  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18919  	if c.ifNoneMatch_ != "" {
 18920  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18921  	}
 18922  	var body io.Reader = nil
 18923  	c.urlParams_.Set("alt", alt)
 18924  	c.urlParams_.Set("prettyPrint", "false")
 18925  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
 18926  	urls += "?" + c.urlParams_.Encode()
 18927  	req, err := http.NewRequest("GET", urls, body)
 18928  	if err != nil {
 18929  		return nil, err
 18930  	}
 18931  	req.Header = reqHeaders
 18932  	googleapi.Expand(req.URL, map[string]string{
 18933  		"parent":       c.parent,
 18934  		"dicomWebPath": c.dicomWebPath,
 18935  	})
 18936  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18937  }
 18938  
 18939  // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.instances.retrieveMetadata" call.
 18940  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveMetadataCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 18941  	gensupport.SetOptions(c.urlParams_, opts...)
 18942  	return c.doRequest("")
 18943  }
 18944  
 18945  type ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveRenderedCall struct {
 18946  	s            *Service
 18947  	parent       string
 18948  	dicomWebPath string
 18949  	urlParams_   gensupport.URLParams
 18950  	ifNoneMatch_ string
 18951  	ctx_         context.Context
 18952  	header_      http.Header
 18953  }
 18954  
 18955  // RetrieveRendered: RetrieveRenderedInstance returns instance associated with
 18956  // the given study, series, and SOP Instance UID in an acceptable Rendered
 18957  // Media Type. See RetrieveTransaction
 18958  // (http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4).
 18959  // For details on the implementation of RetrieveRenderedInstance, see Rendered
 18960  // resources
 18961  // (https://cloud.google.com/healthcare/docs/dicom#rendered_resources) in the
 18962  // Cloud Healthcare API conformance statement. For samples that show how to
 18963  // call RetrieveRenderedInstance, see Retrieve consumer image formats
 18964  // (https://cloud.google.com/healthcare/docs/how-tos/dicomweb#retrieve-consumer).
 18965  //
 18966  //   - dicomWebPath: The path of the RetrieveRenderedInstance DICOMweb request.
 18967  //     For example,
 18968  //     `studies/{study_uid}/series/{series_uid}/instances/{instance_uid}/rendered`
 18969  //     .
 18970  //   - parent: The name of the DICOM store that is being accessed. For example,
 18971  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS
 18972  //     tores/{dicom_store_id}`.
 18973  func (r *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesService) RetrieveRendered(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveRenderedCall {
 18974  	c := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveRenderedCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18975  	c.parent = parent
 18976  	c.dicomWebPath = dicomWebPath
 18977  	return c
 18978  }
 18979  
 18980  // Fields allows partial responses to be retrieved. See
 18981  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18982  // details.
 18983  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveRenderedCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveRenderedCall {
 18984  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18985  	return c
 18986  }
 18987  
 18988  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18989  // object's ETag matches the given value. This is useful for getting updates
 18990  // only after the object has changed since the last request.
 18991  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveRenderedCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveRenderedCall {
 18992  	c.ifNoneMatch_ = entityTag
 18993  	return c
 18994  }
 18995  
 18996  // Context sets the context to be used in this call's Do method.
 18997  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveRenderedCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveRenderedCall {
 18998  	c.ctx_ = ctx
 18999  	return c
 19000  }
 19001  
 19002  // Header returns a http.Header that can be modified by the caller to add
 19003  // headers to the request.
 19004  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveRenderedCall) Header() http.Header {
 19005  	if c.header_ == nil {
 19006  		c.header_ = make(http.Header)
 19007  	}
 19008  	return c.header_
 19009  }
 19010  
 19011  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveRenderedCall) doRequest(alt string) (*http.Response, error) {
 19012  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19013  	if c.ifNoneMatch_ != "" {
 19014  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19015  	}
 19016  	var body io.Reader = nil
 19017  	c.urlParams_.Set("alt", alt)
 19018  	c.urlParams_.Set("prettyPrint", "false")
 19019  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
 19020  	urls += "?" + c.urlParams_.Encode()
 19021  	req, err := http.NewRequest("GET", urls, body)
 19022  	if err != nil {
 19023  		return nil, err
 19024  	}
 19025  	req.Header = reqHeaders
 19026  	googleapi.Expand(req.URL, map[string]string{
 19027  		"parent":       c.parent,
 19028  		"dicomWebPath": c.dicomWebPath,
 19029  	})
 19030  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19031  }
 19032  
 19033  // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.instances.retrieveRendered" call.
 19034  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveRenderedCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 19035  	gensupport.SetOptions(c.urlParams_, opts...)
 19036  	return c.doRequest("")
 19037  }
 19038  
 19039  type ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall struct {
 19040  	s            *Service
 19041  	parent       string
 19042  	dicomWebPath string
 19043  	urlParams_   gensupport.URLParams
 19044  	ifNoneMatch_ string
 19045  	ctx_         context.Context
 19046  	header_      http.Header
 19047  }
 19048  
 19049  // RetrieveBulkdata: Returns uncompressed, unencoded bytes representing the
 19050  // referenced bulkdata tag from an instance. See [Retrieve Transaction]
 19051  // (http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4){:
 19052  // .external}. For details on the implementation of RetrieveBulkdata, see
 19053  // Bulkdata resources
 19054  // (https://cloud.google.com/healthcare/docs/dicom#bulkdata-resources) in the
 19055  // Cloud Healthcare API conformance statement. For samples that show how to
 19056  // call RetrieveBulkdata, see Retrieve bulkdata
 19057  // (https://cloud.google.com/healthcare/docs/how-tos/dicomweb#retrieve-bulkdata).
 19058  //
 19059  //   - dicomWebPath: The path for the `RetrieveBulkdata` DICOMweb request. For
 19060  //     example,
 19061  //     `studies/{study_uid}/series/{series_uid}/instances/{instance_uid}/bukdata/{
 19062  //     bulkdata_uri}`.
 19063  //   - parent: The name of the DICOM store that is being accessed. For example,
 19064  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS
 19065  //     tores/{dicom_store_id}`.
 19066  func (r *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataService) RetrieveBulkdata(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall {
 19067  	c := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19068  	c.parent = parent
 19069  	c.dicomWebPath = dicomWebPath
 19070  	return c
 19071  }
 19072  
 19073  // Fields allows partial responses to be retrieved. See
 19074  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19075  // details.
 19076  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall {
 19077  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19078  	return c
 19079  }
 19080  
 19081  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19082  // object's ETag matches the given value. This is useful for getting updates
 19083  // only after the object has changed since the last request.
 19084  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall {
 19085  	c.ifNoneMatch_ = entityTag
 19086  	return c
 19087  }
 19088  
 19089  // Context sets the context to be used in this call's Do method.
 19090  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall {
 19091  	c.ctx_ = ctx
 19092  	return c
 19093  }
 19094  
 19095  // Header returns a http.Header that can be modified by the caller to add
 19096  // headers to the request.
 19097  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall) Header() http.Header {
 19098  	if c.header_ == nil {
 19099  		c.header_ = make(http.Header)
 19100  	}
 19101  	return c.header_
 19102  }
 19103  
 19104  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall) doRequest(alt string) (*http.Response, error) {
 19105  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19106  	if c.ifNoneMatch_ != "" {
 19107  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19108  	}
 19109  	var body io.Reader = nil
 19110  	c.urlParams_.Set("alt", alt)
 19111  	c.urlParams_.Set("prettyPrint", "false")
 19112  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
 19113  	urls += "?" + c.urlParams_.Encode()
 19114  	req, err := http.NewRequest("GET", urls, body)
 19115  	if err != nil {
 19116  		return nil, err
 19117  	}
 19118  	req.Header = reqHeaders
 19119  	googleapi.Expand(req.URL, map[string]string{
 19120  		"parent":       c.parent,
 19121  		"dicomWebPath": c.dicomWebPath,
 19122  	})
 19123  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19124  }
 19125  
 19126  // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.instances.bulkdata.retrieveBulkdata" call.
 19127  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 19128  	gensupport.SetOptions(c.urlParams_, opts...)
 19129  	return c.doRequest("")
 19130  }
 19131  
 19132  type ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveFramesCall struct {
 19133  	s            *Service
 19134  	parent       string
 19135  	dicomWebPath string
 19136  	urlParams_   gensupport.URLParams
 19137  	ifNoneMatch_ string
 19138  	ctx_         context.Context
 19139  	header_      http.Header
 19140  }
 19141  
 19142  // RetrieveFrames: RetrieveFrames returns instances associated with the given
 19143  // study, series, SOP Instance UID and frame numbers. See RetrieveTransaction
 19144  // (http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4).
 19145  // For details on the implementation of RetrieveFrames, see DICOM frames
 19146  // (https://cloud.google.com/healthcare/docs/dicom#dicom_frames) in the Cloud
 19147  // Healthcare API conformance statement. For samples that show how to call
 19148  // RetrieveFrames, see Retrieve DICOM data
 19149  // (https://cloud.google.com/healthcare/docs/how-tos/dicomweb#retrieve-dicom).
 19150  //
 19151  //   - dicomWebPath: The path of the RetrieveFrames DICOMweb request. For
 19152  //     example,
 19153  //     `studies/{study_uid}/series/{series_uid}/instances/{instance_uid}/frames/{f
 19154  //     rame_list}`.
 19155  //   - parent: The name of the DICOM store that is being accessed. For example,
 19156  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS
 19157  //     tores/{dicom_store_id}`.
 19158  func (r *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesService) RetrieveFrames(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveFramesCall {
 19159  	c := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveFramesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19160  	c.parent = parent
 19161  	c.dicomWebPath = dicomWebPath
 19162  	return c
 19163  }
 19164  
 19165  // Fields allows partial responses to be retrieved. See
 19166  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19167  // details.
 19168  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveFramesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveFramesCall {
 19169  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19170  	return c
 19171  }
 19172  
 19173  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19174  // object's ETag matches the given value. This is useful for getting updates
 19175  // only after the object has changed since the last request.
 19176  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveFramesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveFramesCall {
 19177  	c.ifNoneMatch_ = entityTag
 19178  	return c
 19179  }
 19180  
 19181  // Context sets the context to be used in this call's Do method.
 19182  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveFramesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveFramesCall {
 19183  	c.ctx_ = ctx
 19184  	return c
 19185  }
 19186  
 19187  // Header returns a http.Header that can be modified by the caller to add
 19188  // headers to the request.
 19189  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveFramesCall) Header() http.Header {
 19190  	if c.header_ == nil {
 19191  		c.header_ = make(http.Header)
 19192  	}
 19193  	return c.header_
 19194  }
 19195  
 19196  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveFramesCall) doRequest(alt string) (*http.Response, error) {
 19197  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19198  	if c.ifNoneMatch_ != "" {
 19199  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19200  	}
 19201  	var body io.Reader = nil
 19202  	c.urlParams_.Set("alt", alt)
 19203  	c.urlParams_.Set("prettyPrint", "false")
 19204  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
 19205  	urls += "?" + c.urlParams_.Encode()
 19206  	req, err := http.NewRequest("GET", urls, body)
 19207  	if err != nil {
 19208  		return nil, err
 19209  	}
 19210  	req.Header = reqHeaders
 19211  	googleapi.Expand(req.URL, map[string]string{
 19212  		"parent":       c.parent,
 19213  		"dicomWebPath": c.dicomWebPath,
 19214  	})
 19215  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19216  }
 19217  
 19218  // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.instances.frames.retrieveFrames" call.
 19219  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveFramesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 19220  	gensupport.SetOptions(c.urlParams_, opts...)
 19221  	return c.doRequest("")
 19222  }
 19223  
 19224  type ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveRenderedCall struct {
 19225  	s            *Service
 19226  	parent       string
 19227  	dicomWebPath string
 19228  	urlParams_   gensupport.URLParams
 19229  	ifNoneMatch_ string
 19230  	ctx_         context.Context
 19231  	header_      http.Header
 19232  }
 19233  
 19234  // RetrieveRendered: RetrieveRenderedFrames returns instances associated with
 19235  // the given study, series, SOP Instance UID and frame numbers in an acceptable
 19236  // Rendered Media Type. See RetrieveTransaction
 19237  // (http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4).
 19238  // For details on the implementation of RetrieveRenderedFrames, see Rendered
 19239  // resources
 19240  // (https://cloud.google.com/healthcare/docs/dicom#rendered_resources) in the
 19241  // Cloud Healthcare API conformance statement. For samples that show how to
 19242  // call RetrieveRenderedFrames, see Retrieve consumer image formats
 19243  // (https://cloud.google.com/healthcare/docs/how-tos/dicomweb#retrieve-consumer).
 19244  //
 19245  //   - dicomWebPath: The path of the RetrieveRenderedFrames DICOMweb request. For
 19246  //     example,
 19247  //     `studies/{study_uid}/series/{series_uid}/instances/{instance_uid}/frames/{f
 19248  //     rame_list}/rendered`.
 19249  //   - parent: The name of the DICOM store that is being accessed. For example,
 19250  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomS
 19251  //     tores/{dicom_store_id}`.
 19252  func (r *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesService) RetrieveRendered(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveRenderedCall {
 19253  	c := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveRenderedCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19254  	c.parent = parent
 19255  	c.dicomWebPath = dicomWebPath
 19256  	return c
 19257  }
 19258  
 19259  // Fields allows partial responses to be retrieved. See
 19260  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19261  // details.
 19262  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveRenderedCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveRenderedCall {
 19263  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19264  	return c
 19265  }
 19266  
 19267  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19268  // object's ETag matches the given value. This is useful for getting updates
 19269  // only after the object has changed since the last request.
 19270  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveRenderedCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveRenderedCall {
 19271  	c.ifNoneMatch_ = entityTag
 19272  	return c
 19273  }
 19274  
 19275  // Context sets the context to be used in this call's Do method.
 19276  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveRenderedCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveRenderedCall {
 19277  	c.ctx_ = ctx
 19278  	return c
 19279  }
 19280  
 19281  // Header returns a http.Header that can be modified by the caller to add
 19282  // headers to the request.
 19283  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveRenderedCall) Header() http.Header {
 19284  	if c.header_ == nil {
 19285  		c.header_ = make(http.Header)
 19286  	}
 19287  	return c.header_
 19288  }
 19289  
 19290  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveRenderedCall) doRequest(alt string) (*http.Response, error) {
 19291  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19292  	if c.ifNoneMatch_ != "" {
 19293  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19294  	}
 19295  	var body io.Reader = nil
 19296  	c.urlParams_.Set("alt", alt)
 19297  	c.urlParams_.Set("prettyPrint", "false")
 19298  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}")
 19299  	urls += "?" + c.urlParams_.Encode()
 19300  	req, err := http.NewRequest("GET", urls, body)
 19301  	if err != nil {
 19302  		return nil, err
 19303  	}
 19304  	req.Header = reqHeaders
 19305  	googleapi.Expand(req.URL, map[string]string{
 19306  		"parent":       c.parent,
 19307  		"dicomWebPath": c.dicomWebPath,
 19308  	})
 19309  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19310  }
 19311  
 19312  // Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.instances.frames.retrieveRendered" call.
 19313  func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveRenderedCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 19314  	gensupport.SetOptions(c.urlParams_, opts...)
 19315  	return c.doRequest("")
 19316  }
 19317  
 19318  type ProjectsLocationsDatasetsFhirStoresApplyAdminConsentsCall struct {
 19319  	s                         *Service
 19320  	name                      string
 19321  	applyadminconsentsrequest *ApplyAdminConsentsRequest
 19322  	urlParams_                gensupport.URLParams
 19323  	ctx_                      context.Context
 19324  	header_                   http.Header
 19325  }
 19326  
 19327  // ApplyAdminConsents: Applies the admin Consent resources for the FHIR store
 19328  // and reindexes the underlying resources in the FHIR store according to the
 19329  // aggregate consents. This method also updates the
 19330  // `consent_config.enforced_admin_consents` field of the FhirStore unless
 19331  // `validate_only=true` in ApplyAdminConsentsRequest. Any admin Consent
 19332  // resource change after this operation execution (including deletion) requires
 19333  // you to call ApplyAdminConsents again for the change to take effect. This
 19334  // method returns an Operation that can be used to track the progress of the
 19335  // resources that were reindexed, by calling GetOperation. Upon completion, the
 19336  // ApplyAdminConsentsResponse additionally contains the number of resources
 19337  // that were reindexed. If at least one Consent resource contains an error or
 19338  // fails be be enforced for any reason, the method returns an error instead of
 19339  // an Operation. No resources will be reindexed and the
 19340  // `consent_config.enforced_admin_consents` field will be unchanged. To enforce
 19341  // a consent check for data access, `consent_config.access_enforced` must be
 19342  // set to true for the FhirStore.
 19343  //
 19344  //   - name: The name of the FHIR store to enforce, in the format
 19345  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirSt
 19346  //     ores/{fhir_store_id}`.
 19347  func (r *ProjectsLocationsDatasetsFhirStoresService) ApplyAdminConsents(name string, applyadminconsentsrequest *ApplyAdminConsentsRequest) *ProjectsLocationsDatasetsFhirStoresApplyAdminConsentsCall {
 19348  	c := &ProjectsLocationsDatasetsFhirStoresApplyAdminConsentsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19349  	c.name = name
 19350  	c.applyadminconsentsrequest = applyadminconsentsrequest
 19351  	return c
 19352  }
 19353  
 19354  // Fields allows partial responses to be retrieved. See
 19355  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19356  // details.
 19357  func (c *ProjectsLocationsDatasetsFhirStoresApplyAdminConsentsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresApplyAdminConsentsCall {
 19358  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19359  	return c
 19360  }
 19361  
 19362  // Context sets the context to be used in this call's Do method.
 19363  func (c *ProjectsLocationsDatasetsFhirStoresApplyAdminConsentsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresApplyAdminConsentsCall {
 19364  	c.ctx_ = ctx
 19365  	return c
 19366  }
 19367  
 19368  // Header returns a http.Header that can be modified by the caller to add
 19369  // headers to the request.
 19370  func (c *ProjectsLocationsDatasetsFhirStoresApplyAdminConsentsCall) Header() http.Header {
 19371  	if c.header_ == nil {
 19372  		c.header_ = make(http.Header)
 19373  	}
 19374  	return c.header_
 19375  }
 19376  
 19377  func (c *ProjectsLocationsDatasetsFhirStoresApplyAdminConsentsCall) doRequest(alt string) (*http.Response, error) {
 19378  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19379  	var body io.Reader = nil
 19380  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.applyadminconsentsrequest)
 19381  	if err != nil {
 19382  		return nil, err
 19383  	}
 19384  	c.urlParams_.Set("alt", alt)
 19385  	c.urlParams_.Set("prettyPrint", "false")
 19386  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:applyAdminConsents")
 19387  	urls += "?" + c.urlParams_.Encode()
 19388  	req, err := http.NewRequest("POST", urls, body)
 19389  	if err != nil {
 19390  		return nil, err
 19391  	}
 19392  	req.Header = reqHeaders
 19393  	googleapi.Expand(req.URL, map[string]string{
 19394  		"name": c.name,
 19395  	})
 19396  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19397  }
 19398  
 19399  // Do executes the "healthcare.projects.locations.datasets.fhirStores.applyAdminConsents" call.
 19400  // Any non-2xx status code is an error. Response headers are in either
 19401  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 19402  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 19403  // whether the returned error was because http.StatusNotModified was returned.
 19404  func (c *ProjectsLocationsDatasetsFhirStoresApplyAdminConsentsCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 19405  	gensupport.SetOptions(c.urlParams_, opts...)
 19406  	res, err := c.doRequest("json")
 19407  	if res != nil && res.StatusCode == http.StatusNotModified {
 19408  		if res.Body != nil {
 19409  			res.Body.Close()
 19410  		}
 19411  		return nil, gensupport.WrapError(&googleapi.Error{
 19412  			Code:   res.StatusCode,
 19413  			Header: res.Header,
 19414  		})
 19415  	}
 19416  	if err != nil {
 19417  		return nil, err
 19418  	}
 19419  	defer googleapi.CloseBody(res)
 19420  	if err := googleapi.CheckResponse(res); err != nil {
 19421  		return nil, gensupport.WrapError(err)
 19422  	}
 19423  	ret := &Operation{
 19424  		ServerResponse: googleapi.ServerResponse{
 19425  			Header:         res.Header,
 19426  			HTTPStatusCode: res.StatusCode,
 19427  		},
 19428  	}
 19429  	target := &ret
 19430  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19431  		return nil, err
 19432  	}
 19433  	return ret, nil
 19434  }
 19435  
 19436  type ProjectsLocationsDatasetsFhirStoresApplyConsentsCall struct {
 19437  	s                    *Service
 19438  	name                 string
 19439  	applyconsentsrequest *ApplyConsentsRequest
 19440  	urlParams_           gensupport.URLParams
 19441  	ctx_                 context.Context
 19442  	header_              http.Header
 19443  }
 19444  
 19445  // ApplyConsents: Apply the Consent resources for the FHIR store and reindex
 19446  // the underlying resources in the FHIR store according to the aggregate
 19447  // consent. The aggregate consent of the patient in scope in this request
 19448  // replaces any previous call of this method. Any Consent resource change after
 19449  // this operation execution (including deletion) requires you to call
 19450  // ApplyConsents again to have effect. This method returns an Operation that
 19451  // can be used to track the progress of the consent resources that were
 19452  // processed by calling GetOperation. Upon completion, the
 19453  // ApplyConsentsResponse additionally contains the number of resources that was
 19454  // reindexed. Errors are logged to Cloud Logging (see Viewing error logs in
 19455  // Cloud Logging (https://cloud.google.com/healthcare/docs/how-tos/logging)).
 19456  // To enforce consent check for data access, `consent_config.access_enforced`
 19457  // must be set to true for the FhirStore.
 19458  //
 19459  //   - name: The name of the FHIR store to enforce, in the format
 19460  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirSt
 19461  //     ores/{fhir_store_id}`.
 19462  func (r *ProjectsLocationsDatasetsFhirStoresService) ApplyConsents(name string, applyconsentsrequest *ApplyConsentsRequest) *ProjectsLocationsDatasetsFhirStoresApplyConsentsCall {
 19463  	c := &ProjectsLocationsDatasetsFhirStoresApplyConsentsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19464  	c.name = name
 19465  	c.applyconsentsrequest = applyconsentsrequest
 19466  	return c
 19467  }
 19468  
 19469  // Fields allows partial responses to be retrieved. See
 19470  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19471  // details.
 19472  func (c *ProjectsLocationsDatasetsFhirStoresApplyConsentsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresApplyConsentsCall {
 19473  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19474  	return c
 19475  }
 19476  
 19477  // Context sets the context to be used in this call's Do method.
 19478  func (c *ProjectsLocationsDatasetsFhirStoresApplyConsentsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresApplyConsentsCall {
 19479  	c.ctx_ = ctx
 19480  	return c
 19481  }
 19482  
 19483  // Header returns a http.Header that can be modified by the caller to add
 19484  // headers to the request.
 19485  func (c *ProjectsLocationsDatasetsFhirStoresApplyConsentsCall) Header() http.Header {
 19486  	if c.header_ == nil {
 19487  		c.header_ = make(http.Header)
 19488  	}
 19489  	return c.header_
 19490  }
 19491  
 19492  func (c *ProjectsLocationsDatasetsFhirStoresApplyConsentsCall) doRequest(alt string) (*http.Response, error) {
 19493  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19494  	var body io.Reader = nil
 19495  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.applyconsentsrequest)
 19496  	if err != nil {
 19497  		return nil, err
 19498  	}
 19499  	c.urlParams_.Set("alt", alt)
 19500  	c.urlParams_.Set("prettyPrint", "false")
 19501  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:applyConsents")
 19502  	urls += "?" + c.urlParams_.Encode()
 19503  	req, err := http.NewRequest("POST", urls, body)
 19504  	if err != nil {
 19505  		return nil, err
 19506  	}
 19507  	req.Header = reqHeaders
 19508  	googleapi.Expand(req.URL, map[string]string{
 19509  		"name": c.name,
 19510  	})
 19511  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19512  }
 19513  
 19514  // Do executes the "healthcare.projects.locations.datasets.fhirStores.applyConsents" call.
 19515  // Any non-2xx status code is an error. Response headers are in either
 19516  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 19517  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 19518  // whether the returned error was because http.StatusNotModified was returned.
 19519  func (c *ProjectsLocationsDatasetsFhirStoresApplyConsentsCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 19520  	gensupport.SetOptions(c.urlParams_, opts...)
 19521  	res, err := c.doRequest("json")
 19522  	if res != nil && res.StatusCode == http.StatusNotModified {
 19523  		if res.Body != nil {
 19524  			res.Body.Close()
 19525  		}
 19526  		return nil, gensupport.WrapError(&googleapi.Error{
 19527  			Code:   res.StatusCode,
 19528  			Header: res.Header,
 19529  		})
 19530  	}
 19531  	if err != nil {
 19532  		return nil, err
 19533  	}
 19534  	defer googleapi.CloseBody(res)
 19535  	if err := googleapi.CheckResponse(res); err != nil {
 19536  		return nil, gensupport.WrapError(err)
 19537  	}
 19538  	ret := &Operation{
 19539  		ServerResponse: googleapi.ServerResponse{
 19540  			Header:         res.Header,
 19541  			HTTPStatusCode: res.StatusCode,
 19542  		},
 19543  	}
 19544  	target := &ret
 19545  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19546  		return nil, err
 19547  	}
 19548  	return ret, nil
 19549  }
 19550  
 19551  type ProjectsLocationsDatasetsFhirStoresConfigureSearchCall struct {
 19552  	s                      *Service
 19553  	name                   string
 19554  	configuresearchrequest *ConfigureSearchRequest
 19555  	urlParams_             gensupport.URLParams
 19556  	ctx_                   context.Context
 19557  	header_                http.Header
 19558  }
 19559  
 19560  // ConfigureSearch: Configure the search parameters for the FHIR store and
 19561  // reindex resources in the FHIR store according to the defined search
 19562  // parameters. The search parameters provided in this request will replace any
 19563  // previous search configuration. The target SearchParameter resources need to
 19564  // exist in the store before calling ConfigureSearch, otherwise an error will
 19565  // occur. This method returns an Operation that can be used to track the
 19566  // progress of the reindexing by calling GetOperation.
 19567  //
 19568  //   - name: The name of the FHIR store to configure, in the format
 19569  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirSt
 19570  //     ores/{fhir_store_id}`.
 19571  func (r *ProjectsLocationsDatasetsFhirStoresService) ConfigureSearch(name string, configuresearchrequest *ConfigureSearchRequest) *ProjectsLocationsDatasetsFhirStoresConfigureSearchCall {
 19572  	c := &ProjectsLocationsDatasetsFhirStoresConfigureSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19573  	c.name = name
 19574  	c.configuresearchrequest = configuresearchrequest
 19575  	return c
 19576  }
 19577  
 19578  // Fields allows partial responses to be retrieved. See
 19579  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19580  // details.
 19581  func (c *ProjectsLocationsDatasetsFhirStoresConfigureSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresConfigureSearchCall {
 19582  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19583  	return c
 19584  }
 19585  
 19586  // Context sets the context to be used in this call's Do method.
 19587  func (c *ProjectsLocationsDatasetsFhirStoresConfigureSearchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresConfigureSearchCall {
 19588  	c.ctx_ = ctx
 19589  	return c
 19590  }
 19591  
 19592  // Header returns a http.Header that can be modified by the caller to add
 19593  // headers to the request.
 19594  func (c *ProjectsLocationsDatasetsFhirStoresConfigureSearchCall) Header() http.Header {
 19595  	if c.header_ == nil {
 19596  		c.header_ = make(http.Header)
 19597  	}
 19598  	return c.header_
 19599  }
 19600  
 19601  func (c *ProjectsLocationsDatasetsFhirStoresConfigureSearchCall) doRequest(alt string) (*http.Response, error) {
 19602  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19603  	var body io.Reader = nil
 19604  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.configuresearchrequest)
 19605  	if err != nil {
 19606  		return nil, err
 19607  	}
 19608  	c.urlParams_.Set("alt", alt)
 19609  	c.urlParams_.Set("prettyPrint", "false")
 19610  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:configureSearch")
 19611  	urls += "?" + c.urlParams_.Encode()
 19612  	req, err := http.NewRequest("POST", urls, body)
 19613  	if err != nil {
 19614  		return nil, err
 19615  	}
 19616  	req.Header = reqHeaders
 19617  	googleapi.Expand(req.URL, map[string]string{
 19618  		"name": c.name,
 19619  	})
 19620  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19621  }
 19622  
 19623  // Do executes the "healthcare.projects.locations.datasets.fhirStores.configureSearch" call.
 19624  // Any non-2xx status code is an error. Response headers are in either
 19625  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 19626  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 19627  // whether the returned error was because http.StatusNotModified was returned.
 19628  func (c *ProjectsLocationsDatasetsFhirStoresConfigureSearchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 19629  	gensupport.SetOptions(c.urlParams_, opts...)
 19630  	res, err := c.doRequest("json")
 19631  	if res != nil && res.StatusCode == http.StatusNotModified {
 19632  		if res.Body != nil {
 19633  			res.Body.Close()
 19634  		}
 19635  		return nil, gensupport.WrapError(&googleapi.Error{
 19636  			Code:   res.StatusCode,
 19637  			Header: res.Header,
 19638  		})
 19639  	}
 19640  	if err != nil {
 19641  		return nil, err
 19642  	}
 19643  	defer googleapi.CloseBody(res)
 19644  	if err := googleapi.CheckResponse(res); err != nil {
 19645  		return nil, gensupport.WrapError(err)
 19646  	}
 19647  	ret := &Operation{
 19648  		ServerResponse: googleapi.ServerResponse{
 19649  			Header:         res.Header,
 19650  			HTTPStatusCode: res.StatusCode,
 19651  		},
 19652  	}
 19653  	target := &ret
 19654  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19655  		return nil, err
 19656  	}
 19657  	return ret, nil
 19658  }
 19659  
 19660  type ProjectsLocationsDatasetsFhirStoresCreateCall struct {
 19661  	s          *Service
 19662  	parent     string
 19663  	fhirstore  *FhirStore
 19664  	urlParams_ gensupport.URLParams
 19665  	ctx_       context.Context
 19666  	header_    http.Header
 19667  }
 19668  
 19669  // Create: Creates a new FHIR store within the parent dataset.
 19670  //
 19671  // - parent: The name of the dataset this FHIR store belongs to.
 19672  func (r *ProjectsLocationsDatasetsFhirStoresService) Create(parent string, fhirstore *FhirStore) *ProjectsLocationsDatasetsFhirStoresCreateCall {
 19673  	c := &ProjectsLocationsDatasetsFhirStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19674  	c.parent = parent
 19675  	c.fhirstore = fhirstore
 19676  	return c
 19677  }
 19678  
 19679  // FhirStoreId sets the optional parameter "fhirStoreId": Required. The ID of
 19680  // the FHIR store that is being created. The string must match the following
 19681  // regex: `[\p{L}\p{N}_\-\.]{1,256}`.
 19682  func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) FhirStoreId(fhirStoreId string) *ProjectsLocationsDatasetsFhirStoresCreateCall {
 19683  	c.urlParams_.Set("fhirStoreId", fhirStoreId)
 19684  	return c
 19685  }
 19686  
 19687  // Fields allows partial responses to be retrieved. See
 19688  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19689  // details.
 19690  func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresCreateCall {
 19691  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19692  	return c
 19693  }
 19694  
 19695  // Context sets the context to be used in this call's Do method.
 19696  func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresCreateCall {
 19697  	c.ctx_ = ctx
 19698  	return c
 19699  }
 19700  
 19701  // Header returns a http.Header that can be modified by the caller to add
 19702  // headers to the request.
 19703  func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) Header() http.Header {
 19704  	if c.header_ == nil {
 19705  		c.header_ = make(http.Header)
 19706  	}
 19707  	return c.header_
 19708  }
 19709  
 19710  func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) doRequest(alt string) (*http.Response, error) {
 19711  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19712  	var body io.Reader = nil
 19713  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.fhirstore)
 19714  	if err != nil {
 19715  		return nil, err
 19716  	}
 19717  	c.urlParams_.Set("alt", alt)
 19718  	c.urlParams_.Set("prettyPrint", "false")
 19719  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/fhirStores")
 19720  	urls += "?" + c.urlParams_.Encode()
 19721  	req, err := http.NewRequest("POST", urls, body)
 19722  	if err != nil {
 19723  		return nil, err
 19724  	}
 19725  	req.Header = reqHeaders
 19726  	googleapi.Expand(req.URL, map[string]string{
 19727  		"parent": c.parent,
 19728  	})
 19729  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19730  }
 19731  
 19732  // Do executes the "healthcare.projects.locations.datasets.fhirStores.create" call.
 19733  // Any non-2xx status code is an error. Response headers are in either
 19734  // *FhirStore.ServerResponse.Header or (if a response was returned at all) in
 19735  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 19736  // whether the returned error was because http.StatusNotModified was returned.
 19737  func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) Do(opts ...googleapi.CallOption) (*FhirStore, error) {
 19738  	gensupport.SetOptions(c.urlParams_, opts...)
 19739  	res, err := c.doRequest("json")
 19740  	if res != nil && res.StatusCode == http.StatusNotModified {
 19741  		if res.Body != nil {
 19742  			res.Body.Close()
 19743  		}
 19744  		return nil, gensupport.WrapError(&googleapi.Error{
 19745  			Code:   res.StatusCode,
 19746  			Header: res.Header,
 19747  		})
 19748  	}
 19749  	if err != nil {
 19750  		return nil, err
 19751  	}
 19752  	defer googleapi.CloseBody(res)
 19753  	if err := googleapi.CheckResponse(res); err != nil {
 19754  		return nil, gensupport.WrapError(err)
 19755  	}
 19756  	ret := &FhirStore{
 19757  		ServerResponse: googleapi.ServerResponse{
 19758  			Header:         res.Header,
 19759  			HTTPStatusCode: res.StatusCode,
 19760  		},
 19761  	}
 19762  	target := &ret
 19763  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19764  		return nil, err
 19765  	}
 19766  	return ret, nil
 19767  }
 19768  
 19769  type ProjectsLocationsDatasetsFhirStoresDeidentifyCall struct {
 19770  	s                          *Service
 19771  	sourceStore                string
 19772  	deidentifyfhirstorerequest *DeidentifyFhirStoreRequest
 19773  	urlParams_                 gensupport.URLParams
 19774  	ctx_                       context.Context
 19775  	header_                    http.Header
 19776  }
 19777  
 19778  // Deidentify: De-identifies data from the source store and writes it to the
 19779  // destination store. The metadata field type is OperationMetadata. If the
 19780  // request is successful, the response field type is
 19781  // DeidentifyFhirStoreSummary. The number of resources processed are tracked in
 19782  // Operation.metadata. Error details are logged to Cloud Logging. For more
 19783  // information, see Viewing error logs in Cloud Logging
 19784  // (https://cloud.google.com/healthcare/docs/how-tos/logging).
 19785  //
 19786  //   - sourceStore: Source FHIR store resource name. For example,
 19787  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirSt
 19788  //     ores/{fhir_store_id}`.
 19789  func (r *ProjectsLocationsDatasetsFhirStoresService) Deidentify(sourceStore string, deidentifyfhirstorerequest *DeidentifyFhirStoreRequest) *ProjectsLocationsDatasetsFhirStoresDeidentifyCall {
 19790  	c := &ProjectsLocationsDatasetsFhirStoresDeidentifyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19791  	c.sourceStore = sourceStore
 19792  	c.deidentifyfhirstorerequest = deidentifyfhirstorerequest
 19793  	return c
 19794  }
 19795  
 19796  // Fields allows partial responses to be retrieved. See
 19797  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19798  // details.
 19799  func (c *ProjectsLocationsDatasetsFhirStoresDeidentifyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresDeidentifyCall {
 19800  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19801  	return c
 19802  }
 19803  
 19804  // Context sets the context to be used in this call's Do method.
 19805  func (c *ProjectsLocationsDatasetsFhirStoresDeidentifyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresDeidentifyCall {
 19806  	c.ctx_ = ctx
 19807  	return c
 19808  }
 19809  
 19810  // Header returns a http.Header that can be modified by the caller to add
 19811  // headers to the request.
 19812  func (c *ProjectsLocationsDatasetsFhirStoresDeidentifyCall) Header() http.Header {
 19813  	if c.header_ == nil {
 19814  		c.header_ = make(http.Header)
 19815  	}
 19816  	return c.header_
 19817  }
 19818  
 19819  func (c *ProjectsLocationsDatasetsFhirStoresDeidentifyCall) doRequest(alt string) (*http.Response, error) {
 19820  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19821  	var body io.Reader = nil
 19822  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.deidentifyfhirstorerequest)
 19823  	if err != nil {
 19824  		return nil, err
 19825  	}
 19826  	c.urlParams_.Set("alt", alt)
 19827  	c.urlParams_.Set("prettyPrint", "false")
 19828  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+sourceStore}:deidentify")
 19829  	urls += "?" + c.urlParams_.Encode()
 19830  	req, err := http.NewRequest("POST", urls, body)
 19831  	if err != nil {
 19832  		return nil, err
 19833  	}
 19834  	req.Header = reqHeaders
 19835  	googleapi.Expand(req.URL, map[string]string{
 19836  		"sourceStore": c.sourceStore,
 19837  	})
 19838  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19839  }
 19840  
 19841  // Do executes the "healthcare.projects.locations.datasets.fhirStores.deidentify" call.
 19842  // Any non-2xx status code is an error. Response headers are in either
 19843  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 19844  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 19845  // whether the returned error was because http.StatusNotModified was returned.
 19846  func (c *ProjectsLocationsDatasetsFhirStoresDeidentifyCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 19847  	gensupport.SetOptions(c.urlParams_, opts...)
 19848  	res, err := c.doRequest("json")
 19849  	if res != nil && res.StatusCode == http.StatusNotModified {
 19850  		if res.Body != nil {
 19851  			res.Body.Close()
 19852  		}
 19853  		return nil, gensupport.WrapError(&googleapi.Error{
 19854  			Code:   res.StatusCode,
 19855  			Header: res.Header,
 19856  		})
 19857  	}
 19858  	if err != nil {
 19859  		return nil, err
 19860  	}
 19861  	defer googleapi.CloseBody(res)
 19862  	if err := googleapi.CheckResponse(res); err != nil {
 19863  		return nil, gensupport.WrapError(err)
 19864  	}
 19865  	ret := &Operation{
 19866  		ServerResponse: googleapi.ServerResponse{
 19867  			Header:         res.Header,
 19868  			HTTPStatusCode: res.StatusCode,
 19869  		},
 19870  	}
 19871  	target := &ret
 19872  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19873  		return nil, err
 19874  	}
 19875  	return ret, nil
 19876  }
 19877  
 19878  type ProjectsLocationsDatasetsFhirStoresDeleteCall struct {
 19879  	s          *Service
 19880  	name       string
 19881  	urlParams_ gensupport.URLParams
 19882  	ctx_       context.Context
 19883  	header_    http.Header
 19884  }
 19885  
 19886  // Delete: Deletes the specified FHIR store and removes all resources within
 19887  // it.
 19888  //
 19889  // - name: The resource name of the FHIR store to delete.
 19890  func (r *ProjectsLocationsDatasetsFhirStoresService) Delete(name string) *ProjectsLocationsDatasetsFhirStoresDeleteCall {
 19891  	c := &ProjectsLocationsDatasetsFhirStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19892  	c.name = name
 19893  	return c
 19894  }
 19895  
 19896  // Fields allows partial responses to be retrieved. See
 19897  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19898  // details.
 19899  func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresDeleteCall {
 19900  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19901  	return c
 19902  }
 19903  
 19904  // Context sets the context to be used in this call's Do method.
 19905  func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresDeleteCall {
 19906  	c.ctx_ = ctx
 19907  	return c
 19908  }
 19909  
 19910  // Header returns a http.Header that can be modified by the caller to add
 19911  // headers to the request.
 19912  func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) Header() http.Header {
 19913  	if c.header_ == nil {
 19914  		c.header_ = make(http.Header)
 19915  	}
 19916  	return c.header_
 19917  }
 19918  
 19919  func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) doRequest(alt string) (*http.Response, error) {
 19920  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19921  	var body io.Reader = nil
 19922  	c.urlParams_.Set("alt", alt)
 19923  	c.urlParams_.Set("prettyPrint", "false")
 19924  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 19925  	urls += "?" + c.urlParams_.Encode()
 19926  	req, err := http.NewRequest("DELETE", urls, body)
 19927  	if err != nil {
 19928  		return nil, err
 19929  	}
 19930  	req.Header = reqHeaders
 19931  	googleapi.Expand(req.URL, map[string]string{
 19932  		"name": c.name,
 19933  	})
 19934  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19935  }
 19936  
 19937  // Do executes the "healthcare.projects.locations.datasets.fhirStores.delete" call.
 19938  // Any non-2xx status code is an error. Response headers are in either
 19939  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 19940  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 19941  // whether the returned error was because http.StatusNotModified was returned.
 19942  func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 19943  	gensupport.SetOptions(c.urlParams_, opts...)
 19944  	res, err := c.doRequest("json")
 19945  	if res != nil && res.StatusCode == http.StatusNotModified {
 19946  		if res.Body != nil {
 19947  			res.Body.Close()
 19948  		}
 19949  		return nil, gensupport.WrapError(&googleapi.Error{
 19950  			Code:   res.StatusCode,
 19951  			Header: res.Header,
 19952  		})
 19953  	}
 19954  	if err != nil {
 19955  		return nil, err
 19956  	}
 19957  	defer googleapi.CloseBody(res)
 19958  	if err := googleapi.CheckResponse(res); err != nil {
 19959  		return nil, gensupport.WrapError(err)
 19960  	}
 19961  	ret := &Empty{
 19962  		ServerResponse: googleapi.ServerResponse{
 19963  			Header:         res.Header,
 19964  			HTTPStatusCode: res.StatusCode,
 19965  		},
 19966  	}
 19967  	target := &ret
 19968  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19969  		return nil, err
 19970  	}
 19971  	return ret, nil
 19972  }
 19973  
 19974  type ProjectsLocationsDatasetsFhirStoresExplainDataAccessCall struct {
 19975  	s            *Service
 19976  	name         string
 19977  	urlParams_   gensupport.URLParams
 19978  	ifNoneMatch_ string
 19979  	ctx_         context.Context
 19980  	header_      http.Header
 19981  }
 19982  
 19983  // ExplainDataAccess: Explains all the permitted/denied actor, purpose and
 19984  // environment for a given resource.
 19985  //
 19986  //   - name: The name of the FHIR store to enforce, in the format
 19987  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirSt
 19988  //     ores/{fhir_store_id}`.
 19989  func (r *ProjectsLocationsDatasetsFhirStoresService) ExplainDataAccess(name string) *ProjectsLocationsDatasetsFhirStoresExplainDataAccessCall {
 19990  	c := &ProjectsLocationsDatasetsFhirStoresExplainDataAccessCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19991  	c.name = name
 19992  	return c
 19993  }
 19994  
 19995  // ResourceId sets the optional parameter "resourceId": Required. The ID
 19996  // (`{resourceType}/{id}`) of the resource to explain data access on.
 19997  func (c *ProjectsLocationsDatasetsFhirStoresExplainDataAccessCall) ResourceId(resourceId string) *ProjectsLocationsDatasetsFhirStoresExplainDataAccessCall {
 19998  	c.urlParams_.Set("resourceId", resourceId)
 19999  	return c
 20000  }
 20001  
 20002  // Fields allows partial responses to be retrieved. See
 20003  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20004  // details.
 20005  func (c *ProjectsLocationsDatasetsFhirStoresExplainDataAccessCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresExplainDataAccessCall {
 20006  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20007  	return c
 20008  }
 20009  
 20010  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20011  // object's ETag matches the given value. This is useful for getting updates
 20012  // only after the object has changed since the last request.
 20013  func (c *ProjectsLocationsDatasetsFhirStoresExplainDataAccessCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresExplainDataAccessCall {
 20014  	c.ifNoneMatch_ = entityTag
 20015  	return c
 20016  }
 20017  
 20018  // Context sets the context to be used in this call's Do method.
 20019  func (c *ProjectsLocationsDatasetsFhirStoresExplainDataAccessCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresExplainDataAccessCall {
 20020  	c.ctx_ = ctx
 20021  	return c
 20022  }
 20023  
 20024  // Header returns a http.Header that can be modified by the caller to add
 20025  // headers to the request.
 20026  func (c *ProjectsLocationsDatasetsFhirStoresExplainDataAccessCall) Header() http.Header {
 20027  	if c.header_ == nil {
 20028  		c.header_ = make(http.Header)
 20029  	}
 20030  	return c.header_
 20031  }
 20032  
 20033  func (c *ProjectsLocationsDatasetsFhirStoresExplainDataAccessCall) doRequest(alt string) (*http.Response, error) {
 20034  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20035  	if c.ifNoneMatch_ != "" {
 20036  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20037  	}
 20038  	var body io.Reader = nil
 20039  	c.urlParams_.Set("alt", alt)
 20040  	c.urlParams_.Set("prettyPrint", "false")
 20041  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:explainDataAccess")
 20042  	urls += "?" + c.urlParams_.Encode()
 20043  	req, err := http.NewRequest("GET", urls, body)
 20044  	if err != nil {
 20045  		return nil, err
 20046  	}
 20047  	req.Header = reqHeaders
 20048  	googleapi.Expand(req.URL, map[string]string{
 20049  		"name": c.name,
 20050  	})
 20051  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20052  }
 20053  
 20054  // Do executes the "healthcare.projects.locations.datasets.fhirStores.explainDataAccess" call.
 20055  // Any non-2xx status code is an error. Response headers are in either
 20056  // *ExplainDataAccessResponse.ServerResponse.Header or (if a response was
 20057  // returned at all) in error.(*googleapi.Error).Header. Use
 20058  // googleapi.IsNotModified to check whether the returned error was because
 20059  // http.StatusNotModified was returned.
 20060  func (c *ProjectsLocationsDatasetsFhirStoresExplainDataAccessCall) Do(opts ...googleapi.CallOption) (*ExplainDataAccessResponse, error) {
 20061  	gensupport.SetOptions(c.urlParams_, opts...)
 20062  	res, err := c.doRequest("json")
 20063  	if res != nil && res.StatusCode == http.StatusNotModified {
 20064  		if res.Body != nil {
 20065  			res.Body.Close()
 20066  		}
 20067  		return nil, gensupport.WrapError(&googleapi.Error{
 20068  			Code:   res.StatusCode,
 20069  			Header: res.Header,
 20070  		})
 20071  	}
 20072  	if err != nil {
 20073  		return nil, err
 20074  	}
 20075  	defer googleapi.CloseBody(res)
 20076  	if err := googleapi.CheckResponse(res); err != nil {
 20077  		return nil, gensupport.WrapError(err)
 20078  	}
 20079  	ret := &ExplainDataAccessResponse{
 20080  		ServerResponse: googleapi.ServerResponse{
 20081  			Header:         res.Header,
 20082  			HTTPStatusCode: res.StatusCode,
 20083  		},
 20084  	}
 20085  	target := &ret
 20086  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20087  		return nil, err
 20088  	}
 20089  	return ret, nil
 20090  }
 20091  
 20092  type ProjectsLocationsDatasetsFhirStoresExportCall struct {
 20093  	s                      *Service
 20094  	name                   string
 20095  	exportresourcesrequest *ExportResourcesRequest
 20096  	urlParams_             gensupport.URLParams
 20097  	ctx_                   context.Context
 20098  	header_                http.Header
 20099  }
 20100  
 20101  // Export: Export resources from the FHIR store to the specified destination.
 20102  // This method returns an Operation that can be used to track the status of the
 20103  // export by calling GetOperation. Immediate fatal errors appear in the error
 20104  // field, errors are also logged to Cloud Logging (see Viewing error logs in
 20105  // Cloud Logging (https://cloud.google.com/healthcare/docs/how-tos/logging)).
 20106  // Otherwise, when the operation finishes, a detailed response of type
 20107  // ExportResourcesResponse is returned in the response field. The metadata
 20108  // field type for this operation is OperationMetadata.
 20109  //
 20110  //   - name: The name of the FHIR store to export resource from, in the format of
 20111  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirSt
 20112  //     ores/{fhir_store_id}`.
 20113  func (r *ProjectsLocationsDatasetsFhirStoresService) Export(name string, exportresourcesrequest *ExportResourcesRequest) *ProjectsLocationsDatasetsFhirStoresExportCall {
 20114  	c := &ProjectsLocationsDatasetsFhirStoresExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20115  	c.name = name
 20116  	c.exportresourcesrequest = exportresourcesrequest
 20117  	return c
 20118  }
 20119  
 20120  // Fields allows partial responses to be retrieved. See
 20121  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20122  // details.
 20123  func (c *ProjectsLocationsDatasetsFhirStoresExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresExportCall {
 20124  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20125  	return c
 20126  }
 20127  
 20128  // Context sets the context to be used in this call's Do method.
 20129  func (c *ProjectsLocationsDatasetsFhirStoresExportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresExportCall {
 20130  	c.ctx_ = ctx
 20131  	return c
 20132  }
 20133  
 20134  // Header returns a http.Header that can be modified by the caller to add
 20135  // headers to the request.
 20136  func (c *ProjectsLocationsDatasetsFhirStoresExportCall) Header() http.Header {
 20137  	if c.header_ == nil {
 20138  		c.header_ = make(http.Header)
 20139  	}
 20140  	return c.header_
 20141  }
 20142  
 20143  func (c *ProjectsLocationsDatasetsFhirStoresExportCall) doRequest(alt string) (*http.Response, error) {
 20144  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20145  	var body io.Reader = nil
 20146  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.exportresourcesrequest)
 20147  	if err != nil {
 20148  		return nil, err
 20149  	}
 20150  	c.urlParams_.Set("alt", alt)
 20151  	c.urlParams_.Set("prettyPrint", "false")
 20152  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:export")
 20153  	urls += "?" + c.urlParams_.Encode()
 20154  	req, err := http.NewRequest("POST", urls, body)
 20155  	if err != nil {
 20156  		return nil, err
 20157  	}
 20158  	req.Header = reqHeaders
 20159  	googleapi.Expand(req.URL, map[string]string{
 20160  		"name": c.name,
 20161  	})
 20162  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20163  }
 20164  
 20165  // Do executes the "healthcare.projects.locations.datasets.fhirStores.export" call.
 20166  // Any non-2xx status code is an error. Response headers are in either
 20167  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 20168  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 20169  // whether the returned error was because http.StatusNotModified was returned.
 20170  func (c *ProjectsLocationsDatasetsFhirStoresExportCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 20171  	gensupport.SetOptions(c.urlParams_, opts...)
 20172  	res, err := c.doRequest("json")
 20173  	if res != nil && res.StatusCode == http.StatusNotModified {
 20174  		if res.Body != nil {
 20175  			res.Body.Close()
 20176  		}
 20177  		return nil, gensupport.WrapError(&googleapi.Error{
 20178  			Code:   res.StatusCode,
 20179  			Header: res.Header,
 20180  		})
 20181  	}
 20182  	if err != nil {
 20183  		return nil, err
 20184  	}
 20185  	defer googleapi.CloseBody(res)
 20186  	if err := googleapi.CheckResponse(res); err != nil {
 20187  		return nil, gensupport.WrapError(err)
 20188  	}
 20189  	ret := &Operation{
 20190  		ServerResponse: googleapi.ServerResponse{
 20191  			Header:         res.Header,
 20192  			HTTPStatusCode: res.StatusCode,
 20193  		},
 20194  	}
 20195  	target := &ret
 20196  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20197  		return nil, err
 20198  	}
 20199  	return ret, nil
 20200  }
 20201  
 20202  type ProjectsLocationsDatasetsFhirStoresExportHistoryCall struct {
 20203  	s                             *Service
 20204  	name                          string
 20205  	exportresourceshistoryrequest *ExportResourcesHistoryRequest
 20206  	urlParams_                    gensupport.URLParams
 20207  	ctx_                          context.Context
 20208  	header_                       http.Header
 20209  }
 20210  
 20211  // ExportHistory: Export resources including historical versions from the FHIR
 20212  // store to the specified destination. The exported resource, along with
 20213  // previous versions, will be exported in one or more FHIR history bundles.
 20214  // This method returns an Operation that can be used to track the status of the
 20215  // export by calling GetOperation. Immediate fatal errors appear in the error
 20216  // field, errors are also logged to Cloud Logging (see Viewing error logs in
 20217  // Cloud Logging (https://cloud.google.com/healthcare/docs/how-tos/logging)).
 20218  // Otherwise, when the operation finishes, a detailed response of type
 20219  // ExportResourcesResponse is returned in the response field. The metadata
 20220  // field type for this operation is OperationMetadata.
 20221  //
 20222  //   - name: The name of the FHIR store to export resource from, in the format
 20223  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirSt
 20224  //     ores/{fhir_store_id}`.
 20225  func (r *ProjectsLocationsDatasetsFhirStoresService) ExportHistory(name string, exportresourceshistoryrequest *ExportResourcesHistoryRequest) *ProjectsLocationsDatasetsFhirStoresExportHistoryCall {
 20226  	c := &ProjectsLocationsDatasetsFhirStoresExportHistoryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20227  	c.name = name
 20228  	c.exportresourceshistoryrequest = exportresourceshistoryrequest
 20229  	return c
 20230  }
 20231  
 20232  // Fields allows partial responses to be retrieved. See
 20233  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20234  // details.
 20235  func (c *ProjectsLocationsDatasetsFhirStoresExportHistoryCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresExportHistoryCall {
 20236  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20237  	return c
 20238  }
 20239  
 20240  // Context sets the context to be used in this call's Do method.
 20241  func (c *ProjectsLocationsDatasetsFhirStoresExportHistoryCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresExportHistoryCall {
 20242  	c.ctx_ = ctx
 20243  	return c
 20244  }
 20245  
 20246  // Header returns a http.Header that can be modified by the caller to add
 20247  // headers to the request.
 20248  func (c *ProjectsLocationsDatasetsFhirStoresExportHistoryCall) Header() http.Header {
 20249  	if c.header_ == nil {
 20250  		c.header_ = make(http.Header)
 20251  	}
 20252  	return c.header_
 20253  }
 20254  
 20255  func (c *ProjectsLocationsDatasetsFhirStoresExportHistoryCall) doRequest(alt string) (*http.Response, error) {
 20256  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20257  	var body io.Reader = nil
 20258  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.exportresourceshistoryrequest)
 20259  	if err != nil {
 20260  		return nil, err
 20261  	}
 20262  	c.urlParams_.Set("alt", alt)
 20263  	c.urlParams_.Set("prettyPrint", "false")
 20264  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:exportHistory")
 20265  	urls += "?" + c.urlParams_.Encode()
 20266  	req, err := http.NewRequest("POST", urls, body)
 20267  	if err != nil {
 20268  		return nil, err
 20269  	}
 20270  	req.Header = reqHeaders
 20271  	googleapi.Expand(req.URL, map[string]string{
 20272  		"name": c.name,
 20273  	})
 20274  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20275  }
 20276  
 20277  // Do executes the "healthcare.projects.locations.datasets.fhirStores.exportHistory" call.
 20278  // Any non-2xx status code is an error. Response headers are in either
 20279  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 20280  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 20281  // whether the returned error was because http.StatusNotModified was returned.
 20282  func (c *ProjectsLocationsDatasetsFhirStoresExportHistoryCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 20283  	gensupport.SetOptions(c.urlParams_, opts...)
 20284  	res, err := c.doRequest("json")
 20285  	if res != nil && res.StatusCode == http.StatusNotModified {
 20286  		if res.Body != nil {
 20287  			res.Body.Close()
 20288  		}
 20289  		return nil, gensupport.WrapError(&googleapi.Error{
 20290  			Code:   res.StatusCode,
 20291  			Header: res.Header,
 20292  		})
 20293  	}
 20294  	if err != nil {
 20295  		return nil, err
 20296  	}
 20297  	defer googleapi.CloseBody(res)
 20298  	if err := googleapi.CheckResponse(res); err != nil {
 20299  		return nil, gensupport.WrapError(err)
 20300  	}
 20301  	ret := &Operation{
 20302  		ServerResponse: googleapi.ServerResponse{
 20303  			Header:         res.Header,
 20304  			HTTPStatusCode: res.StatusCode,
 20305  		},
 20306  	}
 20307  	target := &ret
 20308  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20309  		return nil, err
 20310  	}
 20311  	return ret, nil
 20312  }
 20313  
 20314  type ProjectsLocationsDatasetsFhirStoresGetCall struct {
 20315  	s            *Service
 20316  	name         string
 20317  	urlParams_   gensupport.URLParams
 20318  	ifNoneMatch_ string
 20319  	ctx_         context.Context
 20320  	header_      http.Header
 20321  }
 20322  
 20323  // Get: Gets the configuration of the specified FHIR store.
 20324  //
 20325  // - name: The resource name of the FHIR store to get.
 20326  func (r *ProjectsLocationsDatasetsFhirStoresService) Get(name string) *ProjectsLocationsDatasetsFhirStoresGetCall {
 20327  	c := &ProjectsLocationsDatasetsFhirStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20328  	c.name = name
 20329  	return c
 20330  }
 20331  
 20332  // Fields allows partial responses to be retrieved. See
 20333  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20334  // details.
 20335  func (c *ProjectsLocationsDatasetsFhirStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresGetCall {
 20336  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20337  	return c
 20338  }
 20339  
 20340  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20341  // object's ETag matches the given value. This is useful for getting updates
 20342  // only after the object has changed since the last request.
 20343  func (c *ProjectsLocationsDatasetsFhirStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresGetCall {
 20344  	c.ifNoneMatch_ = entityTag
 20345  	return c
 20346  }
 20347  
 20348  // Context sets the context to be used in this call's Do method.
 20349  func (c *ProjectsLocationsDatasetsFhirStoresGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresGetCall {
 20350  	c.ctx_ = ctx
 20351  	return c
 20352  }
 20353  
 20354  // Header returns a http.Header that can be modified by the caller to add
 20355  // headers to the request.
 20356  func (c *ProjectsLocationsDatasetsFhirStoresGetCall) Header() http.Header {
 20357  	if c.header_ == nil {
 20358  		c.header_ = make(http.Header)
 20359  	}
 20360  	return c.header_
 20361  }
 20362  
 20363  func (c *ProjectsLocationsDatasetsFhirStoresGetCall) doRequest(alt string) (*http.Response, error) {
 20364  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20365  	if c.ifNoneMatch_ != "" {
 20366  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20367  	}
 20368  	var body io.Reader = nil
 20369  	c.urlParams_.Set("alt", alt)
 20370  	c.urlParams_.Set("prettyPrint", "false")
 20371  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 20372  	urls += "?" + c.urlParams_.Encode()
 20373  	req, err := http.NewRequest("GET", urls, body)
 20374  	if err != nil {
 20375  		return nil, err
 20376  	}
 20377  	req.Header = reqHeaders
 20378  	googleapi.Expand(req.URL, map[string]string{
 20379  		"name": c.name,
 20380  	})
 20381  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20382  }
 20383  
 20384  // Do executes the "healthcare.projects.locations.datasets.fhirStores.get" call.
 20385  // Any non-2xx status code is an error. Response headers are in either
 20386  // *FhirStore.ServerResponse.Header or (if a response was returned at all) in
 20387  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 20388  // whether the returned error was because http.StatusNotModified was returned.
 20389  func (c *ProjectsLocationsDatasetsFhirStoresGetCall) Do(opts ...googleapi.CallOption) (*FhirStore, error) {
 20390  	gensupport.SetOptions(c.urlParams_, opts...)
 20391  	res, err := c.doRequest("json")
 20392  	if res != nil && res.StatusCode == http.StatusNotModified {
 20393  		if res.Body != nil {
 20394  			res.Body.Close()
 20395  		}
 20396  		return nil, gensupport.WrapError(&googleapi.Error{
 20397  			Code:   res.StatusCode,
 20398  			Header: res.Header,
 20399  		})
 20400  	}
 20401  	if err != nil {
 20402  		return nil, err
 20403  	}
 20404  	defer googleapi.CloseBody(res)
 20405  	if err := googleapi.CheckResponse(res); err != nil {
 20406  		return nil, gensupport.WrapError(err)
 20407  	}
 20408  	ret := &FhirStore{
 20409  		ServerResponse: googleapi.ServerResponse{
 20410  			Header:         res.Header,
 20411  			HTTPStatusCode: res.StatusCode,
 20412  		},
 20413  	}
 20414  	target := &ret
 20415  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20416  		return nil, err
 20417  	}
 20418  	return ret, nil
 20419  }
 20420  
 20421  type ProjectsLocationsDatasetsFhirStoresGetFHIRStoreMetricsCall struct {
 20422  	s            *Service
 20423  	name         string
 20424  	urlParams_   gensupport.URLParams
 20425  	ifNoneMatch_ string
 20426  	ctx_         context.Context
 20427  	header_      http.Header
 20428  }
 20429  
 20430  // GetFHIRStoreMetrics: Gets metrics associated with the FHIR store.
 20431  //
 20432  // - name: The resource name of the FHIR store to get metrics for.
 20433  func (r *ProjectsLocationsDatasetsFhirStoresService) GetFHIRStoreMetrics(name string) *ProjectsLocationsDatasetsFhirStoresGetFHIRStoreMetricsCall {
 20434  	c := &ProjectsLocationsDatasetsFhirStoresGetFHIRStoreMetricsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20435  	c.name = name
 20436  	return c
 20437  }
 20438  
 20439  // Fields allows partial responses to be retrieved. See
 20440  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20441  // details.
 20442  func (c *ProjectsLocationsDatasetsFhirStoresGetFHIRStoreMetricsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresGetFHIRStoreMetricsCall {
 20443  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20444  	return c
 20445  }
 20446  
 20447  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20448  // object's ETag matches the given value. This is useful for getting updates
 20449  // only after the object has changed since the last request.
 20450  func (c *ProjectsLocationsDatasetsFhirStoresGetFHIRStoreMetricsCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresGetFHIRStoreMetricsCall {
 20451  	c.ifNoneMatch_ = entityTag
 20452  	return c
 20453  }
 20454  
 20455  // Context sets the context to be used in this call's Do method.
 20456  func (c *ProjectsLocationsDatasetsFhirStoresGetFHIRStoreMetricsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresGetFHIRStoreMetricsCall {
 20457  	c.ctx_ = ctx
 20458  	return c
 20459  }
 20460  
 20461  // Header returns a http.Header that can be modified by the caller to add
 20462  // headers to the request.
 20463  func (c *ProjectsLocationsDatasetsFhirStoresGetFHIRStoreMetricsCall) Header() http.Header {
 20464  	if c.header_ == nil {
 20465  		c.header_ = make(http.Header)
 20466  	}
 20467  	return c.header_
 20468  }
 20469  
 20470  func (c *ProjectsLocationsDatasetsFhirStoresGetFHIRStoreMetricsCall) doRequest(alt string) (*http.Response, error) {
 20471  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20472  	if c.ifNoneMatch_ != "" {
 20473  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20474  	}
 20475  	var body io.Reader = nil
 20476  	c.urlParams_.Set("alt", alt)
 20477  	c.urlParams_.Set("prettyPrint", "false")
 20478  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:getFHIRStoreMetrics")
 20479  	urls += "?" + c.urlParams_.Encode()
 20480  	req, err := http.NewRequest("GET", urls, body)
 20481  	if err != nil {
 20482  		return nil, err
 20483  	}
 20484  	req.Header = reqHeaders
 20485  	googleapi.Expand(req.URL, map[string]string{
 20486  		"name": c.name,
 20487  	})
 20488  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20489  }
 20490  
 20491  // Do executes the "healthcare.projects.locations.datasets.fhirStores.getFHIRStoreMetrics" call.
 20492  // Any non-2xx status code is an error. Response headers are in either
 20493  // *FhirStoreMetrics.ServerResponse.Header or (if a response was returned at
 20494  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 20495  // check whether the returned error was because http.StatusNotModified was
 20496  // returned.
 20497  func (c *ProjectsLocationsDatasetsFhirStoresGetFHIRStoreMetricsCall) Do(opts ...googleapi.CallOption) (*FhirStoreMetrics, error) {
 20498  	gensupport.SetOptions(c.urlParams_, opts...)
 20499  	res, err := c.doRequest("json")
 20500  	if res != nil && res.StatusCode == http.StatusNotModified {
 20501  		if res.Body != nil {
 20502  			res.Body.Close()
 20503  		}
 20504  		return nil, gensupport.WrapError(&googleapi.Error{
 20505  			Code:   res.StatusCode,
 20506  			Header: res.Header,
 20507  		})
 20508  	}
 20509  	if err != nil {
 20510  		return nil, err
 20511  	}
 20512  	defer googleapi.CloseBody(res)
 20513  	if err := googleapi.CheckResponse(res); err != nil {
 20514  		return nil, gensupport.WrapError(err)
 20515  	}
 20516  	ret := &FhirStoreMetrics{
 20517  		ServerResponse: googleapi.ServerResponse{
 20518  			Header:         res.Header,
 20519  			HTTPStatusCode: res.StatusCode,
 20520  		},
 20521  	}
 20522  	target := &ret
 20523  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20524  		return nil, err
 20525  	}
 20526  	return ret, nil
 20527  }
 20528  
 20529  type ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall struct {
 20530  	s            *Service
 20531  	resource     string
 20532  	urlParams_   gensupport.URLParams
 20533  	ifNoneMatch_ string
 20534  	ctx_         context.Context
 20535  	header_      http.Header
 20536  }
 20537  
 20538  // GetIamPolicy: Gets the access control policy for a resource. Returns an
 20539  // empty policy if the resource exists and does not have a policy set.
 20540  //
 20541  //   - resource: REQUIRED: The resource for which the policy is being requested.
 20542  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 20543  //     for the appropriate value for this field.
 20544  func (r *ProjectsLocationsDatasetsFhirStoresService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall {
 20545  	c := &ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20546  	c.resource = resource
 20547  	return c
 20548  }
 20549  
 20550  // OptionsRequestedPolicyVersion sets the optional parameter
 20551  // "options.requestedPolicyVersion": The maximum policy version that will be
 20552  // used to format the policy. Valid values are 0, 1, and 3. Requests specifying
 20553  // an invalid value will be rejected. Requests for policies with any
 20554  // conditional role bindings must specify version 3. Policies with no
 20555  // conditional role bindings may specify any valid value or leave the field
 20556  // unset. The policy in the response might use the policy version that you
 20557  // specified, or it might use a lower policy version. For example, if you
 20558  // specify version 3, but the policy has no conditional role bindings, the
 20559  // response uses version 1. To learn which resources support conditions in
 20560  // their IAM policies, see the IAM documentation
 20561  // (https://cloud.google.com/iam/help/conditions/resource-policies).
 20562  func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall {
 20563  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
 20564  	return c
 20565  }
 20566  
 20567  // Fields allows partial responses to be retrieved. See
 20568  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20569  // details.
 20570  func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall {
 20571  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20572  	return c
 20573  }
 20574  
 20575  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20576  // object's ETag matches the given value. This is useful for getting updates
 20577  // only after the object has changed since the last request.
 20578  func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall {
 20579  	c.ifNoneMatch_ = entityTag
 20580  	return c
 20581  }
 20582  
 20583  // Context sets the context to be used in this call's Do method.
 20584  func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall {
 20585  	c.ctx_ = ctx
 20586  	return c
 20587  }
 20588  
 20589  // Header returns a http.Header that can be modified by the caller to add
 20590  // headers to the request.
 20591  func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) Header() http.Header {
 20592  	if c.header_ == nil {
 20593  		c.header_ = make(http.Header)
 20594  	}
 20595  	return c.header_
 20596  }
 20597  
 20598  func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 20599  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20600  	if c.ifNoneMatch_ != "" {
 20601  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20602  	}
 20603  	var body io.Reader = nil
 20604  	c.urlParams_.Set("alt", alt)
 20605  	c.urlParams_.Set("prettyPrint", "false")
 20606  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy")
 20607  	urls += "?" + c.urlParams_.Encode()
 20608  	req, err := http.NewRequest("GET", urls, body)
 20609  	if err != nil {
 20610  		return nil, err
 20611  	}
 20612  	req.Header = reqHeaders
 20613  	googleapi.Expand(req.URL, map[string]string{
 20614  		"resource": c.resource,
 20615  	})
 20616  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20617  }
 20618  
 20619  // Do executes the "healthcare.projects.locations.datasets.fhirStores.getIamPolicy" call.
 20620  // Any non-2xx status code is an error. Response headers are in either
 20621  // *Policy.ServerResponse.Header or (if a response was returned at all) in
 20622  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 20623  // whether the returned error was because http.StatusNotModified was returned.
 20624  func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
 20625  	gensupport.SetOptions(c.urlParams_, opts...)
 20626  	res, err := c.doRequest("json")
 20627  	if res != nil && res.StatusCode == http.StatusNotModified {
 20628  		if res.Body != nil {
 20629  			res.Body.Close()
 20630  		}
 20631  		return nil, gensupport.WrapError(&googleapi.Error{
 20632  			Code:   res.StatusCode,
 20633  			Header: res.Header,
 20634  		})
 20635  	}
 20636  	if err != nil {
 20637  		return nil, err
 20638  	}
 20639  	defer googleapi.CloseBody(res)
 20640  	if err := googleapi.CheckResponse(res); err != nil {
 20641  		return nil, gensupport.WrapError(err)
 20642  	}
 20643  	ret := &Policy{
 20644  		ServerResponse: googleapi.ServerResponse{
 20645  			Header:         res.Header,
 20646  			HTTPStatusCode: res.StatusCode,
 20647  		},
 20648  	}
 20649  	target := &ret
 20650  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20651  		return nil, err
 20652  	}
 20653  	return ret, nil
 20654  }
 20655  
 20656  type ProjectsLocationsDatasetsFhirStoresImportCall struct {
 20657  	s                      *Service
 20658  	name                   string
 20659  	importresourcesrequest *ImportResourcesRequest
 20660  	urlParams_             gensupport.URLParams
 20661  	ctx_                   context.Context
 20662  	header_                http.Header
 20663  }
 20664  
 20665  // Import: Import resources to the FHIR store by loading data from the
 20666  // specified sources. This method is optimized to load large quantities of data
 20667  // using import semantics that ignore some FHIR store configuration options and
 20668  // are not suitable for all use cases. It is primarily intended to load data
 20669  // into an empty FHIR store that is not being used by other clients. In cases
 20670  // where this method is not appropriate, consider using ExecuteBundle to load
 20671  // data. Every resource in the input must contain a client-supplied ID. Each
 20672  // resource is stored using the supplied ID regardless of the
 20673  // enable_update_create setting on the FHIR store. It is strongly advised not
 20674  // to include or encode any sensitive data such as patient identifiers in
 20675  // client-specified resource IDs. Those IDs are part of the FHIR resource path
 20676  // recorded in Cloud Audit Logs and Cloud Pub/Sub notifications. Those IDs can
 20677  // also be contained in reference fields within other resources. The import
 20678  // process does not enforce referential integrity, regardless of the
 20679  // disable_referential_integrity setting on the FHIR store. This allows the
 20680  // import of resources with arbitrary interdependencies without considering
 20681  // grouping or ordering, but if the input data contains invalid references or
 20682  // if some resources fail to be imported, the FHIR store might be left in a
 20683  // state that violates referential integrity. The import process does not
 20684  // trigger Pub/Sub notification or BigQuery streaming update, regardless of how
 20685  // those are configured on the FHIR store. If a resource with the specified ID
 20686  // already exists, the most recent version of the resource is overwritten
 20687  // without creating a new historical version, regardless of the
 20688  // disable_resource_versioning setting on the FHIR store. If transient failures
 20689  // occur during the import, it is possible that successfully imported resources
 20690  // will be overwritten more than once. The import operation is idempotent
 20691  // unless the input data contains multiple valid resources with the same ID but
 20692  // different contents. In that case, after the import completes, the store
 20693  // contains exactly one resource with that ID but there is no ordering
 20694  // guarantee on which version of the contents it will have. The operation
 20695  // result counters do not count duplicate IDs as an error and count one success
 20696  // for each resource in the input, which might result in a success count larger
 20697  // than the number of resources in the FHIR store. This often occurs when
 20698  // importing data organized in bundles produced by Patient-everything where
 20699  // each bundle contains its own copy of a resource such as Practitioner that
 20700  // might be referred to by many patients. If some resources fail to import, for
 20701  // example due to parsing errors, successfully imported resources are not
 20702  // rolled back. The location and format of the input data are specified by the
 20703  // parameters in ImportResourcesRequest. Note that if no format is specified,
 20704  // this method assumes the `BUNDLE` format. When using the `BUNDLE` format this
 20705  // method ignores the `Bundle.type` field, except that `history` bundles are
 20706  // rejected, and does not apply any of the bundle processing semantics for
 20707  // batch or transaction bundles. Unlike in ExecuteBundle, transaction bundles
 20708  // are not executed as a single transaction and bundle-internal references are
 20709  // not rewritten. The bundle is treated as a collection of resources to be
 20710  // written as provided in `Bundle.entry.resource`, ignoring
 20711  // `Bundle.entry.request`. As an example, this allows the import of `searchset`
 20712  // bundles produced by a FHIR search or Patient-everything operation. This
 20713  // method returns an Operation that can be used to track the status of the
 20714  // import by calling GetOperation. Immediate fatal errors appear in the error
 20715  // field, errors are also logged to Cloud Logging (see Viewing error logs in
 20716  // Cloud Logging (https://cloud.google.com/healthcare/docs/how-tos/logging)).
 20717  // Otherwise, when the operation finishes, a detailed response of type
 20718  // ImportResourcesResponse is returned in the response field. The metadata
 20719  // field type for this operation is OperationMetadata.
 20720  //
 20721  //   - name: The name of the FHIR store to import FHIR resources to, in the
 20722  //     format of
 20723  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirSt
 20724  //     ores/{fhir_store_id}`.
 20725  func (r *ProjectsLocationsDatasetsFhirStoresService) Import(name string, importresourcesrequest *ImportResourcesRequest) *ProjectsLocationsDatasetsFhirStoresImportCall {
 20726  	c := &ProjectsLocationsDatasetsFhirStoresImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20727  	c.name = name
 20728  	c.importresourcesrequest = importresourcesrequest
 20729  	return c
 20730  }
 20731  
 20732  // Fields allows partial responses to be retrieved. See
 20733  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20734  // details.
 20735  func (c *ProjectsLocationsDatasetsFhirStoresImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresImportCall {
 20736  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20737  	return c
 20738  }
 20739  
 20740  // Context sets the context to be used in this call's Do method.
 20741  func (c *ProjectsLocationsDatasetsFhirStoresImportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresImportCall {
 20742  	c.ctx_ = ctx
 20743  	return c
 20744  }
 20745  
 20746  // Header returns a http.Header that can be modified by the caller to add
 20747  // headers to the request.
 20748  func (c *ProjectsLocationsDatasetsFhirStoresImportCall) Header() http.Header {
 20749  	if c.header_ == nil {
 20750  		c.header_ = make(http.Header)
 20751  	}
 20752  	return c.header_
 20753  }
 20754  
 20755  func (c *ProjectsLocationsDatasetsFhirStoresImportCall) doRequest(alt string) (*http.Response, error) {
 20756  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20757  	var body io.Reader = nil
 20758  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.importresourcesrequest)
 20759  	if err != nil {
 20760  		return nil, err
 20761  	}
 20762  	c.urlParams_.Set("alt", alt)
 20763  	c.urlParams_.Set("prettyPrint", "false")
 20764  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:import")
 20765  	urls += "?" + c.urlParams_.Encode()
 20766  	req, err := http.NewRequest("POST", urls, body)
 20767  	if err != nil {
 20768  		return nil, err
 20769  	}
 20770  	req.Header = reqHeaders
 20771  	googleapi.Expand(req.URL, map[string]string{
 20772  		"name": c.name,
 20773  	})
 20774  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20775  }
 20776  
 20777  // Do executes the "healthcare.projects.locations.datasets.fhirStores.import" call.
 20778  // Any non-2xx status code is an error. Response headers are in either
 20779  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 20780  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 20781  // whether the returned error was because http.StatusNotModified was returned.
 20782  func (c *ProjectsLocationsDatasetsFhirStoresImportCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 20783  	gensupport.SetOptions(c.urlParams_, opts...)
 20784  	res, err := c.doRequest("json")
 20785  	if res != nil && res.StatusCode == http.StatusNotModified {
 20786  		if res.Body != nil {
 20787  			res.Body.Close()
 20788  		}
 20789  		return nil, gensupport.WrapError(&googleapi.Error{
 20790  			Code:   res.StatusCode,
 20791  			Header: res.Header,
 20792  		})
 20793  	}
 20794  	if err != nil {
 20795  		return nil, err
 20796  	}
 20797  	defer googleapi.CloseBody(res)
 20798  	if err := googleapi.CheckResponse(res); err != nil {
 20799  		return nil, gensupport.WrapError(err)
 20800  	}
 20801  	ret := &Operation{
 20802  		ServerResponse: googleapi.ServerResponse{
 20803  			Header:         res.Header,
 20804  			HTTPStatusCode: res.StatusCode,
 20805  		},
 20806  	}
 20807  	target := &ret
 20808  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20809  		return nil, err
 20810  	}
 20811  	return ret, nil
 20812  }
 20813  
 20814  type ProjectsLocationsDatasetsFhirStoresImportHistoryCall struct {
 20815  	s                             *Service
 20816  	name                          string
 20817  	importresourceshistoryrequest *ImportResourcesHistoryRequest
 20818  	urlParams_                    gensupport.URLParams
 20819  	ctx_                          context.Context
 20820  	header_                       http.Header
 20821  }
 20822  
 20823  // ImportHistory: Import resource historical versions from Cloud Storage source
 20824  // to destination fhir store. The exported resource, along with previous
 20825  // versions, will be exported in one or more FHIR history bundles. This method
 20826  // returns an Operation that can be used to track the status of the export by
 20827  // calling GetOperation. Immediate fatal errors appear in the error field,
 20828  // errors are also logged to Cloud Logging (see Viewing error logs in Cloud
 20829  // Logging (https://cloud.google.com/healthcare/docs/how-tos/logging)).
 20830  // Otherwise, when the operation finishes, a detailed response of type
 20831  // ImportResourcesResponse is returned in the response field. The metadata
 20832  // field type for this operation is OperationMetadata.
 20833  //
 20834  //   - name: The name of the FHIR store to import FHIR resources to, in the
 20835  //     format of
 20836  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirSt
 20837  //     ores/{fhir_store_id}`.
 20838  func (r *ProjectsLocationsDatasetsFhirStoresService) ImportHistory(name string, importresourceshistoryrequest *ImportResourcesHistoryRequest) *ProjectsLocationsDatasetsFhirStoresImportHistoryCall {
 20839  	c := &ProjectsLocationsDatasetsFhirStoresImportHistoryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20840  	c.name = name
 20841  	c.importresourceshistoryrequest = importresourceshistoryrequest
 20842  	return c
 20843  }
 20844  
 20845  // Fields allows partial responses to be retrieved. See
 20846  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20847  // details.
 20848  func (c *ProjectsLocationsDatasetsFhirStoresImportHistoryCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresImportHistoryCall {
 20849  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20850  	return c
 20851  }
 20852  
 20853  // Context sets the context to be used in this call's Do method.
 20854  func (c *ProjectsLocationsDatasetsFhirStoresImportHistoryCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresImportHistoryCall {
 20855  	c.ctx_ = ctx
 20856  	return c
 20857  }
 20858  
 20859  // Header returns a http.Header that can be modified by the caller to add
 20860  // headers to the request.
 20861  func (c *ProjectsLocationsDatasetsFhirStoresImportHistoryCall) Header() http.Header {
 20862  	if c.header_ == nil {
 20863  		c.header_ = make(http.Header)
 20864  	}
 20865  	return c.header_
 20866  }
 20867  
 20868  func (c *ProjectsLocationsDatasetsFhirStoresImportHistoryCall) doRequest(alt string) (*http.Response, error) {
 20869  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20870  	var body io.Reader = nil
 20871  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.importresourceshistoryrequest)
 20872  	if err != nil {
 20873  		return nil, err
 20874  	}
 20875  	c.urlParams_.Set("alt", alt)
 20876  	c.urlParams_.Set("prettyPrint", "false")
 20877  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:importHistory")
 20878  	urls += "?" + c.urlParams_.Encode()
 20879  	req, err := http.NewRequest("POST", urls, body)
 20880  	if err != nil {
 20881  		return nil, err
 20882  	}
 20883  	req.Header = reqHeaders
 20884  	googleapi.Expand(req.URL, map[string]string{
 20885  		"name": c.name,
 20886  	})
 20887  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20888  }
 20889  
 20890  // Do executes the "healthcare.projects.locations.datasets.fhirStores.importHistory" call.
 20891  // Any non-2xx status code is an error. Response headers are in either
 20892  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 20893  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 20894  // whether the returned error was because http.StatusNotModified was returned.
 20895  func (c *ProjectsLocationsDatasetsFhirStoresImportHistoryCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 20896  	gensupport.SetOptions(c.urlParams_, opts...)
 20897  	res, err := c.doRequest("json")
 20898  	if res != nil && res.StatusCode == http.StatusNotModified {
 20899  		if res.Body != nil {
 20900  			res.Body.Close()
 20901  		}
 20902  		return nil, gensupport.WrapError(&googleapi.Error{
 20903  			Code:   res.StatusCode,
 20904  			Header: res.Header,
 20905  		})
 20906  	}
 20907  	if err != nil {
 20908  		return nil, err
 20909  	}
 20910  	defer googleapi.CloseBody(res)
 20911  	if err := googleapi.CheckResponse(res); err != nil {
 20912  		return nil, gensupport.WrapError(err)
 20913  	}
 20914  	ret := &Operation{
 20915  		ServerResponse: googleapi.ServerResponse{
 20916  			Header:         res.Header,
 20917  			HTTPStatusCode: res.StatusCode,
 20918  		},
 20919  	}
 20920  	target := &ret
 20921  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20922  		return nil, err
 20923  	}
 20924  	return ret, nil
 20925  }
 20926  
 20927  type ProjectsLocationsDatasetsFhirStoresListCall struct {
 20928  	s            *Service
 20929  	parent       string
 20930  	urlParams_   gensupport.URLParams
 20931  	ifNoneMatch_ string
 20932  	ctx_         context.Context
 20933  	header_      http.Header
 20934  }
 20935  
 20936  // List: Lists the FHIR stores in the given dataset.
 20937  //
 20938  // - parent: Name of the dataset.
 20939  func (r *ProjectsLocationsDatasetsFhirStoresService) List(parent string) *ProjectsLocationsDatasetsFhirStoresListCall {
 20940  	c := &ProjectsLocationsDatasetsFhirStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20941  	c.parent = parent
 20942  	return c
 20943  }
 20944  
 20945  // Filter sets the optional parameter "filter": Restricts stores returned to
 20946  // those matching a filter. The following syntax is available: * A string field
 20947  // value can be written as text inside quotation marks, for example "query
 20948  // text". The only valid relational operation for text fields is equality
 20949  // (`=`), where text is searched within the field, rather than having the field
 20950  // be equal to the text. For example, "Comment = great" returns messages with
 20951  // `great` in the comment field. * A number field value can be written as an
 20952  // integer, a decimal, or an exponential. The valid relational operators for
 20953  // number fields are the equality operator (`=`), along with the less
 20954  // than/greater than operators (`<`, `<=`, `>`, `>=`). Note that there is no
 20955  // inequality (`!=`) operator. You can prepend the `NOT` operator to an
 20956  // expression to negate it. * A date field value must be written in
 20957  // `yyyy-mm-dd` form. Fields with date and time use the RFC3339 time format.
 20958  // Leading zeros are required for one-digit months and days. The valid
 20959  // relational operators for date fields are the equality operator (`=`) , along
 20960  // with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note that
 20961  // there is no inequality (`!=`) operator. You can prepend the `NOT` operator
 20962  // to an expression to negate it. * Multiple field query expressions can be
 20963  // combined in one query by adding `AND` or `OR` operators between the
 20964  // expressions. If a boolean operator appears within a quoted string, it is not
 20965  // treated as special, it's just another part of the character string to be
 20966  // matched. You can prepend the `NOT` operator to an expression to negate it.
 20967  // Only filtering on labels is supported, for example `labels.key=value`.
 20968  func (c *ProjectsLocationsDatasetsFhirStoresListCall) Filter(filter string) *ProjectsLocationsDatasetsFhirStoresListCall {
 20969  	c.urlParams_.Set("filter", filter)
 20970  	return c
 20971  }
 20972  
 20973  // PageSize sets the optional parameter "pageSize": Limit on the number of FHIR
 20974  // stores to return in a single response. If not specified, 100 is used. May
 20975  // not be larger than 1000.
 20976  func (c *ProjectsLocationsDatasetsFhirStoresListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsFhirStoresListCall {
 20977  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 20978  	return c
 20979  }
 20980  
 20981  // PageToken sets the optional parameter "pageToken": The next_page_token value
 20982  // returned from the previous List request, if any.
 20983  func (c *ProjectsLocationsDatasetsFhirStoresListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsFhirStoresListCall {
 20984  	c.urlParams_.Set("pageToken", pageToken)
 20985  	return c
 20986  }
 20987  
 20988  // Fields allows partial responses to be retrieved. See
 20989  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20990  // details.
 20991  func (c *ProjectsLocationsDatasetsFhirStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresListCall {
 20992  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20993  	return c
 20994  }
 20995  
 20996  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20997  // object's ETag matches the given value. This is useful for getting updates
 20998  // only after the object has changed since the last request.
 20999  func (c *ProjectsLocationsDatasetsFhirStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresListCall {
 21000  	c.ifNoneMatch_ = entityTag
 21001  	return c
 21002  }
 21003  
 21004  // Context sets the context to be used in this call's Do method.
 21005  func (c *ProjectsLocationsDatasetsFhirStoresListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresListCall {
 21006  	c.ctx_ = ctx
 21007  	return c
 21008  }
 21009  
 21010  // Header returns a http.Header that can be modified by the caller to add
 21011  // headers to the request.
 21012  func (c *ProjectsLocationsDatasetsFhirStoresListCall) Header() http.Header {
 21013  	if c.header_ == nil {
 21014  		c.header_ = make(http.Header)
 21015  	}
 21016  	return c.header_
 21017  }
 21018  
 21019  func (c *ProjectsLocationsDatasetsFhirStoresListCall) doRequest(alt string) (*http.Response, error) {
 21020  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21021  	if c.ifNoneMatch_ != "" {
 21022  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21023  	}
 21024  	var body io.Reader = nil
 21025  	c.urlParams_.Set("alt", alt)
 21026  	c.urlParams_.Set("prettyPrint", "false")
 21027  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/fhirStores")
 21028  	urls += "?" + c.urlParams_.Encode()
 21029  	req, err := http.NewRequest("GET", urls, body)
 21030  	if err != nil {
 21031  		return nil, err
 21032  	}
 21033  	req.Header = reqHeaders
 21034  	googleapi.Expand(req.URL, map[string]string{
 21035  		"parent": c.parent,
 21036  	})
 21037  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21038  }
 21039  
 21040  // Do executes the "healthcare.projects.locations.datasets.fhirStores.list" call.
 21041  // Any non-2xx status code is an error. Response headers are in either
 21042  // *ListFhirStoresResponse.ServerResponse.Header or (if a response was returned
 21043  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 21044  // check whether the returned error was because http.StatusNotModified was
 21045  // returned.
 21046  func (c *ProjectsLocationsDatasetsFhirStoresListCall) Do(opts ...googleapi.CallOption) (*ListFhirStoresResponse, error) {
 21047  	gensupport.SetOptions(c.urlParams_, opts...)
 21048  	res, err := c.doRequest("json")
 21049  	if res != nil && res.StatusCode == http.StatusNotModified {
 21050  		if res.Body != nil {
 21051  			res.Body.Close()
 21052  		}
 21053  		return nil, gensupport.WrapError(&googleapi.Error{
 21054  			Code:   res.StatusCode,
 21055  			Header: res.Header,
 21056  		})
 21057  	}
 21058  	if err != nil {
 21059  		return nil, err
 21060  	}
 21061  	defer googleapi.CloseBody(res)
 21062  	if err := googleapi.CheckResponse(res); err != nil {
 21063  		return nil, gensupport.WrapError(err)
 21064  	}
 21065  	ret := &ListFhirStoresResponse{
 21066  		ServerResponse: googleapi.ServerResponse{
 21067  			Header:         res.Header,
 21068  			HTTPStatusCode: res.StatusCode,
 21069  		},
 21070  	}
 21071  	target := &ret
 21072  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21073  		return nil, err
 21074  	}
 21075  	return ret, nil
 21076  }
 21077  
 21078  // Pages invokes f for each page of results.
 21079  // A non-nil error returned from f will halt the iteration.
 21080  // The provided context supersedes any context provided to the Context method.
 21081  func (c *ProjectsLocationsDatasetsFhirStoresListCall) Pages(ctx context.Context, f func(*ListFhirStoresResponse) error) error {
 21082  	c.ctx_ = ctx
 21083  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 21084  	for {
 21085  		x, err := c.Do()
 21086  		if err != nil {
 21087  			return err
 21088  		}
 21089  		if err := f(x); err != nil {
 21090  			return err
 21091  		}
 21092  		if x.NextPageToken == "" {
 21093  			return nil
 21094  		}
 21095  		c.PageToken(x.NextPageToken)
 21096  	}
 21097  }
 21098  
 21099  type ProjectsLocationsDatasetsFhirStoresPatchCall struct {
 21100  	s          *Service
 21101  	name       string
 21102  	fhirstore  *FhirStore
 21103  	urlParams_ gensupport.URLParams
 21104  	ctx_       context.Context
 21105  	header_    http.Header
 21106  }
 21107  
 21108  // Patch: Updates the configuration of the specified FHIR store.
 21109  //
 21110  //   - name: Output only. Identifier. Resource name of the FHIR store, of the
 21111  //     form
 21112  //     `projects/{project_id}/locations/{location}/datasets/{dataset_id}/fhirStore
 21113  //     s/{fhir_store_id}`.
 21114  func (r *ProjectsLocationsDatasetsFhirStoresService) Patch(name string, fhirstore *FhirStore) *ProjectsLocationsDatasetsFhirStoresPatchCall {
 21115  	c := &ProjectsLocationsDatasetsFhirStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21116  	c.name = name
 21117  	c.fhirstore = fhirstore
 21118  	return c
 21119  }
 21120  
 21121  // UpdateMask sets the optional parameter "updateMask": Required. The update
 21122  // mask applies to the resource. For the `FieldMask` definition, see
 21123  // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
 21124  func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsFhirStoresPatchCall {
 21125  	c.urlParams_.Set("updateMask", updateMask)
 21126  	return c
 21127  }
 21128  
 21129  // Fields allows partial responses to be retrieved. See
 21130  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21131  // details.
 21132  func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresPatchCall {
 21133  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21134  	return c
 21135  }
 21136  
 21137  // Context sets the context to be used in this call's Do method.
 21138  func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresPatchCall {
 21139  	c.ctx_ = ctx
 21140  	return c
 21141  }
 21142  
 21143  // Header returns a http.Header that can be modified by the caller to add
 21144  // headers to the request.
 21145  func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) Header() http.Header {
 21146  	if c.header_ == nil {
 21147  		c.header_ = make(http.Header)
 21148  	}
 21149  	return c.header_
 21150  }
 21151  
 21152  func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) doRequest(alt string) (*http.Response, error) {
 21153  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21154  	var body io.Reader = nil
 21155  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.fhirstore)
 21156  	if err != nil {
 21157  		return nil, err
 21158  	}
 21159  	c.urlParams_.Set("alt", alt)
 21160  	c.urlParams_.Set("prettyPrint", "false")
 21161  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 21162  	urls += "?" + c.urlParams_.Encode()
 21163  	req, err := http.NewRequest("PATCH", urls, body)
 21164  	if err != nil {
 21165  		return nil, err
 21166  	}
 21167  	req.Header = reqHeaders
 21168  	googleapi.Expand(req.URL, map[string]string{
 21169  		"name": c.name,
 21170  	})
 21171  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21172  }
 21173  
 21174  // Do executes the "healthcare.projects.locations.datasets.fhirStores.patch" call.
 21175  // Any non-2xx status code is an error. Response headers are in either
 21176  // *FhirStore.ServerResponse.Header or (if a response was returned at all) in
 21177  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 21178  // whether the returned error was because http.StatusNotModified was returned.
 21179  func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) Do(opts ...googleapi.CallOption) (*FhirStore, error) {
 21180  	gensupport.SetOptions(c.urlParams_, opts...)
 21181  	res, err := c.doRequest("json")
 21182  	if res != nil && res.StatusCode == http.StatusNotModified {
 21183  		if res.Body != nil {
 21184  			res.Body.Close()
 21185  		}
 21186  		return nil, gensupport.WrapError(&googleapi.Error{
 21187  			Code:   res.StatusCode,
 21188  			Header: res.Header,
 21189  		})
 21190  	}
 21191  	if err != nil {
 21192  		return nil, err
 21193  	}
 21194  	defer googleapi.CloseBody(res)
 21195  	if err := googleapi.CheckResponse(res); err != nil {
 21196  		return nil, gensupport.WrapError(err)
 21197  	}
 21198  	ret := &FhirStore{
 21199  		ServerResponse: googleapi.ServerResponse{
 21200  			Header:         res.Header,
 21201  			HTTPStatusCode: res.StatusCode,
 21202  		},
 21203  	}
 21204  	target := &ret
 21205  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21206  		return nil, err
 21207  	}
 21208  	return ret, nil
 21209  }
 21210  
 21211  type ProjectsLocationsDatasetsFhirStoresRollbackCall struct {
 21212  	s                            *Service
 21213  	name                         string
 21214  	rollbackfhirresourcesrequest *RollbackFhirResourcesRequest
 21215  	urlParams_                   gensupport.URLParams
 21216  	ctx_                         context.Context
 21217  	header_                      http.Header
 21218  }
 21219  
 21220  // Rollback: Rolls back resources from the FHIR store to the specified time.
 21221  // This method returns an Operation that can be used to track the status of the
 21222  // rollback by calling GetOperation. Immediate fatal errors appear in the error
 21223  // field, errors are also logged to Cloud Logging (see Viewing error logs in
 21224  // Cloud Logging (https://cloud.google.com/healthcare/docs/how-tos/logging)).
 21225  // Otherwise, when the operation finishes, a detailed response of type
 21226  // RollbackFhirResourcesResponse is returned in the response field. The
 21227  // metadata field type for this operation is OperationMetadata.
 21228  //
 21229  //   - name: The name of the FHIR store to rollback, in the format of
 21230  //     "projects/{project_id}/locations/{location_id}/datasets/{dataset_id}
 21231  //     /fhirStores/{fhir_store_id}".
 21232  func (r *ProjectsLocationsDatasetsFhirStoresService) Rollback(name string, rollbackfhirresourcesrequest *RollbackFhirResourcesRequest) *ProjectsLocationsDatasetsFhirStoresRollbackCall {
 21233  	c := &ProjectsLocationsDatasetsFhirStoresRollbackCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21234  	c.name = name
 21235  	c.rollbackfhirresourcesrequest = rollbackfhirresourcesrequest
 21236  	return c
 21237  }
 21238  
 21239  // Fields allows partial responses to be retrieved. See
 21240  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21241  // details.
 21242  func (c *ProjectsLocationsDatasetsFhirStoresRollbackCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresRollbackCall {
 21243  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21244  	return c
 21245  }
 21246  
 21247  // Context sets the context to be used in this call's Do method.
 21248  func (c *ProjectsLocationsDatasetsFhirStoresRollbackCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresRollbackCall {
 21249  	c.ctx_ = ctx
 21250  	return c
 21251  }
 21252  
 21253  // Header returns a http.Header that can be modified by the caller to add
 21254  // headers to the request.
 21255  func (c *ProjectsLocationsDatasetsFhirStoresRollbackCall) Header() http.Header {
 21256  	if c.header_ == nil {
 21257  		c.header_ = make(http.Header)
 21258  	}
 21259  	return c.header_
 21260  }
 21261  
 21262  func (c *ProjectsLocationsDatasetsFhirStoresRollbackCall) doRequest(alt string) (*http.Response, error) {
 21263  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21264  	var body io.Reader = nil
 21265  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.rollbackfhirresourcesrequest)
 21266  	if err != nil {
 21267  		return nil, err
 21268  	}
 21269  	c.urlParams_.Set("alt", alt)
 21270  	c.urlParams_.Set("prettyPrint", "false")
 21271  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:rollback")
 21272  	urls += "?" + c.urlParams_.Encode()
 21273  	req, err := http.NewRequest("POST", urls, body)
 21274  	if err != nil {
 21275  		return nil, err
 21276  	}
 21277  	req.Header = reqHeaders
 21278  	googleapi.Expand(req.URL, map[string]string{
 21279  		"name": c.name,
 21280  	})
 21281  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21282  }
 21283  
 21284  // Do executes the "healthcare.projects.locations.datasets.fhirStores.rollback" call.
 21285  // Any non-2xx status code is an error. Response headers are in either
 21286  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 21287  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 21288  // whether the returned error was because http.StatusNotModified was returned.
 21289  func (c *ProjectsLocationsDatasetsFhirStoresRollbackCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 21290  	gensupport.SetOptions(c.urlParams_, opts...)
 21291  	res, err := c.doRequest("json")
 21292  	if res != nil && res.StatusCode == http.StatusNotModified {
 21293  		if res.Body != nil {
 21294  			res.Body.Close()
 21295  		}
 21296  		return nil, gensupport.WrapError(&googleapi.Error{
 21297  			Code:   res.StatusCode,
 21298  			Header: res.Header,
 21299  		})
 21300  	}
 21301  	if err != nil {
 21302  		return nil, err
 21303  	}
 21304  	defer googleapi.CloseBody(res)
 21305  	if err := googleapi.CheckResponse(res); err != nil {
 21306  		return nil, gensupport.WrapError(err)
 21307  	}
 21308  	ret := &Operation{
 21309  		ServerResponse: googleapi.ServerResponse{
 21310  			Header:         res.Header,
 21311  			HTTPStatusCode: res.StatusCode,
 21312  		},
 21313  	}
 21314  	target := &ret
 21315  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21316  		return nil, err
 21317  	}
 21318  	return ret, nil
 21319  }
 21320  
 21321  type ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall struct {
 21322  	s                   *Service
 21323  	resource            string
 21324  	setiampolicyrequest *SetIamPolicyRequest
 21325  	urlParams_          gensupport.URLParams
 21326  	ctx_                context.Context
 21327  	header_             http.Header
 21328  }
 21329  
 21330  // SetIamPolicy: Sets the access control policy on the specified resource.
 21331  // Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`,
 21332  // and `PERMISSION_DENIED` errors.
 21333  //
 21334  //   - resource: REQUIRED: The resource for which the policy is being specified.
 21335  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 21336  //     for the appropriate value for this field.
 21337  func (r *ProjectsLocationsDatasetsFhirStoresService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall {
 21338  	c := &ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21339  	c.resource = resource
 21340  	c.setiampolicyrequest = setiampolicyrequest
 21341  	return c
 21342  }
 21343  
 21344  // Fields allows partial responses to be retrieved. See
 21345  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21346  // details.
 21347  func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall {
 21348  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21349  	return c
 21350  }
 21351  
 21352  // Context sets the context to be used in this call's Do method.
 21353  func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall {
 21354  	c.ctx_ = ctx
 21355  	return c
 21356  }
 21357  
 21358  // Header returns a http.Header that can be modified by the caller to add
 21359  // headers to the request.
 21360  func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) Header() http.Header {
 21361  	if c.header_ == nil {
 21362  		c.header_ = make(http.Header)
 21363  	}
 21364  	return c.header_
 21365  }
 21366  
 21367  func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 21368  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21369  	var body io.Reader = nil
 21370  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
 21371  	if err != nil {
 21372  		return nil, err
 21373  	}
 21374  	c.urlParams_.Set("alt", alt)
 21375  	c.urlParams_.Set("prettyPrint", "false")
 21376  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy")
 21377  	urls += "?" + c.urlParams_.Encode()
 21378  	req, err := http.NewRequest("POST", urls, body)
 21379  	if err != nil {
 21380  		return nil, err
 21381  	}
 21382  	req.Header = reqHeaders
 21383  	googleapi.Expand(req.URL, map[string]string{
 21384  		"resource": c.resource,
 21385  	})
 21386  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21387  }
 21388  
 21389  // Do executes the "healthcare.projects.locations.datasets.fhirStores.setIamPolicy" call.
 21390  // Any non-2xx status code is an error. Response headers are in either
 21391  // *Policy.ServerResponse.Header or (if a response was returned at all) in
 21392  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 21393  // whether the returned error was because http.StatusNotModified was returned.
 21394  func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
 21395  	gensupport.SetOptions(c.urlParams_, opts...)
 21396  	res, err := c.doRequest("json")
 21397  	if res != nil && res.StatusCode == http.StatusNotModified {
 21398  		if res.Body != nil {
 21399  			res.Body.Close()
 21400  		}
 21401  		return nil, gensupport.WrapError(&googleapi.Error{
 21402  			Code:   res.StatusCode,
 21403  			Header: res.Header,
 21404  		})
 21405  	}
 21406  	if err != nil {
 21407  		return nil, err
 21408  	}
 21409  	defer googleapi.CloseBody(res)
 21410  	if err := googleapi.CheckResponse(res); err != nil {
 21411  		return nil, gensupport.WrapError(err)
 21412  	}
 21413  	ret := &Policy{
 21414  		ServerResponse: googleapi.ServerResponse{
 21415  			Header:         res.Header,
 21416  			HTTPStatusCode: res.StatusCode,
 21417  		},
 21418  	}
 21419  	target := &ret
 21420  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21421  		return nil, err
 21422  	}
 21423  	return ret, nil
 21424  }
 21425  
 21426  type ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall struct {
 21427  	s                         *Service
 21428  	resource                  string
 21429  	testiampermissionsrequest *TestIamPermissionsRequest
 21430  	urlParams_                gensupport.URLParams
 21431  	ctx_                      context.Context
 21432  	header_                   http.Header
 21433  }
 21434  
 21435  // TestIamPermissions: Returns permissions that a caller has on the specified
 21436  // resource. If the resource does not exist, this will return an empty set of
 21437  // permissions, not a `NOT_FOUND` error. Note: This operation is designed to be
 21438  // used for building permission-aware UIs and command-line tools, not for
 21439  // authorization checking. This operation may "fail open" without warning.
 21440  //
 21441  //   - resource: REQUIRED: The resource for which the policy detail is being
 21442  //     requested. See Resource names
 21443  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
 21444  //     value for this field.
 21445  func (r *ProjectsLocationsDatasetsFhirStoresService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall {
 21446  	c := &ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21447  	c.resource = resource
 21448  	c.testiampermissionsrequest = testiampermissionsrequest
 21449  	return c
 21450  }
 21451  
 21452  // Fields allows partial responses to be retrieved. See
 21453  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21454  // details.
 21455  func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall {
 21456  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21457  	return c
 21458  }
 21459  
 21460  // Context sets the context to be used in this call's Do method.
 21461  func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall {
 21462  	c.ctx_ = ctx
 21463  	return c
 21464  }
 21465  
 21466  // Header returns a http.Header that can be modified by the caller to add
 21467  // headers to the request.
 21468  func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) Header() http.Header {
 21469  	if c.header_ == nil {
 21470  		c.header_ = make(http.Header)
 21471  	}
 21472  	return c.header_
 21473  }
 21474  
 21475  func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
 21476  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21477  	var body io.Reader = nil
 21478  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
 21479  	if err != nil {
 21480  		return nil, err
 21481  	}
 21482  	c.urlParams_.Set("alt", alt)
 21483  	c.urlParams_.Set("prettyPrint", "false")
 21484  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions")
 21485  	urls += "?" + c.urlParams_.Encode()
 21486  	req, err := http.NewRequest("POST", urls, body)
 21487  	if err != nil {
 21488  		return nil, err
 21489  	}
 21490  	req.Header = reqHeaders
 21491  	googleapi.Expand(req.URL, map[string]string{
 21492  		"resource": c.resource,
 21493  	})
 21494  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21495  }
 21496  
 21497  // Do executes the "healthcare.projects.locations.datasets.fhirStores.testIamPermissions" call.
 21498  // Any non-2xx status code is an error. Response headers are in either
 21499  // *TestIamPermissionsResponse.ServerResponse.Header or (if a response was
 21500  // returned at all) in error.(*googleapi.Error).Header. Use
 21501  // googleapi.IsNotModified to check whether the returned error was because
 21502  // http.StatusNotModified was returned.
 21503  func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
 21504  	gensupport.SetOptions(c.urlParams_, opts...)
 21505  	res, err := c.doRequest("json")
 21506  	if res != nil && res.StatusCode == http.StatusNotModified {
 21507  		if res.Body != nil {
 21508  			res.Body.Close()
 21509  		}
 21510  		return nil, gensupport.WrapError(&googleapi.Error{
 21511  			Code:   res.StatusCode,
 21512  			Header: res.Header,
 21513  		})
 21514  	}
 21515  	if err != nil {
 21516  		return nil, err
 21517  	}
 21518  	defer googleapi.CloseBody(res)
 21519  	if err := googleapi.CheckResponse(res); err != nil {
 21520  		return nil, gensupport.WrapError(err)
 21521  	}
 21522  	ret := &TestIamPermissionsResponse{
 21523  		ServerResponse: googleapi.ServerResponse{
 21524  			Header:         res.Header,
 21525  			HTTPStatusCode: res.StatusCode,
 21526  		},
 21527  	}
 21528  	target := &ret
 21529  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21530  		return nil, err
 21531  	}
 21532  	return ret, nil
 21533  }
 21534  
 21535  type ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall struct {
 21536  	s            *Service
 21537  	parent       string
 21538  	urlParams_   gensupport.URLParams
 21539  	ifNoneMatch_ string
 21540  	ctx_         context.Context
 21541  	header_      http.Header
 21542  }
 21543  
 21544  // ConceptMapSearchTranslate: Translates a code from one value set to another
 21545  // by searching for appropriate concept maps. Implements the FHIR standard
 21546  // $translate operation (DSTU2
 21547  // (https://www.hl7.org/fhir/DSTU2/operation-conceptmap-translate.html), STU3
 21548  // (https://www.hl7.org/fhir/STU3/operation-conceptmap-translate.html), R4
 21549  // (https://www.hl7.org/fhir/R4/operation-conceptmap-translate.html)). On
 21550  // success, the response body contains a JSON-encoded representation of a FHIR
 21551  // Parameters resource, which includes the translation result. Errors generated
 21552  // by the FHIR store contain a JSON-encoded `OperationOutcome` resource
 21553  // describing the reason for the error. If the request cannot be mapped to a
 21554  // valid API method on a FHIR store, a generic GCP error might be returned
 21555  // instead.
 21556  //
 21557  //   - parent: The name for the FHIR store containing the concept map(s) to use
 21558  //     for the translation.
 21559  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConceptMapSearchTranslate(parent string) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall {
 21560  	c := &ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21561  	c.parent = parent
 21562  	return c
 21563  }
 21564  
 21565  // Code sets the optional parameter "code": Required. The code to translate.
 21566  func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall) Code(code string) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall {
 21567  	c.urlParams_.Set("code", code)
 21568  	return c
 21569  }
 21570  
 21571  // ConceptMapVersion sets the optional parameter "conceptMapVersion": The
 21572  // version of the concept map to use. If unset, the most current version is
 21573  // used.
 21574  func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall) ConceptMapVersion(conceptMapVersion string) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall {
 21575  	c.urlParams_.Set("conceptMapVersion", conceptMapVersion)
 21576  	return c
 21577  }
 21578  
 21579  // Source sets the optional parameter "source": The source value set of the
 21580  // concept map to be used. If unset, target is used to search for concept maps.
 21581  func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall) Source(source string) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall {
 21582  	c.urlParams_.Set("source", source)
 21583  	return c
 21584  }
 21585  
 21586  // System sets the optional parameter "system": Required. The system for the
 21587  // code to be translated.
 21588  func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall) System(system string) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall {
 21589  	c.urlParams_.Set("system", system)
 21590  	return c
 21591  }
 21592  
 21593  // Target sets the optional parameter "target": The target value set of the
 21594  // concept map to be used. If unset, source is used to search for concept maps.
 21595  func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall) Target(target string) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall {
 21596  	c.urlParams_.Set("target", target)
 21597  	return c
 21598  }
 21599  
 21600  // Url sets the optional parameter "url": The canonical url of the concept map
 21601  // to use. If unset, the source and target is used to search for concept maps.
 21602  func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall) Url(url string) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall {
 21603  	c.urlParams_.Set("url", url)
 21604  	return c
 21605  }
 21606  
 21607  // Fields allows partial responses to be retrieved. See
 21608  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21609  // details.
 21610  func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall {
 21611  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21612  	return c
 21613  }
 21614  
 21615  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21616  // object's ETag matches the given value. This is useful for getting updates
 21617  // only after the object has changed since the last request.
 21618  func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall {
 21619  	c.ifNoneMatch_ = entityTag
 21620  	return c
 21621  }
 21622  
 21623  // Context sets the context to be used in this call's Do method.
 21624  func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall {
 21625  	c.ctx_ = ctx
 21626  	return c
 21627  }
 21628  
 21629  // Header returns a http.Header that can be modified by the caller to add
 21630  // headers to the request.
 21631  func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall) Header() http.Header {
 21632  	if c.header_ == nil {
 21633  		c.header_ = make(http.Header)
 21634  	}
 21635  	return c.header_
 21636  }
 21637  
 21638  func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall) doRequest(alt string) (*http.Response, error) {
 21639  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21640  	if c.ifNoneMatch_ != "" {
 21641  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21642  	}
 21643  	var body io.Reader = nil
 21644  	c.urlParams_.Set("alt", alt)
 21645  	c.urlParams_.Set("prettyPrint", "false")
 21646  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/fhir/ConceptMap/$translate")
 21647  	urls += "?" + c.urlParams_.Encode()
 21648  	req, err := http.NewRequest("GET", urls, body)
 21649  	if err != nil {
 21650  		return nil, err
 21651  	}
 21652  	req.Header = reqHeaders
 21653  	googleapi.Expand(req.URL, map[string]string{
 21654  		"parent": c.parent,
 21655  	})
 21656  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21657  }
 21658  
 21659  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.ConceptMap-search-translate" call.
 21660  func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapSearchTranslateCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 21661  	gensupport.SetOptions(c.urlParams_, opts...)
 21662  	return c.doRequest("")
 21663  }
 21664  
 21665  type ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall struct {
 21666  	s            *Service
 21667  	name         string
 21668  	urlParams_   gensupport.URLParams
 21669  	ifNoneMatch_ string
 21670  	ctx_         context.Context
 21671  	header_      http.Header
 21672  }
 21673  
 21674  // ConceptMapTranslate: Translates a code from one value set to another using a
 21675  // concept map. You can provide your own concept maps to translate any code
 21676  // system to another code system. Implements the FHIR standard $translate
 21677  // operation (DSTU2
 21678  // (https://www.hl7.org/fhir/DSTU2/operation-conceptmap-translate.html), STU3
 21679  // (https://www.hl7.org/fhir/STU3/operation-conceptmap-translate.html), R4
 21680  // (https://www.hl7.org/fhir/R4/operation-conceptmap-translate.html)). On
 21681  // success, the response body contains a JSON-encoded representation of a FHIR
 21682  // Parameters resource, which includes the translation result. Errors generated
 21683  // by the FHIR store contain a JSON-encoded `OperationOutcome` resource
 21684  // describing the reason for the error. If the request cannot be mapped to a
 21685  // valid API method on a FHIR store, a generic GCP error might be returned
 21686  // instead.
 21687  //
 21688  // - name: The URL for the concept map to use for the translation.
 21689  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConceptMapTranslate(name string) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall {
 21690  	c := &ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21691  	c.name = name
 21692  	return c
 21693  }
 21694  
 21695  // Code sets the optional parameter "code": Required. The code to translate.
 21696  func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall) Code(code string) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall {
 21697  	c.urlParams_.Set("code", code)
 21698  	return c
 21699  }
 21700  
 21701  // ConceptMapVersion sets the optional parameter "conceptMapVersion": The
 21702  // version of the concept map to use. If unset, the most current version is
 21703  // used.
 21704  func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall) ConceptMapVersion(conceptMapVersion string) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall {
 21705  	c.urlParams_.Set("conceptMapVersion", conceptMapVersion)
 21706  	return c
 21707  }
 21708  
 21709  // System sets the optional parameter "system": Required. The system for the
 21710  // code to be translated.
 21711  func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall) System(system string) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall {
 21712  	c.urlParams_.Set("system", system)
 21713  	return c
 21714  }
 21715  
 21716  // Fields allows partial responses to be retrieved. See
 21717  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21718  // details.
 21719  func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall {
 21720  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21721  	return c
 21722  }
 21723  
 21724  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21725  // object's ETag matches the given value. This is useful for getting updates
 21726  // only after the object has changed since the last request.
 21727  func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall {
 21728  	c.ifNoneMatch_ = entityTag
 21729  	return c
 21730  }
 21731  
 21732  // Context sets the context to be used in this call's Do method.
 21733  func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall {
 21734  	c.ctx_ = ctx
 21735  	return c
 21736  }
 21737  
 21738  // Header returns a http.Header that can be modified by the caller to add
 21739  // headers to the request.
 21740  func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall) Header() http.Header {
 21741  	if c.header_ == nil {
 21742  		c.header_ = make(http.Header)
 21743  	}
 21744  	return c.header_
 21745  }
 21746  
 21747  func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall) doRequest(alt string) (*http.Response, error) {
 21748  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21749  	if c.ifNoneMatch_ != "" {
 21750  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21751  	}
 21752  	var body io.Reader = nil
 21753  	c.urlParams_.Set("alt", alt)
 21754  	c.urlParams_.Set("prettyPrint", "false")
 21755  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/$translate")
 21756  	urls += "?" + c.urlParams_.Encode()
 21757  	req, err := http.NewRequest("GET", urls, body)
 21758  	if err != nil {
 21759  		return nil, err
 21760  	}
 21761  	req.Header = reqHeaders
 21762  	googleapi.Expand(req.URL, map[string]string{
 21763  		"name": c.name,
 21764  	})
 21765  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21766  }
 21767  
 21768  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.ConceptMap-translate" call.
 21769  func (c *ProjectsLocationsDatasetsFhirStoresFhirConceptMapTranslateCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 21770  	gensupport.SetOptions(c.urlParams_, opts...)
 21771  	return c.doRequest("")
 21772  }
 21773  
 21774  type ProjectsLocationsDatasetsFhirStoresFhirConsentEnforcementStatusCall struct {
 21775  	s            *Service
 21776  	name         string
 21777  	urlParams_   gensupport.URLParams
 21778  	ifNoneMatch_ string
 21779  	ctx_         context.Context
 21780  	header_      http.Header
 21781  }
 21782  
 21783  // ConsentEnforcementStatus: Returns the consent enforcement status of a single
 21784  // consent resource. On success, the response body contains a JSON-encoded
 21785  // representation of a `Parameters` (http://hl7.org/fhir/parameters.html) FHIR
 21786  // resource, containing the current enforcement status. Does not support DSTU2.
 21787  //
 21788  //   - name: The name of the consent resource to find enforcement status, in the
 21789  //     format
 21790  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirSt
 21791  //     ores/{fhir_store_id}/fhir/Consent/{consent_id}`.
 21792  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConsentEnforcementStatus(name string) *ProjectsLocationsDatasetsFhirStoresFhirConsentEnforcementStatusCall {
 21793  	c := &ProjectsLocationsDatasetsFhirStoresFhirConsentEnforcementStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21794  	c.name = name
 21795  	return c
 21796  }
 21797  
 21798  // Fields allows partial responses to be retrieved. See
 21799  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21800  // details.
 21801  func (c *ProjectsLocationsDatasetsFhirStoresFhirConsentEnforcementStatusCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirConsentEnforcementStatusCall {
 21802  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21803  	return c
 21804  }
 21805  
 21806  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21807  // object's ETag matches the given value. This is useful for getting updates
 21808  // only after the object has changed since the last request.
 21809  func (c *ProjectsLocationsDatasetsFhirStoresFhirConsentEnforcementStatusCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirConsentEnforcementStatusCall {
 21810  	c.ifNoneMatch_ = entityTag
 21811  	return c
 21812  }
 21813  
 21814  // Context sets the context to be used in this call's Do method.
 21815  func (c *ProjectsLocationsDatasetsFhirStoresFhirConsentEnforcementStatusCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirConsentEnforcementStatusCall {
 21816  	c.ctx_ = ctx
 21817  	return c
 21818  }
 21819  
 21820  // Header returns a http.Header that can be modified by the caller to add
 21821  // headers to the request.
 21822  func (c *ProjectsLocationsDatasetsFhirStoresFhirConsentEnforcementStatusCall) Header() http.Header {
 21823  	if c.header_ == nil {
 21824  		c.header_ = make(http.Header)
 21825  	}
 21826  	return c.header_
 21827  }
 21828  
 21829  func (c *ProjectsLocationsDatasetsFhirStoresFhirConsentEnforcementStatusCall) doRequest(alt string) (*http.Response, error) {
 21830  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21831  	if c.ifNoneMatch_ != "" {
 21832  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21833  	}
 21834  	var body io.Reader = nil
 21835  	c.urlParams_.Set("alt", alt)
 21836  	c.urlParams_.Set("prettyPrint", "false")
 21837  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/$consent-enforcement-status")
 21838  	urls += "?" + c.urlParams_.Encode()
 21839  	req, err := http.NewRequest("GET", urls, body)
 21840  	if err != nil {
 21841  		return nil, err
 21842  	}
 21843  	req.Header = reqHeaders
 21844  	googleapi.Expand(req.URL, map[string]string{
 21845  		"name": c.name,
 21846  	})
 21847  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21848  }
 21849  
 21850  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Consent-enforcement-status" call.
 21851  func (c *ProjectsLocationsDatasetsFhirStoresFhirConsentEnforcementStatusCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 21852  	gensupport.SetOptions(c.urlParams_, opts...)
 21853  	return c.doRequest("")
 21854  }
 21855  
 21856  type ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall struct {
 21857  	s            *Service
 21858  	parent       string
 21859  	urlParams_   gensupport.URLParams
 21860  	ifNoneMatch_ string
 21861  	ctx_         context.Context
 21862  	header_      http.Header
 21863  }
 21864  
 21865  // ObservationLastn: Retrieves the N most recent `Observation` resources for a
 21866  // subject matching search criteria specified as query parameters, grouped by
 21867  // `Observation.code`, sorted from most recent to oldest. Implements the FHIR
 21868  // extended operation Observation-lastn (STU3
 21869  // (https://hl7.org/implement/standards/fhir/STU3/observation-operations.html#lastn),
 21870  // R4
 21871  // (https://hl7.org/implement/standards/fhir/R4/observation-operations.html#lastn)).
 21872  // DSTU2 doesn't define the Observation-lastn method, but the server supports
 21873  // it the same way it supports STU3. Search terms are provided as query
 21874  // parameters following the same pattern as the search method. The following
 21875  // search parameters must be provided: - `subject` or `patient` to specify a
 21876  // subject for the Observation. - `code`, `category` or any of the composite
 21877  // parameters that include `code`. Any other valid Observation search
 21878  // parameters can also be provided. This operation accepts an additional query
 21879  // parameter `max`, which specifies N, the maximum number of Observations to
 21880  // return from each group, with a default of 1. Searches with over 1000 results
 21881  // are rejected. Results are counted before grouping and limiting the results
 21882  // with `max`. To stay within the limit, constrain these searches using
 21883  // Observation search parameters such as `_lastUpdated` or `date`. On success,
 21884  // the response body contains a JSON-encoded representation of a `Bundle`
 21885  // resource of type `searchset`, containing the results of the operation.
 21886  // Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome`
 21887  // resource describing the reason for the error. If the request cannot be
 21888  // mapped to a valid API method on a FHIR store, a generic GCP error might be
 21889  // returned instead.
 21890  //
 21891  // - parent: Name of the FHIR store to retrieve resources from.
 21892  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ObservationLastn(parent string) *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall {
 21893  	c := &ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21894  	c.parent = parent
 21895  	return c
 21896  }
 21897  
 21898  // Fields allows partial responses to be retrieved. See
 21899  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21900  // details.
 21901  func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall {
 21902  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21903  	return c
 21904  }
 21905  
 21906  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21907  // object's ETag matches the given value. This is useful for getting updates
 21908  // only after the object has changed since the last request.
 21909  func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall {
 21910  	c.ifNoneMatch_ = entityTag
 21911  	return c
 21912  }
 21913  
 21914  // Context sets the context to be used in this call's Do method.
 21915  func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall {
 21916  	c.ctx_ = ctx
 21917  	return c
 21918  }
 21919  
 21920  // Header returns a http.Header that can be modified by the caller to add
 21921  // headers to the request.
 21922  func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) Header() http.Header {
 21923  	if c.header_ == nil {
 21924  		c.header_ = make(http.Header)
 21925  	}
 21926  	return c.header_
 21927  }
 21928  
 21929  func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) doRequest(alt string) (*http.Response, error) {
 21930  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21931  	if c.ifNoneMatch_ != "" {
 21932  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21933  	}
 21934  	var body io.Reader = nil
 21935  	c.urlParams_.Set("alt", alt)
 21936  	c.urlParams_.Set("prettyPrint", "false")
 21937  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/fhir/Observation/$lastn")
 21938  	urls += "?" + c.urlParams_.Encode()
 21939  	req, err := http.NewRequest("GET", urls, body)
 21940  	if err != nil {
 21941  		return nil, err
 21942  	}
 21943  	req.Header = reqHeaders
 21944  	googleapi.Expand(req.URL, map[string]string{
 21945  		"parent": c.parent,
 21946  	})
 21947  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21948  }
 21949  
 21950  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Observation-lastn" call.
 21951  func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 21952  	gensupport.SetOptions(c.urlParams_, opts...)
 21953  	return c.doRequest("")
 21954  }
 21955  
 21956  type ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall struct {
 21957  	s            *Service
 21958  	name         string
 21959  	urlParams_   gensupport.URLParams
 21960  	ifNoneMatch_ string
 21961  	ctx_         context.Context
 21962  	header_      http.Header
 21963  }
 21964  
 21965  // PatientConsentEnforcementStatus: Returns the consent enforcement status of
 21966  // all consent resources for a patient. On success, the response body contains
 21967  // a JSON-encoded representation of a bundle of `Parameters`
 21968  // (http://hl7.org/fhir/parameters.html) FHIR resources, containing the current
 21969  // enforcement status for each consent resource of the patient. Does not
 21970  // support DSTU2.
 21971  //
 21972  //   - name: The name of the patient to find enforcement statuses, in the format
 21973  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirSt
 21974  //     ores/{fhir_store_id}/fhir/Patient/{patient_id}`.
 21975  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) PatientConsentEnforcementStatus(name string) *ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall {
 21976  	c := &ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21977  	c.name = name
 21978  	return c
 21979  }
 21980  
 21981  // Count sets the optional parameter "_count": The maximum number of results on
 21982  // a page. If not specified, 100 is used. May not be larger than 1000.
 21983  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall) Count(Count int64) *ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall {
 21984  	c.urlParams_.Set("_count", fmt.Sprint(Count))
 21985  	return c
 21986  }
 21987  
 21988  // PageToken sets the optional parameter "_page_token": Used to retrieve the
 21989  // first, previous, next, or last page of consent enforcement statuses when
 21990  // using pagination. Value should be set to the value of `_page_token` set in
 21991  // next or previous page links' URLs. Next and previous page are returned in
 21992  // the response bundle's links field, where `link.relation` is "previous" or
 21993  // "next". Omit `_page_token` if no previous request has been made.
 21994  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall) PageToken(PageToken string) *ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall {
 21995  	c.urlParams_.Set("_page_token", PageToken)
 21996  	return c
 21997  }
 21998  
 21999  // Fields allows partial responses to be retrieved. See
 22000  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22001  // details.
 22002  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall {
 22003  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22004  	return c
 22005  }
 22006  
 22007  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22008  // object's ETag matches the given value. This is useful for getting updates
 22009  // only after the object has changed since the last request.
 22010  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall {
 22011  	c.ifNoneMatch_ = entityTag
 22012  	return c
 22013  }
 22014  
 22015  // Context sets the context to be used in this call's Do method.
 22016  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall {
 22017  	c.ctx_ = ctx
 22018  	return c
 22019  }
 22020  
 22021  // Header returns a http.Header that can be modified by the caller to add
 22022  // headers to the request.
 22023  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall) Header() http.Header {
 22024  	if c.header_ == nil {
 22025  		c.header_ = make(http.Header)
 22026  	}
 22027  	return c.header_
 22028  }
 22029  
 22030  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall) doRequest(alt string) (*http.Response, error) {
 22031  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22032  	if c.ifNoneMatch_ != "" {
 22033  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22034  	}
 22035  	var body io.Reader = nil
 22036  	c.urlParams_.Set("alt", alt)
 22037  	c.urlParams_.Set("prettyPrint", "false")
 22038  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/$consent-enforcement-status")
 22039  	urls += "?" + c.urlParams_.Encode()
 22040  	req, err := http.NewRequest("GET", urls, body)
 22041  	if err != nil {
 22042  		return nil, err
 22043  	}
 22044  	req.Header = reqHeaders
 22045  	googleapi.Expand(req.URL, map[string]string{
 22046  		"name": c.name,
 22047  	})
 22048  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22049  }
 22050  
 22051  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Patient-consent-enforcement-status" call.
 22052  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientConsentEnforcementStatusCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 22053  	gensupport.SetOptions(c.urlParams_, opts...)
 22054  	return c.doRequest("")
 22055  }
 22056  
 22057  type ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall struct {
 22058  	s            *Service
 22059  	name         string
 22060  	urlParams_   gensupport.URLParams
 22061  	ifNoneMatch_ string
 22062  	ctx_         context.Context
 22063  	header_      http.Header
 22064  }
 22065  
 22066  // PatientEverything: Retrieves a Patient resource and resources related to
 22067  // that patient. Implements the FHIR extended operation Patient-everything
 22068  // (DSTU2
 22069  // (https://hl7.org/implement/standards/fhir/DSTU2/patient-operations.html#everything),
 22070  // STU3
 22071  // (https://hl7.org/implement/standards/fhir/STU3/patient-operations.html#everything),
 22072  // R4
 22073  // (https://hl7.org/implement/standards/fhir/R4/patient-operations.html#everything)).
 22074  // On success, the response body contains a JSON-encoded representation of a
 22075  // `Bundle` resource of type `searchset`, containing the results of the
 22076  // operation. Errors generated by the FHIR store contain a JSON-encoded
 22077  // `OperationOutcome` resource describing the reason for the error. If the
 22078  // request cannot be mapped to a valid API method on a FHIR store, a generic
 22079  // GCP error might be returned instead. The resources in scope for the response
 22080  // are: * The patient resource itself. * All the resources directly referenced
 22081  // by the patient resource. * Resources directly referencing the patient
 22082  // resource that meet the inclusion criteria. The inclusion criteria are based
 22083  // on the membership rules in the patient compartment definition (DSTU2
 22084  // (https://hl7.org/fhir/DSTU2/compartment-patient.html), STU3
 22085  // (http://www.hl7.org/fhir/stu3/compartmentdefinition-patient.html), R4
 22086  // (https://hl7.org/fhir/R4/compartmentdefinition-patient.html)), which details
 22087  // the eligible resource types and referencing search parameters. For samples
 22088  // that show how to call `Patient-everything`, see Getting all patient
 22089  // compartment resources
 22090  // (https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#getting_all_patient_compartment_resources).
 22091  //
 22092  //   - name: Name of the `Patient` resource for which the information is
 22093  //     required.
 22094  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) PatientEverything(name string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
 22095  	c := &ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22096  	c.name = name
 22097  	return c
 22098  }
 22099  
 22100  // Count sets the optional parameter "_count": Maximum number of resources in a
 22101  // page. If not specified, 100 is used. May not be larger than 1000.
 22102  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Count(Count int64) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
 22103  	c.urlParams_.Set("_count", fmt.Sprint(Count))
 22104  	return c
 22105  }
 22106  
 22107  // PageToken sets the optional parameter "_page_token": Used to retrieve the
 22108  // next or previous page of results when using pagination. Set `_page_token` to
 22109  // the value of _page_token set in next or previous page links' url. Next and
 22110  // previous page are returned in the response bundle's links field, where
 22111  // `link.relation` is "previous" or "next". Omit `_page_token` if no previous
 22112  // request has been made.
 22113  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) PageToken(PageToken string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
 22114  	c.urlParams_.Set("_page_token", PageToken)
 22115  	return c
 22116  }
 22117  
 22118  // Since sets the optional parameter "_since": If provided, only resources
 22119  // updated after this time are returned. The time uses the format
 22120  // YYYY-MM-DDThh:mm:ss.sss+zz:zz. For example, `2015-02-07T13:28:17.239+02:00`
 22121  // or `2017-01-01T00:00:00Z`. The time must be specified to the second and
 22122  // include a time zone.
 22123  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Since(Since string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
 22124  	c.urlParams_.Set("_since", Since)
 22125  	return c
 22126  }
 22127  
 22128  // Type sets the optional parameter "_type": String of comma-delimited FHIR
 22129  // resource types. If provided, only resources of the specified resource
 22130  // type(s) are returned. Specifying multiple `_type` parameters isn't
 22131  // supported. For example, the result of `_type=Observation&_type=Encounter` is
 22132  // undefined. Use `_type=Observation,Encounter` instead.
 22133  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Type(Type string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
 22134  	c.urlParams_.Set("_type", Type)
 22135  	return c
 22136  }
 22137  
 22138  // End sets the optional parameter "end": The response includes records prior
 22139  // to the end date. The date uses the format YYYY-MM-DD. If no end date is
 22140  // provided, all records subsequent to the start date are in scope.
 22141  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) End(end string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
 22142  	c.urlParams_.Set("end", end)
 22143  	return c
 22144  }
 22145  
 22146  // Start sets the optional parameter "start": The response includes records
 22147  // subsequent to the start date. The date uses the format YYYY-MM-DD. If no
 22148  // start date is provided, all records prior to the end date are in scope.
 22149  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Start(start string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
 22150  	c.urlParams_.Set("start", start)
 22151  	return c
 22152  }
 22153  
 22154  // Fields allows partial responses to be retrieved. See
 22155  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22156  // details.
 22157  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
 22158  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22159  	return c
 22160  }
 22161  
 22162  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22163  // object's ETag matches the given value. This is useful for getting updates
 22164  // only after the object has changed since the last request.
 22165  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
 22166  	c.ifNoneMatch_ = entityTag
 22167  	return c
 22168  }
 22169  
 22170  // Context sets the context to be used in this call's Do method.
 22171  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
 22172  	c.ctx_ = ctx
 22173  	return c
 22174  }
 22175  
 22176  // Header returns a http.Header that can be modified by the caller to add
 22177  // headers to the request.
 22178  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Header() http.Header {
 22179  	if c.header_ == nil {
 22180  		c.header_ = make(http.Header)
 22181  	}
 22182  	return c.header_
 22183  }
 22184  
 22185  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) doRequest(alt string) (*http.Response, error) {
 22186  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22187  	if c.ifNoneMatch_ != "" {
 22188  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22189  	}
 22190  	var body io.Reader = nil
 22191  	c.urlParams_.Set("alt", alt)
 22192  	c.urlParams_.Set("prettyPrint", "false")
 22193  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/$everything")
 22194  	urls += "?" + c.urlParams_.Encode()
 22195  	req, err := http.NewRequest("GET", urls, body)
 22196  	if err != nil {
 22197  		return nil, err
 22198  	}
 22199  	req.Header = reqHeaders
 22200  	googleapi.Expand(req.URL, map[string]string{
 22201  		"name": c.name,
 22202  	})
 22203  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22204  }
 22205  
 22206  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Patient-everything" call.
 22207  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 22208  	gensupport.SetOptions(c.urlParams_, opts...)
 22209  	return c.doRequest("")
 22210  }
 22211  
 22212  type ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall struct {
 22213  	s            *Service
 22214  	parent       string
 22215  	urlParams_   gensupport.URLParams
 22216  	ifNoneMatch_ string
 22217  	ctx_         context.Context
 22218  	header_      http.Header
 22219  }
 22220  
 22221  // ResourceIncomingReferences: Lists all the resources that directly refer to
 22222  // the given target FHIR resource. Can also support the case when the target
 22223  // resource doesn't exist, for example, if the target has been deleted. On
 22224  // success, the response body contains a Bundle with type `searchset`, where
 22225  // each entry in the Bundle contains the full content of the resource. If the
 22226  // operation fails, an `OperationOutcome` is returned describing the failure.
 22227  // If the request cannot be mapped to a valid API method on a FHIR store, a
 22228  // generic Google Cloud error might be returned instead.
 22229  //
 22230  // - parent: The name of the FHIR store that holds the target resource.
 22231  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ResourceIncomingReferences(parent string) *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall {
 22232  	c := &ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22233  	c.parent = parent
 22234  	return c
 22235  }
 22236  
 22237  // Count sets the optional parameter "_count": Maximum number of resources in a
 22238  // page. If not specified, 100 is used. May not be larger than 1000.
 22239  func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) Count(Count int64) *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall {
 22240  	c.urlParams_.Set("_count", fmt.Sprint(Count))
 22241  	return c
 22242  }
 22243  
 22244  // PageToken sets the optional parameter "_page_token": Used to retrieve the
 22245  // next page of results when using pagination. Set `_page_token` to the value
 22246  // of _page_token set in next page links' url. Next page are returned in the
 22247  // response bundle's links field, where `link.relation` is "next". Omit
 22248  // `_page_token` if no previous request has been made.
 22249  func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) PageToken(PageToken string) *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall {
 22250  	c.urlParams_.Set("_page_token", PageToken)
 22251  	return c
 22252  }
 22253  
 22254  // Summary sets the optional parameter "_summary": Used to simplify the
 22255  // representation of the returned resources. `_summary=text` returns only the
 22256  // `text`, `id`, and `meta` top-level fields. `_summary=data` removes the
 22257  // `text` field and returns all other fields. `_summary=false` returns all
 22258  // parts of the resource(s). Either not providing this parameter or providing
 22259  // an empty value to this parameter also returns all parts of the resource(s).
 22260  func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) Summary(Summary string) *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall {
 22261  	c.urlParams_.Set("_summary", Summary)
 22262  	return c
 22263  }
 22264  
 22265  // Type sets the optional parameter "_type": String of comma-delimited FHIR
 22266  // resource types. If provided, only resources of the specified resource
 22267  // type(s) are returned. If not provided or an empty value is provided, no
 22268  // filter on the returned resource type(s) is applied.
 22269  func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) Type(Type string) *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall {
 22270  	c.urlParams_.Set("_type", Type)
 22271  	return c
 22272  }
 22273  
 22274  // Target sets the optional parameter "target": Required. The target whose
 22275  // incoming references are requested. This param is required and must not be
 22276  // empty. It uses the format "ResourceType/ResourceID", for example,
 22277  // target=ResourceType/ResourceID.
 22278  func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) Target(target string) *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall {
 22279  	c.urlParams_.Set("target", target)
 22280  	return c
 22281  }
 22282  
 22283  // Fields allows partial responses to be retrieved. See
 22284  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22285  // details.
 22286  func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall {
 22287  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22288  	return c
 22289  }
 22290  
 22291  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22292  // object's ETag matches the given value. This is useful for getting updates
 22293  // only after the object has changed since the last request.
 22294  func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall {
 22295  	c.ifNoneMatch_ = entityTag
 22296  	return c
 22297  }
 22298  
 22299  // Context sets the context to be used in this call's Do method.
 22300  func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall {
 22301  	c.ctx_ = ctx
 22302  	return c
 22303  }
 22304  
 22305  // Header returns a http.Header that can be modified by the caller to add
 22306  // headers to the request.
 22307  func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) Header() http.Header {
 22308  	if c.header_ == nil {
 22309  		c.header_ = make(http.Header)
 22310  	}
 22311  	return c.header_
 22312  }
 22313  
 22314  func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) doRequest(alt string) (*http.Response, error) {
 22315  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22316  	if c.ifNoneMatch_ != "" {
 22317  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22318  	}
 22319  	var body io.Reader = nil
 22320  	c.urlParams_.Set("alt", alt)
 22321  	c.urlParams_.Set("prettyPrint", "false")
 22322  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/fhir/$references")
 22323  	urls += "?" + c.urlParams_.Encode()
 22324  	req, err := http.NewRequest("GET", urls, body)
 22325  	if err != nil {
 22326  		return nil, err
 22327  	}
 22328  	req.Header = reqHeaders
 22329  	googleapi.Expand(req.URL, map[string]string{
 22330  		"parent": c.parent,
 22331  	})
 22332  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22333  }
 22334  
 22335  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Resource-incoming-references" call.
 22336  func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 22337  	gensupport.SetOptions(c.urlParams_, opts...)
 22338  	return c.doRequest("")
 22339  }
 22340  
 22341  type ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall struct {
 22342  	s          *Service
 22343  	name       string
 22344  	urlParams_ gensupport.URLParams
 22345  	ctx_       context.Context
 22346  	header_    http.Header
 22347  }
 22348  
 22349  // ResourcePurge: Deletes all the historical versions of a resource (excluding
 22350  // the current version) from the FHIR store. To remove all versions of a
 22351  // resource, first delete the current version and then call this method. This
 22352  // is not a FHIR standard operation. For samples that show how to call
 22353  // `Resource-purge`, see Deleting historical versions of a FHIR resource
 22354  // (https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#deleting_historical_versions_of_a_fhir_resource).
 22355  //
 22356  // - name: The name of the resource to purge.
 22357  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ResourcePurge(name string) *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall {
 22358  	c := &ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22359  	c.name = name
 22360  	return c
 22361  }
 22362  
 22363  // Fields allows partial responses to be retrieved. See
 22364  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22365  // details.
 22366  func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall {
 22367  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22368  	return c
 22369  }
 22370  
 22371  // Context sets the context to be used in this call's Do method.
 22372  func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall {
 22373  	c.ctx_ = ctx
 22374  	return c
 22375  }
 22376  
 22377  // Header returns a http.Header that can be modified by the caller to add
 22378  // headers to the request.
 22379  func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) Header() http.Header {
 22380  	if c.header_ == nil {
 22381  		c.header_ = make(http.Header)
 22382  	}
 22383  	return c.header_
 22384  }
 22385  
 22386  func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) doRequest(alt string) (*http.Response, error) {
 22387  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22388  	var body io.Reader = nil
 22389  	c.urlParams_.Set("alt", alt)
 22390  	c.urlParams_.Set("prettyPrint", "false")
 22391  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/$purge")
 22392  	urls += "?" + c.urlParams_.Encode()
 22393  	req, err := http.NewRequest("DELETE", urls, body)
 22394  	if err != nil {
 22395  		return nil, err
 22396  	}
 22397  	req.Header = reqHeaders
 22398  	googleapi.Expand(req.URL, map[string]string{
 22399  		"name": c.name,
 22400  	})
 22401  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22402  }
 22403  
 22404  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Resource-purge" call.
 22405  // Any non-2xx status code is an error. Response headers are in either
 22406  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 22407  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 22408  // whether the returned error was because http.StatusNotModified was returned.
 22409  func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 22410  	gensupport.SetOptions(c.urlParams_, opts...)
 22411  	res, err := c.doRequest("json")
 22412  	if res != nil && res.StatusCode == http.StatusNotModified {
 22413  		if res.Body != nil {
 22414  			res.Body.Close()
 22415  		}
 22416  		return nil, gensupport.WrapError(&googleapi.Error{
 22417  			Code:   res.StatusCode,
 22418  			Header: res.Header,
 22419  		})
 22420  	}
 22421  	if err != nil {
 22422  		return nil, err
 22423  	}
 22424  	defer googleapi.CloseBody(res)
 22425  	if err := googleapi.CheckResponse(res); err != nil {
 22426  		return nil, gensupport.WrapError(err)
 22427  	}
 22428  	ret := &Empty{
 22429  		ServerResponse: googleapi.ServerResponse{
 22430  			Header:         res.Header,
 22431  			HTTPStatusCode: res.StatusCode,
 22432  		},
 22433  	}
 22434  	target := &ret
 22435  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22436  		return nil, err
 22437  	}
 22438  	return ret, nil
 22439  }
 22440  
 22441  type ProjectsLocationsDatasetsFhirStoresFhirResourceValidateCall struct {
 22442  	s          *Service
 22443  	parent     string
 22444  	type_      string
 22445  	body_      io.Reader
 22446  	urlParams_ gensupport.URLParams
 22447  	ctx_       context.Context
 22448  	header_    http.Header
 22449  }
 22450  
 22451  // ResourceValidate: Validates an input FHIR resource's conformance to its
 22452  // profiles and the profiles configured on the FHIR store. Implements the FHIR
 22453  // extended operation $validate (DSTU2
 22454  // (http://hl7.org/implement/standards/fhir/DSTU2/resource-operations.html#validate),
 22455  // STU3
 22456  // (http://hl7.org/implement/standards/fhir/STU3/resource-operations.html#validate),
 22457  // or R4
 22458  // (http://hl7.org/implement/standards/fhir/R4/resource-operation-validate.html)).
 22459  // The request body must contain a JSON-encoded FHIR resource, and the request
 22460  // headers must contain `Content-Type: application/fhir+json`. The `Parameters`
 22461  // input syntax is not supported. The `profile` query parameter can be used to
 22462  // request that the resource only be validated against a specific profile. If a
 22463  // profile with the given URL cannot be found in the FHIR store then an error
 22464  // is returned. Errors generated by validation contain a JSON-encoded
 22465  // `OperationOutcome` resource describing the reason for the error. If the
 22466  // request cannot be mapped to a valid API method on a FHIR store, a generic
 22467  // GCP error might be returned instead.
 22468  //
 22469  //   - parent: The name of the FHIR store that holds the profiles being used for
 22470  //     validation.
 22471  //   - type: The FHIR resource type of the resource being validated. For a
 22472  //     complete list, see the FHIR Resource Index (DSTU2
 22473  //     (http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), STU3
 22474  //     (http://hl7.org/implement/standards/fhir/STU3/resourcelist.html), or R4
 22475  //     (http://hl7.org/implement/standards/fhir/R4/resourcelist.html)). Must
 22476  //     match the resource type in the provided content.
 22477  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ResourceValidate(parent string, type_ string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirResourceValidateCall {
 22478  	c := &ProjectsLocationsDatasetsFhirStoresFhirResourceValidateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22479  	c.parent = parent
 22480  	c.type_ = type_
 22481  	c.body_ = body_
 22482  	return c
 22483  }
 22484  
 22485  // Profile sets the optional parameter "profile": Required. The canonical URL
 22486  // of a profile that this resource should be validated against. For example, to
 22487  // validate a Patient resource against the US Core Patient profile this
 22488  // parameter would be
 22489  // `http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient`. A
 22490  // StructureDefinition with this canonical URL must exist in the FHIR store.
 22491  func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceValidateCall) Profile(profile string) *ProjectsLocationsDatasetsFhirStoresFhirResourceValidateCall {
 22492  	c.urlParams_.Set("profile", profile)
 22493  	return c
 22494  }
 22495  
 22496  // Fields allows partial responses to be retrieved. See
 22497  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22498  // details.
 22499  func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceValidateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirResourceValidateCall {
 22500  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22501  	return c
 22502  }
 22503  
 22504  // Context sets the context to be used in this call's Do method.
 22505  func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceValidateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirResourceValidateCall {
 22506  	c.ctx_ = ctx
 22507  	return c
 22508  }
 22509  
 22510  // Header returns a http.Header that can be modified by the caller to add
 22511  // headers to the request.
 22512  func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceValidateCall) Header() http.Header {
 22513  	if c.header_ == nil {
 22514  		c.header_ = make(http.Header)
 22515  	}
 22516  	return c.header_
 22517  }
 22518  
 22519  func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceValidateCall) doRequest(alt string) (*http.Response, error) {
 22520  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22521  	var body io.Reader = nil
 22522  	body = c.body_
 22523  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/fhir/{+type}/$validate")
 22524  	urls += "?" + c.urlParams_.Encode()
 22525  	req, err := http.NewRequest("POST", urls, body)
 22526  	if err != nil {
 22527  		return nil, err
 22528  	}
 22529  	req.Header = reqHeaders
 22530  	googleapi.Expand(req.URL, map[string]string{
 22531  		"parent": c.parent,
 22532  		"type":   c.type_,
 22533  	})
 22534  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22535  }
 22536  
 22537  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Resource-validate" call.
 22538  func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceValidateCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 22539  	gensupport.SetOptions(c.urlParams_, opts...)
 22540  	return c.doRequest("")
 22541  }
 22542  
 22543  type ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall struct {
 22544  	s            *Service
 22545  	name         string
 22546  	urlParams_   gensupport.URLParams
 22547  	ifNoneMatch_ string
 22548  	ctx_         context.Context
 22549  	header_      http.Header
 22550  }
 22551  
 22552  // Capabilities: Gets the FHIR capability statement (STU3
 22553  // (https://hl7.org/implement/standards/fhir/STU3/capabilitystatement.html), R4
 22554  // (https://hl7.org/implement/standards/fhir/R4/capabilitystatement.html)), or
 22555  // the conformance statement
 22556  // (https://hl7.org/implement/standards/fhir/DSTU2/conformance.html) in the
 22557  // DSTU2 case for the store, which contains a description of functionality
 22558  // supported by the server. Implements the FHIR standard capabilities
 22559  // interaction (STU3
 22560  // (https://hl7.org/implement/standards/fhir/STU3/http.html#capabilities), R4
 22561  // (https://hl7.org/implement/standards/fhir/R4/http.html#capabilities)), or
 22562  // the conformance interaction
 22563  // (https://hl7.org/implement/standards/fhir/DSTU2/http.html#conformance) in
 22564  // the DSTU2 case. On success, the response body contains a JSON-encoded
 22565  // representation of a `CapabilityStatement` resource.
 22566  //
 22567  // - name: Name of the FHIR store to retrieve the capabilities for.
 22568  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Capabilities(name string) *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall {
 22569  	c := &ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22570  	c.name = name
 22571  	return c
 22572  }
 22573  
 22574  // Fields allows partial responses to be retrieved. See
 22575  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22576  // details.
 22577  func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall {
 22578  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22579  	return c
 22580  }
 22581  
 22582  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22583  // object's ETag matches the given value. This is useful for getting updates
 22584  // only after the object has changed since the last request.
 22585  func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall {
 22586  	c.ifNoneMatch_ = entityTag
 22587  	return c
 22588  }
 22589  
 22590  // Context sets the context to be used in this call's Do method.
 22591  func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall {
 22592  	c.ctx_ = ctx
 22593  	return c
 22594  }
 22595  
 22596  // Header returns a http.Header that can be modified by the caller to add
 22597  // headers to the request.
 22598  func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) Header() http.Header {
 22599  	if c.header_ == nil {
 22600  		c.header_ = make(http.Header)
 22601  	}
 22602  	return c.header_
 22603  }
 22604  
 22605  func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) doRequest(alt string) (*http.Response, error) {
 22606  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22607  	if c.ifNoneMatch_ != "" {
 22608  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22609  	}
 22610  	var body io.Reader = nil
 22611  	c.urlParams_.Set("alt", alt)
 22612  	c.urlParams_.Set("prettyPrint", "false")
 22613  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/fhir/metadata")
 22614  	urls += "?" + c.urlParams_.Encode()
 22615  	req, err := http.NewRequest("GET", urls, body)
 22616  	if err != nil {
 22617  		return nil, err
 22618  	}
 22619  	req.Header = reqHeaders
 22620  	googleapi.Expand(req.URL, map[string]string{
 22621  		"name": c.name,
 22622  	})
 22623  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22624  }
 22625  
 22626  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.capabilities" call.
 22627  func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 22628  	gensupport.SetOptions(c.urlParams_, opts...)
 22629  	return c.doRequest("")
 22630  }
 22631  
 22632  type ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall struct {
 22633  	s          *Service
 22634  	parent     string
 22635  	type_      string
 22636  	urlParams_ gensupport.URLParams
 22637  	ctx_       context.Context
 22638  	header_    http.Header
 22639  }
 22640  
 22641  // ConditionalDelete: Deletes FHIR resources that match a search query.
 22642  // Implements the FHIR standard conditional delete interaction (DSTU2
 22643  // (https://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.12.1), STU3
 22644  // (https://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.13.1), R4
 22645  // (https://hl7.org/implement/standards/fhir/R4/http.html#3.1.0.7.1)). If
 22646  // multiple resources match, all matching resources are deleted. Search terms
 22647  // are provided as query parameters following the same pattern as the search
 22648  // method. Not all FHIR resources that match the search query might be deleted
 22649  // because, by default, a maximum of 100 FHIR resources can be deleted. The
 22650  // number of FHIR resources that can be deleted depends on the page size of the
 22651  // returned resources, which you can control using the `_count` query
 22652  // parameter. Even when using `_count`, you can delete a maximum 1,000 FHIR
 22653  // resources per each call of `conditionalDelete`. Note: Unless resource
 22654  // versioning is disabled by setting the disable_resource_versioning flag on
 22655  // the FHIR store, the deleted resources are moved to a history repository that
 22656  // can still be retrieved through vread and related methods, unless they are
 22657  // removed by the purge method. This method requires
 22658  // the`healthcare.fhirStores.searchResources` and
 22659  // `healthcare.fhirResources.delete` permissions on the parent FHIR store. For
 22660  // samples that show how to call `conditionalDelete`, see Conditionally
 22661  // deleting a FHIR resource
 22662  // (https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#conditionally_deleting_a_fhir_resource).
 22663  //
 22664  //   - parent: The name of the FHIR store this resource belongs to.
 22665  //   - type: The FHIR resource type to delete, such as Patient or Observation.
 22666  //     For a complete list, see the FHIR Resource Index (DSTU2
 22667  //     (https://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), STU3
 22668  //     (https://hl7.org/implement/standards/fhir/STU3/resourcelist.html), R4
 22669  //     (https://hl7.org/implement/standards/fhir/R4/resourcelist.html)).
 22670  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConditionalDelete(parent string, type_ string) *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall {
 22671  	c := &ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22672  	c.parent = parent
 22673  	c.type_ = type_
 22674  	return c
 22675  }
 22676  
 22677  // Fields allows partial responses to be retrieved. See
 22678  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22679  // details.
 22680  func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall {
 22681  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22682  	return c
 22683  }
 22684  
 22685  // Context sets the context to be used in this call's Do method.
 22686  func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall {
 22687  	c.ctx_ = ctx
 22688  	return c
 22689  }
 22690  
 22691  // Header returns a http.Header that can be modified by the caller to add
 22692  // headers to the request.
 22693  func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) Header() http.Header {
 22694  	if c.header_ == nil {
 22695  		c.header_ = make(http.Header)
 22696  	}
 22697  	return c.header_
 22698  }
 22699  
 22700  func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) doRequest(alt string) (*http.Response, error) {
 22701  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22702  	var body io.Reader = nil
 22703  	c.urlParams_.Set("alt", alt)
 22704  	c.urlParams_.Set("prettyPrint", "false")
 22705  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/fhir/{+type}")
 22706  	urls += "?" + c.urlParams_.Encode()
 22707  	req, err := http.NewRequest("DELETE", urls, body)
 22708  	if err != nil {
 22709  		return nil, err
 22710  	}
 22711  	req.Header = reqHeaders
 22712  	googleapi.Expand(req.URL, map[string]string{
 22713  		"parent": c.parent,
 22714  		"type":   c.type_,
 22715  	})
 22716  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22717  }
 22718  
 22719  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalDelete" call.
 22720  // Any non-2xx status code is an error. Response headers are in either
 22721  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 22722  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 22723  // whether the returned error was because http.StatusNotModified was returned.
 22724  func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 22725  	gensupport.SetOptions(c.urlParams_, opts...)
 22726  	res, err := c.doRequest("json")
 22727  	if res != nil && res.StatusCode == http.StatusNotModified {
 22728  		if res.Body != nil {
 22729  			res.Body.Close()
 22730  		}
 22731  		return nil, gensupport.WrapError(&googleapi.Error{
 22732  			Code:   res.StatusCode,
 22733  			Header: res.Header,
 22734  		})
 22735  	}
 22736  	if err != nil {
 22737  		return nil, err
 22738  	}
 22739  	defer googleapi.CloseBody(res)
 22740  	if err := googleapi.CheckResponse(res); err != nil {
 22741  		return nil, gensupport.WrapError(err)
 22742  	}
 22743  	ret := &Empty{
 22744  		ServerResponse: googleapi.ServerResponse{
 22745  			Header:         res.Header,
 22746  			HTTPStatusCode: res.StatusCode,
 22747  		},
 22748  	}
 22749  	target := &ret
 22750  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22751  		return nil, err
 22752  	}
 22753  	return ret, nil
 22754  }
 22755  
 22756  type ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall struct {
 22757  	s          *Service
 22758  	parent     string
 22759  	type_      string
 22760  	body_      io.Reader
 22761  	urlParams_ gensupport.URLParams
 22762  	ctx_       context.Context
 22763  	header_    http.Header
 22764  }
 22765  
 22766  // ConditionalPatch: If a resource is found based on the search criteria
 22767  // specified in the query parameters, updates part of that resource by applying
 22768  // the operations specified in a JSON Patch (http://jsonpatch.com/) document.
 22769  // Implements the FHIR standard conditional patch interaction (STU3
 22770  // (https://hl7.org/implement/standards/fhir/STU3/http.html#patch), R4
 22771  // (https://hl7.org/implement/standards/fhir/R4/http.html#patch)). DSTU2
 22772  // doesn't define a conditional patch method, but the server supports it in the
 22773  // same way it supports STU3. Search terms are provided as query parameters
 22774  // following the same pattern as the search method. If the search criteria
 22775  // identify more than one match, the request returns a `412 Precondition
 22776  // Failed` error. The request body must contain a JSON Patch document, and the
 22777  // request headers must contain `Content-Type: application/json-patch+json`. On
 22778  // success, the response body contains a JSON-encoded representation of the
 22779  // updated resource, including the server-assigned version ID. Errors generated
 22780  // by the FHIR store contain a JSON-encoded `OperationOutcome` resource
 22781  // describing the reason for the error. If the request cannot be mapped to a
 22782  // valid API method on a FHIR store, a generic GCP error might be returned
 22783  // instead. This method requires the`healthcare.fhirStores.searchResources`
 22784  // permission on the parent FHIR store and the `healthcare.fhirResources.patch`
 22785  // permission on the requested FHIR store resource. For samples that show how
 22786  // to call `conditionalPatch`, see Conditionally patching a FHIR resource
 22787  // (https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#conditionally_patching_a_fhir_resource).
 22788  //
 22789  //   - parent: The name of the FHIR store this resource belongs to.
 22790  //   - type: The FHIR resource type to update, such as Patient or Observation.
 22791  //     For a complete list, see the FHIR Resource Index (DSTU2
 22792  //     (https://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), STU3
 22793  //     (https://hl7.org/implement/standards/fhir/STU3/resourcelist.html), R4
 22794  //     (https://hl7.org/implement/standards/fhir/R4/resourcelist.html)).
 22795  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConditionalPatch(parent string, type_ string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall {
 22796  	c := &ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22797  	c.parent = parent
 22798  	c.type_ = type_
 22799  	c.body_ = body_
 22800  	return c
 22801  }
 22802  
 22803  // Fields allows partial responses to be retrieved. See
 22804  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22805  // details.
 22806  func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall {
 22807  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22808  	return c
 22809  }
 22810  
 22811  // Context sets the context to be used in this call's Do method.
 22812  func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall {
 22813  	c.ctx_ = ctx
 22814  	return c
 22815  }
 22816  
 22817  // Header returns a http.Header that can be modified by the caller to add
 22818  // headers to the request.
 22819  func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) Header() http.Header {
 22820  	if c.header_ == nil {
 22821  		c.header_ = make(http.Header)
 22822  	}
 22823  	return c.header_
 22824  }
 22825  
 22826  func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) doRequest(alt string) (*http.Response, error) {
 22827  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22828  	var body io.Reader = nil
 22829  	body = c.body_
 22830  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/fhir/{+type}")
 22831  	urls += "?" + c.urlParams_.Encode()
 22832  	req, err := http.NewRequest("PATCH", urls, body)
 22833  	if err != nil {
 22834  		return nil, err
 22835  	}
 22836  	req.Header = reqHeaders
 22837  	googleapi.Expand(req.URL, map[string]string{
 22838  		"parent": c.parent,
 22839  		"type":   c.type_,
 22840  	})
 22841  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22842  }
 22843  
 22844  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalPatch" call.
 22845  func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 22846  	gensupport.SetOptions(c.urlParams_, opts...)
 22847  	return c.doRequest("")
 22848  }
 22849  
 22850  type ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall struct {
 22851  	s          *Service
 22852  	parent     string
 22853  	type_      string
 22854  	body_      io.Reader
 22855  	urlParams_ gensupport.URLParams
 22856  	ctx_       context.Context
 22857  	header_    http.Header
 22858  }
 22859  
 22860  // ConditionalUpdate: If a resource is found based on the search criteria
 22861  // specified in the query parameters, updates the entire contents of that
 22862  // resource. Implements the FHIR standard conditional update interaction (DSTU2
 22863  // (https://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.10.2), STU3
 22864  // (https://hl7.org/implement/standards/fhir/STU3/http.html#cond-update), R4
 22865  // (https://hl7.org/implement/standards/fhir/R4/http.html#cond-update)). Search
 22866  // terms are provided as query parameters following the same pattern as the
 22867  // search method. If the search criteria identify more than one match, the
 22868  // request returns a `412 Precondition Failed` error. If the search criteria
 22869  // identify zero matches, and the supplied resource body contains an `id`, and
 22870  // the FHIR store has enable_update_create set, creates the resource with the
 22871  // client-specified ID. It is strongly advised not to include or encode any
 22872  // sensitive data such as patient identifiers in client-specified resource IDs.
 22873  // Those IDs are part of the FHIR resource path recorded in Cloud Audit Logs
 22874  // and Pub/Sub notifications. Those IDs can also be contained in reference
 22875  // fields within other resources. If the search criteria identify zero matches,
 22876  // and the supplied resource body does not contain an `id`, the resource is
 22877  // created with a server-assigned ID as per the create method. The request body
 22878  // must contain a JSON-encoded FHIR resource, and the request headers must
 22879  // contain `Content-Type: application/fhir+json`. On success, the response body
 22880  // contains a JSON-encoded representation of the updated resource, including
 22881  // the server-assigned version ID. Errors generated by the FHIR store contain a
 22882  // JSON-encoded `OperationOutcome` resource describing the reason for the
 22883  // error. If the request cannot be mapped to a valid API method on a FHIR
 22884  // store, a generic GCP error might be returned instead. This method requires
 22885  // the`healthcare.fhirStores.searchResources` and
 22886  // `healthcare.fhirResources.update` permissions on the parent FHIR store. For
 22887  // samples that show how to call `conditionalUpdate`, see Conditionally
 22888  // updating a FHIR resource
 22889  // (https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#conditionally_updating_a_fhir_resource).
 22890  //
 22891  //   - parent: The name of the FHIR store this resource belongs to.
 22892  //   - type: The FHIR resource type to update, such as Patient or Observation.
 22893  //     For a complete list, see the FHIR Resource Index (DSTU2
 22894  //     (https://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), STU3
 22895  //     (https://hl7.org/implement/standards/fhir/STU3/resourcelist.html), R4
 22896  //     (https://hl7.org/implement/standards/fhir/R4/resourcelist.html)). Must
 22897  //     match the resource type in the provided content.
 22898  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConditionalUpdate(parent string, type_ string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall {
 22899  	c := &ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22900  	c.parent = parent
 22901  	c.type_ = type_
 22902  	c.body_ = body_
 22903  	return c
 22904  }
 22905  
 22906  // Fields allows partial responses to be retrieved. See
 22907  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22908  // details.
 22909  func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall {
 22910  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22911  	return c
 22912  }
 22913  
 22914  // Context sets the context to be used in this call's Do method.
 22915  func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall {
 22916  	c.ctx_ = ctx
 22917  	return c
 22918  }
 22919  
 22920  // Header returns a http.Header that can be modified by the caller to add
 22921  // headers to the request.
 22922  func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) Header() http.Header {
 22923  	if c.header_ == nil {
 22924  		c.header_ = make(http.Header)
 22925  	}
 22926  	return c.header_
 22927  }
 22928  
 22929  func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) doRequest(alt string) (*http.Response, error) {
 22930  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22931  	var body io.Reader = nil
 22932  	body = c.body_
 22933  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/fhir/{+type}")
 22934  	urls += "?" + c.urlParams_.Encode()
 22935  	req, err := http.NewRequest("PUT", urls, body)
 22936  	if err != nil {
 22937  		return nil, err
 22938  	}
 22939  	req.Header = reqHeaders
 22940  	googleapi.Expand(req.URL, map[string]string{
 22941  		"parent": c.parent,
 22942  		"type":   c.type_,
 22943  	})
 22944  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22945  }
 22946  
 22947  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalUpdate" call.
 22948  func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 22949  	gensupport.SetOptions(c.urlParams_, opts...)
 22950  	return c.doRequest("")
 22951  }
 22952  
 22953  type ProjectsLocationsDatasetsFhirStoresFhirCreateCall struct {
 22954  	s          *Service
 22955  	parent     string
 22956  	type_      string
 22957  	body_      io.Reader
 22958  	urlParams_ gensupport.URLParams
 22959  	ctx_       context.Context
 22960  	header_    http.Header
 22961  }
 22962  
 22963  // Create: Creates a FHIR resource. Implements the FHIR standard create
 22964  // interaction (DSTU2
 22965  // (https://hl7.org/implement/standards/fhir/DSTU2/http.html#create), STU3
 22966  // (https://hl7.org/implement/standards/fhir/STU3/http.html#create), R4
 22967  // (https://hl7.org/implement/standards/fhir/R4/http.html#create)), which
 22968  // creates a new resource with a server-assigned resource ID. Also supports the
 22969  // FHIR standard conditional create interaction (DSTU2
 22970  // (https://hl7.org/implement/standards/fhir/DSTU2/http.html#ccreate), STU3
 22971  // (https://hl7.org/implement/standards/fhir/STU3/http.html#ccreate), R4
 22972  // (https://hl7.org/implement/standards/fhir/R4/http.html#ccreate)), specified
 22973  // by supplying an `If-None-Exist` header containing a FHIR search query. If no
 22974  // resources match this search query, the server processes the create operation
 22975  // as normal. The request body must contain a JSON-encoded FHIR resource, and
 22976  // the request headers must contain `Content-Type: application/fhir+json`. On
 22977  // success, the response body contains a JSON-encoded representation of the
 22978  // resource as it was created on the server, including the server-assigned
 22979  // resource ID and version ID. Errors generated by the FHIR store contain a
 22980  // JSON-encoded `OperationOutcome` resource describing the reason for the
 22981  // error. If the request cannot be mapped to a valid API method on a FHIR
 22982  // store, a generic GCP error might be returned instead. For samples that show
 22983  // how to call `create`, see Creating a FHIR resource
 22984  // (https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#creating_a_fhir_resource).
 22985  //
 22986  //   - parent: The name of the FHIR store this resource belongs to.
 22987  //   - type: The FHIR resource type to create, such as Patient or Observation.
 22988  //     For a complete list, see the FHIR Resource Index (DSTU2
 22989  //     (https://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), STU3
 22990  //     (https://hl7.org/implement/standards/fhir/STU3/resourcelist.html), R4
 22991  //     (https://hl7.org/implement/standards/fhir/R4/resourcelist.html)). Must
 22992  //     match the resource type in the provided content.
 22993  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Create(parent string, type_ string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirCreateCall {
 22994  	c := &ProjectsLocationsDatasetsFhirStoresFhirCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22995  	c.parent = parent
 22996  	c.type_ = type_
 22997  	c.body_ = body_
 22998  	return c
 22999  }
 23000  
 23001  // Fields allows partial responses to be retrieved. See
 23002  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23003  // details.
 23004  func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirCreateCall {
 23005  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23006  	return c
 23007  }
 23008  
 23009  // Context sets the context to be used in this call's Do method.
 23010  func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirCreateCall {
 23011  	c.ctx_ = ctx
 23012  	return c
 23013  }
 23014  
 23015  // Header returns a http.Header that can be modified by the caller to add
 23016  // headers to the request.
 23017  func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) Header() http.Header {
 23018  	if c.header_ == nil {
 23019  		c.header_ = make(http.Header)
 23020  	}
 23021  	return c.header_
 23022  }
 23023  
 23024  func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) doRequest(alt string) (*http.Response, error) {
 23025  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23026  	var body io.Reader = nil
 23027  	body = c.body_
 23028  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/fhir/{+type}")
 23029  	urls += "?" + c.urlParams_.Encode()
 23030  	req, err := http.NewRequest("POST", urls, body)
 23031  	if err != nil {
 23032  		return nil, err
 23033  	}
 23034  	req.Header = reqHeaders
 23035  	googleapi.Expand(req.URL, map[string]string{
 23036  		"parent": c.parent,
 23037  		"type":   c.type_,
 23038  	})
 23039  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23040  }
 23041  
 23042  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.create" call.
 23043  func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 23044  	gensupport.SetOptions(c.urlParams_, opts...)
 23045  	return c.doRequest("")
 23046  }
 23047  
 23048  type ProjectsLocationsDatasetsFhirStoresFhirDeleteCall struct {
 23049  	s          *Service
 23050  	name       string
 23051  	urlParams_ gensupport.URLParams
 23052  	ctx_       context.Context
 23053  	header_    http.Header
 23054  }
 23055  
 23056  // Delete: Deletes a FHIR resource. Implements the FHIR standard delete
 23057  // interaction (DSTU2
 23058  // (https://hl7.org/implement/standards/fhir/DSTU2/http.html#delete), STU3
 23059  // (https://hl7.org/implement/standards/fhir/STU3/http.html#delete), R4
 23060  // (https://hl7.org/implement/standards/fhir/R4/http.html#delete)). Note:
 23061  // Unless resource versioning is disabled by setting the
 23062  // disable_resource_versioning flag on the FHIR store, the deleted resources
 23063  // are moved to a history repository that can still be retrieved through vread
 23064  // and related methods, unless they are removed by the purge method. For
 23065  // samples that show how to call `delete`, see Deleting a FHIR resource
 23066  // (https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#deleting_a_fhir_resource).
 23067  //
 23068  // - name: The name of the resource to delete.
 23069  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Delete(name string) *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall {
 23070  	c := &ProjectsLocationsDatasetsFhirStoresFhirDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23071  	c.name = name
 23072  	return c
 23073  }
 23074  
 23075  // Fields allows partial responses to be retrieved. See
 23076  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23077  // details.
 23078  func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall {
 23079  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23080  	return c
 23081  }
 23082  
 23083  // Context sets the context to be used in this call's Do method.
 23084  func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall {
 23085  	c.ctx_ = ctx
 23086  	return c
 23087  }
 23088  
 23089  // Header returns a http.Header that can be modified by the caller to add
 23090  // headers to the request.
 23091  func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) Header() http.Header {
 23092  	if c.header_ == nil {
 23093  		c.header_ = make(http.Header)
 23094  	}
 23095  	return c.header_
 23096  }
 23097  
 23098  func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) doRequest(alt string) (*http.Response, error) {
 23099  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23100  	var body io.Reader = nil
 23101  	c.urlParams_.Set("alt", alt)
 23102  	c.urlParams_.Set("prettyPrint", "false")
 23103  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 23104  	urls += "?" + c.urlParams_.Encode()
 23105  	req, err := http.NewRequest("DELETE", urls, body)
 23106  	if err != nil {
 23107  		return nil, err
 23108  	}
 23109  	req.Header = reqHeaders
 23110  	googleapi.Expand(req.URL, map[string]string{
 23111  		"name": c.name,
 23112  	})
 23113  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23114  }
 23115  
 23116  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.delete" call.
 23117  func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 23118  	gensupport.SetOptions(c.urlParams_, opts...)
 23119  	return c.doRequest("")
 23120  }
 23121  
 23122  type ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall struct {
 23123  	s          *Service
 23124  	parent     string
 23125  	body_      io.Reader
 23126  	urlParams_ gensupport.URLParams
 23127  	ctx_       context.Context
 23128  	header_    http.Header
 23129  }
 23130  
 23131  // ExecuteBundle: Executes all the requests in the given Bundle. Implements the
 23132  // FHIR standard batch/transaction interaction and history operations. (DSTU2
 23133  // (https://hl7.org/implement/standards/fhir/DSTU2/http.html#transaction), STU3
 23134  // (https://hl7.org/implement/standards/fhir/STU3/http.html#transaction), R4
 23135  // (https://hl7.org/implement/standards/fhir/R4/http.html#transaction)).
 23136  // Supports all interactions within a bundle, except search. This method
 23137  // accepts Bundles of type `batch`, `transaction` and `history`, processing
 23138  // `batch` and `transaction` bundles according to the batch processing rules
 23139  // (DSTU2
 23140  // (https://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.16.1), STU3
 23141  // (https://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.1), R4
 23142  // (https://hl7.org/implement/standards/fhir/R4/http.html#brules)) and
 23143  // transaction processing rules (DSTU2
 23144  // (https://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.16.2), STU3
 23145  // (https://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.2), R4
 23146  // (https://hl7.org/implement/standards/fhir/R4/http.html#trules)). The request
 23147  // body must contain a JSON-encoded FHIR `Bundle` resource, and the request
 23148  // headers must contain `Content-Type: application/fhir+json`. For a batch
 23149  // bundle or a successful transaction, the response body contains a
 23150  // JSON-encoded representation of a `Bundle` resource of type `batch-response`
 23151  // or `transaction-response` containing one entry for each entry in the
 23152  // request, with the outcome of processing the entry. In the case of an error
 23153  // for a `transaction` or `history` bundle, the response body contains a
 23154  // JSON-encoded `OperationOutcome` resource describing the reason for the
 23155  // error. If the request cannot be mapped to a valid API method on a FHIR
 23156  // store, a generic GCP error might be returned instead. This method checks
 23157  // permissions for each request in the bundle. The `executeBundle` permission
 23158  // is required to call this method, but you must also grant sufficient
 23159  // permissions to execute the individual requests in the bundle. For example,
 23160  // if the bundle contains a request to create a FHIR resource, the caller must
 23161  // also have been granted the `healthcare.fhirResources.create` permission.
 23162  // `history` bundles also check the `import` permission. You can use audit logs
 23163  // to view the permissions for `executeBundle` and each request in the bundle.
 23164  // For more information, see Viewing Cloud Audit logs
 23165  // (https://cloud.google.com/healthcare-api/docs/how-tos/audit-logging). For
 23166  // samples that show how to call `executeBundle`, see Managing FHIR resources
 23167  // using FHIR bundles
 23168  // (https://cloud.google.com/healthcare/docs/how-tos/fhir-bundles).
 23169  //
 23170  // - parent: Name of the FHIR store in which this bundle will be executed.
 23171  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ExecuteBundle(parent string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall {
 23172  	c := &ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23173  	c.parent = parent
 23174  	c.body_ = body_
 23175  	return c
 23176  }
 23177  
 23178  // Fields allows partial responses to be retrieved. See
 23179  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23180  // details.
 23181  func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall {
 23182  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23183  	return c
 23184  }
 23185  
 23186  // Context sets the context to be used in this call's Do method.
 23187  func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall {
 23188  	c.ctx_ = ctx
 23189  	return c
 23190  }
 23191  
 23192  // Header returns a http.Header that can be modified by the caller to add
 23193  // headers to the request.
 23194  func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) Header() http.Header {
 23195  	if c.header_ == nil {
 23196  		c.header_ = make(http.Header)
 23197  	}
 23198  	return c.header_
 23199  }
 23200  
 23201  func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) doRequest(alt string) (*http.Response, error) {
 23202  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23203  	var body io.Reader = nil
 23204  	body = c.body_
 23205  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/fhir")
 23206  	urls += "?" + c.urlParams_.Encode()
 23207  	req, err := http.NewRequest("POST", urls, body)
 23208  	if err != nil {
 23209  		return nil, err
 23210  	}
 23211  	req.Header = reqHeaders
 23212  	googleapi.Expand(req.URL, map[string]string{
 23213  		"parent": c.parent,
 23214  	})
 23215  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23216  }
 23217  
 23218  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.executeBundle" call.
 23219  func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 23220  	gensupport.SetOptions(c.urlParams_, opts...)
 23221  	return c.doRequest("")
 23222  }
 23223  
 23224  type ProjectsLocationsDatasetsFhirStoresFhirHistoryCall struct {
 23225  	s            *Service
 23226  	name         string
 23227  	urlParams_   gensupport.URLParams
 23228  	ifNoneMatch_ string
 23229  	ctx_         context.Context
 23230  	header_      http.Header
 23231  }
 23232  
 23233  // History: Lists all the versions of a resource (including the current version
 23234  // and deleted versions) from the FHIR store. Implements the per-resource form
 23235  // of the FHIR standard history interaction (DSTU2
 23236  // (https://hl7.org/implement/standards/fhir/DSTU2/http.html#history), STU3
 23237  // (https://hl7.org/implement/standards/fhir/STU3/http.html#history), R4
 23238  // (https://hl7.org/implement/standards/fhir/R4/http.html#history)). On
 23239  // success, the response body contains a JSON-encoded representation of a
 23240  // `Bundle` resource of type `history`, containing the version history sorted
 23241  // from most recent to oldest versions. Errors generated by the FHIR store
 23242  // contain a JSON-encoded `OperationOutcome` resource describing the reason for
 23243  // the error. If the request cannot be mapped to a valid API method on a FHIR
 23244  // store, a generic GCP error might be returned instead. For samples that show
 23245  // how to call `history`, see Listing FHIR resource versions
 23246  // (https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#listing_fhir_resource_versions).
 23247  //
 23248  // - name: The name of the resource to retrieve.
 23249  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) History(name string) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
 23250  	c := &ProjectsLocationsDatasetsFhirStoresFhirHistoryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23251  	c.name = name
 23252  	return c
 23253  }
 23254  
 23255  // At sets the optional parameter "_at": Only include resource versions that
 23256  // were current at some point during the time period specified in the date time
 23257  // value. The date parameter format is yyyy-mm-ddThh:mm:ss[Z|(+|-)hh:mm]
 23258  // Clients may specify any of the following: * An entire year: `_at=2019` * An
 23259  // entire month: `_at=2019-01` * A specific day: `_at=2019-01-20` * A specific
 23260  // second: `_at=2018-12-31T23:59:58Z`
 23261  func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) At(At string) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
 23262  	c.urlParams_.Set("_at", At)
 23263  	return c
 23264  }
 23265  
 23266  // Count sets the optional parameter "_count": The maximum number of search
 23267  // results on a page. If not specified, 100 is used. May not be larger than
 23268  // 1000.
 23269  func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Count(Count int64) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
 23270  	c.urlParams_.Set("_count", fmt.Sprint(Count))
 23271  	return c
 23272  }
 23273  
 23274  // PageToken sets the optional parameter "_page_token": Used to retrieve the
 23275  // first, previous, next, or last page of resource versions when using
 23276  // pagination. Value should be set to the value of `_page_token` set in next or
 23277  // previous page links' URLs. Next and previous page are returned in the
 23278  // response bundle's links field, where `link.relation` is "previous" or
 23279  // "next". Omit `_page_token` if no previous request has been made.
 23280  func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) PageToken(PageToken string) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
 23281  	c.urlParams_.Set("_page_token", PageToken)
 23282  	return c
 23283  }
 23284  
 23285  // Since sets the optional parameter "_since": Only include resource versions
 23286  // that were created at or after the given instant in time. The instant in time
 23287  // uses the format YYYY-MM-DDThh:mm:ss.sss+zz:zz (for example
 23288  // 2015-02-07T13:28:17.239+02:00 or 2017-01-01T00:00:00Z). The time must be
 23289  // specified to the second and include a time zone.
 23290  func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Since(Since string) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
 23291  	c.urlParams_.Set("_since", Since)
 23292  	return c
 23293  }
 23294  
 23295  // Fields allows partial responses to be retrieved. See
 23296  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23297  // details.
 23298  func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
 23299  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23300  	return c
 23301  }
 23302  
 23303  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 23304  // object's ETag matches the given value. This is useful for getting updates
 23305  // only after the object has changed since the last request.
 23306  func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
 23307  	c.ifNoneMatch_ = entityTag
 23308  	return c
 23309  }
 23310  
 23311  // Context sets the context to be used in this call's Do method.
 23312  func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
 23313  	c.ctx_ = ctx
 23314  	return c
 23315  }
 23316  
 23317  // Header returns a http.Header that can be modified by the caller to add
 23318  // headers to the request.
 23319  func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Header() http.Header {
 23320  	if c.header_ == nil {
 23321  		c.header_ = make(http.Header)
 23322  	}
 23323  	return c.header_
 23324  }
 23325  
 23326  func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) doRequest(alt string) (*http.Response, error) {
 23327  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23328  	if c.ifNoneMatch_ != "" {
 23329  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 23330  	}
 23331  	var body io.Reader = nil
 23332  	c.urlParams_.Set("alt", alt)
 23333  	c.urlParams_.Set("prettyPrint", "false")
 23334  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/_history")
 23335  	urls += "?" + c.urlParams_.Encode()
 23336  	req, err := http.NewRequest("GET", urls, body)
 23337  	if err != nil {
 23338  		return nil, err
 23339  	}
 23340  	req.Header = reqHeaders
 23341  	googleapi.Expand(req.URL, map[string]string{
 23342  		"name": c.name,
 23343  	})
 23344  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23345  }
 23346  
 23347  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.history" call.
 23348  func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 23349  	gensupport.SetOptions(c.urlParams_, opts...)
 23350  	return c.doRequest("")
 23351  }
 23352  
 23353  type ProjectsLocationsDatasetsFhirStoresFhirPatchCall struct {
 23354  	s          *Service
 23355  	name       string
 23356  	body_      io.Reader
 23357  	urlParams_ gensupport.URLParams
 23358  	ctx_       context.Context
 23359  	header_    http.Header
 23360  }
 23361  
 23362  // Patch: Updates part of an existing resource by applying the operations
 23363  // specified in a JSON Patch (http://jsonpatch.com/) document. Implements the
 23364  // FHIR standard patch interaction (STU3
 23365  // (https://hl7.org/implement/standards/fhir/STU3/http.html#patch), R4
 23366  // (https://hl7.org/implement/standards/fhir/R4/http.html#patch)). DSTU2
 23367  // doesn't define a patch method, but the server supports it in the same way it
 23368  // supports STU3. The request body must contain a JSON Patch document, and the
 23369  // request headers must contain `Content-Type: application/json-patch+json`. On
 23370  // success, the response body contains a JSON-encoded representation of the
 23371  // updated resource, including the server-assigned version ID. Errors generated
 23372  // by the FHIR store contain a JSON-encoded `OperationOutcome` resource
 23373  // describing the reason for the error. If the request cannot be mapped to a
 23374  // valid API method on a FHIR store, a generic GCP error might be returned
 23375  // instead. For samples that show how to call `patch`, see Patching a FHIR
 23376  // resource
 23377  // (https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#patching_a_fhir_resource).
 23378  //
 23379  // - name: The name of the resource to update.
 23380  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Patch(name string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirPatchCall {
 23381  	c := &ProjectsLocationsDatasetsFhirStoresFhirPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23382  	c.name = name
 23383  	c.body_ = body_
 23384  	return c
 23385  }
 23386  
 23387  // Fields allows partial responses to be retrieved. See
 23388  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23389  // details.
 23390  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirPatchCall {
 23391  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23392  	return c
 23393  }
 23394  
 23395  // Context sets the context to be used in this call's Do method.
 23396  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirPatchCall {
 23397  	c.ctx_ = ctx
 23398  	return c
 23399  }
 23400  
 23401  // Header returns a http.Header that can be modified by the caller to add
 23402  // headers to the request.
 23403  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) Header() http.Header {
 23404  	if c.header_ == nil {
 23405  		c.header_ = make(http.Header)
 23406  	}
 23407  	return c.header_
 23408  }
 23409  
 23410  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) doRequest(alt string) (*http.Response, error) {
 23411  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23412  	var body io.Reader = nil
 23413  	body = c.body_
 23414  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 23415  	urls += "?" + c.urlParams_.Encode()
 23416  	req, err := http.NewRequest("PATCH", urls, body)
 23417  	if err != nil {
 23418  		return nil, err
 23419  	}
 23420  	req.Header = reqHeaders
 23421  	googleapi.Expand(req.URL, map[string]string{
 23422  		"name": c.name,
 23423  	})
 23424  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23425  }
 23426  
 23427  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.patch" call.
 23428  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 23429  	gensupport.SetOptions(c.urlParams_, opts...)
 23430  	return c.doRequest("")
 23431  }
 23432  
 23433  type ProjectsLocationsDatasetsFhirStoresFhirReadCall struct {
 23434  	s            *Service
 23435  	name         string
 23436  	urlParams_   gensupport.URLParams
 23437  	ifNoneMatch_ string
 23438  	ctx_         context.Context
 23439  	header_      http.Header
 23440  }
 23441  
 23442  // Read: Gets the contents of a FHIR resource. Implements the FHIR standard
 23443  // read interaction (DSTU2
 23444  // (https://hl7.org/implement/standards/fhir/DSTU2/http.html#read), STU3
 23445  // (https://hl7.org/implement/standards/fhir/STU3/http.html#read), R4
 23446  // (https://hl7.org/implement/standards/fhir/R4/http.html#read)). Also supports
 23447  // the FHIR standard conditional read interaction (DSTU2
 23448  // (https://hl7.org/implement/standards/fhir/DSTU2/http.html#cread), STU3
 23449  // (https://hl7.org/implement/standards/fhir/STU3/http.html#cread), R4
 23450  // (https://hl7.org/implement/standards/fhir/R4/http.html#cread)) specified by
 23451  // supplying an `If-Modified-Since` header with a date/time value or an
 23452  // `If-None-Match` header with an ETag value. On success, the response body
 23453  // contains a JSON-encoded representation of the resource. Errors generated by
 23454  // the FHIR store contain a JSON-encoded `OperationOutcome` resource describing
 23455  // the reason for the error. If the request cannot be mapped to a valid API
 23456  // method on a FHIR store, a generic GCP error might be returned instead. For
 23457  // samples that show how to call `read`, see Getting a FHIR resource
 23458  // (https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#getting_a_fhir_resource).
 23459  //
 23460  // - name: The name of the resource to retrieve.
 23461  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Read(name string) *ProjectsLocationsDatasetsFhirStoresFhirReadCall {
 23462  	c := &ProjectsLocationsDatasetsFhirStoresFhirReadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23463  	c.name = name
 23464  	return c
 23465  }
 23466  
 23467  // Fields allows partial responses to be retrieved. See
 23468  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23469  // details.
 23470  func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirReadCall {
 23471  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23472  	return c
 23473  }
 23474  
 23475  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 23476  // object's ETag matches the given value. This is useful for getting updates
 23477  // only after the object has changed since the last request.
 23478  func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirReadCall {
 23479  	c.ifNoneMatch_ = entityTag
 23480  	return c
 23481  }
 23482  
 23483  // Context sets the context to be used in this call's Do method.
 23484  func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirReadCall {
 23485  	c.ctx_ = ctx
 23486  	return c
 23487  }
 23488  
 23489  // Header returns a http.Header that can be modified by the caller to add
 23490  // headers to the request.
 23491  func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) Header() http.Header {
 23492  	if c.header_ == nil {
 23493  		c.header_ = make(http.Header)
 23494  	}
 23495  	return c.header_
 23496  }
 23497  
 23498  func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) doRequest(alt string) (*http.Response, error) {
 23499  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23500  	if c.ifNoneMatch_ != "" {
 23501  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 23502  	}
 23503  	var body io.Reader = nil
 23504  	c.urlParams_.Set("alt", alt)
 23505  	c.urlParams_.Set("prettyPrint", "false")
 23506  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 23507  	urls += "?" + c.urlParams_.Encode()
 23508  	req, err := http.NewRequest("GET", urls, body)
 23509  	if err != nil {
 23510  		return nil, err
 23511  	}
 23512  	req.Header = reqHeaders
 23513  	googleapi.Expand(req.URL, map[string]string{
 23514  		"name": c.name,
 23515  	})
 23516  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23517  }
 23518  
 23519  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.read" call.
 23520  func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 23521  	gensupport.SetOptions(c.urlParams_, opts...)
 23522  	return c.doRequest("")
 23523  }
 23524  
 23525  type ProjectsLocationsDatasetsFhirStoresFhirSearchCall struct {
 23526  	s                      *Service
 23527  	parent                 string
 23528  	searchresourcesrequest *SearchResourcesRequest
 23529  	urlParams_             gensupport.URLParams
 23530  	ctx_                   context.Context
 23531  	header_                http.Header
 23532  }
 23533  
 23534  // Search: Searches for resources in the given FHIR store according to criteria
 23535  // specified as query parameters. Implements the FHIR standard search
 23536  // interaction (DSTU2
 23537  // (https://hl7.org/implement/standards/fhir/DSTU2/http.html#search), STU3
 23538  // (https://hl7.org/implement/standards/fhir/STU3/http.html#search), R4
 23539  // (https://hl7.org/implement/standards/fhir/R4/http.html#search)) using the
 23540  // search semantics described in the FHIR Search specification (DSTU2
 23541  // (https://hl7.org/implement/standards/fhir/DSTU2/search.html), STU3
 23542  // (https://hl7.org/implement/standards/fhir/STU3/search.html), R4
 23543  // (https://hl7.org/implement/standards/fhir/R4/search.html)). Supports four
 23544  // methods of search defined by the specification: * `GET [base]?[parameters]`
 23545  // to search across all resources. * `GET [base]/[type]?[parameters]` to search
 23546  // resources of a specified type. * `POST [base]/_search?[parameters]` as an
 23547  // alternate form having the same semantics as the `GET` method across all
 23548  // resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form
 23549  // having the same semantics as the `GET` method for the specified type. The
 23550  // `GET` and `POST` methods do not support compartment searches. The `POST`
 23551  // method does not support `application/x-www-form-urlencoded` search
 23552  // parameters. On success, the response body contains a JSON-encoded
 23553  // representation of a `Bundle` resource of type `searchset`, containing the
 23554  // results of the search. Errors generated by the FHIR store contain a
 23555  // JSON-encoded `OperationOutcome` resource describing the reason for the
 23556  // error. If the request cannot be mapped to a valid API method on a FHIR
 23557  // store, a generic GCP error might be returned instead. The server's
 23558  // capability statement, retrieved through capabilities, indicates what search
 23559  // parameters are supported on each FHIR resource. A list of all search
 23560  // parameters defined by the specification can be found in the FHIR Search
 23561  // Parameter Registry (STU3
 23562  // (https://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.html),
 23563  // R4
 23564  // (https://hl7.org/implement/standards/fhir/R4/searchparameter-registry.html)).
 23565  // FHIR search parameters for DSTU2 can be found on each resource's definition
 23566  // page. Supported search modifiers: `:missing`, `:exact`, `:contains`,
 23567  // `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and
 23568  // `recurse` (DSTU2 and STU3) or `:iterate` (R4). Supported search result
 23569  // parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`,
 23570  // `_summary=data`, and `_elements`. The maximum number of search results
 23571  // returned defaults to 100, which can be overridden by the `_count` parameter
 23572  // up to a maximum limit of 1000. The server might return fewer resources than
 23573  // requested to prevent excessively large responses. If there are additional
 23574  // results, the returned `Bundle` contains a link of `relation` "next", which
 23575  // has a `_page_token` parameter for an opaque pagination token that can be
 23576  // used to retrieve the next page. Resources with a total size larger than 5MB
 23577  // or a field count larger than 50,000 might not be fully searchable as the
 23578  // server might trim its generated search index in those cases. Note: FHIR
 23579  // resources are indexed asynchronously, so there might be a slight delay
 23580  // between the time a resource is created or changed, and the time when the
 23581  // change reflects in search results. The only exception is resource identifier
 23582  // data, which is indexed synchronously as a special index. As a result,
 23583  // searching using resource identifier is not subject to indexing delay. To use
 23584  // the special synchronous index, the search term for identifier should be in
 23585  // the pattern `identifier=[system]|[value]` or `identifier=[value]`, and any
 23586  // of the following search result parameters can be used: * `_count` *
 23587  // `_include` * `_revinclude` * `_summary` * `_elements` If your query contains
 23588  // any other search parameters, the standard asynchronous index will be used
 23589  // instead. Note that searching against the special index is optimized for
 23590  // resolving a small number of matches. The search isn't optimized if your
 23591  // identifier search criteria matches a large number (i.e. more than 2,000) of
 23592  // resources. For a search query that will match a large number of resources,
 23593  // you can avoiding using the special synchronous index by including an
 23594  // additional `_sort` parameter in your query. Use `_sort=-_lastUpdated` if you
 23595  // want to keep the default sorting order. Note: The special synchronous
 23596  // identifier index are currently disabled for DocumentReference and
 23597  // DocumentManifest searches. For samples and detailed information, see
 23598  // Searching for FHIR resources
 23599  // (https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and Advanced
 23600  // FHIR search features
 23601  // (https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search).
 23602  //
 23603  // - parent: Name of the FHIR store to retrieve resources from.
 23604  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Search(parent string, searchresourcesrequest *SearchResourcesRequest) *ProjectsLocationsDatasetsFhirStoresFhirSearchCall {
 23605  	c := &ProjectsLocationsDatasetsFhirStoresFhirSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23606  	c.parent = parent
 23607  	c.searchresourcesrequest = searchresourcesrequest
 23608  	return c
 23609  }
 23610  
 23611  // Fields allows partial responses to be retrieved. See
 23612  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23613  // details.
 23614  func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirSearchCall {
 23615  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23616  	return c
 23617  }
 23618  
 23619  // Context sets the context to be used in this call's Do method.
 23620  func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirSearchCall {
 23621  	c.ctx_ = ctx
 23622  	return c
 23623  }
 23624  
 23625  // Header returns a http.Header that can be modified by the caller to add
 23626  // headers to the request.
 23627  func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) Header() http.Header {
 23628  	if c.header_ == nil {
 23629  		c.header_ = make(http.Header)
 23630  	}
 23631  	return c.header_
 23632  }
 23633  
 23634  func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) doRequest(alt string) (*http.Response, error) {
 23635  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23636  	var body io.Reader = nil
 23637  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchresourcesrequest)
 23638  	if err != nil {
 23639  		return nil, err
 23640  	}
 23641  	c.urlParams_.Set("alt", alt)
 23642  	c.urlParams_.Set("prettyPrint", "false")
 23643  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/fhir/_search")
 23644  	urls += "?" + c.urlParams_.Encode()
 23645  	req, err := http.NewRequest("POST", urls, body)
 23646  	if err != nil {
 23647  		return nil, err
 23648  	}
 23649  	req.Header = reqHeaders
 23650  	googleapi.Expand(req.URL, map[string]string{
 23651  		"parent": c.parent,
 23652  	})
 23653  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23654  }
 23655  
 23656  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.search" call.
 23657  func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 23658  	gensupport.SetOptions(c.urlParams_, opts...)
 23659  	return c.doRequest("")
 23660  }
 23661  
 23662  type ProjectsLocationsDatasetsFhirStoresFhirSearchTypeCall struct {
 23663  	s                      *Service
 23664  	parent                 string
 23665  	resourceType           string
 23666  	searchresourcesrequest *SearchResourcesRequest
 23667  	urlParams_             gensupport.URLParams
 23668  	ctx_                   context.Context
 23669  	header_                http.Header
 23670  }
 23671  
 23672  // SearchType: Searches for resources in the given FHIR store according to
 23673  // criteria specified as query parameters. Implements the FHIR standard search
 23674  // interaction (DSTU2
 23675  // (https://hl7.org/implement/standards/fhir/DSTU2/http.html#search), STU3
 23676  // (https://hl7.org/implement/standards/fhir/STU3/http.html#search), R4
 23677  // (https://hl7.org/implement/standards/fhir/R4/http.html#search)) using the
 23678  // search semantics described in the FHIR Search specification (DSTU2
 23679  // (https://hl7.org/implement/standards/fhir/DSTU2/search.html), STU3
 23680  // (https://hl7.org/implement/standards/fhir/STU3/search.html), R4
 23681  // (https://hl7.org/implement/standards/fhir/R4/search.html)). Supports four
 23682  // methods of search defined by the specification: * `GET [base]?[parameters]`
 23683  // to search across all resources. * `GET [base]/[type]?[parameters]` to search
 23684  // resources of a specified type. * `POST [base]/_search?[parameters]` as an
 23685  // alternate form having the same semantics as the `GET` method across all
 23686  // resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form
 23687  // having the same semantics as the `GET` method for the specified type. The
 23688  // `GET` and `POST` methods do not support compartment searches. The `POST`
 23689  // method does not support `application/x-www-form-urlencoded` search
 23690  // parameters. On success, the response body contains a JSON-encoded
 23691  // representation of a `Bundle` resource of type `searchset`, containing the
 23692  // results of the search. Errors generated by the FHIR store contain a
 23693  // JSON-encoded `OperationOutcome` resource describing the reason for the
 23694  // error. If the request cannot be mapped to a valid API method on a FHIR
 23695  // store, a generic GCP error might be returned instead. The server's
 23696  // capability statement, retrieved through capabilities, indicates what search
 23697  // parameters are supported on each FHIR resource. A list of all search
 23698  // parameters defined by the specification can be found in the FHIR Search
 23699  // Parameter Registry (STU3
 23700  // (https://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.html),
 23701  // R4
 23702  // (https://hl7.org/implement/standards/fhir/R4/searchparameter-registry.html)).
 23703  // FHIR search parameters for DSTU2 can be found on each resource's definition
 23704  // page. Supported search modifiers: `:missing`, `:exact`, `:contains`,
 23705  // `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and
 23706  // `recurse` (DSTU2 and STU3) or `:iterate` (R4). Supported search result
 23707  // parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`,
 23708  // `_summary=data`, and `_elements`. The maximum number of search results
 23709  // returned defaults to 100, which can be overridden by the `_count` parameter
 23710  // up to a maximum limit of 1000. The server might return fewer resources than
 23711  // requested to prevent excessively large responses. If there are additional
 23712  // results, the returned `Bundle` contains a link of `relation` "next", which
 23713  // has a `_page_token` parameter for an opaque pagination token that can be
 23714  // used to retrieve the next page. Resources with a total size larger than 5MB
 23715  // or a field count larger than 50,000 might not be fully searchable as the
 23716  // server might trim its generated search index in those cases. Note: FHIR
 23717  // resources are indexed asynchronously, so there might be a slight delay
 23718  // between the time a resource is created or changed, and the time when the
 23719  // change reflects in search results. The only exception is resource identifier
 23720  // data, which is indexed synchronously as a special index. As a result,
 23721  // searching using resource identifier is not subject to indexing delay. To use
 23722  // the special synchronous index, the search term for identifier should be in
 23723  // the pattern `identifier=[system]|[value]` or `identifier=[value]`, and any
 23724  // of the following search result parameters can be used: * `_count` *
 23725  // `_include` * `_revinclude` * `_summary` * `_elements` If your query contains
 23726  // any other search parameters, the standard asynchronous index will be used
 23727  // instead. Note that searching against the special index is optimized for
 23728  // resolving a small number of matches. The search isn't optimized if your
 23729  // identifier search criteria matches a large number (i.e. more than 2,000) of
 23730  // resources. For a search query that will match a large number of resources,
 23731  // you can avoiding using the special synchronous index by including an
 23732  // additional `_sort` parameter in your query. Use `_sort=-_lastUpdated` if you
 23733  // want to keep the default sorting order. Note: The special synchronous
 23734  // identifier index are currently disabled for DocumentReference and
 23735  // DocumentManifest searches. For samples and detailed information, see
 23736  // Searching for FHIR resources
 23737  // (https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and Advanced
 23738  // FHIR search features
 23739  // (https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search).
 23740  //
 23741  //   - parent: Name of the FHIR store to retrieve resources from.
 23742  //   - resourceType: The FHIR resource type to search, such as Patient or
 23743  //     Observation. For a complete list, see the FHIR Resource Index (DSTU2
 23744  //     (https://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html), STU3
 23745  //     (https://hl7.org/implement/standards/fhir/STU3/resourcelist.html), R4
 23746  //     (https://hl7.org/implement/standards/fhir/R4/resourcelist.html)).
 23747  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) SearchType(parent string, resourceType string, searchresourcesrequest *SearchResourcesRequest) *ProjectsLocationsDatasetsFhirStoresFhirSearchTypeCall {
 23748  	c := &ProjectsLocationsDatasetsFhirStoresFhirSearchTypeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23749  	c.parent = parent
 23750  	c.resourceType = resourceType
 23751  	c.searchresourcesrequest = searchresourcesrequest
 23752  	return c
 23753  }
 23754  
 23755  // Fields allows partial responses to be retrieved. See
 23756  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23757  // details.
 23758  func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchTypeCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirSearchTypeCall {
 23759  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23760  	return c
 23761  }
 23762  
 23763  // Context sets the context to be used in this call's Do method.
 23764  func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchTypeCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirSearchTypeCall {
 23765  	c.ctx_ = ctx
 23766  	return c
 23767  }
 23768  
 23769  // Header returns a http.Header that can be modified by the caller to add
 23770  // headers to the request.
 23771  func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchTypeCall) Header() http.Header {
 23772  	if c.header_ == nil {
 23773  		c.header_ = make(http.Header)
 23774  	}
 23775  	return c.header_
 23776  }
 23777  
 23778  func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchTypeCall) doRequest(alt string) (*http.Response, error) {
 23779  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23780  	var body io.Reader = nil
 23781  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchresourcesrequest)
 23782  	if err != nil {
 23783  		return nil, err
 23784  	}
 23785  	c.urlParams_.Set("alt", alt)
 23786  	c.urlParams_.Set("prettyPrint", "false")
 23787  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/fhir/{resourceType}/_search")
 23788  	urls += "?" + c.urlParams_.Encode()
 23789  	req, err := http.NewRequest("POST", urls, body)
 23790  	if err != nil {
 23791  		return nil, err
 23792  	}
 23793  	req.Header = reqHeaders
 23794  	googleapi.Expand(req.URL, map[string]string{
 23795  		"parent":       c.parent,
 23796  		"resourceType": c.resourceType,
 23797  	})
 23798  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23799  }
 23800  
 23801  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.search-type" call.
 23802  func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchTypeCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 23803  	gensupport.SetOptions(c.urlParams_, opts...)
 23804  	return c.doRequest("")
 23805  }
 23806  
 23807  type ProjectsLocationsDatasetsFhirStoresFhirUpdateCall struct {
 23808  	s          *Service
 23809  	name       string
 23810  	body_      io.Reader
 23811  	urlParams_ gensupport.URLParams
 23812  	ctx_       context.Context
 23813  	header_    http.Header
 23814  }
 23815  
 23816  // Update: Updates the entire contents of a resource. Implements the FHIR
 23817  // standard update interaction (DSTU2
 23818  // (https://hl7.org/implement/standards/fhir/DSTU2/http.html#update), STU3
 23819  // (https://hl7.org/implement/standards/fhir/STU3/http.html#update), R4
 23820  // (https://hl7.org/implement/standards/fhir/R4/http.html#update)). If the
 23821  // specified resource does not exist and the FHIR store has
 23822  // enable_update_create set, creates the resource with the client-specified ID.
 23823  // It is strongly advised not to include or encode any sensitive data such as
 23824  // patient identifiers in client-specified resource IDs. Those IDs are part of
 23825  // the FHIR resource path recorded in Cloud Audit Logs and Pub/Sub
 23826  // notifications. Those IDs can also be contained in reference fields within
 23827  // other resources. The request body must contain a JSON-encoded FHIR resource,
 23828  // and the request headers must contain `Content-Type: application/fhir+json`.
 23829  // The resource must contain an `id` element having an identical value to the
 23830  // ID in the REST path of the request. On success, the response body contains a
 23831  // JSON-encoded representation of the updated resource, including the
 23832  // server-assigned version ID. Errors generated by the FHIR store contain a
 23833  // JSON-encoded `OperationOutcome` resource describing the reason for the
 23834  // error. If the request cannot be mapped to a valid API method on a FHIR
 23835  // store, a generic GCP error might be returned instead. For samples that show
 23836  // how to call `update`, see Updating a FHIR resource
 23837  // (https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#updating_a_fhir_resource).
 23838  //
 23839  // - name: The name of the resource to update.
 23840  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Update(name string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall {
 23841  	c := &ProjectsLocationsDatasetsFhirStoresFhirUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23842  	c.name = name
 23843  	c.body_ = body_
 23844  	return c
 23845  }
 23846  
 23847  // Fields allows partial responses to be retrieved. See
 23848  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23849  // details.
 23850  func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall {
 23851  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23852  	return c
 23853  }
 23854  
 23855  // Context sets the context to be used in this call's Do method.
 23856  func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall {
 23857  	c.ctx_ = ctx
 23858  	return c
 23859  }
 23860  
 23861  // Header returns a http.Header that can be modified by the caller to add
 23862  // headers to the request.
 23863  func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) Header() http.Header {
 23864  	if c.header_ == nil {
 23865  		c.header_ = make(http.Header)
 23866  	}
 23867  	return c.header_
 23868  }
 23869  
 23870  func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) doRequest(alt string) (*http.Response, error) {
 23871  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23872  	var body io.Reader = nil
 23873  	body = c.body_
 23874  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 23875  	urls += "?" + c.urlParams_.Encode()
 23876  	req, err := http.NewRequest("PUT", urls, body)
 23877  	if err != nil {
 23878  		return nil, err
 23879  	}
 23880  	req.Header = reqHeaders
 23881  	googleapi.Expand(req.URL, map[string]string{
 23882  		"name": c.name,
 23883  	})
 23884  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23885  }
 23886  
 23887  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.update" call.
 23888  func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 23889  	gensupport.SetOptions(c.urlParams_, opts...)
 23890  	return c.doRequest("")
 23891  }
 23892  
 23893  type ProjectsLocationsDatasetsFhirStoresFhirVreadCall struct {
 23894  	s            *Service
 23895  	name         string
 23896  	urlParams_   gensupport.URLParams
 23897  	ifNoneMatch_ string
 23898  	ctx_         context.Context
 23899  	header_      http.Header
 23900  }
 23901  
 23902  // Vread: Gets the contents of a version (current or historical) of a FHIR
 23903  // resource by version ID. Implements the FHIR standard vread interaction
 23904  // (DSTU2 (https://hl7.org/implement/standards/fhir/DSTU2/http.html#vread),
 23905  // STU3 (https://hl7.org/implement/standards/fhir/STU3/http.html#vread), R4
 23906  // (https://hl7.org/implement/standards/fhir/R4/http.html#vread)). On success,
 23907  // the response body contains a JSON-encoded representation of the resource.
 23908  // Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome`
 23909  // resource describing the reason for the error. If the request cannot be
 23910  // mapped to a valid API method on a FHIR store, a generic GCP error might be
 23911  // returned instead. For samples that show how to call `vread`, see Retrieving
 23912  // a FHIR resource version
 23913  // (https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#retrieving_a_fhir_resource_version).
 23914  //
 23915  // - name: The name of the resource version to retrieve.
 23916  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Vread(name string) *ProjectsLocationsDatasetsFhirStoresFhirVreadCall {
 23917  	c := &ProjectsLocationsDatasetsFhirStoresFhirVreadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23918  	c.name = name
 23919  	return c
 23920  }
 23921  
 23922  // Fields allows partial responses to be retrieved. See
 23923  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23924  // details.
 23925  func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirVreadCall {
 23926  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23927  	return c
 23928  }
 23929  
 23930  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 23931  // object's ETag matches the given value. This is useful for getting updates
 23932  // only after the object has changed since the last request.
 23933  func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirVreadCall {
 23934  	c.ifNoneMatch_ = entityTag
 23935  	return c
 23936  }
 23937  
 23938  // Context sets the context to be used in this call's Do method.
 23939  func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirVreadCall {
 23940  	c.ctx_ = ctx
 23941  	return c
 23942  }
 23943  
 23944  // Header returns a http.Header that can be modified by the caller to add
 23945  // headers to the request.
 23946  func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) Header() http.Header {
 23947  	if c.header_ == nil {
 23948  		c.header_ = make(http.Header)
 23949  	}
 23950  	return c.header_
 23951  }
 23952  
 23953  func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) doRequest(alt string) (*http.Response, error) {
 23954  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23955  	if c.ifNoneMatch_ != "" {
 23956  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 23957  	}
 23958  	var body io.Reader = nil
 23959  	c.urlParams_.Set("alt", alt)
 23960  	c.urlParams_.Set("prettyPrint", "false")
 23961  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 23962  	urls += "?" + c.urlParams_.Encode()
 23963  	req, err := http.NewRequest("GET", urls, body)
 23964  	if err != nil {
 23965  		return nil, err
 23966  	}
 23967  	req.Header = reqHeaders
 23968  	googleapi.Expand(req.URL, map[string]string{
 23969  		"name": c.name,
 23970  	})
 23971  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23972  }
 23973  
 23974  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.vread" call.
 23975  func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 23976  	gensupport.SetOptions(c.urlParams_, opts...)
 23977  	return c.doRequest("")
 23978  }
 23979  
 23980  type ProjectsLocationsDatasetsHl7V2StoresCreateCall struct {
 23981  	s          *Service
 23982  	parent     string
 23983  	hl7v2store *Hl7V2Store
 23984  	urlParams_ gensupport.URLParams
 23985  	ctx_       context.Context
 23986  	header_    http.Header
 23987  }
 23988  
 23989  // Create: Creates a new HL7v2 store within the parent dataset.
 23990  //
 23991  // - parent: The name of the dataset this HL7v2 store belongs to.
 23992  func (r *ProjectsLocationsDatasetsHl7V2StoresService) Create(parent string, hl7v2store *Hl7V2Store) *ProjectsLocationsDatasetsHl7V2StoresCreateCall {
 23993  	c := &ProjectsLocationsDatasetsHl7V2StoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23994  	c.parent = parent
 23995  	c.hl7v2store = hl7v2store
 23996  	return c
 23997  }
 23998  
 23999  // Hl7V2StoreId sets the optional parameter "hl7V2StoreId": Required. The ID of
 24000  // the HL7v2 store that is being created. The string must match the following
 24001  // regex: `[\p{L}\p{N}_\-\.]{1,256}`.
 24002  func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Hl7V2StoreId(hl7V2StoreId string) *ProjectsLocationsDatasetsHl7V2StoresCreateCall {
 24003  	c.urlParams_.Set("hl7V2StoreId", hl7V2StoreId)
 24004  	return c
 24005  }
 24006  
 24007  // Fields allows partial responses to be retrieved. See
 24008  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24009  // details.
 24010  func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresCreateCall {
 24011  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24012  	return c
 24013  }
 24014  
 24015  // Context sets the context to be used in this call's Do method.
 24016  func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresCreateCall {
 24017  	c.ctx_ = ctx
 24018  	return c
 24019  }
 24020  
 24021  // Header returns a http.Header that can be modified by the caller to add
 24022  // headers to the request.
 24023  func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Header() http.Header {
 24024  	if c.header_ == nil {
 24025  		c.header_ = make(http.Header)
 24026  	}
 24027  	return c.header_
 24028  }
 24029  
 24030  func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) doRequest(alt string) (*http.Response, error) {
 24031  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24032  	var body io.Reader = nil
 24033  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.hl7v2store)
 24034  	if err != nil {
 24035  		return nil, err
 24036  	}
 24037  	c.urlParams_.Set("alt", alt)
 24038  	c.urlParams_.Set("prettyPrint", "false")
 24039  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/hl7V2Stores")
 24040  	urls += "?" + c.urlParams_.Encode()
 24041  	req, err := http.NewRequest("POST", urls, body)
 24042  	if err != nil {
 24043  		return nil, err
 24044  	}
 24045  	req.Header = reqHeaders
 24046  	googleapi.Expand(req.URL, map[string]string{
 24047  		"parent": c.parent,
 24048  	})
 24049  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24050  }
 24051  
 24052  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.create" call.
 24053  // Any non-2xx status code is an error. Response headers are in either
 24054  // *Hl7V2Store.ServerResponse.Header or (if a response was returned at all) in
 24055  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 24056  // whether the returned error was because http.StatusNotModified was returned.
 24057  func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Do(opts ...googleapi.CallOption) (*Hl7V2Store, error) {
 24058  	gensupport.SetOptions(c.urlParams_, opts...)
 24059  	res, err := c.doRequest("json")
 24060  	if res != nil && res.StatusCode == http.StatusNotModified {
 24061  		if res.Body != nil {
 24062  			res.Body.Close()
 24063  		}
 24064  		return nil, gensupport.WrapError(&googleapi.Error{
 24065  			Code:   res.StatusCode,
 24066  			Header: res.Header,
 24067  		})
 24068  	}
 24069  	if err != nil {
 24070  		return nil, err
 24071  	}
 24072  	defer googleapi.CloseBody(res)
 24073  	if err := googleapi.CheckResponse(res); err != nil {
 24074  		return nil, gensupport.WrapError(err)
 24075  	}
 24076  	ret := &Hl7V2Store{
 24077  		ServerResponse: googleapi.ServerResponse{
 24078  			Header:         res.Header,
 24079  			HTTPStatusCode: res.StatusCode,
 24080  		},
 24081  	}
 24082  	target := &ret
 24083  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24084  		return nil, err
 24085  	}
 24086  	return ret, nil
 24087  }
 24088  
 24089  type ProjectsLocationsDatasetsHl7V2StoresDeleteCall struct {
 24090  	s          *Service
 24091  	name       string
 24092  	urlParams_ gensupport.URLParams
 24093  	ctx_       context.Context
 24094  	header_    http.Header
 24095  }
 24096  
 24097  // Delete: Deletes the specified HL7v2 store and removes all messages that it
 24098  // contains.
 24099  //
 24100  // - name: The resource name of the HL7v2 store to delete.
 24101  func (r *ProjectsLocationsDatasetsHl7V2StoresService) Delete(name string) *ProjectsLocationsDatasetsHl7V2StoresDeleteCall {
 24102  	c := &ProjectsLocationsDatasetsHl7V2StoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24103  	c.name = name
 24104  	return c
 24105  }
 24106  
 24107  // Fields allows partial responses to be retrieved. See
 24108  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24109  // details.
 24110  func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresDeleteCall {
 24111  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24112  	return c
 24113  }
 24114  
 24115  // Context sets the context to be used in this call's Do method.
 24116  func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresDeleteCall {
 24117  	c.ctx_ = ctx
 24118  	return c
 24119  }
 24120  
 24121  // Header returns a http.Header that can be modified by the caller to add
 24122  // headers to the request.
 24123  func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) Header() http.Header {
 24124  	if c.header_ == nil {
 24125  		c.header_ = make(http.Header)
 24126  	}
 24127  	return c.header_
 24128  }
 24129  
 24130  func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) doRequest(alt string) (*http.Response, error) {
 24131  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24132  	var body io.Reader = nil
 24133  	c.urlParams_.Set("alt", alt)
 24134  	c.urlParams_.Set("prettyPrint", "false")
 24135  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 24136  	urls += "?" + c.urlParams_.Encode()
 24137  	req, err := http.NewRequest("DELETE", urls, body)
 24138  	if err != nil {
 24139  		return nil, err
 24140  	}
 24141  	req.Header = reqHeaders
 24142  	googleapi.Expand(req.URL, map[string]string{
 24143  		"name": c.name,
 24144  	})
 24145  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24146  }
 24147  
 24148  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.delete" call.
 24149  // Any non-2xx status code is an error. Response headers are in either
 24150  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 24151  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 24152  // whether the returned error was because http.StatusNotModified was returned.
 24153  func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 24154  	gensupport.SetOptions(c.urlParams_, opts...)
 24155  	res, err := c.doRequest("json")
 24156  	if res != nil && res.StatusCode == http.StatusNotModified {
 24157  		if res.Body != nil {
 24158  			res.Body.Close()
 24159  		}
 24160  		return nil, gensupport.WrapError(&googleapi.Error{
 24161  			Code:   res.StatusCode,
 24162  			Header: res.Header,
 24163  		})
 24164  	}
 24165  	if err != nil {
 24166  		return nil, err
 24167  	}
 24168  	defer googleapi.CloseBody(res)
 24169  	if err := googleapi.CheckResponse(res); err != nil {
 24170  		return nil, gensupport.WrapError(err)
 24171  	}
 24172  	ret := &Empty{
 24173  		ServerResponse: googleapi.ServerResponse{
 24174  			Header:         res.Header,
 24175  			HTTPStatusCode: res.StatusCode,
 24176  		},
 24177  	}
 24178  	target := &ret
 24179  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24180  		return nil, err
 24181  	}
 24182  	return ret, nil
 24183  }
 24184  
 24185  type ProjectsLocationsDatasetsHl7V2StoresExportCall struct {
 24186  	s                     *Service
 24187  	name                  string
 24188  	exportmessagesrequest *ExportMessagesRequest
 24189  	urlParams_            gensupport.URLParams
 24190  	ctx_                  context.Context
 24191  	header_               http.Header
 24192  }
 24193  
 24194  // Export: Exports the messages to a destination. To filter messages to be
 24195  // exported, define a filter using the start and end time, relative to the
 24196  // message generation time (MSH.7). This API returns an Operation that can be
 24197  // used to track the status of the job by calling GetOperation. Immediate fatal
 24198  // errors appear in the error field. Otherwise, when the operation finishes, a
 24199  // detailed response of type ExportMessagesResponse is returned in the response
 24200  // field. The metadata field type for this operation is OperationMetadata.
 24201  //
 24202  //   - name: The name of the source HL7v2 store, in the format
 24203  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/hl7v2S
 24204  //     tores/{hl7v2_store_id}`.
 24205  func (r *ProjectsLocationsDatasetsHl7V2StoresService) Export(name string, exportmessagesrequest *ExportMessagesRequest) *ProjectsLocationsDatasetsHl7V2StoresExportCall {
 24206  	c := &ProjectsLocationsDatasetsHl7V2StoresExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24207  	c.name = name
 24208  	c.exportmessagesrequest = exportmessagesrequest
 24209  	return c
 24210  }
 24211  
 24212  // Fields allows partial responses to be retrieved. See
 24213  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24214  // details.
 24215  func (c *ProjectsLocationsDatasetsHl7V2StoresExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresExportCall {
 24216  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24217  	return c
 24218  }
 24219  
 24220  // Context sets the context to be used in this call's Do method.
 24221  func (c *ProjectsLocationsDatasetsHl7V2StoresExportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresExportCall {
 24222  	c.ctx_ = ctx
 24223  	return c
 24224  }
 24225  
 24226  // Header returns a http.Header that can be modified by the caller to add
 24227  // headers to the request.
 24228  func (c *ProjectsLocationsDatasetsHl7V2StoresExportCall) Header() http.Header {
 24229  	if c.header_ == nil {
 24230  		c.header_ = make(http.Header)
 24231  	}
 24232  	return c.header_
 24233  }
 24234  
 24235  func (c *ProjectsLocationsDatasetsHl7V2StoresExportCall) doRequest(alt string) (*http.Response, error) {
 24236  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24237  	var body io.Reader = nil
 24238  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.exportmessagesrequest)
 24239  	if err != nil {
 24240  		return nil, err
 24241  	}
 24242  	c.urlParams_.Set("alt", alt)
 24243  	c.urlParams_.Set("prettyPrint", "false")
 24244  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:export")
 24245  	urls += "?" + c.urlParams_.Encode()
 24246  	req, err := http.NewRequest("POST", urls, body)
 24247  	if err != nil {
 24248  		return nil, err
 24249  	}
 24250  	req.Header = reqHeaders
 24251  	googleapi.Expand(req.URL, map[string]string{
 24252  		"name": c.name,
 24253  	})
 24254  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24255  }
 24256  
 24257  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.export" call.
 24258  // Any non-2xx status code is an error. Response headers are in either
 24259  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 24260  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 24261  // whether the returned error was because http.StatusNotModified was returned.
 24262  func (c *ProjectsLocationsDatasetsHl7V2StoresExportCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 24263  	gensupport.SetOptions(c.urlParams_, opts...)
 24264  	res, err := c.doRequest("json")
 24265  	if res != nil && res.StatusCode == http.StatusNotModified {
 24266  		if res.Body != nil {
 24267  			res.Body.Close()
 24268  		}
 24269  		return nil, gensupport.WrapError(&googleapi.Error{
 24270  			Code:   res.StatusCode,
 24271  			Header: res.Header,
 24272  		})
 24273  	}
 24274  	if err != nil {
 24275  		return nil, err
 24276  	}
 24277  	defer googleapi.CloseBody(res)
 24278  	if err := googleapi.CheckResponse(res); err != nil {
 24279  		return nil, gensupport.WrapError(err)
 24280  	}
 24281  	ret := &Operation{
 24282  		ServerResponse: googleapi.ServerResponse{
 24283  			Header:         res.Header,
 24284  			HTTPStatusCode: res.StatusCode,
 24285  		},
 24286  	}
 24287  	target := &ret
 24288  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24289  		return nil, err
 24290  	}
 24291  	return ret, nil
 24292  }
 24293  
 24294  type ProjectsLocationsDatasetsHl7V2StoresGetCall struct {
 24295  	s            *Service
 24296  	name         string
 24297  	urlParams_   gensupport.URLParams
 24298  	ifNoneMatch_ string
 24299  	ctx_         context.Context
 24300  	header_      http.Header
 24301  }
 24302  
 24303  // Get: Gets the specified HL7v2 store.
 24304  //
 24305  // - name: The resource name of the HL7v2 store to get.
 24306  func (r *ProjectsLocationsDatasetsHl7V2StoresService) Get(name string) *ProjectsLocationsDatasetsHl7V2StoresGetCall {
 24307  	c := &ProjectsLocationsDatasetsHl7V2StoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24308  	c.name = name
 24309  	return c
 24310  }
 24311  
 24312  // Fields allows partial responses to be retrieved. See
 24313  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24314  // details.
 24315  func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresGetCall {
 24316  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24317  	return c
 24318  }
 24319  
 24320  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24321  // object's ETag matches the given value. This is useful for getting updates
 24322  // only after the object has changed since the last request.
 24323  func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresGetCall {
 24324  	c.ifNoneMatch_ = entityTag
 24325  	return c
 24326  }
 24327  
 24328  // Context sets the context to be used in this call's Do method.
 24329  func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresGetCall {
 24330  	c.ctx_ = ctx
 24331  	return c
 24332  }
 24333  
 24334  // Header returns a http.Header that can be modified by the caller to add
 24335  // headers to the request.
 24336  func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) Header() http.Header {
 24337  	if c.header_ == nil {
 24338  		c.header_ = make(http.Header)
 24339  	}
 24340  	return c.header_
 24341  }
 24342  
 24343  func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) doRequest(alt string) (*http.Response, error) {
 24344  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24345  	if c.ifNoneMatch_ != "" {
 24346  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24347  	}
 24348  	var body io.Reader = nil
 24349  	c.urlParams_.Set("alt", alt)
 24350  	c.urlParams_.Set("prettyPrint", "false")
 24351  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 24352  	urls += "?" + c.urlParams_.Encode()
 24353  	req, err := http.NewRequest("GET", urls, body)
 24354  	if err != nil {
 24355  		return nil, err
 24356  	}
 24357  	req.Header = reqHeaders
 24358  	googleapi.Expand(req.URL, map[string]string{
 24359  		"name": c.name,
 24360  	})
 24361  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24362  }
 24363  
 24364  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.get" call.
 24365  // Any non-2xx status code is an error. Response headers are in either
 24366  // *Hl7V2Store.ServerResponse.Header or (if a response was returned at all) in
 24367  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 24368  // whether the returned error was because http.StatusNotModified was returned.
 24369  func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) Do(opts ...googleapi.CallOption) (*Hl7V2Store, error) {
 24370  	gensupport.SetOptions(c.urlParams_, opts...)
 24371  	res, err := c.doRequest("json")
 24372  	if res != nil && res.StatusCode == http.StatusNotModified {
 24373  		if res.Body != nil {
 24374  			res.Body.Close()
 24375  		}
 24376  		return nil, gensupport.WrapError(&googleapi.Error{
 24377  			Code:   res.StatusCode,
 24378  			Header: res.Header,
 24379  		})
 24380  	}
 24381  	if err != nil {
 24382  		return nil, err
 24383  	}
 24384  	defer googleapi.CloseBody(res)
 24385  	if err := googleapi.CheckResponse(res); err != nil {
 24386  		return nil, gensupport.WrapError(err)
 24387  	}
 24388  	ret := &Hl7V2Store{
 24389  		ServerResponse: googleapi.ServerResponse{
 24390  			Header:         res.Header,
 24391  			HTTPStatusCode: res.StatusCode,
 24392  		},
 24393  	}
 24394  	target := &ret
 24395  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24396  		return nil, err
 24397  	}
 24398  	return ret, nil
 24399  }
 24400  
 24401  type ProjectsLocationsDatasetsHl7V2StoresGetHL7v2StoreMetricsCall struct {
 24402  	s            *Service
 24403  	name         string
 24404  	urlParams_   gensupport.URLParams
 24405  	ifNoneMatch_ string
 24406  	ctx_         context.Context
 24407  	header_      http.Header
 24408  }
 24409  
 24410  // GetHL7v2StoreMetrics: Gets metrics associated with the HL7v2 store.
 24411  //
 24412  //   - name: The resource name of the HL7v2 store to get metrics for, in the
 24413  //     format
 24414  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/hl7V2S
 24415  //     tores/{hl7v2_store_id}`.
 24416  func (r *ProjectsLocationsDatasetsHl7V2StoresService) GetHL7v2StoreMetrics(name string) *ProjectsLocationsDatasetsHl7V2StoresGetHL7v2StoreMetricsCall {
 24417  	c := &ProjectsLocationsDatasetsHl7V2StoresGetHL7v2StoreMetricsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24418  	c.name = name
 24419  	return c
 24420  }
 24421  
 24422  // Fields allows partial responses to be retrieved. See
 24423  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24424  // details.
 24425  func (c *ProjectsLocationsDatasetsHl7V2StoresGetHL7v2StoreMetricsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresGetHL7v2StoreMetricsCall {
 24426  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24427  	return c
 24428  }
 24429  
 24430  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24431  // object's ETag matches the given value. This is useful for getting updates
 24432  // only after the object has changed since the last request.
 24433  func (c *ProjectsLocationsDatasetsHl7V2StoresGetHL7v2StoreMetricsCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresGetHL7v2StoreMetricsCall {
 24434  	c.ifNoneMatch_ = entityTag
 24435  	return c
 24436  }
 24437  
 24438  // Context sets the context to be used in this call's Do method.
 24439  func (c *ProjectsLocationsDatasetsHl7V2StoresGetHL7v2StoreMetricsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresGetHL7v2StoreMetricsCall {
 24440  	c.ctx_ = ctx
 24441  	return c
 24442  }
 24443  
 24444  // Header returns a http.Header that can be modified by the caller to add
 24445  // headers to the request.
 24446  func (c *ProjectsLocationsDatasetsHl7V2StoresGetHL7v2StoreMetricsCall) Header() http.Header {
 24447  	if c.header_ == nil {
 24448  		c.header_ = make(http.Header)
 24449  	}
 24450  	return c.header_
 24451  }
 24452  
 24453  func (c *ProjectsLocationsDatasetsHl7V2StoresGetHL7v2StoreMetricsCall) doRequest(alt string) (*http.Response, error) {
 24454  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24455  	if c.ifNoneMatch_ != "" {
 24456  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24457  	}
 24458  	var body io.Reader = nil
 24459  	c.urlParams_.Set("alt", alt)
 24460  	c.urlParams_.Set("prettyPrint", "false")
 24461  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:getHL7v2StoreMetrics")
 24462  	urls += "?" + c.urlParams_.Encode()
 24463  	req, err := http.NewRequest("GET", urls, body)
 24464  	if err != nil {
 24465  		return nil, err
 24466  	}
 24467  	req.Header = reqHeaders
 24468  	googleapi.Expand(req.URL, map[string]string{
 24469  		"name": c.name,
 24470  	})
 24471  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24472  }
 24473  
 24474  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.getHL7v2StoreMetrics" call.
 24475  // Any non-2xx status code is an error. Response headers are in either
 24476  // *Hl7V2StoreMetrics.ServerResponse.Header or (if a response was returned at
 24477  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 24478  // check whether the returned error was because http.StatusNotModified was
 24479  // returned.
 24480  func (c *ProjectsLocationsDatasetsHl7V2StoresGetHL7v2StoreMetricsCall) Do(opts ...googleapi.CallOption) (*Hl7V2StoreMetrics, error) {
 24481  	gensupport.SetOptions(c.urlParams_, opts...)
 24482  	res, err := c.doRequest("json")
 24483  	if res != nil && res.StatusCode == http.StatusNotModified {
 24484  		if res.Body != nil {
 24485  			res.Body.Close()
 24486  		}
 24487  		return nil, gensupport.WrapError(&googleapi.Error{
 24488  			Code:   res.StatusCode,
 24489  			Header: res.Header,
 24490  		})
 24491  	}
 24492  	if err != nil {
 24493  		return nil, err
 24494  	}
 24495  	defer googleapi.CloseBody(res)
 24496  	if err := googleapi.CheckResponse(res); err != nil {
 24497  		return nil, gensupport.WrapError(err)
 24498  	}
 24499  	ret := &Hl7V2StoreMetrics{
 24500  		ServerResponse: googleapi.ServerResponse{
 24501  			Header:         res.Header,
 24502  			HTTPStatusCode: res.StatusCode,
 24503  		},
 24504  	}
 24505  	target := &ret
 24506  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24507  		return nil, err
 24508  	}
 24509  	return ret, nil
 24510  }
 24511  
 24512  type ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall struct {
 24513  	s            *Service
 24514  	resource     string
 24515  	urlParams_   gensupport.URLParams
 24516  	ifNoneMatch_ string
 24517  	ctx_         context.Context
 24518  	header_      http.Header
 24519  }
 24520  
 24521  // GetIamPolicy: Gets the access control policy for a resource. Returns an
 24522  // empty policy if the resource exists and does not have a policy set.
 24523  //
 24524  //   - resource: REQUIRED: The resource for which the policy is being requested.
 24525  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 24526  //     for the appropriate value for this field.
 24527  func (r *ProjectsLocationsDatasetsHl7V2StoresService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall {
 24528  	c := &ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24529  	c.resource = resource
 24530  	return c
 24531  }
 24532  
 24533  // OptionsRequestedPolicyVersion sets the optional parameter
 24534  // "options.requestedPolicyVersion": The maximum policy version that will be
 24535  // used to format the policy. Valid values are 0, 1, and 3. Requests specifying
 24536  // an invalid value will be rejected. Requests for policies with any
 24537  // conditional role bindings must specify version 3. Policies with no
 24538  // conditional role bindings may specify any valid value or leave the field
 24539  // unset. The policy in the response might use the policy version that you
 24540  // specified, or it might use a lower policy version. For example, if you
 24541  // specify version 3, but the policy has no conditional role bindings, the
 24542  // response uses version 1. To learn which resources support conditions in
 24543  // their IAM policies, see the IAM documentation
 24544  // (https://cloud.google.com/iam/help/conditions/resource-policies).
 24545  func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall {
 24546  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
 24547  	return c
 24548  }
 24549  
 24550  // Fields allows partial responses to be retrieved. See
 24551  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24552  // details.
 24553  func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall {
 24554  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24555  	return c
 24556  }
 24557  
 24558  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24559  // object's ETag matches the given value. This is useful for getting updates
 24560  // only after the object has changed since the last request.
 24561  func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall {
 24562  	c.ifNoneMatch_ = entityTag
 24563  	return c
 24564  }
 24565  
 24566  // Context sets the context to be used in this call's Do method.
 24567  func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall {
 24568  	c.ctx_ = ctx
 24569  	return c
 24570  }
 24571  
 24572  // Header returns a http.Header that can be modified by the caller to add
 24573  // headers to the request.
 24574  func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Header() http.Header {
 24575  	if c.header_ == nil {
 24576  		c.header_ = make(http.Header)
 24577  	}
 24578  	return c.header_
 24579  }
 24580  
 24581  func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 24582  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24583  	if c.ifNoneMatch_ != "" {
 24584  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24585  	}
 24586  	var body io.Reader = nil
 24587  	c.urlParams_.Set("alt", alt)
 24588  	c.urlParams_.Set("prettyPrint", "false")
 24589  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy")
 24590  	urls += "?" + c.urlParams_.Encode()
 24591  	req, err := http.NewRequest("GET", urls, body)
 24592  	if err != nil {
 24593  		return nil, err
 24594  	}
 24595  	req.Header = reqHeaders
 24596  	googleapi.Expand(req.URL, map[string]string{
 24597  		"resource": c.resource,
 24598  	})
 24599  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24600  }
 24601  
 24602  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.getIamPolicy" call.
 24603  // Any non-2xx status code is an error. Response headers are in either
 24604  // *Policy.ServerResponse.Header or (if a response was returned at all) in
 24605  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 24606  // whether the returned error was because http.StatusNotModified was returned.
 24607  func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
 24608  	gensupport.SetOptions(c.urlParams_, opts...)
 24609  	res, err := c.doRequest("json")
 24610  	if res != nil && res.StatusCode == http.StatusNotModified {
 24611  		if res.Body != nil {
 24612  			res.Body.Close()
 24613  		}
 24614  		return nil, gensupport.WrapError(&googleapi.Error{
 24615  			Code:   res.StatusCode,
 24616  			Header: res.Header,
 24617  		})
 24618  	}
 24619  	if err != nil {
 24620  		return nil, err
 24621  	}
 24622  	defer googleapi.CloseBody(res)
 24623  	if err := googleapi.CheckResponse(res); err != nil {
 24624  		return nil, gensupport.WrapError(err)
 24625  	}
 24626  	ret := &Policy{
 24627  		ServerResponse: googleapi.ServerResponse{
 24628  			Header:         res.Header,
 24629  			HTTPStatusCode: res.StatusCode,
 24630  		},
 24631  	}
 24632  	target := &ret
 24633  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24634  		return nil, err
 24635  	}
 24636  	return ret, nil
 24637  }
 24638  
 24639  type ProjectsLocationsDatasetsHl7V2StoresImportCall struct {
 24640  	s                     *Service
 24641  	name                  string
 24642  	importmessagesrequest *ImportMessagesRequest
 24643  	urlParams_            gensupport.URLParams
 24644  	ctx_                  context.Context
 24645  	header_               http.Header
 24646  }
 24647  
 24648  // Import: Import messages to the HL7v2 store by loading data from the
 24649  // specified sources. This method is optimized to load large quantities of data
 24650  // using import semantics that ignore some HL7v2 store configuration options
 24651  // and are not suitable for all use cases. It is primarily intended to load
 24652  // data into an empty HL7v2 store that is not being used by other clients. An
 24653  // existing message will be overwritten if a duplicate message is imported. A
 24654  // duplicate message is a message with the same raw bytes as a message that
 24655  // already exists in this HL7v2 store. When a message is overwritten, its
 24656  // labels will also be overwritten. The import operation is idempotent unless
 24657  // the input data contains multiple valid messages with the same raw bytes but
 24658  // different labels. In that case, after the import completes, the store
 24659  // contains exactly one message with those raw bytes but there is no ordering
 24660  // guarantee on which version of the labels it has. The operation result
 24661  // counters do not count duplicated raw bytes as an error and count one success
 24662  // for each message in the input, which might result in a success count larger
 24663  // than the number of messages in the HL7v2 store. If some messages fail to
 24664  // import, for example due to parsing errors, successfully imported messages
 24665  // are not rolled back. This method returns an Operation that can be used to
 24666  // track the status of the import by calling GetOperation. Immediate fatal
 24667  // errors appear in the error field, errors are also logged to Cloud Logging
 24668  // (see Viewing error logs in Cloud Logging
 24669  // (https://cloud.google.com/healthcare/docs/how-tos/logging)). Otherwise, when
 24670  // the operation finishes, a response of type ImportMessagesResponse is
 24671  // returned in the response field. The metadata field type for this operation
 24672  // is OperationMetadata.
 24673  //
 24674  //   - name: The name of the target HL7v2 store, in the format
 24675  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/hl7v2S
 24676  //     tores/{hl7v2_store_id}`.
 24677  func (r *ProjectsLocationsDatasetsHl7V2StoresService) Import(name string, importmessagesrequest *ImportMessagesRequest) *ProjectsLocationsDatasetsHl7V2StoresImportCall {
 24678  	c := &ProjectsLocationsDatasetsHl7V2StoresImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24679  	c.name = name
 24680  	c.importmessagesrequest = importmessagesrequest
 24681  	return c
 24682  }
 24683  
 24684  // Fields allows partial responses to be retrieved. See
 24685  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24686  // details.
 24687  func (c *ProjectsLocationsDatasetsHl7V2StoresImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresImportCall {
 24688  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24689  	return c
 24690  }
 24691  
 24692  // Context sets the context to be used in this call's Do method.
 24693  func (c *ProjectsLocationsDatasetsHl7V2StoresImportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresImportCall {
 24694  	c.ctx_ = ctx
 24695  	return c
 24696  }
 24697  
 24698  // Header returns a http.Header that can be modified by the caller to add
 24699  // headers to the request.
 24700  func (c *ProjectsLocationsDatasetsHl7V2StoresImportCall) Header() http.Header {
 24701  	if c.header_ == nil {
 24702  		c.header_ = make(http.Header)
 24703  	}
 24704  	return c.header_
 24705  }
 24706  
 24707  func (c *ProjectsLocationsDatasetsHl7V2StoresImportCall) doRequest(alt string) (*http.Response, error) {
 24708  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24709  	var body io.Reader = nil
 24710  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.importmessagesrequest)
 24711  	if err != nil {
 24712  		return nil, err
 24713  	}
 24714  	c.urlParams_.Set("alt", alt)
 24715  	c.urlParams_.Set("prettyPrint", "false")
 24716  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:import")
 24717  	urls += "?" + c.urlParams_.Encode()
 24718  	req, err := http.NewRequest("POST", urls, body)
 24719  	if err != nil {
 24720  		return nil, err
 24721  	}
 24722  	req.Header = reqHeaders
 24723  	googleapi.Expand(req.URL, map[string]string{
 24724  		"name": c.name,
 24725  	})
 24726  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24727  }
 24728  
 24729  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.import" call.
 24730  // Any non-2xx status code is an error. Response headers are in either
 24731  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 24732  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 24733  // whether the returned error was because http.StatusNotModified was returned.
 24734  func (c *ProjectsLocationsDatasetsHl7V2StoresImportCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 24735  	gensupport.SetOptions(c.urlParams_, opts...)
 24736  	res, err := c.doRequest("json")
 24737  	if res != nil && res.StatusCode == http.StatusNotModified {
 24738  		if res.Body != nil {
 24739  			res.Body.Close()
 24740  		}
 24741  		return nil, gensupport.WrapError(&googleapi.Error{
 24742  			Code:   res.StatusCode,
 24743  			Header: res.Header,
 24744  		})
 24745  	}
 24746  	if err != nil {
 24747  		return nil, err
 24748  	}
 24749  	defer googleapi.CloseBody(res)
 24750  	if err := googleapi.CheckResponse(res); err != nil {
 24751  		return nil, gensupport.WrapError(err)
 24752  	}
 24753  	ret := &Operation{
 24754  		ServerResponse: googleapi.ServerResponse{
 24755  			Header:         res.Header,
 24756  			HTTPStatusCode: res.StatusCode,
 24757  		},
 24758  	}
 24759  	target := &ret
 24760  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24761  		return nil, err
 24762  	}
 24763  	return ret, nil
 24764  }
 24765  
 24766  type ProjectsLocationsDatasetsHl7V2StoresListCall struct {
 24767  	s            *Service
 24768  	parent       string
 24769  	urlParams_   gensupport.URLParams
 24770  	ifNoneMatch_ string
 24771  	ctx_         context.Context
 24772  	header_      http.Header
 24773  }
 24774  
 24775  // List: Lists the HL7v2 stores in the given dataset.
 24776  //
 24777  // - parent: Name of the dataset.
 24778  func (r *ProjectsLocationsDatasetsHl7V2StoresService) List(parent string) *ProjectsLocationsDatasetsHl7V2StoresListCall {
 24779  	c := &ProjectsLocationsDatasetsHl7V2StoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24780  	c.parent = parent
 24781  	return c
 24782  }
 24783  
 24784  // Filter sets the optional parameter "filter": Restricts stores returned to
 24785  // those matching a filter. The following syntax is available: * A string field
 24786  // value can be written as text inside quotation marks, for example "query
 24787  // text". The only valid relational operation for text fields is equality
 24788  // (`=`), where text is searched within the field, rather than having the field
 24789  // be equal to the text. For example, "Comment = great" returns messages with
 24790  // `great` in the comment field. * A number field value can be written as an
 24791  // integer, a decimal, or an exponential. The valid relational operators for
 24792  // number fields are the equality operator (`=`), along with the less
 24793  // than/greater than operators (`<`, `<=`, `>`, `>=`). Note that there is no
 24794  // inequality (`!=`) operator. You can prepend the `NOT` operator to an
 24795  // expression to negate it. * A date field value must be written in
 24796  // `yyyy-mm-dd` form. Fields with date and time use the RFC3339 time format.
 24797  // Leading zeros are required for one-digit months and days. The valid
 24798  // relational operators for date fields are the equality operator (`=`) , along
 24799  // with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note that
 24800  // there is no inequality (`!=`) operator. You can prepend the `NOT` operator
 24801  // to an expression to negate it. * Multiple field query expressions can be
 24802  // combined in one query by adding `AND` or `OR` operators between the
 24803  // expressions. If a boolean operator appears within a quoted string, it is not
 24804  // treated as special, it's just another part of the character string to be
 24805  // matched. You can prepend the `NOT` operator to an expression to negate it.
 24806  // Only filtering on labels is supported. For example, `labels.key=value`.
 24807  func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Filter(filter string) *ProjectsLocationsDatasetsHl7V2StoresListCall {
 24808  	c.urlParams_.Set("filter", filter)
 24809  	return c
 24810  }
 24811  
 24812  // PageSize sets the optional parameter "pageSize": Limit on the number of
 24813  // HL7v2 stores to return in a single response. If not specified, 100 is used.
 24814  // May not be larger than 1000.
 24815  func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsHl7V2StoresListCall {
 24816  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 24817  	return c
 24818  }
 24819  
 24820  // PageToken sets the optional parameter "pageToken": The next_page_token value
 24821  // returned from the previous List request, if any.
 24822  func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsHl7V2StoresListCall {
 24823  	c.urlParams_.Set("pageToken", pageToken)
 24824  	return c
 24825  }
 24826  
 24827  // Fields allows partial responses to be retrieved. See
 24828  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24829  // details.
 24830  func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresListCall {
 24831  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24832  	return c
 24833  }
 24834  
 24835  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24836  // object's ETag matches the given value. This is useful for getting updates
 24837  // only after the object has changed since the last request.
 24838  func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresListCall {
 24839  	c.ifNoneMatch_ = entityTag
 24840  	return c
 24841  }
 24842  
 24843  // Context sets the context to be used in this call's Do method.
 24844  func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresListCall {
 24845  	c.ctx_ = ctx
 24846  	return c
 24847  }
 24848  
 24849  // Header returns a http.Header that can be modified by the caller to add
 24850  // headers to the request.
 24851  func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Header() http.Header {
 24852  	if c.header_ == nil {
 24853  		c.header_ = make(http.Header)
 24854  	}
 24855  	return c.header_
 24856  }
 24857  
 24858  func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) doRequest(alt string) (*http.Response, error) {
 24859  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24860  	if c.ifNoneMatch_ != "" {
 24861  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24862  	}
 24863  	var body io.Reader = nil
 24864  	c.urlParams_.Set("alt", alt)
 24865  	c.urlParams_.Set("prettyPrint", "false")
 24866  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/hl7V2Stores")
 24867  	urls += "?" + c.urlParams_.Encode()
 24868  	req, err := http.NewRequest("GET", urls, body)
 24869  	if err != nil {
 24870  		return nil, err
 24871  	}
 24872  	req.Header = reqHeaders
 24873  	googleapi.Expand(req.URL, map[string]string{
 24874  		"parent": c.parent,
 24875  	})
 24876  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24877  }
 24878  
 24879  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.list" call.
 24880  // Any non-2xx status code is an error. Response headers are in either
 24881  // *ListHl7V2StoresResponse.ServerResponse.Header or (if a response was
 24882  // returned at all) in error.(*googleapi.Error).Header. Use
 24883  // googleapi.IsNotModified to check whether the returned error was because
 24884  // http.StatusNotModified was returned.
 24885  func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Do(opts ...googleapi.CallOption) (*ListHl7V2StoresResponse, error) {
 24886  	gensupport.SetOptions(c.urlParams_, opts...)
 24887  	res, err := c.doRequest("json")
 24888  	if res != nil && res.StatusCode == http.StatusNotModified {
 24889  		if res.Body != nil {
 24890  			res.Body.Close()
 24891  		}
 24892  		return nil, gensupport.WrapError(&googleapi.Error{
 24893  			Code:   res.StatusCode,
 24894  			Header: res.Header,
 24895  		})
 24896  	}
 24897  	if err != nil {
 24898  		return nil, err
 24899  	}
 24900  	defer googleapi.CloseBody(res)
 24901  	if err := googleapi.CheckResponse(res); err != nil {
 24902  		return nil, gensupport.WrapError(err)
 24903  	}
 24904  	ret := &ListHl7V2StoresResponse{
 24905  		ServerResponse: googleapi.ServerResponse{
 24906  			Header:         res.Header,
 24907  			HTTPStatusCode: res.StatusCode,
 24908  		},
 24909  	}
 24910  	target := &ret
 24911  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24912  		return nil, err
 24913  	}
 24914  	return ret, nil
 24915  }
 24916  
 24917  // Pages invokes f for each page of results.
 24918  // A non-nil error returned from f will halt the iteration.
 24919  // The provided context supersedes any context provided to the Context method.
 24920  func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Pages(ctx context.Context, f func(*ListHl7V2StoresResponse) error) error {
 24921  	c.ctx_ = ctx
 24922  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 24923  	for {
 24924  		x, err := c.Do()
 24925  		if err != nil {
 24926  			return err
 24927  		}
 24928  		if err := f(x); err != nil {
 24929  			return err
 24930  		}
 24931  		if x.NextPageToken == "" {
 24932  			return nil
 24933  		}
 24934  		c.PageToken(x.NextPageToken)
 24935  	}
 24936  }
 24937  
 24938  type ProjectsLocationsDatasetsHl7V2StoresPatchCall struct {
 24939  	s          *Service
 24940  	name       string
 24941  	hl7v2store *Hl7V2Store
 24942  	urlParams_ gensupport.URLParams
 24943  	ctx_       context.Context
 24944  	header_    http.Header
 24945  }
 24946  
 24947  // Patch: Updates the HL7v2 store.
 24948  //
 24949  //   - name: Identifier. Resource name of the HL7v2 store, of the form
 24950  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/hl7V2S
 24951  //     tores/{hl7v2_store_id}`.
 24952  func (r *ProjectsLocationsDatasetsHl7V2StoresService) Patch(name string, hl7v2store *Hl7V2Store) *ProjectsLocationsDatasetsHl7V2StoresPatchCall {
 24953  	c := &ProjectsLocationsDatasetsHl7V2StoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24954  	c.name = name
 24955  	c.hl7v2store = hl7v2store
 24956  	return c
 24957  }
 24958  
 24959  // UpdateMask sets the optional parameter "updateMask": Required. The update
 24960  // mask applies to the resource. For the `FieldMask` definition, see
 24961  // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
 24962  func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsHl7V2StoresPatchCall {
 24963  	c.urlParams_.Set("updateMask", updateMask)
 24964  	return c
 24965  }
 24966  
 24967  // Fields allows partial responses to be retrieved. See
 24968  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24969  // details.
 24970  func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresPatchCall {
 24971  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24972  	return c
 24973  }
 24974  
 24975  // Context sets the context to be used in this call's Do method.
 24976  func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresPatchCall {
 24977  	c.ctx_ = ctx
 24978  	return c
 24979  }
 24980  
 24981  // Header returns a http.Header that can be modified by the caller to add
 24982  // headers to the request.
 24983  func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) Header() http.Header {
 24984  	if c.header_ == nil {
 24985  		c.header_ = make(http.Header)
 24986  	}
 24987  	return c.header_
 24988  }
 24989  
 24990  func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) doRequest(alt string) (*http.Response, error) {
 24991  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24992  	var body io.Reader = nil
 24993  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.hl7v2store)
 24994  	if err != nil {
 24995  		return nil, err
 24996  	}
 24997  	c.urlParams_.Set("alt", alt)
 24998  	c.urlParams_.Set("prettyPrint", "false")
 24999  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 25000  	urls += "?" + c.urlParams_.Encode()
 25001  	req, err := http.NewRequest("PATCH", urls, body)
 25002  	if err != nil {
 25003  		return nil, err
 25004  	}
 25005  	req.Header = reqHeaders
 25006  	googleapi.Expand(req.URL, map[string]string{
 25007  		"name": c.name,
 25008  	})
 25009  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25010  }
 25011  
 25012  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.patch" call.
 25013  // Any non-2xx status code is an error. Response headers are in either
 25014  // *Hl7V2Store.ServerResponse.Header or (if a response was returned at all) in
 25015  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 25016  // whether the returned error was because http.StatusNotModified was returned.
 25017  func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) Do(opts ...googleapi.CallOption) (*Hl7V2Store, error) {
 25018  	gensupport.SetOptions(c.urlParams_, opts...)
 25019  	res, err := c.doRequest("json")
 25020  	if res != nil && res.StatusCode == http.StatusNotModified {
 25021  		if res.Body != nil {
 25022  			res.Body.Close()
 25023  		}
 25024  		return nil, gensupport.WrapError(&googleapi.Error{
 25025  			Code:   res.StatusCode,
 25026  			Header: res.Header,
 25027  		})
 25028  	}
 25029  	if err != nil {
 25030  		return nil, err
 25031  	}
 25032  	defer googleapi.CloseBody(res)
 25033  	if err := googleapi.CheckResponse(res); err != nil {
 25034  		return nil, gensupport.WrapError(err)
 25035  	}
 25036  	ret := &Hl7V2Store{
 25037  		ServerResponse: googleapi.ServerResponse{
 25038  			Header:         res.Header,
 25039  			HTTPStatusCode: res.StatusCode,
 25040  		},
 25041  	}
 25042  	target := &ret
 25043  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25044  		return nil, err
 25045  	}
 25046  	return ret, nil
 25047  }
 25048  
 25049  type ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall struct {
 25050  	s                   *Service
 25051  	resource            string
 25052  	setiampolicyrequest *SetIamPolicyRequest
 25053  	urlParams_          gensupport.URLParams
 25054  	ctx_                context.Context
 25055  	header_             http.Header
 25056  }
 25057  
 25058  // SetIamPolicy: Sets the access control policy on the specified resource.
 25059  // Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`,
 25060  // and `PERMISSION_DENIED` errors.
 25061  //
 25062  //   - resource: REQUIRED: The resource for which the policy is being specified.
 25063  //     See Resource names (https://cloud.google.com/apis/design/resource_names)
 25064  //     for the appropriate value for this field.
 25065  func (r *ProjectsLocationsDatasetsHl7V2StoresService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall {
 25066  	c := &ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25067  	c.resource = resource
 25068  	c.setiampolicyrequest = setiampolicyrequest
 25069  	return c
 25070  }
 25071  
 25072  // Fields allows partial responses to be retrieved. See
 25073  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25074  // details.
 25075  func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall {
 25076  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25077  	return c
 25078  }
 25079  
 25080  // Context sets the context to be used in this call's Do method.
 25081  func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall {
 25082  	c.ctx_ = ctx
 25083  	return c
 25084  }
 25085  
 25086  // Header returns a http.Header that can be modified by the caller to add
 25087  // headers to the request.
 25088  func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Header() http.Header {
 25089  	if c.header_ == nil {
 25090  		c.header_ = make(http.Header)
 25091  	}
 25092  	return c.header_
 25093  }
 25094  
 25095  func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 25096  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25097  	var body io.Reader = nil
 25098  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
 25099  	if err != nil {
 25100  		return nil, err
 25101  	}
 25102  	c.urlParams_.Set("alt", alt)
 25103  	c.urlParams_.Set("prettyPrint", "false")
 25104  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy")
 25105  	urls += "?" + c.urlParams_.Encode()
 25106  	req, err := http.NewRequest("POST", urls, body)
 25107  	if err != nil {
 25108  		return nil, err
 25109  	}
 25110  	req.Header = reqHeaders
 25111  	googleapi.Expand(req.URL, map[string]string{
 25112  		"resource": c.resource,
 25113  	})
 25114  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25115  }
 25116  
 25117  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.setIamPolicy" call.
 25118  // Any non-2xx status code is an error. Response headers are in either
 25119  // *Policy.ServerResponse.Header or (if a response was returned at all) in
 25120  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 25121  // whether the returned error was because http.StatusNotModified was returned.
 25122  func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
 25123  	gensupport.SetOptions(c.urlParams_, opts...)
 25124  	res, err := c.doRequest("json")
 25125  	if res != nil && res.StatusCode == http.StatusNotModified {
 25126  		if res.Body != nil {
 25127  			res.Body.Close()
 25128  		}
 25129  		return nil, gensupport.WrapError(&googleapi.Error{
 25130  			Code:   res.StatusCode,
 25131  			Header: res.Header,
 25132  		})
 25133  	}
 25134  	if err != nil {
 25135  		return nil, err
 25136  	}
 25137  	defer googleapi.CloseBody(res)
 25138  	if err := googleapi.CheckResponse(res); err != nil {
 25139  		return nil, gensupport.WrapError(err)
 25140  	}
 25141  	ret := &Policy{
 25142  		ServerResponse: googleapi.ServerResponse{
 25143  			Header:         res.Header,
 25144  			HTTPStatusCode: res.StatusCode,
 25145  		},
 25146  	}
 25147  	target := &ret
 25148  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25149  		return nil, err
 25150  	}
 25151  	return ret, nil
 25152  }
 25153  
 25154  type ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall struct {
 25155  	s                         *Service
 25156  	resource                  string
 25157  	testiampermissionsrequest *TestIamPermissionsRequest
 25158  	urlParams_                gensupport.URLParams
 25159  	ctx_                      context.Context
 25160  	header_                   http.Header
 25161  }
 25162  
 25163  // TestIamPermissions: Returns permissions that a caller has on the specified
 25164  // resource. If the resource does not exist, this will return an empty set of
 25165  // permissions, not a `NOT_FOUND` error. Note: This operation is designed to be
 25166  // used for building permission-aware UIs and command-line tools, not for
 25167  // authorization checking. This operation may "fail open" without warning.
 25168  //
 25169  //   - resource: REQUIRED: The resource for which the policy detail is being
 25170  //     requested. See Resource names
 25171  //     (https://cloud.google.com/apis/design/resource_names) for the appropriate
 25172  //     value for this field.
 25173  func (r *ProjectsLocationsDatasetsHl7V2StoresService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall {
 25174  	c := &ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25175  	c.resource = resource
 25176  	c.testiampermissionsrequest = testiampermissionsrequest
 25177  	return c
 25178  }
 25179  
 25180  // Fields allows partial responses to be retrieved. See
 25181  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25182  // details.
 25183  func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall {
 25184  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25185  	return c
 25186  }
 25187  
 25188  // Context sets the context to be used in this call's Do method.
 25189  func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall {
 25190  	c.ctx_ = ctx
 25191  	return c
 25192  }
 25193  
 25194  // Header returns a http.Header that can be modified by the caller to add
 25195  // headers to the request.
 25196  func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Header() http.Header {
 25197  	if c.header_ == nil {
 25198  		c.header_ = make(http.Header)
 25199  	}
 25200  	return c.header_
 25201  }
 25202  
 25203  func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
 25204  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25205  	var body io.Reader = nil
 25206  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
 25207  	if err != nil {
 25208  		return nil, err
 25209  	}
 25210  	c.urlParams_.Set("alt", alt)
 25211  	c.urlParams_.Set("prettyPrint", "false")
 25212  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions")
 25213  	urls += "?" + c.urlParams_.Encode()
 25214  	req, err := http.NewRequest("POST", urls, body)
 25215  	if err != nil {
 25216  		return nil, err
 25217  	}
 25218  	req.Header = reqHeaders
 25219  	googleapi.Expand(req.URL, map[string]string{
 25220  		"resource": c.resource,
 25221  	})
 25222  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25223  }
 25224  
 25225  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.testIamPermissions" call.
 25226  // Any non-2xx status code is an error. Response headers are in either
 25227  // *TestIamPermissionsResponse.ServerResponse.Header or (if a response was
 25228  // returned at all) in error.(*googleapi.Error).Header. Use
 25229  // googleapi.IsNotModified to check whether the returned error was because
 25230  // http.StatusNotModified was returned.
 25231  func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
 25232  	gensupport.SetOptions(c.urlParams_, opts...)
 25233  	res, err := c.doRequest("json")
 25234  	if res != nil && res.StatusCode == http.StatusNotModified {
 25235  		if res.Body != nil {
 25236  			res.Body.Close()
 25237  		}
 25238  		return nil, gensupport.WrapError(&googleapi.Error{
 25239  			Code:   res.StatusCode,
 25240  			Header: res.Header,
 25241  		})
 25242  	}
 25243  	if err != nil {
 25244  		return nil, err
 25245  	}
 25246  	defer googleapi.CloseBody(res)
 25247  	if err := googleapi.CheckResponse(res); err != nil {
 25248  		return nil, gensupport.WrapError(err)
 25249  	}
 25250  	ret := &TestIamPermissionsResponse{
 25251  		ServerResponse: googleapi.ServerResponse{
 25252  			Header:         res.Header,
 25253  			HTTPStatusCode: res.StatusCode,
 25254  		},
 25255  	}
 25256  	target := &ret
 25257  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25258  		return nil, err
 25259  	}
 25260  	return ret, nil
 25261  }
 25262  
 25263  type ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall struct {
 25264  	s            *Service
 25265  	parent       string
 25266  	urlParams_   gensupport.URLParams
 25267  	ifNoneMatch_ string
 25268  	ctx_         context.Context
 25269  	header_      http.Header
 25270  }
 25271  
 25272  // BatchGet: Gets multiple messages in the given HL7v2 store.
 25273  //
 25274  //   - parent: Name of the HL7v2 store to retrieve messages from, in the format:
 25275  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/hl7v2S
 25276  //     tores/{hl7v2_store_id}`.
 25277  func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) BatchGet(parent string) *ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall {
 25278  	c := &ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25279  	c.parent = parent
 25280  	return c
 25281  }
 25282  
 25283  // Ids sets the optional parameter "ids": The resource id of the HL7v2 messages
 25284  // to retrieve in the format: `{message_id}`, where the full resource name is
 25285  // `{parent}/messages/{message_id}` A maximum of 100 messages can be retrieved
 25286  // in a batch. All 'ids' have to be under parent.
 25287  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall) Ids(ids ...string) *ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall {
 25288  	c.urlParams_.SetMulti("ids", append([]string{}, ids...))
 25289  	return c
 25290  }
 25291  
 25292  // View sets the optional parameter "view": Specifies the parts of the Messages
 25293  // resource to return in the response. When unspecified, equivalent to BASIC.
 25294  //
 25295  // Possible values:
 25296  //
 25297  //	"MESSAGE_VIEW_UNSPECIFIED" - Not specified, equivalent to FULL for
 25298  //
 25299  // getMessage, equivalent to BASIC for listMessages.
 25300  //
 25301  //	"RAW_ONLY" - Server responses include all the message fields except
 25302  //
 25303  // parsed_data, and schematized_data fields.
 25304  //
 25305  //	"PARSED_ONLY" - Server responses include all the message fields except
 25306  //
 25307  // data and schematized_data fields.
 25308  //
 25309  //	"FULL" - Server responses include all the message fields.
 25310  //	"SCHEMATIZED_ONLY" - Server responses include all the message fields
 25311  //
 25312  // except data and parsed_data fields.
 25313  //
 25314  //	"BASIC" - Server responses include only the name field.
 25315  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall) View(view string) *ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall {
 25316  	c.urlParams_.Set("view", view)
 25317  	return c
 25318  }
 25319  
 25320  // Fields allows partial responses to be retrieved. See
 25321  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25322  // details.
 25323  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall {
 25324  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25325  	return c
 25326  }
 25327  
 25328  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25329  // object's ETag matches the given value. This is useful for getting updates
 25330  // only after the object has changed since the last request.
 25331  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall {
 25332  	c.ifNoneMatch_ = entityTag
 25333  	return c
 25334  }
 25335  
 25336  // Context sets the context to be used in this call's Do method.
 25337  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall {
 25338  	c.ctx_ = ctx
 25339  	return c
 25340  }
 25341  
 25342  // Header returns a http.Header that can be modified by the caller to add
 25343  // headers to the request.
 25344  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall) Header() http.Header {
 25345  	if c.header_ == nil {
 25346  		c.header_ = make(http.Header)
 25347  	}
 25348  	return c.header_
 25349  }
 25350  
 25351  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall) doRequest(alt string) (*http.Response, error) {
 25352  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25353  	if c.ifNoneMatch_ != "" {
 25354  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25355  	}
 25356  	var body io.Reader = nil
 25357  	c.urlParams_.Set("alt", alt)
 25358  	c.urlParams_.Set("prettyPrint", "false")
 25359  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/messages:batchGet")
 25360  	urls += "?" + c.urlParams_.Encode()
 25361  	req, err := http.NewRequest("GET", urls, body)
 25362  	if err != nil {
 25363  		return nil, err
 25364  	}
 25365  	req.Header = reqHeaders
 25366  	googleapi.Expand(req.URL, map[string]string{
 25367  		"parent": c.parent,
 25368  	})
 25369  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25370  }
 25371  
 25372  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.batchGet" call.
 25373  // Any non-2xx status code is an error. Response headers are in either
 25374  // *BatchGetMessagesResponse.ServerResponse.Header or (if a response was
 25375  // returned at all) in error.(*googleapi.Error).Header. Use
 25376  // googleapi.IsNotModified to check whether the returned error was because
 25377  // http.StatusNotModified was returned.
 25378  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesBatchGetCall) Do(opts ...googleapi.CallOption) (*BatchGetMessagesResponse, error) {
 25379  	gensupport.SetOptions(c.urlParams_, opts...)
 25380  	res, err := c.doRequest("json")
 25381  	if res != nil && res.StatusCode == http.StatusNotModified {
 25382  		if res.Body != nil {
 25383  			res.Body.Close()
 25384  		}
 25385  		return nil, gensupport.WrapError(&googleapi.Error{
 25386  			Code:   res.StatusCode,
 25387  			Header: res.Header,
 25388  		})
 25389  	}
 25390  	if err != nil {
 25391  		return nil, err
 25392  	}
 25393  	defer googleapi.CloseBody(res)
 25394  	if err := googleapi.CheckResponse(res); err != nil {
 25395  		return nil, gensupport.WrapError(err)
 25396  	}
 25397  	ret := &BatchGetMessagesResponse{
 25398  		ServerResponse: googleapi.ServerResponse{
 25399  			Header:         res.Header,
 25400  			HTTPStatusCode: res.StatusCode,
 25401  		},
 25402  	}
 25403  	target := &ret
 25404  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25405  		return nil, err
 25406  	}
 25407  	return ret, nil
 25408  }
 25409  
 25410  type ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall struct {
 25411  	s                    *Service
 25412  	parent               string
 25413  	createmessagerequest *CreateMessageRequest
 25414  	urlParams_           gensupport.URLParams
 25415  	ctx_                 context.Context
 25416  	header_              http.Header
 25417  }
 25418  
 25419  // Create: Parses and stores an HL7v2 message. This method triggers an
 25420  // asynchronous notification to any Pub/Sub topic configured in
 25421  // Hl7V2Store.Hl7V2NotificationConfig, if the filtering matches the message. If
 25422  // an MLLP adapter is configured to listen to a Pub/Sub topic, the adapter
 25423  // transmits the message when a notification is received.
 25424  //
 25425  // - parent: The name of the HL7v2 store this message belongs to.
 25426  func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Create(parent string, createmessagerequest *CreateMessageRequest) *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall {
 25427  	c := &ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25428  	c.parent = parent
 25429  	c.createmessagerequest = createmessagerequest
 25430  	return c
 25431  }
 25432  
 25433  // Fields allows partial responses to be retrieved. See
 25434  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25435  // details.
 25436  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall {
 25437  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25438  	return c
 25439  }
 25440  
 25441  // Context sets the context to be used in this call's Do method.
 25442  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall {
 25443  	c.ctx_ = ctx
 25444  	return c
 25445  }
 25446  
 25447  // Header returns a http.Header that can be modified by the caller to add
 25448  // headers to the request.
 25449  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) Header() http.Header {
 25450  	if c.header_ == nil {
 25451  		c.header_ = make(http.Header)
 25452  	}
 25453  	return c.header_
 25454  }
 25455  
 25456  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) doRequest(alt string) (*http.Response, error) {
 25457  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25458  	var body io.Reader = nil
 25459  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.createmessagerequest)
 25460  	if err != nil {
 25461  		return nil, err
 25462  	}
 25463  	c.urlParams_.Set("alt", alt)
 25464  	c.urlParams_.Set("prettyPrint", "false")
 25465  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/messages")
 25466  	urls += "?" + c.urlParams_.Encode()
 25467  	req, err := http.NewRequest("POST", urls, body)
 25468  	if err != nil {
 25469  		return nil, err
 25470  	}
 25471  	req.Header = reqHeaders
 25472  	googleapi.Expand(req.URL, map[string]string{
 25473  		"parent": c.parent,
 25474  	})
 25475  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25476  }
 25477  
 25478  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.create" call.
 25479  // Any non-2xx status code is an error. Response headers are in either
 25480  // *Message.ServerResponse.Header or (if a response was returned at all) in
 25481  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 25482  // whether the returned error was because http.StatusNotModified was returned.
 25483  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) Do(opts ...googleapi.CallOption) (*Message, error) {
 25484  	gensupport.SetOptions(c.urlParams_, opts...)
 25485  	res, err := c.doRequest("json")
 25486  	if res != nil && res.StatusCode == http.StatusNotModified {
 25487  		if res.Body != nil {
 25488  			res.Body.Close()
 25489  		}
 25490  		return nil, gensupport.WrapError(&googleapi.Error{
 25491  			Code:   res.StatusCode,
 25492  			Header: res.Header,
 25493  		})
 25494  	}
 25495  	if err != nil {
 25496  		return nil, err
 25497  	}
 25498  	defer googleapi.CloseBody(res)
 25499  	if err := googleapi.CheckResponse(res); err != nil {
 25500  		return nil, gensupport.WrapError(err)
 25501  	}
 25502  	ret := &Message{
 25503  		ServerResponse: googleapi.ServerResponse{
 25504  			Header:         res.Header,
 25505  			HTTPStatusCode: res.StatusCode,
 25506  		},
 25507  	}
 25508  	target := &ret
 25509  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25510  		return nil, err
 25511  	}
 25512  	return ret, nil
 25513  }
 25514  
 25515  type ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall struct {
 25516  	s          *Service
 25517  	name       string
 25518  	urlParams_ gensupport.URLParams
 25519  	ctx_       context.Context
 25520  	header_    http.Header
 25521  }
 25522  
 25523  // Delete: Deletes an HL7v2 message.
 25524  //
 25525  // - name: The resource name of the HL7v2 message to delete.
 25526  func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Delete(name string) *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall {
 25527  	c := &ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25528  	c.name = name
 25529  	return c
 25530  }
 25531  
 25532  // Fields allows partial responses to be retrieved. See
 25533  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25534  // details.
 25535  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall {
 25536  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25537  	return c
 25538  }
 25539  
 25540  // Context sets the context to be used in this call's Do method.
 25541  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall {
 25542  	c.ctx_ = ctx
 25543  	return c
 25544  }
 25545  
 25546  // Header returns a http.Header that can be modified by the caller to add
 25547  // headers to the request.
 25548  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) Header() http.Header {
 25549  	if c.header_ == nil {
 25550  		c.header_ = make(http.Header)
 25551  	}
 25552  	return c.header_
 25553  }
 25554  
 25555  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) doRequest(alt string) (*http.Response, error) {
 25556  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25557  	var body io.Reader = nil
 25558  	c.urlParams_.Set("alt", alt)
 25559  	c.urlParams_.Set("prettyPrint", "false")
 25560  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 25561  	urls += "?" + c.urlParams_.Encode()
 25562  	req, err := http.NewRequest("DELETE", urls, body)
 25563  	if err != nil {
 25564  		return nil, err
 25565  	}
 25566  	req.Header = reqHeaders
 25567  	googleapi.Expand(req.URL, map[string]string{
 25568  		"name": c.name,
 25569  	})
 25570  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25571  }
 25572  
 25573  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.delete" call.
 25574  // Any non-2xx status code is an error. Response headers are in either
 25575  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 25576  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 25577  // whether the returned error was because http.StatusNotModified was returned.
 25578  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 25579  	gensupport.SetOptions(c.urlParams_, opts...)
 25580  	res, err := c.doRequest("json")
 25581  	if res != nil && res.StatusCode == http.StatusNotModified {
 25582  		if res.Body != nil {
 25583  			res.Body.Close()
 25584  		}
 25585  		return nil, gensupport.WrapError(&googleapi.Error{
 25586  			Code:   res.StatusCode,
 25587  			Header: res.Header,
 25588  		})
 25589  	}
 25590  	if err != nil {
 25591  		return nil, err
 25592  	}
 25593  	defer googleapi.CloseBody(res)
 25594  	if err := googleapi.CheckResponse(res); err != nil {
 25595  		return nil, gensupport.WrapError(err)
 25596  	}
 25597  	ret := &Empty{
 25598  		ServerResponse: googleapi.ServerResponse{
 25599  			Header:         res.Header,
 25600  			HTTPStatusCode: res.StatusCode,
 25601  		},
 25602  	}
 25603  	target := &ret
 25604  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25605  		return nil, err
 25606  	}
 25607  	return ret, nil
 25608  }
 25609  
 25610  type ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall struct {
 25611  	s            *Service
 25612  	name         string
 25613  	urlParams_   gensupport.URLParams
 25614  	ifNoneMatch_ string
 25615  	ctx_         context.Context
 25616  	header_      http.Header
 25617  }
 25618  
 25619  // Get: Gets an HL7v2 message.
 25620  //
 25621  // - name: The resource name of the HL7v2 message to retrieve.
 25622  func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Get(name string) *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall {
 25623  	c := &ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25624  	c.name = name
 25625  	return c
 25626  }
 25627  
 25628  // View sets the optional parameter "view": Specifies which parts of the
 25629  // Message resource to return in the response. When unspecified, equivalent to
 25630  // FULL.
 25631  //
 25632  // Possible values:
 25633  //
 25634  //	"MESSAGE_VIEW_UNSPECIFIED" - Not specified, equivalent to FULL for
 25635  //
 25636  // getMessage, equivalent to BASIC for listMessages.
 25637  //
 25638  //	"RAW_ONLY" - Server responses include all the message fields except
 25639  //
 25640  // parsed_data, and schematized_data fields.
 25641  //
 25642  //	"PARSED_ONLY" - Server responses include all the message fields except
 25643  //
 25644  // data and schematized_data fields.
 25645  //
 25646  //	"FULL" - Server responses include all the message fields.
 25647  //	"SCHEMATIZED_ONLY" - Server responses include all the message fields
 25648  //
 25649  // except data and parsed_data fields.
 25650  //
 25651  //	"BASIC" - Server responses include only the name field.
 25652  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) View(view string) *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall {
 25653  	c.urlParams_.Set("view", view)
 25654  	return c
 25655  }
 25656  
 25657  // Fields allows partial responses to be retrieved. See
 25658  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25659  // details.
 25660  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall {
 25661  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25662  	return c
 25663  }
 25664  
 25665  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25666  // object's ETag matches the given value. This is useful for getting updates
 25667  // only after the object has changed since the last request.
 25668  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall {
 25669  	c.ifNoneMatch_ = entityTag
 25670  	return c
 25671  }
 25672  
 25673  // Context sets the context to be used in this call's Do method.
 25674  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall {
 25675  	c.ctx_ = ctx
 25676  	return c
 25677  }
 25678  
 25679  // Header returns a http.Header that can be modified by the caller to add
 25680  // headers to the request.
 25681  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) Header() http.Header {
 25682  	if c.header_ == nil {
 25683  		c.header_ = make(http.Header)
 25684  	}
 25685  	return c.header_
 25686  }
 25687  
 25688  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) doRequest(alt string) (*http.Response, error) {
 25689  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25690  	if c.ifNoneMatch_ != "" {
 25691  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25692  	}
 25693  	var body io.Reader = nil
 25694  	c.urlParams_.Set("alt", alt)
 25695  	c.urlParams_.Set("prettyPrint", "false")
 25696  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 25697  	urls += "?" + c.urlParams_.Encode()
 25698  	req, err := http.NewRequest("GET", urls, body)
 25699  	if err != nil {
 25700  		return nil, err
 25701  	}
 25702  	req.Header = reqHeaders
 25703  	googleapi.Expand(req.URL, map[string]string{
 25704  		"name": c.name,
 25705  	})
 25706  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25707  }
 25708  
 25709  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.get" call.
 25710  // Any non-2xx status code is an error. Response headers are in either
 25711  // *Message.ServerResponse.Header or (if a response was returned at all) in
 25712  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 25713  // whether the returned error was because http.StatusNotModified was returned.
 25714  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) Do(opts ...googleapi.CallOption) (*Message, error) {
 25715  	gensupport.SetOptions(c.urlParams_, opts...)
 25716  	res, err := c.doRequest("json")
 25717  	if res != nil && res.StatusCode == http.StatusNotModified {
 25718  		if res.Body != nil {
 25719  			res.Body.Close()
 25720  		}
 25721  		return nil, gensupport.WrapError(&googleapi.Error{
 25722  			Code:   res.StatusCode,
 25723  			Header: res.Header,
 25724  		})
 25725  	}
 25726  	if err != nil {
 25727  		return nil, err
 25728  	}
 25729  	defer googleapi.CloseBody(res)
 25730  	if err := googleapi.CheckResponse(res); err != nil {
 25731  		return nil, gensupport.WrapError(err)
 25732  	}
 25733  	ret := &Message{
 25734  		ServerResponse: googleapi.ServerResponse{
 25735  			Header:         res.Header,
 25736  			HTTPStatusCode: res.StatusCode,
 25737  		},
 25738  	}
 25739  	target := &ret
 25740  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25741  		return nil, err
 25742  	}
 25743  	return ret, nil
 25744  }
 25745  
 25746  type ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall struct {
 25747  	s                    *Service
 25748  	parent               string
 25749  	ingestmessagerequest *IngestMessageRequest
 25750  	urlParams_           gensupport.URLParams
 25751  	ctx_                 context.Context
 25752  	header_              http.Header
 25753  }
 25754  
 25755  // Ingest: Parses and stores an HL7v2 message. This method triggers an
 25756  // asynchronous notification to any Pub/Sub topic configured in
 25757  // Hl7V2Store.Hl7V2NotificationConfig, if the filtering matches the message. If
 25758  // an MLLP adapter is configured to listen to a Pub/Sub topic, the adapter
 25759  // transmits the message when a notification is received. If the method is
 25760  // successful, it generates a response containing an HL7v2 acknowledgment
 25761  // (`ACK`) message. If the method encounters an error, it returns a negative
 25762  // acknowledgment (`NACK`) message. This behavior is suitable for replying to
 25763  // HL7v2 interface systems that expect these acknowledgments.
 25764  //
 25765  // - parent: The name of the HL7v2 store this message belongs to.
 25766  func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Ingest(parent string, ingestmessagerequest *IngestMessageRequest) *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall {
 25767  	c := &ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25768  	c.parent = parent
 25769  	c.ingestmessagerequest = ingestmessagerequest
 25770  	return c
 25771  }
 25772  
 25773  // Fields allows partial responses to be retrieved. See
 25774  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25775  // details.
 25776  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall {
 25777  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25778  	return c
 25779  }
 25780  
 25781  // Context sets the context to be used in this call's Do method.
 25782  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall {
 25783  	c.ctx_ = ctx
 25784  	return c
 25785  }
 25786  
 25787  // Header returns a http.Header that can be modified by the caller to add
 25788  // headers to the request.
 25789  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) Header() http.Header {
 25790  	if c.header_ == nil {
 25791  		c.header_ = make(http.Header)
 25792  	}
 25793  	return c.header_
 25794  }
 25795  
 25796  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) doRequest(alt string) (*http.Response, error) {
 25797  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25798  	var body io.Reader = nil
 25799  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.ingestmessagerequest)
 25800  	if err != nil {
 25801  		return nil, err
 25802  	}
 25803  	c.urlParams_.Set("alt", alt)
 25804  	c.urlParams_.Set("prettyPrint", "false")
 25805  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/messages:ingest")
 25806  	urls += "?" + c.urlParams_.Encode()
 25807  	req, err := http.NewRequest("POST", urls, body)
 25808  	if err != nil {
 25809  		return nil, err
 25810  	}
 25811  	req.Header = reqHeaders
 25812  	googleapi.Expand(req.URL, map[string]string{
 25813  		"parent": c.parent,
 25814  	})
 25815  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25816  }
 25817  
 25818  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.ingest" call.
 25819  // Any non-2xx status code is an error. Response headers are in either
 25820  // *IngestMessageResponse.ServerResponse.Header or (if a response was returned
 25821  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 25822  // check whether the returned error was because http.StatusNotModified was
 25823  // returned.
 25824  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) Do(opts ...googleapi.CallOption) (*IngestMessageResponse, error) {
 25825  	gensupport.SetOptions(c.urlParams_, opts...)
 25826  	res, err := c.doRequest("json")
 25827  	if res != nil && res.StatusCode == http.StatusNotModified {
 25828  		if res.Body != nil {
 25829  			res.Body.Close()
 25830  		}
 25831  		return nil, gensupport.WrapError(&googleapi.Error{
 25832  			Code:   res.StatusCode,
 25833  			Header: res.Header,
 25834  		})
 25835  	}
 25836  	if err != nil {
 25837  		return nil, err
 25838  	}
 25839  	defer googleapi.CloseBody(res)
 25840  	if err := googleapi.CheckResponse(res); err != nil {
 25841  		return nil, gensupport.WrapError(err)
 25842  	}
 25843  	ret := &IngestMessageResponse{
 25844  		ServerResponse: googleapi.ServerResponse{
 25845  			Header:         res.Header,
 25846  			HTTPStatusCode: res.StatusCode,
 25847  		},
 25848  	}
 25849  	target := &ret
 25850  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25851  		return nil, err
 25852  	}
 25853  	return ret, nil
 25854  }
 25855  
 25856  type ProjectsLocationsDatasetsHl7V2StoresMessagesListCall struct {
 25857  	s            *Service
 25858  	parent       string
 25859  	urlParams_   gensupport.URLParams
 25860  	ifNoneMatch_ string
 25861  	ctx_         context.Context
 25862  	header_      http.Header
 25863  }
 25864  
 25865  // List: Lists all the messages in the given HL7v2 store with support for
 25866  // filtering. Note: HL7v2 messages are indexed asynchronously, so there might
 25867  // be a slight delay between the time a message is created and when it can be
 25868  // found through a filter.
 25869  //
 25870  // - parent: Name of the HL7v2 store to retrieve messages from.
 25871  func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) List(parent string) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
 25872  	c := &ProjectsLocationsDatasetsHl7V2StoresMessagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25873  	c.parent = parent
 25874  	return c
 25875  }
 25876  
 25877  // Filter sets the optional parameter "filter": Restricts messages returned to
 25878  // those matching a filter. The following syntax is available: * A string field
 25879  // value can be written as text inside quotation marks, for example "query
 25880  // text". The only valid relational operation for text fields is equality
 25881  // (`=`), where text is searched within the field, rather than having the field
 25882  // be equal to the text. For example, "Comment = great" returns messages with
 25883  // `great` in the comment field. * A number field value can be written as an
 25884  // integer, a decimal, or an exponential. The valid relational operators for
 25885  // number fields are the equality operator (`=`), along with the less
 25886  // than/greater than operators (`<`, `<=`, `>`, `>=`). Note that there is no
 25887  // inequality (`!=`) operator. You can prepend the `NOT` operator to an
 25888  // expression to negate it. * A date field value must be written in
 25889  // `yyyy-mm-dd` form. Fields with date and time use the RFC3339 time format.
 25890  // Leading zeros are required for one-digit months and days. The valid
 25891  // relational operators for date fields are the equality operator (`=`) , along
 25892  // with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note that
 25893  // there is no inequality (`!=`) operator. You can prepend the `NOT` operator
 25894  // to an expression to negate it. * Multiple field query expressions can be
 25895  // combined in one query by adding `AND` or `OR` operators between the
 25896  // expressions. If a boolean operator appears within a quoted string, it is not
 25897  // treated as special, it's just another part of the character string to be
 25898  // matched. You can prepend the `NOT` operator to an expression to negate it.
 25899  // Fields/functions available for filtering are: * `message_type`, from the
 25900  // MSH-9.1 field. For example, `NOT message_type = "ADT". * `send_date` or
 25901  // `sendDate`, the YYYY-MM-DD date the message was sent in the dataset's
 25902  // time_zone, from the MSH-7 segment. For example, `send_date < "2017-01-02".
 25903  // * `send_time`, the timestamp when the message was sent, using the RFC3339
 25904  // time format for comparisons, from the MSH-7 segment. For example, `send_time
 25905  // < "2017-01-02T00:00:00-05:00". * `create_time`, the timestamp when the
 25906  // message was created in the HL7v2 store. Use the RFC3339 time format for
 25907  // comparisons. For example, `create_time < "2017-01-02T00:00:00-05:00". *
 25908  // `send_facility`, the care center that the message came from, from the MSH-4
 25909  // segment. For example, `send_facility = "ABC". * `PatientId(value, type)`,
 25910  // which matches if the message lists a patient having an ID of the given value
 25911  // and type in the PID-2, PID-3, or PID-4 segments. For example,
 25912  // `PatientId("123456", "MRN")`. * `labels.x`, a string value of the label with
 25913  // key `x` as set using the Message.labels map. For example,
 25914  // `labels."priority"="high". The operator `:*` can be used to assert the
 25915  // existence of a label. For example, `labels."priority":*`.
 25916  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Filter(filter string) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
 25917  	c.urlParams_.Set("filter", filter)
 25918  	return c
 25919  }
 25920  
 25921  // OrderBy sets the optional parameter "orderBy": Orders messages returned by
 25922  // the specified order_by clause. Syntax:
 25923  // https://cloud.google.com/apis/design/design_patterns#sorting_order Fields
 25924  // available for ordering are: * `send_time`
 25925  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) OrderBy(orderBy string) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
 25926  	c.urlParams_.Set("orderBy", orderBy)
 25927  	return c
 25928  }
 25929  
 25930  // PageSize sets the optional parameter "pageSize": Limit on the number of
 25931  // messages to return in a single response. If not specified, 100 is used. May
 25932  // not be larger than 1000.
 25933  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
 25934  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 25935  	return c
 25936  }
 25937  
 25938  // PageToken sets the optional parameter "pageToken": The next_page_token value
 25939  // returned from the previous List request, if any.
 25940  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
 25941  	c.urlParams_.Set("pageToken", pageToken)
 25942  	return c
 25943  }
 25944  
 25945  // View sets the optional parameter "view": Specifies the parts of the Message
 25946  // to return in the response. When unspecified, equivalent to BASIC. Setting
 25947  // this to anything other than BASIC with a `page_size` larger than the default
 25948  // can generate a large response, which impacts the performance of this method.
 25949  //
 25950  // Possible values:
 25951  //
 25952  //	"MESSAGE_VIEW_UNSPECIFIED" - Not specified, equivalent to FULL for
 25953  //
 25954  // getMessage, equivalent to BASIC for listMessages.
 25955  //
 25956  //	"RAW_ONLY" - Server responses include all the message fields except
 25957  //
 25958  // parsed_data, and schematized_data fields.
 25959  //
 25960  //	"PARSED_ONLY" - Server responses include all the message fields except
 25961  //
 25962  // data and schematized_data fields.
 25963  //
 25964  //	"FULL" - Server responses include all the message fields.
 25965  //	"SCHEMATIZED_ONLY" - Server responses include all the message fields
 25966  //
 25967  // except data and parsed_data fields.
 25968  //
 25969  //	"BASIC" - Server responses include only the name field.
 25970  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) View(view string) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
 25971  	c.urlParams_.Set("view", view)
 25972  	return c
 25973  }
 25974  
 25975  // Fields allows partial responses to be retrieved. See
 25976  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25977  // details.
 25978  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
 25979  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25980  	return c
 25981  }
 25982  
 25983  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25984  // object's ETag matches the given value. This is useful for getting updates
 25985  // only after the object has changed since the last request.
 25986  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
 25987  	c.ifNoneMatch_ = entityTag
 25988  	return c
 25989  }
 25990  
 25991  // Context sets the context to be used in this call's Do method.
 25992  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
 25993  	c.ctx_ = ctx
 25994  	return c
 25995  }
 25996  
 25997  // Header returns a http.Header that can be modified by the caller to add
 25998  // headers to the request.
 25999  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Header() http.Header {
 26000  	if c.header_ == nil {
 26001  		c.header_ = make(http.Header)
 26002  	}
 26003  	return c.header_
 26004  }
 26005  
 26006  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) doRequest(alt string) (*http.Response, error) {
 26007  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26008  	if c.ifNoneMatch_ != "" {
 26009  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 26010  	}
 26011  	var body io.Reader = nil
 26012  	c.urlParams_.Set("alt", alt)
 26013  	c.urlParams_.Set("prettyPrint", "false")
 26014  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/messages")
 26015  	urls += "?" + c.urlParams_.Encode()
 26016  	req, err := http.NewRequest("GET", urls, body)
 26017  	if err != nil {
 26018  		return nil, err
 26019  	}
 26020  	req.Header = reqHeaders
 26021  	googleapi.Expand(req.URL, map[string]string{
 26022  		"parent": c.parent,
 26023  	})
 26024  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26025  }
 26026  
 26027  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.list" call.
 26028  // Any non-2xx status code is an error. Response headers are in either
 26029  // *ListMessagesResponse.ServerResponse.Header or (if a response was returned
 26030  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 26031  // check whether the returned error was because http.StatusNotModified was
 26032  // returned.
 26033  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Do(opts ...googleapi.CallOption) (*ListMessagesResponse, error) {
 26034  	gensupport.SetOptions(c.urlParams_, opts...)
 26035  	res, err := c.doRequest("json")
 26036  	if res != nil && res.StatusCode == http.StatusNotModified {
 26037  		if res.Body != nil {
 26038  			res.Body.Close()
 26039  		}
 26040  		return nil, gensupport.WrapError(&googleapi.Error{
 26041  			Code:   res.StatusCode,
 26042  			Header: res.Header,
 26043  		})
 26044  	}
 26045  	if err != nil {
 26046  		return nil, err
 26047  	}
 26048  	defer googleapi.CloseBody(res)
 26049  	if err := googleapi.CheckResponse(res); err != nil {
 26050  		return nil, gensupport.WrapError(err)
 26051  	}
 26052  	ret := &ListMessagesResponse{
 26053  		ServerResponse: googleapi.ServerResponse{
 26054  			Header:         res.Header,
 26055  			HTTPStatusCode: res.StatusCode,
 26056  		},
 26057  	}
 26058  	target := &ret
 26059  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26060  		return nil, err
 26061  	}
 26062  	return ret, nil
 26063  }
 26064  
 26065  // Pages invokes f for each page of results.
 26066  // A non-nil error returned from f will halt the iteration.
 26067  // The provided context supersedes any context provided to the Context method.
 26068  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Pages(ctx context.Context, f func(*ListMessagesResponse) error) error {
 26069  	c.ctx_ = ctx
 26070  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 26071  	for {
 26072  		x, err := c.Do()
 26073  		if err != nil {
 26074  			return err
 26075  		}
 26076  		if err := f(x); err != nil {
 26077  			return err
 26078  		}
 26079  		if x.NextPageToken == "" {
 26080  			return nil
 26081  		}
 26082  		c.PageToken(x.NextPageToken)
 26083  	}
 26084  }
 26085  
 26086  type ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall struct {
 26087  	s          *Service
 26088  	name       string
 26089  	message    *Message
 26090  	urlParams_ gensupport.URLParams
 26091  	ctx_       context.Context
 26092  	header_    http.Header
 26093  }
 26094  
 26095  // Patch: Update the message. The contents of the message in Message.data and
 26096  // data extracted from the contents such as Message.create_time can't be
 26097  // altered. Only the Message.labels field is allowed to be updated. The labels
 26098  // in the request are merged with the existing set of labels. Existing labels
 26099  // with the same keys are updated.
 26100  //
 26101  //   - name: Output only. Resource name of the Message, of the form
 26102  //     `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/hl7V2S
 26103  //     tores/{hl7_v2_store_id}/messages/{message_id}`. Assigned by the server.
 26104  func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Patch(name string, message *Message) *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall {
 26105  	c := &ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26106  	c.name = name
 26107  	c.message = message
 26108  	return c
 26109  }
 26110  
 26111  // UpdateMask sets the optional parameter "updateMask": Required. The update
 26112  // mask applies to the resource. For the `FieldMask` definition, see
 26113  // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
 26114  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall {
 26115  	c.urlParams_.Set("updateMask", updateMask)
 26116  	return c
 26117  }
 26118  
 26119  // Fields allows partial responses to be retrieved. See
 26120  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26121  // details.
 26122  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall {
 26123  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26124  	return c
 26125  }
 26126  
 26127  // Context sets the context to be used in this call's Do method.
 26128  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall {
 26129  	c.ctx_ = ctx
 26130  	return c
 26131  }
 26132  
 26133  // Header returns a http.Header that can be modified by the caller to add
 26134  // headers to the request.
 26135  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) Header() http.Header {
 26136  	if c.header_ == nil {
 26137  		c.header_ = make(http.Header)
 26138  	}
 26139  	return c.header_
 26140  }
 26141  
 26142  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) doRequest(alt string) (*http.Response, error) {
 26143  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 26144  	var body io.Reader = nil
 26145  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.message)
 26146  	if err != nil {
 26147  		return nil, err
 26148  	}
 26149  	c.urlParams_.Set("alt", alt)
 26150  	c.urlParams_.Set("prettyPrint", "false")
 26151  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 26152  	urls += "?" + c.urlParams_.Encode()
 26153  	req, err := http.NewRequest("PATCH", urls, body)
 26154  	if err != nil {
 26155  		return nil, err
 26156  	}
 26157  	req.Header = reqHeaders
 26158  	googleapi.Expand(req.URL, map[string]string{
 26159  		"name": c.name,
 26160  	})
 26161  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26162  }
 26163  
 26164  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.patch" call.
 26165  // Any non-2xx status code is an error. Response headers are in either
 26166  // *Message.ServerResponse.Header or (if a response was returned at all) in
 26167  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 26168  // whether the returned error was because http.StatusNotModified was returned.
 26169  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) Do(opts ...googleapi.CallOption) (*Message, error) {
 26170  	gensupport.SetOptions(c.urlParams_, opts...)
 26171  	res, err := c.doRequest("json")
 26172  	if res != nil && res.StatusCode == http.StatusNotModified {
 26173  		if res.Body != nil {
 26174  			res.Body.Close()
 26175  		}
 26176  		return nil, gensupport.WrapError(&googleapi.Error{
 26177  			Code:   res.StatusCode,
 26178  			Header: res.Header,
 26179  		})
 26180  	}
 26181  	if err != nil {
 26182  		return nil, err
 26183  	}
 26184  	defer googleapi.CloseBody(res)
 26185  	if err := googleapi.CheckResponse(res); err != nil {
 26186  		return nil, gensupport.WrapError(err)
 26187  	}
 26188  	ret := &Message{
 26189  		ServerResponse: googleapi.ServerResponse{
 26190  			Header:         res.Header,
 26191  			HTTPStatusCode: res.StatusCode,
 26192  		},
 26193  	}
 26194  	target := &ret
 26195  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26196  		return nil, err
 26197  	}
 26198  	return ret, nil
 26199  }
 26200  
 26201  type ProjectsLocationsDatasetsOperationsCancelCall struct {
 26202  	s                      *Service
 26203  	name                   string
 26204  	canceloperationrequest *CancelOperationRequest
 26205  	urlParams_             gensupport.URLParams
 26206  	ctx_                   context.Context
 26207  	header_                http.Header
 26208  }
 26209  
 26210  // Cancel: Starts asynchronous cancellation on a long-running operation. The
 26211  // server makes a best effort to cancel the operation, but success is not
 26212  // guaranteed. If the server doesn't support this method, it returns
 26213  // `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
 26214  // other methods to check whether the cancellation succeeded or whether the
 26215  // operation completed despite cancellation. On successful cancellation, the
 26216  // operation is not deleted; instead, it becomes an operation with an
 26217  // Operation.error value with a google.rpc.Status.code of 1, corresponding to
 26218  // `Code.CANCELLED`.
 26219  //
 26220  // - name: The name of the operation resource to be cancelled.
 26221  func (r *ProjectsLocationsDatasetsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsDatasetsOperationsCancelCall {
 26222  	c := &ProjectsLocationsDatasetsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26223  	c.name = name
 26224  	c.canceloperationrequest = canceloperationrequest
 26225  	return c
 26226  }
 26227  
 26228  // Fields allows partial responses to be retrieved. See
 26229  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26230  // details.
 26231  func (c *ProjectsLocationsDatasetsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsCancelCall {
 26232  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26233  	return c
 26234  }
 26235  
 26236  // Context sets the context to be used in this call's Do method.
 26237  func (c *ProjectsLocationsDatasetsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsCancelCall {
 26238  	c.ctx_ = ctx
 26239  	return c
 26240  }
 26241  
 26242  // Header returns a http.Header that can be modified by the caller to add
 26243  // headers to the request.
 26244  func (c *ProjectsLocationsDatasetsOperationsCancelCall) Header() http.Header {
 26245  	if c.header_ == nil {
 26246  		c.header_ = make(http.Header)
 26247  	}
 26248  	return c.header_
 26249  }
 26250  
 26251  func (c *ProjectsLocationsDatasetsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
 26252  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 26253  	var body io.Reader = nil
 26254  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest)
 26255  	if err != nil {
 26256  		return nil, err
 26257  	}
 26258  	c.urlParams_.Set("alt", alt)
 26259  	c.urlParams_.Set("prettyPrint", "false")
 26260  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel")
 26261  	urls += "?" + c.urlParams_.Encode()
 26262  	req, err := http.NewRequest("POST", urls, body)
 26263  	if err != nil {
 26264  		return nil, err
 26265  	}
 26266  	req.Header = reqHeaders
 26267  	googleapi.Expand(req.URL, map[string]string{
 26268  		"name": c.name,
 26269  	})
 26270  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26271  }
 26272  
 26273  // Do executes the "healthcare.projects.locations.datasets.operations.cancel" call.
 26274  // Any non-2xx status code is an error. Response headers are in either
 26275  // *Empty.ServerResponse.Header or (if a response was returned at all) in
 26276  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 26277  // whether the returned error was because http.StatusNotModified was returned.
 26278  func (c *ProjectsLocationsDatasetsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 26279  	gensupport.SetOptions(c.urlParams_, opts...)
 26280  	res, err := c.doRequest("json")
 26281  	if res != nil && res.StatusCode == http.StatusNotModified {
 26282  		if res.Body != nil {
 26283  			res.Body.Close()
 26284  		}
 26285  		return nil, gensupport.WrapError(&googleapi.Error{
 26286  			Code:   res.StatusCode,
 26287  			Header: res.Header,
 26288  		})
 26289  	}
 26290  	if err != nil {
 26291  		return nil, err
 26292  	}
 26293  	defer googleapi.CloseBody(res)
 26294  	if err := googleapi.CheckResponse(res); err != nil {
 26295  		return nil, gensupport.WrapError(err)
 26296  	}
 26297  	ret := &Empty{
 26298  		ServerResponse: googleapi.ServerResponse{
 26299  			Header:         res.Header,
 26300  			HTTPStatusCode: res.StatusCode,
 26301  		},
 26302  	}
 26303  	target := &ret
 26304  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26305  		return nil, err
 26306  	}
 26307  	return ret, nil
 26308  }
 26309  
 26310  type ProjectsLocationsDatasetsOperationsGetCall struct {
 26311  	s            *Service
 26312  	name         string
 26313  	urlParams_   gensupport.URLParams
 26314  	ifNoneMatch_ string
 26315  	ctx_         context.Context
 26316  	header_      http.Header
 26317  }
 26318  
 26319  // Get: Gets the latest state of a long-running operation. Clients can use this
 26320  // method to poll the operation result at intervals as recommended by the API
 26321  // service.
 26322  //
 26323  // - name: The name of the operation resource.
 26324  func (r *ProjectsLocationsDatasetsOperationsService) Get(name string) *ProjectsLocationsDatasetsOperationsGetCall {
 26325  	c := &ProjectsLocationsDatasetsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26326  	c.name = name
 26327  	return c
 26328  }
 26329  
 26330  // Fields allows partial responses to be retrieved. See
 26331  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26332  // details.
 26333  func (c *ProjectsLocationsDatasetsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsGetCall {
 26334  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26335  	return c
 26336  }
 26337  
 26338  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 26339  // object's ETag matches the given value. This is useful for getting updates
 26340  // only after the object has changed since the last request.
 26341  func (c *ProjectsLocationsDatasetsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsOperationsGetCall {
 26342  	c.ifNoneMatch_ = entityTag
 26343  	return c
 26344  }
 26345  
 26346  // Context sets the context to be used in this call's Do method.
 26347  func (c *ProjectsLocationsDatasetsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsGetCall {
 26348  	c.ctx_ = ctx
 26349  	return c
 26350  }
 26351  
 26352  // Header returns a http.Header that can be modified by the caller to add
 26353  // headers to the request.
 26354  func (c *ProjectsLocationsDatasetsOperationsGetCall) Header() http.Header {
 26355  	if c.header_ == nil {
 26356  		c.header_ = make(http.Header)
 26357  	}
 26358  	return c.header_
 26359  }
 26360  
 26361  func (c *ProjectsLocationsDatasetsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 26362  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26363  	if c.ifNoneMatch_ != "" {
 26364  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 26365  	}
 26366  	var body io.Reader = nil
 26367  	c.urlParams_.Set("alt", alt)
 26368  	c.urlParams_.Set("prettyPrint", "false")
 26369  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 26370  	urls += "?" + c.urlParams_.Encode()
 26371  	req, err := http.NewRequest("GET", urls, body)
 26372  	if err != nil {
 26373  		return nil, err
 26374  	}
 26375  	req.Header = reqHeaders
 26376  	googleapi.Expand(req.URL, map[string]string{
 26377  		"name": c.name,
 26378  	})
 26379  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26380  }
 26381  
 26382  // Do executes the "healthcare.projects.locations.datasets.operations.get" call.
 26383  // Any non-2xx status code is an error. Response headers are in either
 26384  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 26385  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 26386  // whether the returned error was because http.StatusNotModified was returned.
 26387  func (c *ProjectsLocationsDatasetsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 26388  	gensupport.SetOptions(c.urlParams_, opts...)
 26389  	res, err := c.doRequest("json")
 26390  	if res != nil && res.StatusCode == http.StatusNotModified {
 26391  		if res.Body != nil {
 26392  			res.Body.Close()
 26393  		}
 26394  		return nil, gensupport.WrapError(&googleapi.Error{
 26395  			Code:   res.StatusCode,
 26396  			Header: res.Header,
 26397  		})
 26398  	}
 26399  	if err != nil {
 26400  		return nil, err
 26401  	}
 26402  	defer googleapi.CloseBody(res)
 26403  	if err := googleapi.CheckResponse(res); err != nil {
 26404  		return nil, gensupport.WrapError(err)
 26405  	}
 26406  	ret := &Operation{
 26407  		ServerResponse: googleapi.ServerResponse{
 26408  			Header:         res.Header,
 26409  			HTTPStatusCode: res.StatusCode,
 26410  		},
 26411  	}
 26412  	target := &ret
 26413  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26414  		return nil, err
 26415  	}
 26416  	return ret, nil
 26417  }
 26418  
 26419  type ProjectsLocationsDatasetsOperationsListCall struct {
 26420  	s            *Service
 26421  	name         string
 26422  	urlParams_   gensupport.URLParams
 26423  	ifNoneMatch_ string
 26424  	ctx_         context.Context
 26425  	header_      http.Header
 26426  }
 26427  
 26428  // List: Lists operations that match the specified filter in the request. If
 26429  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 26430  //
 26431  // - name: The name of the operation's parent resource.
 26432  func (r *ProjectsLocationsDatasetsOperationsService) List(name string) *ProjectsLocationsDatasetsOperationsListCall {
 26433  	c := &ProjectsLocationsDatasetsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26434  	c.name = name
 26435  	return c
 26436  }
 26437  
 26438  // Filter sets the optional parameter "filter": The standard list filter.
 26439  func (c *ProjectsLocationsDatasetsOperationsListCall) Filter(filter string) *ProjectsLocationsDatasetsOperationsListCall {
 26440  	c.urlParams_.Set("filter", filter)
 26441  	return c
 26442  }
 26443  
 26444  // PageSize sets the optional parameter "pageSize": The standard list page
 26445  // size.
 26446  func (c *ProjectsLocationsDatasetsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsOperationsListCall {
 26447  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 26448  	return c
 26449  }
 26450  
 26451  // PageToken sets the optional parameter "pageToken": The standard list page
 26452  // token.
 26453  func (c *ProjectsLocationsDatasetsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsOperationsListCall {
 26454  	c.urlParams_.Set("pageToken", pageToken)
 26455  	return c
 26456  }
 26457  
 26458  // Fields allows partial responses to be retrieved. See
 26459  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26460  // details.
 26461  func (c *ProjectsLocationsDatasetsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsListCall {
 26462  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26463  	return c
 26464  }
 26465  
 26466  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 26467  // object's ETag matches the given value. This is useful for getting updates
 26468  // only after the object has changed since the last request.
 26469  func (c *ProjectsLocationsDatasetsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsOperationsListCall {
 26470  	c.ifNoneMatch_ = entityTag
 26471  	return c
 26472  }
 26473  
 26474  // Context sets the context to be used in this call's Do method.
 26475  func (c *ProjectsLocationsDatasetsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsListCall {
 26476  	c.ctx_ = ctx
 26477  	return c
 26478  }
 26479  
 26480  // Header returns a http.Header that can be modified by the caller to add
 26481  // headers to the request.
 26482  func (c *ProjectsLocationsDatasetsOperationsListCall) Header() http.Header {
 26483  	if c.header_ == nil {
 26484  		c.header_ = make(http.Header)
 26485  	}
 26486  	return c.header_
 26487  }
 26488  
 26489  func (c *ProjectsLocationsDatasetsOperationsListCall) doRequest(alt string) (*http.Response, error) {
 26490  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26491  	if c.ifNoneMatch_ != "" {
 26492  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 26493  	}
 26494  	var body io.Reader = nil
 26495  	c.urlParams_.Set("alt", alt)
 26496  	c.urlParams_.Set("prettyPrint", "false")
 26497  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations")
 26498  	urls += "?" + c.urlParams_.Encode()
 26499  	req, err := http.NewRequest("GET", urls, body)
 26500  	if err != nil {
 26501  		return nil, err
 26502  	}
 26503  	req.Header = reqHeaders
 26504  	googleapi.Expand(req.URL, map[string]string{
 26505  		"name": c.name,
 26506  	})
 26507  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26508  }
 26509  
 26510  // Do executes the "healthcare.projects.locations.datasets.operations.list" call.
 26511  // Any non-2xx status code is an error. Response headers are in either
 26512  // *ListOperationsResponse.ServerResponse.Header or (if a response was returned
 26513  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 26514  // check whether the returned error was because http.StatusNotModified was
 26515  // returned.
 26516  func (c *ProjectsLocationsDatasetsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) {
 26517  	gensupport.SetOptions(c.urlParams_, opts...)
 26518  	res, err := c.doRequest("json")
 26519  	if res != nil && res.StatusCode == http.StatusNotModified {
 26520  		if res.Body != nil {
 26521  			res.Body.Close()
 26522  		}
 26523  		return nil, gensupport.WrapError(&googleapi.Error{
 26524  			Code:   res.StatusCode,
 26525  			Header: res.Header,
 26526  		})
 26527  	}
 26528  	if err != nil {
 26529  		return nil, err
 26530  	}
 26531  	defer googleapi.CloseBody(res)
 26532  	if err := googleapi.CheckResponse(res); err != nil {
 26533  		return nil, gensupport.WrapError(err)
 26534  	}
 26535  	ret := &ListOperationsResponse{
 26536  		ServerResponse: googleapi.ServerResponse{
 26537  			Header:         res.Header,
 26538  			HTTPStatusCode: res.StatusCode,
 26539  		},
 26540  	}
 26541  	target := &ret
 26542  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26543  		return nil, err
 26544  	}
 26545  	return ret, nil
 26546  }
 26547  
 26548  // Pages invokes f for each page of results.
 26549  // A non-nil error returned from f will halt the iteration.
 26550  // The provided context supersedes any context provided to the Context method.
 26551  func (c *ProjectsLocationsDatasetsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error {
 26552  	c.ctx_ = ctx
 26553  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 26554  	for {
 26555  		x, err := c.Do()
 26556  		if err != nil {
 26557  			return err
 26558  		}
 26559  		if err := f(x); err != nil {
 26560  			return err
 26561  		}
 26562  		if x.NextPageToken == "" {
 26563  			return nil
 26564  		}
 26565  		c.PageToken(x.NextPageToken)
 26566  	}
 26567  }
 26568  
 26569  type ProjectsLocationsServicesNlpAnalyzeEntitiesCall struct {
 26570  	s                      *Service
 26571  	nlpService             string
 26572  	analyzeentitiesrequest *AnalyzeEntitiesRequest
 26573  	urlParams_             gensupport.URLParams
 26574  	ctx_                   context.Context
 26575  	header_                http.Header
 26576  }
 26577  
 26578  // AnalyzeEntities: Analyze heathcare entity in a document. Its response
 26579  // includes the recognized entity mentions and the relationships between them.
 26580  // AnalyzeEntities uses context aware models to detect entities. This method
 26581  // can only analyze documents written in English.
 26582  //
 26583  //   - nlpService: The resource name of the service of the form:
 26584  //     "projects/{project_id}/locations/{location_id}/services/nlp".
 26585  func (r *ProjectsLocationsServicesNlpService) AnalyzeEntities(nlpService string, analyzeentitiesrequest *AnalyzeEntitiesRequest) *ProjectsLocationsServicesNlpAnalyzeEntitiesCall {
 26586  	c := &ProjectsLocationsServicesNlpAnalyzeEntitiesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26587  	c.nlpService = nlpService
 26588  	c.analyzeentitiesrequest = analyzeentitiesrequest
 26589  	return c
 26590  }
 26591  
 26592  // Fields allows partial responses to be retrieved. See
 26593  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26594  // details.
 26595  func (c *ProjectsLocationsServicesNlpAnalyzeEntitiesCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesNlpAnalyzeEntitiesCall {
 26596  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26597  	return c
 26598  }
 26599  
 26600  // Context sets the context to be used in this call's Do method.
 26601  func (c *ProjectsLocationsServicesNlpAnalyzeEntitiesCall) Context(ctx context.Context) *ProjectsLocationsServicesNlpAnalyzeEntitiesCall {
 26602  	c.ctx_ = ctx
 26603  	return c
 26604  }
 26605  
 26606  // Header returns a http.Header that can be modified by the caller to add
 26607  // headers to the request.
 26608  func (c *ProjectsLocationsServicesNlpAnalyzeEntitiesCall) Header() http.Header {
 26609  	if c.header_ == nil {
 26610  		c.header_ = make(http.Header)
 26611  	}
 26612  	return c.header_
 26613  }
 26614  
 26615  func (c *ProjectsLocationsServicesNlpAnalyzeEntitiesCall) doRequest(alt string) (*http.Response, error) {
 26616  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 26617  	var body io.Reader = nil
 26618  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.analyzeentitiesrequest)
 26619  	if err != nil {
 26620  		return nil, err
 26621  	}
 26622  	c.urlParams_.Set("alt", alt)
 26623  	c.urlParams_.Set("prettyPrint", "false")
 26624  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+nlpService}:analyzeEntities")
 26625  	urls += "?" + c.urlParams_.Encode()
 26626  	req, err := http.NewRequest("POST", urls, body)
 26627  	if err != nil {
 26628  		return nil, err
 26629  	}
 26630  	req.Header = reqHeaders
 26631  	googleapi.Expand(req.URL, map[string]string{
 26632  		"nlpService": c.nlpService,
 26633  	})
 26634  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26635  }
 26636  
 26637  // Do executes the "healthcare.projects.locations.services.nlp.analyzeEntities" call.
 26638  // Any non-2xx status code is an error. Response headers are in either
 26639  // *AnalyzeEntitiesResponse.ServerResponse.Header or (if a response was
 26640  // returned at all) in error.(*googleapi.Error).Header. Use
 26641  // googleapi.IsNotModified to check whether the returned error was because
 26642  // http.StatusNotModified was returned.
 26643  func (c *ProjectsLocationsServicesNlpAnalyzeEntitiesCall) Do(opts ...googleapi.CallOption) (*AnalyzeEntitiesResponse, error) {
 26644  	gensupport.SetOptions(c.urlParams_, opts...)
 26645  	res, err := c.doRequest("json")
 26646  	if res != nil && res.StatusCode == http.StatusNotModified {
 26647  		if res.Body != nil {
 26648  			res.Body.Close()
 26649  		}
 26650  		return nil, gensupport.WrapError(&googleapi.Error{
 26651  			Code:   res.StatusCode,
 26652  			Header: res.Header,
 26653  		})
 26654  	}
 26655  	if err != nil {
 26656  		return nil, err
 26657  	}
 26658  	defer googleapi.CloseBody(res)
 26659  	if err := googleapi.CheckResponse(res); err != nil {
 26660  		return nil, gensupport.WrapError(err)
 26661  	}
 26662  	ret := &AnalyzeEntitiesResponse{
 26663  		ServerResponse: googleapi.ServerResponse{
 26664  			Header:         res.Header,
 26665  			HTTPStatusCode: res.StatusCode,
 26666  		},
 26667  	}
 26668  	target := &ret
 26669  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26670  		return nil, err
 26671  	}
 26672  	return ret, nil
 26673  }
 26674  

View as plain text