...

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

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

     1  // Copyright 2020 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  // # Creating a client
    12  //
    13  // Usage example:
    14  //
    15  //	import "google.golang.org/api/healthcare/v1alpha2"
    16  //	...
    17  //	ctx := context.Background()
    18  //	healthcareService, err := healthcare.NewService(ctx)
    19  //
    20  // In this example, Google Application Default Credentials are used for authentication.
    21  //
    22  // For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
    23  //
    24  // # Other authentication options
    25  //
    26  // To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
    27  //
    28  //	healthcareService, err := healthcare.NewService(ctx, option.WithAPIKey("AIza..."))
    29  //
    30  // To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
    31  //
    32  //	config := &oauth2.Config{...}
    33  //	// ...
    34  //	token, err := config.Exchange(ctx, ...)
    35  //	healthcareService, err := healthcare.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
    36  //
    37  // See https://godoc.org/google.golang.org/api/option/ for details on options.
    38  package healthcare // import "google.golang.org/api/healthcare/v1alpha2"
    39  
    40  import (
    41  	"bytes"
    42  	"context"
    43  	"encoding/json"
    44  	"errors"
    45  	"fmt"
    46  	"io"
    47  	"net/http"
    48  	"net/url"
    49  	"strconv"
    50  	"strings"
    51  
    52  	googleapi "google.golang.org/api/googleapi"
    53  	gensupport "google.golang.org/api/internal/gensupport"
    54  	option "google.golang.org/api/option"
    55  	htransport "google.golang.org/api/transport/http"
    56  )
    57  
    58  // Always reference these packages, just in case the auto-generated code
    59  // below doesn't.
    60  var _ = bytes.NewBuffer
    61  var _ = strconv.Itoa
    62  var _ = fmt.Sprintf
    63  var _ = json.NewDecoder
    64  var _ = io.Copy
    65  var _ = url.Parse
    66  var _ = gensupport.MarshalJSON
    67  var _ = googleapi.Version
    68  var _ = errors.New
    69  var _ = strings.Replace
    70  var _ = context.Canceled
    71  
    72  const apiId = "healthcare:v1alpha2"
    73  const apiName = "healthcare"
    74  const apiVersion = "v1alpha2"
    75  const basePath = "https://healthcare.googleapis.com/"
    76  
    77  // OAuth2 scopes used by this API.
    78  const (
    79  	// View and manage your data across Google Cloud Platform services
    80  	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
    81  )
    82  
    83  // NewService creates a new Service.
    84  func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
    85  	scopesOption := option.WithScopes(
    86  		"https://www.googleapis.com/auth/cloud-platform",
    87  	)
    88  	// NOTE: prepend, so we don't override user-specified scopes.
    89  	opts = append([]option.ClientOption{scopesOption}, opts...)
    90  	client, endpoint, err := htransport.NewClient(ctx, opts...)
    91  	if err != nil {
    92  		return nil, err
    93  	}
    94  	s, err := New(client)
    95  	if err != nil {
    96  		return nil, err
    97  	}
    98  	if endpoint != "" {
    99  		s.BasePath = endpoint
   100  	}
   101  	return s, nil
   102  }
   103  
   104  // New creates a new Service. It uses the provided http.Client for requests.
   105  //
   106  // Deprecated: please use NewService instead.
   107  // To provide a custom HTTP client, use option.WithHTTPClient.
   108  // If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
   109  func New(client *http.Client) (*Service, error) {
   110  	if client == nil {
   111  		return nil, errors.New("client is nil")
   112  	}
   113  	s := &Service{client: client, BasePath: basePath}
   114  	s.Projects = NewProjectsService(s)
   115  	return s, nil
   116  }
   117  
   118  type Service struct {
   119  	client    *http.Client
   120  	BasePath  string // API endpoint base URL
   121  	UserAgent string // optional additional User-Agent fragment
   122  
   123  	Projects *ProjectsService
   124  }
   125  
   126  func (s *Service) userAgent() string {
   127  	if s.UserAgent == "" {
   128  		return googleapi.UserAgent
   129  	}
   130  	return googleapi.UserAgent + " " + s.UserAgent
   131  }
   132  
   133  func NewProjectsService(s *Service) *ProjectsService {
   134  	rs := &ProjectsService{s: s}
   135  	rs.Locations = NewProjectsLocationsService(s)
   136  	return rs
   137  }
   138  
   139  type ProjectsService struct {
   140  	s *Service
   141  
   142  	Locations *ProjectsLocationsService
   143  }
   144  
   145  func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
   146  	rs := &ProjectsLocationsService{s: s}
   147  	rs.Datasets = NewProjectsLocationsDatasetsService(s)
   148  	return rs
   149  }
   150  
   151  type ProjectsLocationsService struct {
   152  	s *Service
   153  
   154  	Datasets *ProjectsLocationsDatasetsService
   155  }
   156  
   157  func NewProjectsLocationsDatasetsService(s *Service) *ProjectsLocationsDatasetsService {
   158  	rs := &ProjectsLocationsDatasetsService{s: s}
   159  	rs.AnnotationStores = NewProjectsLocationsDatasetsAnnotationStoresService(s)
   160  	rs.DicomStores = NewProjectsLocationsDatasetsDicomStoresService(s)
   161  	rs.FhirStores = NewProjectsLocationsDatasetsFhirStoresService(s)
   162  	rs.Hl7V2Stores = NewProjectsLocationsDatasetsHl7V2StoresService(s)
   163  	rs.Operations = NewProjectsLocationsDatasetsOperationsService(s)
   164  	return rs
   165  }
   166  
   167  type ProjectsLocationsDatasetsService struct {
   168  	s *Service
   169  
   170  	AnnotationStores *ProjectsLocationsDatasetsAnnotationStoresService
   171  
   172  	DicomStores *ProjectsLocationsDatasetsDicomStoresService
   173  
   174  	FhirStores *ProjectsLocationsDatasetsFhirStoresService
   175  
   176  	Hl7V2Stores *ProjectsLocationsDatasetsHl7V2StoresService
   177  
   178  	Operations *ProjectsLocationsDatasetsOperationsService
   179  }
   180  
   181  func NewProjectsLocationsDatasetsAnnotationStoresService(s *Service) *ProjectsLocationsDatasetsAnnotationStoresService {
   182  	rs := &ProjectsLocationsDatasetsAnnotationStoresService{s: s}
   183  	rs.Annotations = NewProjectsLocationsDatasetsAnnotationStoresAnnotationsService(s)
   184  	return rs
   185  }
   186  
   187  type ProjectsLocationsDatasetsAnnotationStoresService struct {
   188  	s *Service
   189  
   190  	Annotations *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService
   191  }
   192  
   193  func NewProjectsLocationsDatasetsAnnotationStoresAnnotationsService(s *Service) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService {
   194  	rs := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsService{s: s}
   195  	return rs
   196  }
   197  
   198  type ProjectsLocationsDatasetsAnnotationStoresAnnotationsService struct {
   199  	s *Service
   200  }
   201  
   202  func NewProjectsLocationsDatasetsDicomStoresService(s *Service) *ProjectsLocationsDatasetsDicomStoresService {
   203  	rs := &ProjectsLocationsDatasetsDicomStoresService{s: s}
   204  	rs.DicomWeb = NewProjectsLocationsDatasetsDicomStoresDicomWebService(s)
   205  	return rs
   206  }
   207  
   208  type ProjectsLocationsDatasetsDicomStoresService struct {
   209  	s *Service
   210  
   211  	DicomWeb *ProjectsLocationsDatasetsDicomStoresDicomWebService
   212  }
   213  
   214  func NewProjectsLocationsDatasetsDicomStoresDicomWebService(s *Service) *ProjectsLocationsDatasetsDicomStoresDicomWebService {
   215  	rs := &ProjectsLocationsDatasetsDicomStoresDicomWebService{s: s}
   216  	rs.Studies = NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesService(s)
   217  	return rs
   218  }
   219  
   220  type ProjectsLocationsDatasetsDicomStoresDicomWebService struct {
   221  	s *Service
   222  
   223  	Studies *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService
   224  }
   225  
   226  func NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesService(s *Service) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService {
   227  	rs := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService{s: s}
   228  	rs.Series = NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService(s)
   229  	return rs
   230  }
   231  
   232  type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService struct {
   233  	s *Service
   234  
   235  	Series *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService
   236  }
   237  
   238  func NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService(s *Service) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService {
   239  	rs := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService{s: s}
   240  	rs.Instances = NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService(s)
   241  	return rs
   242  }
   243  
   244  type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService struct {
   245  	s *Service
   246  
   247  	Instances *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService
   248  }
   249  
   250  func NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService(s *Service) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService {
   251  	rs := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService{s: s}
   252  	rs.Frames = NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesService(s)
   253  	return rs
   254  }
   255  
   256  type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService struct {
   257  	s *Service
   258  
   259  	Frames *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesService
   260  }
   261  
   262  func NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesService(s *Service) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesService {
   263  	rs := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesService{s: s}
   264  	return rs
   265  }
   266  
   267  type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesService struct {
   268  	s *Service
   269  }
   270  
   271  func NewProjectsLocationsDatasetsFhirStoresService(s *Service) *ProjectsLocationsDatasetsFhirStoresService {
   272  	rs := &ProjectsLocationsDatasetsFhirStoresService{s: s}
   273  	rs.Fhir = NewProjectsLocationsDatasetsFhirStoresFhirService(s)
   274  	return rs
   275  }
   276  
   277  type ProjectsLocationsDatasetsFhirStoresService struct {
   278  	s *Service
   279  
   280  	Fhir *ProjectsLocationsDatasetsFhirStoresFhirService
   281  }
   282  
   283  func NewProjectsLocationsDatasetsFhirStoresFhirService(s *Service) *ProjectsLocationsDatasetsFhirStoresFhirService {
   284  	rs := &ProjectsLocationsDatasetsFhirStoresFhirService{s: s}
   285  	return rs
   286  }
   287  
   288  type ProjectsLocationsDatasetsFhirStoresFhirService struct {
   289  	s *Service
   290  }
   291  
   292  func NewProjectsLocationsDatasetsHl7V2StoresService(s *Service) *ProjectsLocationsDatasetsHl7V2StoresService {
   293  	rs := &ProjectsLocationsDatasetsHl7V2StoresService{s: s}
   294  	rs.Messages = NewProjectsLocationsDatasetsHl7V2StoresMessagesService(s)
   295  	return rs
   296  }
   297  
   298  type ProjectsLocationsDatasetsHl7V2StoresService struct {
   299  	s *Service
   300  
   301  	Messages *ProjectsLocationsDatasetsHl7V2StoresMessagesService
   302  }
   303  
   304  func NewProjectsLocationsDatasetsHl7V2StoresMessagesService(s *Service) *ProjectsLocationsDatasetsHl7V2StoresMessagesService {
   305  	rs := &ProjectsLocationsDatasetsHl7V2StoresMessagesService{s: s}
   306  	return rs
   307  }
   308  
   309  type ProjectsLocationsDatasetsHl7V2StoresMessagesService struct {
   310  	s *Service
   311  }
   312  
   313  func NewProjectsLocationsDatasetsOperationsService(s *Service) *ProjectsLocationsDatasetsOperationsService {
   314  	rs := &ProjectsLocationsDatasetsOperationsService{s: s}
   315  	return rs
   316  }
   317  
   318  type ProjectsLocationsDatasetsOperationsService struct {
   319  	s *Service
   320  }
   321  
   322  // Annotation: An annotation record.
   323  type Annotation struct {
   324  	// AnnotationSource: Details of the source.
   325  	AnnotationSource *AnnotationSource `json:"annotationSource,omitempty"`
   326  
   327  	// ImageAnnotation: Annotations for images, e.g., bounding polygons.
   328  	ImageAnnotation *ImageAnnotation `json:"imageAnnotation,omitempty"`
   329  
   330  	// Name: Output only. Resource name of the Annotation, of the
   331  	// form
   332  	// `projects/{project_id}/locations/{location_id}/datasets/{dataset_
   333  	// id}/annotationStores/{annotation_store_id}/annotations/{annotation_id}
   334  	// `.
   335  	Name string `json:"name,omitempty"`
   336  
   337  	// ResourceAnnotation: Annotations for resource, e.g., classification
   338  	// tags.
   339  	ResourceAnnotation *ResourceAnnotation `json:"resourceAnnotation,omitempty"`
   340  
   341  	// TextAnnotation: Annotations for sensitive texts, e.g., range of such
   342  	// texts.
   343  	TextAnnotation *SensitiveTextAnnotation `json:"textAnnotation,omitempty"`
   344  
   345  	// ServerResponse contains the HTTP response code and headers from the
   346  	// server.
   347  	googleapi.ServerResponse `json:"-"`
   348  
   349  	// ForceSendFields is a list of field names (e.g. "AnnotationSource") to
   350  	// unconditionally include in API requests. By default, fields with
   351  	// empty values are omitted from API requests. However, any non-pointer,
   352  	// non-interface field appearing in ForceSendFields will be sent to the
   353  	// server regardless of whether the field is empty or not. This may be
   354  	// used to include empty fields in Patch requests.
   355  	ForceSendFields []string `json:"-"`
   356  
   357  	// NullFields is a list of field names (e.g. "AnnotationSource") to
   358  	// include in API requests with the JSON null value. By default, fields
   359  	// with empty values are omitted from API requests. However, any field
   360  	// with an empty value appearing in NullFields will be sent to the
   361  	// server as null. It is an error if a field in this list has a
   362  	// non-empty value. This may be used to include null fields in Patch
   363  	// requests.
   364  	NullFields []string `json:"-"`
   365  }
   366  
   367  func (s *Annotation) MarshalJSON() ([]byte, error) {
   368  	type NoMethod Annotation
   369  	raw := NoMethod(*s)
   370  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
   371  }
   372  
   373  // AnnotationSource: AnnotationSource holds the source information of
   374  // the annotation.
   375  type AnnotationSource struct {
   376  	// CloudHealthcareSource: Cloud Healthcare API resource.
   377  	CloudHealthcareSource *CloudHealthcareSource `json:"cloudHealthcareSource,omitempty"`
   378  
   379  	// ForceSendFields is a list of field names (e.g.
   380  	// "CloudHealthcareSource") to unconditionally include in API requests.
   381  	// By default, fields with empty values are omitted from API requests.
   382  	// However, any non-pointer, non-interface field appearing in
   383  	// ForceSendFields will be sent to the server regardless of whether the
   384  	// field is empty or not. This may be used to include empty fields in
   385  	// Patch requests.
   386  	ForceSendFields []string `json:"-"`
   387  
   388  	// NullFields is a list of field names (e.g. "CloudHealthcareSource") to
   389  	// include in API requests with the JSON null value. By default, fields
   390  	// with empty values are omitted from API requests. However, any field
   391  	// with an empty value appearing in NullFields will be sent to the
   392  	// server as null. It is an error if a field in this list has a
   393  	// non-empty value. This may be used to include null fields in Patch
   394  	// requests.
   395  	NullFields []string `json:"-"`
   396  }
   397  
   398  func (s *AnnotationSource) MarshalJSON() ([]byte, error) {
   399  	type NoMethod AnnotationSource
   400  	raw := NoMethod(*s)
   401  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
   402  }
   403  
   404  // AnnotationStore: An Annotation store that can store annotation
   405  // resources such as
   406  // labels and tags for text, image and audio.
   407  type AnnotationStore struct {
   408  	// Labels: User-supplied key-value pairs used to organize Annotation
   409  	// stores.
   410  	//
   411  	// Label keys must be between 1 and 63 characters long, have a UTF-8
   412  	// encoding
   413  	// of maximum 128 bytes, and must conform to the
   414  	// following PCRE regular expression:
   415  	// \p{Ll}\p{Lo}{0,62}
   416  	//
   417  	// Label values are optional, must be between 1 and 63 characters long,
   418  	// have
   419  	// a UTF-8 encoding of maximum 128 bytes, and must conform to
   420  	// the
   421  	// following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
   422  	//
   423  	// No more than 64 labels can be associated with a given store.
   424  	Labels map[string]string `json:"labels,omitempty"`
   425  
   426  	// Name: Output only. Resource name of the Annotation store, of the
   427  	// form
   428  	// `projects/{project_id}/locations/{location_id}/datasets/{dataset_
   429  	// id}/annotationStores/{annotation_store_id}`.
   430  	Name string `json:"name,omitempty"`
   431  
   432  	// ServerResponse contains the HTTP response code and headers from the
   433  	// server.
   434  	googleapi.ServerResponse `json:"-"`
   435  
   436  	// ForceSendFields is a list of field names (e.g. "Labels") to
   437  	// unconditionally include in API requests. By default, fields with
   438  	// empty values are omitted from API requests. However, any non-pointer,
   439  	// non-interface field appearing in ForceSendFields will be sent to the
   440  	// server regardless of whether the field is empty or not. This may be
   441  	// used to include empty fields in Patch requests.
   442  	ForceSendFields []string `json:"-"`
   443  
   444  	// NullFields is a list of field names (e.g. "Labels") to include in API
   445  	// requests with the JSON null value. By default, fields with empty
   446  	// values are omitted from API requests. However, any field with an
   447  	// empty value appearing in NullFields will be sent to the server as
   448  	// null. It is an error if a field in this list has a non-empty value.
   449  	// This may be used to include null fields in Patch requests.
   450  	NullFields []string `json:"-"`
   451  }
   452  
   453  func (s *AnnotationStore) MarshalJSON() ([]byte, error) {
   454  	type NoMethod AnnotationStore
   455  	raw := NoMethod(*s)
   456  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
   457  }
   458  
   459  // AuditConfig: Specifies the audit configuration for a service.
   460  // The configuration determines which permission types are logged, and
   461  // what
   462  // identities, if any, are exempted from logging.
   463  // An AuditConfig must have one or more AuditLogConfigs.
   464  //
   465  // If there are AuditConfigs for both `allServices` and a specific
   466  // service,
   467  // the union of the two AuditConfigs is used for that service: the
   468  // log_types
   469  // specified in each AuditConfig are enabled, and the exempted_members
   470  // in each
   471  // AuditLogConfig are exempted.
   472  //
   473  // Example Policy with multiple AuditConfigs:
   474  //
   475  //	{
   476  //	  "audit_configs": [
   477  //	    {
   478  //	      "service": "allServices"
   479  //	      "audit_log_configs": [
   480  //	        {
   481  //	          "log_type": "DATA_READ",
   482  //	          "exempted_members": [
   483  //	            "user:jose@example.com"
   484  //	          ]
   485  //	        },
   486  //	        {
   487  //	          "log_type": "DATA_WRITE",
   488  //	        },
   489  //	        {
   490  //	          "log_type": "ADMIN_READ",
   491  //	        }
   492  //	      ]
   493  //	    },
   494  //	    {
   495  //	      "service": "sampleservice.googleapis.com"
   496  //	      "audit_log_configs": [
   497  //	        {
   498  //	          "log_type": "DATA_READ",
   499  //	        },
   500  //	        {
   501  //	          "log_type": "DATA_WRITE",
   502  //	          "exempted_members": [
   503  //	            "user:aliya@example.com"
   504  //	          ]
   505  //	        }
   506  //	      ]
   507  //	    }
   508  //	  ]
   509  //	}
   510  //
   511  // For sampleservice, this policy enables DATA_READ, DATA_WRITE and
   512  // ADMIN_READ
   513  // logging. It also exempts jose@example.com from DATA_READ logging,
   514  // and
   515  // aliya@example.com from DATA_WRITE logging.
   516  type AuditConfig struct {
   517  	// AuditLogConfigs: The configuration for logging of each type of
   518  	// permission.
   519  	AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"`
   520  
   521  	// Service: Specifies a service that will be enabled for audit
   522  	// logging.
   523  	// For example, `storage.googleapis.com`,
   524  	// `cloudsql.googleapis.com`.
   525  	// `allServices` is a special value that covers all services.
   526  	Service string `json:"service,omitempty"`
   527  
   528  	// ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to
   529  	// unconditionally include in API requests. By default, fields with
   530  	// empty values are omitted from API requests. However, any non-pointer,
   531  	// non-interface field appearing in ForceSendFields will be sent to the
   532  	// server regardless of whether the field is empty or not. This may be
   533  	// used to include empty fields in Patch requests.
   534  	ForceSendFields []string `json:"-"`
   535  
   536  	// NullFields is a list of field names (e.g. "AuditLogConfigs") to
   537  	// include in API requests with the JSON null value. By default, fields
   538  	// with empty values are omitted from API requests. However, any field
   539  	// with an empty value appearing in NullFields will be sent to the
   540  	// server as null. It is an error if a field in this list has a
   541  	// non-empty value. This may be used to include null fields in Patch
   542  	// requests.
   543  	NullFields []string `json:"-"`
   544  }
   545  
   546  func (s *AuditConfig) MarshalJSON() ([]byte, error) {
   547  	type NoMethod AuditConfig
   548  	raw := NoMethod(*s)
   549  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
   550  }
   551  
   552  // AuditLogConfig: Provides the configuration for logging a type of
   553  // permissions.
   554  // Example:
   555  //
   556  //	{
   557  //	  "audit_log_configs": [
   558  //	    {
   559  //	      "log_type": "DATA_READ",
   560  //	      "exempted_members": [
   561  //	        "user:jose@example.com"
   562  //	      ]
   563  //	    },
   564  //	    {
   565  //	      "log_type": "DATA_WRITE",
   566  //	    }
   567  //	  ]
   568  //	}
   569  //
   570  // This enables 'DATA_READ' and 'DATA_WRITE' logging, while
   571  // exempting
   572  // jose@example.com from DATA_READ logging.
   573  type AuditLogConfig struct {
   574  	// ExemptedMembers: Specifies the identities that do not cause logging
   575  	// for this type of
   576  	// permission.
   577  	// Follows the same format of Binding.members.
   578  	ExemptedMembers []string `json:"exemptedMembers,omitempty"`
   579  
   580  	// LogType: The log type that this config enables.
   581  	//
   582  	// Possible values:
   583  	//   "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this.
   584  	//   "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy
   585  	//   "DATA_WRITE" - Data writes. Example: CloudSQL Users create
   586  	//   "DATA_READ" - Data reads. Example: CloudSQL Users list
   587  	LogType string `json:"logType,omitempty"`
   588  
   589  	// ForceSendFields is a list of field names (e.g. "ExemptedMembers") to
   590  	// unconditionally include in API requests. By default, fields with
   591  	// empty values are omitted from API requests. However, any non-pointer,
   592  	// non-interface field appearing in ForceSendFields will be sent to the
   593  	// server regardless of whether the field is empty or not. This may be
   594  	// used to include empty fields in Patch requests.
   595  	ForceSendFields []string `json:"-"`
   596  
   597  	// NullFields is a list of field names (e.g. "ExemptedMembers") to
   598  	// include in API requests with the JSON null value. By default, fields
   599  	// with empty values are omitted from API requests. However, any field
   600  	// with an empty value appearing in NullFields will be sent to the
   601  	// server as null. It is an error if a field in this list has a
   602  	// non-empty value. This may be used to include null fields in Patch
   603  	// requests.
   604  	NullFields []string `json:"-"`
   605  }
   606  
   607  func (s *AuditLogConfig) MarshalJSON() ([]byte, error) {
   608  	type NoMethod AuditLogConfig
   609  	raw := NoMethod(*s)
   610  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
   611  }
   612  
   613  // Binding: Associates `members` with a `role`.
   614  type Binding struct {
   615  	// Condition: The condition that is associated with this binding.
   616  	// NOTE: An unsatisfied condition will not allow user access via
   617  	// current
   618  	// binding. Different bindings, including their conditions, are
   619  	// examined
   620  	// independently.
   621  	Condition *Expr `json:"condition,omitempty"`
   622  
   623  	// Members: Specifies the identities requesting access for a Cloud
   624  	// Platform resource.
   625  	// `members` can have the following values:
   626  	//
   627  	// * `allUsers`: A special identifier that represents anyone who is
   628  	//    on the internet; with or without a Google account.
   629  	//
   630  	// * `allAuthenticatedUsers`: A special identifier that represents
   631  	// anyone
   632  	//    who is authenticated with a Google account or a service
   633  	// account.
   634  	//
   635  	// * `user:{emailid}`: An email address that represents a specific
   636  	// Google
   637  	//    account. For example, `alice@example.com` .
   638  	//
   639  	//
   640  	// * `serviceAccount:{emailid}`: An email address that represents a
   641  	// service
   642  	//    account. For example,
   643  	// `my-other-app@appspot.gserviceaccount.com`.
   644  	//
   645  	// * `group:{emailid}`: An email address that represents a Google
   646  	// group.
   647  	//    For example, `admins@example.com`.
   648  	//
   649  	//
   650  	// * `domain:{domain}`: The G Suite domain (primary) that represents all
   651  	// the
   652  	//    users of that domain. For example, `google.com` or
   653  	// `example.com`.
   654  	//
   655  	//
   656  	Members []string `json:"members,omitempty"`
   657  
   658  	// Role: Role that is assigned to `members`.
   659  	// For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
   660  	Role string `json:"role,omitempty"`
   661  
   662  	// ForceSendFields is a list of field names (e.g. "Condition") to
   663  	// unconditionally include in API requests. By default, fields with
   664  	// empty values are omitted from API requests. However, any non-pointer,
   665  	// non-interface field appearing in ForceSendFields will be sent to the
   666  	// server regardless of whether the field is empty or not. This may be
   667  	// used to include empty fields in Patch requests.
   668  	ForceSendFields []string `json:"-"`
   669  
   670  	// NullFields is a list of field names (e.g. "Condition") to include in
   671  	// API requests with the JSON null value. By default, fields with empty
   672  	// values are omitted from API requests. However, any field with an
   673  	// empty value appearing in NullFields will be sent to the server as
   674  	// null. It is an error if a field in this list has a non-empty value.
   675  	// This may be used to include null fields in Patch requests.
   676  	NullFields []string `json:"-"`
   677  }
   678  
   679  func (s *Binding) MarshalJSON() ([]byte, error) {
   680  	type NoMethod Binding
   681  	raw := NoMethod(*s)
   682  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
   683  }
   684  
   685  // BoundingPoly: A bounding polygon for the detected image annotation.
   686  type BoundingPoly struct {
   687  	Label string `json:"label,omitempty"`
   688  
   689  	Vertices []*Vertex `json:"vertices,omitempty"`
   690  
   691  	// ForceSendFields is a list of field names (e.g. "Label") to
   692  	// unconditionally include in API requests. By default, fields with
   693  	// empty values are omitted from API requests. However, any non-pointer,
   694  	// non-interface field appearing in ForceSendFields will be sent to the
   695  	// server regardless of whether the field is empty or not. This may be
   696  	// used to include empty fields in Patch requests.
   697  	ForceSendFields []string `json:"-"`
   698  
   699  	// NullFields is a list of field names (e.g. "Label") to include in API
   700  	// requests with the JSON null value. By default, fields with empty
   701  	// values are omitted from API requests. However, any field with an
   702  	// empty value appearing in NullFields will be sent to the server as
   703  	// null. It is an error if a field in this list has a non-empty value.
   704  	// This may be used to include null fields in Patch requests.
   705  	NullFields []string `json:"-"`
   706  }
   707  
   708  func (s *BoundingPoly) MarshalJSON() ([]byte, error) {
   709  	type NoMethod BoundingPoly
   710  	raw := NoMethod(*s)
   711  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
   712  }
   713  
   714  // CharacterMaskConfig: Masks a string by replacing its characters with
   715  // a fixed character.
   716  type CharacterMaskConfig struct {
   717  	// MaskingCharacter: Character to mask the sensitive values. If not
   718  	// supplied, defaults to "*".
   719  	MaskingCharacter string `json:"maskingCharacter,omitempty"`
   720  
   721  	// ForceSendFields is a list of field names (e.g. "MaskingCharacter") to
   722  	// unconditionally include in API requests. By default, fields with
   723  	// empty values are omitted from API requests. However, any non-pointer,
   724  	// non-interface field appearing in ForceSendFields will be sent to the
   725  	// server regardless of whether the field is empty or not. This may be
   726  	// used to include empty fields in Patch requests.
   727  	ForceSendFields []string `json:"-"`
   728  
   729  	// NullFields is a list of field names (e.g. "MaskingCharacter") to
   730  	// include in API requests with the JSON null value. By default, fields
   731  	// with empty values are omitted from API requests. However, any field
   732  	// with an empty value appearing in NullFields will be sent to the
   733  	// server as null. It is an error if a field in this list has a
   734  	// non-empty value. This may be used to include null fields in Patch
   735  	// requests.
   736  	NullFields []string `json:"-"`
   737  }
   738  
   739  func (s *CharacterMaskConfig) MarshalJSON() ([]byte, error) {
   740  	type NoMethod CharacterMaskConfig
   741  	raw := NoMethod(*s)
   742  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
   743  }
   744  
   745  // CloudHealthcareSource: Cloud Healthcare API resource.
   746  type CloudHealthcareSource struct {
   747  	// Name: Full path of a Cloud Healthcare API resource.
   748  	Name string `json:"name,omitempty"`
   749  
   750  	// ForceSendFields is a list of field names (e.g. "Name") to
   751  	// unconditionally include in API requests. By default, fields with
   752  	// empty values are omitted from API requests. However, any non-pointer,
   753  	// non-interface field appearing in ForceSendFields will be sent to the
   754  	// server regardless of whether the field is empty or not. This may be
   755  	// used to include empty fields in Patch requests.
   756  	ForceSendFields []string `json:"-"`
   757  
   758  	// NullFields is a list of field names (e.g. "Name") to include in API
   759  	// requests with the JSON null value. By default, fields with empty
   760  	// values are omitted from API requests. However, any field with an
   761  	// empty value appearing in NullFields will be sent to the server as
   762  	// null. It is an error if a field in this list has a non-empty value.
   763  	// This may be used to include null fields in Patch requests.
   764  	NullFields []string `json:"-"`
   765  }
   766  
   767  func (s *CloudHealthcareSource) MarshalJSON() ([]byte, error) {
   768  	type NoMethod CloudHealthcareSource
   769  	raw := NoMethod(*s)
   770  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
   771  }
   772  
   773  // CreateMessageRequest: Creates a new message.
   774  type CreateMessageRequest struct {
   775  	// Message: HL7v2 message.
   776  	Message *Message `json:"message,omitempty"`
   777  
   778  	// ForceSendFields is a list of field names (e.g. "Message") to
   779  	// unconditionally include in API requests. By default, fields with
   780  	// empty values are omitted from API requests. However, any non-pointer,
   781  	// non-interface field appearing in ForceSendFields will be sent to the
   782  	// server regardless of whether the field is empty or not. This may be
   783  	// used to include empty fields in Patch requests.
   784  	ForceSendFields []string `json:"-"`
   785  
   786  	// NullFields is a list of field names (e.g. "Message") to include in
   787  	// API requests with the JSON null value. By default, fields with empty
   788  	// values are omitted from API requests. However, any field with an
   789  	// empty value appearing in NullFields will be sent to the server as
   790  	// null. It is an error if a field in this list has a non-empty value.
   791  	// This may be used to include null fields in Patch requests.
   792  	NullFields []string `json:"-"`
   793  }
   794  
   795  func (s *CreateMessageRequest) MarshalJSON() ([]byte, error) {
   796  	type NoMethod CreateMessageRequest
   797  	raw := NoMethod(*s)
   798  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
   799  }
   800  
   801  // CryptoHashConfig: Pseudonymization method that generates surrogates
   802  // using cryptographic
   803  // hashing. Uses SHA-256.
   804  // Outputs a base64-encoded representation of the hashed output.
   805  // For example, `L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=`.
   806  type CryptoHashConfig struct {
   807  	// CryptoKey: An AES 128/192/256 bit key. Causes the hash to be computed
   808  	// based on this
   809  	// key. A default key is generated for each Deidentify operation and
   810  	// is
   811  	// used when crypto_key is not specified.
   812  	CryptoKey string `json:"cryptoKey,omitempty"`
   813  
   814  	// ForceSendFields is a list of field names (e.g. "CryptoKey") to
   815  	// unconditionally include in API requests. By default, fields with
   816  	// empty values are omitted from API requests. However, any non-pointer,
   817  	// non-interface field appearing in ForceSendFields will be sent to the
   818  	// server regardless of whether the field is empty or not. This may be
   819  	// used to include empty fields in Patch requests.
   820  	ForceSendFields []string `json:"-"`
   821  
   822  	// NullFields is a list of field names (e.g. "CryptoKey") to include in
   823  	// API requests with the JSON null value. By default, fields with empty
   824  	// values are omitted from API requests. However, any field with an
   825  	// empty value appearing in NullFields will be sent to the server as
   826  	// null. It is an error if a field in this list has a non-empty value.
   827  	// This may be used to include null fields in Patch requests.
   828  	NullFields []string `json:"-"`
   829  }
   830  
   831  func (s *CryptoHashConfig) MarshalJSON() ([]byte, error) {
   832  	type NoMethod CryptoHashConfig
   833  	raw := NoMethod(*s)
   834  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
   835  }
   836  
   837  // Dataset: A message representing a health dataset.
   838  //
   839  // A health dataset represents a collection of healthcare data
   840  // pertaining to one
   841  // or more patients. This may include multiple modalities of healthcare
   842  // data,
   843  // such as electronic medical records or medical imaging data.
   844  type Dataset struct {
   845  	// Name: Output only. Resource name of the dataset, of the
   846  	// form
   847  	// `projects/{project_id}/locations/{location_id}/datasets/{dataset_
   848  	// id}`.
   849  	Name string `json:"name,omitempty"`
   850  
   851  	// TimeZone: The default timezone used by this dataset. Must be a either
   852  	// a valid IANA
   853  	// time zone name such as "America/New_York" or empty, which defaults to
   854  	// UTC.
   855  	// This is used for parsing times in resources (e.g., HL7 messages)
   856  	// where no
   857  	// explicit timezone is specified.
   858  	TimeZone string `json:"timeZone,omitempty"`
   859  
   860  	// ServerResponse contains the HTTP response code and headers from the
   861  	// server.
   862  	googleapi.ServerResponse `json:"-"`
   863  
   864  	// ForceSendFields is a list of field names (e.g. "Name") to
   865  	// unconditionally include in API requests. By default, fields with
   866  	// empty values are omitted from API requests. However, any non-pointer,
   867  	// non-interface field appearing in ForceSendFields will be sent to the
   868  	// server regardless of whether the field is empty or not. This may be
   869  	// used to include empty fields in Patch requests.
   870  	ForceSendFields []string `json:"-"`
   871  
   872  	// NullFields is a list of field names (e.g. "Name") to include in API
   873  	// requests with the JSON null value. By default, fields with empty
   874  	// values are omitted from API requests. However, any field with an
   875  	// empty value appearing in NullFields will be sent to the server as
   876  	// null. It is an error if a field in this list has a non-empty value.
   877  	// This may be used to include null fields in Patch requests.
   878  	NullFields []string `json:"-"`
   879  }
   880  
   881  func (s *Dataset) MarshalJSON() ([]byte, error) {
   882  	type NoMethod Dataset
   883  	raw := NoMethod(*s)
   884  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
   885  }
   886  
   887  // DateShiftConfig: Shifts a date forward or backward in time by a
   888  // random amount that is
   889  // consistent for a given patient and crypto key combination.
   890  type DateShiftConfig struct {
   891  	// CryptoKey: An AES 128/192/256 bit key. Causes the shift to be
   892  	// computed based on this
   893  	// key and the patient ID. A default key is generated for
   894  	// each
   895  	// de-identification operation and is used when crypto_key is
   896  	// not
   897  	// specified.
   898  	CryptoKey string `json:"cryptoKey,omitempty"`
   899  
   900  	// ForceSendFields is a list of field names (e.g. "CryptoKey") to
   901  	// unconditionally include in API requests. By default, fields with
   902  	// empty values are omitted from API requests. However, any non-pointer,
   903  	// non-interface field appearing in ForceSendFields will be sent to the
   904  	// server regardless of whether the field is empty or not. This may be
   905  	// used to include empty fields in Patch requests.
   906  	ForceSendFields []string `json:"-"`
   907  
   908  	// NullFields is a list of field names (e.g. "CryptoKey") to include in
   909  	// API requests with the JSON null value. By default, fields with empty
   910  	// values are omitted from API requests. However, any field with an
   911  	// empty value appearing in NullFields will be sent to the server as
   912  	// null. It is an error if a field in this list has a non-empty value.
   913  	// This may be used to include null fields in Patch requests.
   914  	NullFields []string `json:"-"`
   915  }
   916  
   917  func (s *DateShiftConfig) MarshalJSON() ([]byte, error) {
   918  	type NoMethod DateShiftConfig
   919  	raw := NoMethod(*s)
   920  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
   921  }
   922  
   923  // DeidentifyConfig: Configures de-id options specific to different
   924  // types of content.
   925  // Each submessage customizes the handling of
   926  // an
   927  // https://tools.ietf.org/html/rfc6838 media type or subtype. Configs
   928  // are
   929  // applied in a nested manner at runtime.
   930  type DeidentifyConfig struct {
   931  	// Dicom: Configures de-id of application/DICOM content.
   932  	Dicom *DicomConfig `json:"dicom,omitempty"`
   933  
   934  	// Fhir: Configures de-id of application/FHIR content.
   935  	Fhir *FhirConfig `json:"fhir,omitempty"`
   936  
   937  	// Image: Configures the de-identification of image pixels in the
   938  	// source_dataset.
   939  	Image *ImageConfig `json:"image,omitempty"`
   940  
   941  	// Text: Configures the de-identification of text in `source_dataset`.
   942  	Text *TextConfig `json:"text,omitempty"`
   943  
   944  	// ForceSendFields is a list of field names (e.g. "Dicom") to
   945  	// unconditionally include in API requests. By default, fields with
   946  	// empty values are omitted from API requests. However, any non-pointer,
   947  	// non-interface field appearing in ForceSendFields will be sent to the
   948  	// server regardless of whether the field is empty or not. This may be
   949  	// used to include empty fields in Patch requests.
   950  	ForceSendFields []string `json:"-"`
   951  
   952  	// NullFields is a list of field names (e.g. "Dicom") to include in API
   953  	// requests with the JSON null value. By default, fields with empty
   954  	// values are omitted from API requests. However, any field with an
   955  	// empty value appearing in NullFields will be sent to the server as
   956  	// null. It is an error if a field in this list has a non-empty value.
   957  	// This may be used to include null fields in Patch requests.
   958  	NullFields []string `json:"-"`
   959  }
   960  
   961  func (s *DeidentifyConfig) MarshalJSON() ([]byte, error) {
   962  	type NoMethod DeidentifyConfig
   963  	raw := NoMethod(*s)
   964  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
   965  }
   966  
   967  // DeidentifyDatasetRequest: Redacts identifying information from the
   968  // specified dataset.
   969  type DeidentifyDatasetRequest struct {
   970  	// Config: Deidentify configuration.
   971  	Config *DeidentifyConfig `json:"config,omitempty"`
   972  
   973  	// DestinationDataset: The name of the dataset resource to create and
   974  	// write the redacted data
   975  	// to
   976  	// (e.g.,
   977  	// `projects/{project_id}/locations/{location_id}/datasets/{dat
   978  	// aset_id}`).
   979  	//
   980  	//  * The destination dataset must not exist.
   981  	//  * The destination dataset must be in the same project as the source
   982  	//    dataset. De-identifying data across multiple projects is not
   983  	// supported.
   984  	DestinationDataset string `json:"destinationDataset,omitempty"`
   985  
   986  	// ForceSendFields is a list of field names (e.g. "Config") to
   987  	// unconditionally include in API requests. By default, fields with
   988  	// empty values are omitted from API requests. However, any non-pointer,
   989  	// non-interface field appearing in ForceSendFields will be sent to the
   990  	// server regardless of whether the field is empty or not. This may be
   991  	// used to include empty fields in Patch requests.
   992  	ForceSendFields []string `json:"-"`
   993  
   994  	// NullFields is a list of field names (e.g. "Config") to include in API
   995  	// requests with the JSON null value. By default, fields with empty
   996  	// values are omitted from API requests. However, any field with an
   997  	// empty value appearing in NullFields will be sent to the server as
   998  	// null. It is an error if a field in this list has a non-empty value.
   999  	// This may be used to include null fields in Patch requests.
  1000  	NullFields []string `json:"-"`
  1001  }
  1002  
  1003  func (s *DeidentifyDatasetRequest) MarshalJSON() ([]byte, error) {
  1004  	type NoMethod DeidentifyDatasetRequest
  1005  	raw := NoMethod(*s)
  1006  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1007  }
  1008  
  1009  // DeidentifyErrorDetails: Contains the status of the Deidentify
  1010  // operation.
  1011  type DeidentifyErrorDetails struct {
  1012  	// FailureResourceCount: Number of resources failed to process.
  1013  	FailureResourceCount int64 `json:"failureResourceCount,omitempty,string"`
  1014  
  1015  	// FailureStoreCount: Number of stores failed to process.
  1016  	FailureStoreCount int64 `json:"failureStoreCount,omitempty,string"`
  1017  
  1018  	// SuccessResourceCount: Number of resources successfully processed.
  1019  	SuccessResourceCount int64 `json:"successResourceCount,omitempty,string"`
  1020  
  1021  	// SuccessStoreCount: Number of stores successfully processed.
  1022  	SuccessStoreCount int64 `json:"successStoreCount,omitempty,string"`
  1023  
  1024  	// ForceSendFields is a list of field names (e.g.
  1025  	// "FailureResourceCount") to unconditionally include in API requests.
  1026  	// By default, fields with empty values are omitted from API requests.
  1027  	// However, any non-pointer, non-interface field appearing in
  1028  	// ForceSendFields will be sent to the server regardless of whether the
  1029  	// field is empty or not. This may be used to include empty fields in
  1030  	// Patch requests.
  1031  	ForceSendFields []string `json:"-"`
  1032  
  1033  	// NullFields is a list of field names (e.g. "FailureResourceCount") to
  1034  	// include in API requests with the JSON null value. By default, fields
  1035  	// with empty values are omitted from API requests. However, any field
  1036  	// with an empty value appearing in NullFields will be sent to the
  1037  	// server as null. It is an error if a field in this list has a
  1038  	// non-empty value. This may be used to include null fields in Patch
  1039  	// requests.
  1040  	NullFields []string `json:"-"`
  1041  }
  1042  
  1043  func (s *DeidentifyErrorDetails) MarshalJSON() ([]byte, error) {
  1044  	type NoMethod DeidentifyErrorDetails
  1045  	raw := NoMethod(*s)
  1046  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1047  }
  1048  
  1049  // DeidentifySummary: Contains a detailed summary of the Deidentify
  1050  // operation.
  1051  type DeidentifySummary struct {
  1052  	// SuccessResourceCount: Number of resources successfully processed.
  1053  	SuccessResourceCount int64 `json:"successResourceCount,omitempty,string"`
  1054  
  1055  	// SuccessStoreCount: Number of stores successfully processed.
  1056  	SuccessStoreCount int64 `json:"successStoreCount,omitempty,string"`
  1057  
  1058  	// ForceSendFields is a list of field names (e.g.
  1059  	// "SuccessResourceCount") to unconditionally include in API requests.
  1060  	// By default, fields with empty values are omitted from API requests.
  1061  	// However, any non-pointer, non-interface field appearing in
  1062  	// ForceSendFields will be sent to the server regardless of whether the
  1063  	// field is empty or not. This may be used to include empty fields in
  1064  	// Patch requests.
  1065  	ForceSendFields []string `json:"-"`
  1066  
  1067  	// NullFields is a list of field names (e.g. "SuccessResourceCount") to
  1068  	// include in API requests with the JSON null value. By default, fields
  1069  	// with empty values are omitted from API requests. However, any field
  1070  	// with an empty value appearing in NullFields will be sent to the
  1071  	// server as null. It is an error if a field in this list has a
  1072  	// non-empty value. This may be used to include null fields in Patch
  1073  	// requests.
  1074  	NullFields []string `json:"-"`
  1075  }
  1076  
  1077  func (s *DeidentifySummary) MarshalJSON() ([]byte, error) {
  1078  	type NoMethod DeidentifySummary
  1079  	raw := NoMethod(*s)
  1080  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1081  }
  1082  
  1083  // Detail: Contains multiple sensitive information findings for each
  1084  // resource slice.
  1085  type Detail struct {
  1086  	Findings []*Finding `json:"findings,omitempty"`
  1087  
  1088  	// ForceSendFields is a list of field names (e.g. "Findings") to
  1089  	// unconditionally include in API requests. By default, fields with
  1090  	// empty values are omitted from API requests. However, any non-pointer,
  1091  	// non-interface field appearing in ForceSendFields will be sent to the
  1092  	// server regardless of whether the field is empty or not. This may be
  1093  	// used to include empty fields in Patch requests.
  1094  	ForceSendFields []string `json:"-"`
  1095  
  1096  	// NullFields is a list of field names (e.g. "Findings") to include in
  1097  	// API requests with the JSON null value. By default, fields with empty
  1098  	// values are omitted from API requests. However, any field with an
  1099  	// empty value appearing in NullFields will be sent to the server as
  1100  	// null. It is an error if a field in this list has a non-empty value.
  1101  	// This may be used to include null fields in Patch requests.
  1102  	NullFields []string `json:"-"`
  1103  }
  1104  
  1105  func (s *Detail) MarshalJSON() ([]byte, error) {
  1106  	type NoMethod Detail
  1107  	raw := NoMethod(*s)
  1108  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1109  }
  1110  
  1111  // DicomConfig: Specifies the parameters needed for the
  1112  // de-identification of DICOM stores.
  1113  type DicomConfig struct {
  1114  	// FilterProfile: Tag filtering profile that determines the tags to keep
  1115  	// or remove.
  1116  	//
  1117  	// Possible values:
  1118  	//   "TAG_FILTER_PROFILE_UNSPECIFIED" - No tag filtration profile
  1119  	// provided. Same as KEEP_ALL_PROFILE.
  1120  	//   "MINIMAL_KEEP_LIST_PROFILE" - Keep only tags required to produce
  1121  	// valid DICOM.
  1122  	//   "ATTRIBUTE_CONFIDENTIALITY_BASIC_PROFILE" - Remove tags based on
  1123  	// DICOM Standard's Attribute Confidentiality Basic
  1124  	// Profile (DICOM Standard Edition
  1125  	// 2018e)
  1126  	// http://dicom.nema.org/medical/dicom/2018e/output/chtml/part15/c
  1127  	// hapter_E.html.
  1128  	//   "KEEP_ALL_PROFILE" - Keep all tags.
  1129  	//   "DEIDENTIFY_TAG_CONTENTS" - Inspects within tag contents and
  1130  	// replaces sensitive text. The process
  1131  	// can be configured using the TextConfig.
  1132  	// Applies to all tags with the following Value Representation
  1133  	// names:
  1134  	// AE, LO, LT, PN, SH, ST, UC, UT, DA, DT, AS.
  1135  	FilterProfile string `json:"filterProfile,omitempty"`
  1136  
  1137  	// KeepList: List of tags to keep. Remove all other tags.
  1138  	KeepList *TagFilterList `json:"keepList,omitempty"`
  1139  
  1140  	// RemoveList: List of tags to remove. Keep all other tags.
  1141  	RemoveList *TagFilterList `json:"removeList,omitempty"`
  1142  
  1143  	// ForceSendFields is a list of field names (e.g. "FilterProfile") to
  1144  	// unconditionally include in API requests. By default, fields with
  1145  	// empty values are omitted from API requests. However, any non-pointer,
  1146  	// non-interface field appearing in ForceSendFields will be sent to the
  1147  	// server regardless of whether the field is empty or not. This may be
  1148  	// used to include empty fields in Patch requests.
  1149  	ForceSendFields []string `json:"-"`
  1150  
  1151  	// NullFields is a list of field names (e.g. "FilterProfile") to include
  1152  	// in API requests with the JSON null value. By default, fields with
  1153  	// empty values are omitted from API requests. However, any field with
  1154  	// an empty value appearing in NullFields will be sent to the server as
  1155  	// null. It is an error if a field in this list has a non-empty value.
  1156  	// This may be used to include null fields in Patch requests.
  1157  	NullFields []string `json:"-"`
  1158  }
  1159  
  1160  func (s *DicomConfig) MarshalJSON() ([]byte, error) {
  1161  	type NoMethod DicomConfig
  1162  	raw := NoMethod(*s)
  1163  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1164  }
  1165  
  1166  // DicomStore: Represents a DICOM store.
  1167  type DicomStore struct {
  1168  	// Labels: User-supplied key-value pairs used to organize DICOM
  1169  	// stores.
  1170  	//
  1171  	// Label keys must be between 1 and 63 characters long, have a UTF-8
  1172  	// encoding
  1173  	// of maximum 128 bytes, and must conform to the
  1174  	// following PCRE regular expression:
  1175  	// \p{Ll}\p{Lo}{0,62}
  1176  	//
  1177  	// Label values are optional, must be between 1 and 63 characters long,
  1178  	// have
  1179  	// a UTF-8 encoding of maximum 128 bytes, and must conform to
  1180  	// the
  1181  	// following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
  1182  	//
  1183  	// No more than 64 labels can be associated with a given store.
  1184  	Labels map[string]string `json:"labels,omitempty"`
  1185  
  1186  	// Name: Output only. Resource name of the DICOM store, of the
  1187  	// form
  1188  	// `projects/{project_id}/locations/{location_id}/datasets/{dataset_
  1189  	// id}/dicomStores/{dicom_store_id}`.
  1190  	Name string `json:"name,omitempty"`
  1191  
  1192  	// NotificationConfig: Notification destination for new DICOM
  1193  	// instances.
  1194  	// Supplied by the client.
  1195  	NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"`
  1196  
  1197  	// ServerResponse contains the HTTP response code and headers from the
  1198  	// server.
  1199  	googleapi.ServerResponse `json:"-"`
  1200  
  1201  	// ForceSendFields is a list of field names (e.g. "Labels") to
  1202  	// unconditionally include in API requests. By default, fields with
  1203  	// empty values are omitted from API requests. However, any non-pointer,
  1204  	// non-interface field appearing in ForceSendFields will be sent to the
  1205  	// server regardless of whether the field is empty or not. This may be
  1206  	// used to include empty fields in Patch requests.
  1207  	ForceSendFields []string `json:"-"`
  1208  
  1209  	// NullFields is a list of field names (e.g. "Labels") to include in API
  1210  	// requests with the JSON null value. By default, fields with empty
  1211  	// values are omitted from API requests. However, any field with an
  1212  	// empty value appearing in NullFields will be sent to the server as
  1213  	// null. It is an error if a field in this list has a non-empty value.
  1214  	// This may be used to include null fields in Patch requests.
  1215  	NullFields []string `json:"-"`
  1216  }
  1217  
  1218  func (s *DicomStore) MarshalJSON() ([]byte, error) {
  1219  	type NoMethod DicomStore
  1220  	raw := NoMethod(*s)
  1221  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1222  }
  1223  
  1224  // Empty: A generic empty message that you can re-use to avoid defining
  1225  // duplicated
  1226  // empty messages in your APIs. A typical example is to use it as the
  1227  // request
  1228  // or the response type of an API method. For instance:
  1229  //
  1230  //	service Foo {
  1231  //	  rpc Bar(google.protobuf.Empty) returns
  1232  //
  1233  // (google.protobuf.Empty);
  1234  //
  1235  //	}
  1236  //
  1237  // The JSON representation for `Empty` is empty JSON object `{}`.
  1238  type Empty struct {
  1239  	// ServerResponse contains the HTTP response code and headers from the
  1240  	// server.
  1241  	googleapi.ServerResponse `json:"-"`
  1242  }
  1243  
  1244  // ErrorDetail: Structure to describe the error encountered during batch
  1245  // operation on one
  1246  // resource. This is used both for sample errors in operation response,
  1247  // and
  1248  // for format of errors in error reports.
  1249  type ErrorDetail struct {
  1250  	// Error: The status of the error.
  1251  	Error *Status `json:"error,omitempty"`
  1252  
  1253  	// Resource: The identifier of the resource.
  1254  	Resource string `json:"resource,omitempty"`
  1255  
  1256  	// ForceSendFields is a list of field names (e.g. "Error") to
  1257  	// unconditionally include in API requests. By default, fields with
  1258  	// empty values are omitted from API requests. However, any non-pointer,
  1259  	// non-interface field appearing in ForceSendFields will be sent to the
  1260  	// server regardless of whether the field is empty or not. This may be
  1261  	// used to include empty fields in Patch requests.
  1262  	ForceSendFields []string `json:"-"`
  1263  
  1264  	// NullFields is a list of field names (e.g. "Error") to include in API
  1265  	// requests with the JSON null value. By default, fields with empty
  1266  	// values are omitted from API requests. However, any field with an
  1267  	// empty value appearing in NullFields will be sent to the server as
  1268  	// null. It is an error if a field in this list has a non-empty value.
  1269  	// This may be used to include null fields in Patch requests.
  1270  	NullFields []string `json:"-"`
  1271  }
  1272  
  1273  func (s *ErrorDetail) MarshalJSON() ([]byte, error) {
  1274  	type NoMethod ErrorDetail
  1275  	raw := NoMethod(*s)
  1276  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1277  }
  1278  
  1279  // ExportDicomDataRequest: Exports data from the specified DICOM
  1280  // store.
  1281  // If a given resource (e.g., a DICOM object with the same SOPInstance
  1282  // UID)
  1283  // already exists in the output, it is overwritten with the version
  1284  // in the source dataset.
  1285  // Exported DICOM data will persist when the DICOM store from which it
  1286  // was
  1287  // exported is deleted.
  1288  type ExportDicomDataRequest struct {
  1289  	// BigqueryDestination: The BigQuery output destination.
  1290  	//
  1291  	// You can only export to a BigQuery dataset that's in the same project
  1292  	// as
  1293  	// the DICOM store you're exporting from.
  1294  	//
  1295  	// The BigQuery location requires two IAM
  1296  	// roles:
  1297  	// `roles/bigquery.dataEditor` and `roles/bigquery.jobUser`.
  1298  	BigqueryDestination *GoogleCloudHealthcareV1alpha2DicomBigQueryDestination `json:"bigqueryDestination,omitempty"`
  1299  
  1300  	// GcsDestination: The Cloud Storage output destination.
  1301  	//
  1302  	// The Cloud Storage location requires the `roles/storage.objectAdmin`
  1303  	// Cloud
  1304  	// IAM role.
  1305  	GcsDestination *GoogleCloudHealthcareV1alpha2DicomGcsDestination `json:"gcsDestination,omitempty"`
  1306  
  1307  	// ForceSendFields is a list of field names (e.g. "BigqueryDestination")
  1308  	// to unconditionally include in API requests. By default, fields with
  1309  	// empty values are omitted from API requests. However, any non-pointer,
  1310  	// non-interface field appearing in ForceSendFields will be sent to the
  1311  	// server regardless of whether the field is empty or not. This may be
  1312  	// used to include empty fields in Patch requests.
  1313  	ForceSendFields []string `json:"-"`
  1314  
  1315  	// NullFields is a list of field names (e.g. "BigqueryDestination") to
  1316  	// include in API requests with the JSON null value. By default, fields
  1317  	// with empty values are omitted from API requests. However, any field
  1318  	// with an empty value appearing in NullFields will be sent to the
  1319  	// server as null. It is an error if a field in this list has a
  1320  	// non-empty value. This may be used to include null fields in Patch
  1321  	// requests.
  1322  	NullFields []string `json:"-"`
  1323  }
  1324  
  1325  func (s *ExportDicomDataRequest) MarshalJSON() ([]byte, error) {
  1326  	type NoMethod ExportDicomDataRequest
  1327  	raw := NoMethod(*s)
  1328  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1329  }
  1330  
  1331  // ExportResourcesRequest: Request to export resources.
  1332  type ExportResourcesRequest struct {
  1333  	// BigqueryDestination: The BigQuery output destination.
  1334  	//
  1335  	// The BigQuery location requires two IAM
  1336  	// roles:
  1337  	// `roles/bigquery.dataEditor` and `roles/bigquery.jobUser`.
  1338  	//
  1339  	// The output will be one BigQuery table per resource type.
  1340  	BigqueryDestination *GoogleCloudHealthcareV1alpha2FhirBigQueryDestination `json:"bigqueryDestination,omitempty"`
  1341  
  1342  	// GcsDestination: The Cloud Storage output destination.
  1343  	//
  1344  	// The Cloud Storage location requires the `roles/storage.objectAdmin`
  1345  	// Cloud
  1346  	// IAM role.
  1347  	//
  1348  	// The exported outputs are
  1349  	// organized by FHIR resource types. The server will create one object
  1350  	// per
  1351  	// resource type. Each object contains newline delimited JSON, and each
  1352  	// line
  1353  	// is a FHIR resource.
  1354  	GcsDestination *GoogleCloudHealthcareV1alpha2FhirRestGcsDestination `json:"gcsDestination,omitempty"`
  1355  
  1356  	// ForceSendFields is a list of field names (e.g. "BigqueryDestination")
  1357  	// to unconditionally include in API requests. By default, fields with
  1358  	// empty values are omitted from API requests. However, any non-pointer,
  1359  	// non-interface field appearing in ForceSendFields will be sent to the
  1360  	// server regardless of whether the field is empty or not. This may be
  1361  	// used to include empty fields in Patch requests.
  1362  	ForceSendFields []string `json:"-"`
  1363  
  1364  	// NullFields is a list of field names (e.g. "BigqueryDestination") to
  1365  	// include in API requests with the JSON null value. By default, fields
  1366  	// with empty values are omitted from API requests. However, any field
  1367  	// with an empty value appearing in NullFields will be sent to the
  1368  	// server as null. It is an error if a field in this list has a
  1369  	// non-empty value. This may be used to include null fields in Patch
  1370  	// requests.
  1371  	NullFields []string `json:"-"`
  1372  }
  1373  
  1374  func (s *ExportResourcesRequest) MarshalJSON() ([]byte, error) {
  1375  	type NoMethod ExportResourcesRequest
  1376  	raw := NoMethod(*s)
  1377  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1378  }
  1379  
  1380  // Expr: Represents an expression text. Example:
  1381  //
  1382  //	title: "User account presence"
  1383  //	description: "Determines whether the request has a user account"
  1384  //	expression: "size(request.user) > 0"
  1385  type Expr struct {
  1386  	// Description: An optional description of the expression. This is a
  1387  	// longer text which
  1388  	// describes the expression, e.g. when hovered over it in a UI.
  1389  	Description string `json:"description,omitempty"`
  1390  
  1391  	// Expression: Textual representation of an expression in
  1392  	// Common Expression Language syntax.
  1393  	//
  1394  	// The application context of the containing message determines
  1395  	// which
  1396  	// well-known feature set of CEL is supported.
  1397  	Expression string `json:"expression,omitempty"`
  1398  
  1399  	// Location: An optional string indicating the location of the
  1400  	// expression for error
  1401  	// reporting, e.g. a file name and a position in the file.
  1402  	Location string `json:"location,omitempty"`
  1403  
  1404  	// Title: An optional title for the expression, i.e. a short string
  1405  	// describing
  1406  	// its purpose. This can be used e.g. in UIs which allow to enter
  1407  	// the
  1408  	// expression.
  1409  	Title string `json:"title,omitempty"`
  1410  
  1411  	// ForceSendFields is a list of field names (e.g. "Description") to
  1412  	// unconditionally include in API requests. By default, fields with
  1413  	// empty values are omitted from API requests. However, any non-pointer,
  1414  	// non-interface field appearing in ForceSendFields will be sent to the
  1415  	// server regardless of whether the field is empty or not. This may be
  1416  	// used to include empty fields in Patch requests.
  1417  	ForceSendFields []string `json:"-"`
  1418  
  1419  	// NullFields is a list of field names (e.g. "Description") to include
  1420  	// in API requests with the JSON null value. By default, fields with
  1421  	// empty values are omitted from API requests. However, any field with
  1422  	// an empty value appearing in NullFields will be sent to the server as
  1423  	// null. It is an error if a field in this list has a non-empty value.
  1424  	// This may be used to include null fields in Patch requests.
  1425  	NullFields []string `json:"-"`
  1426  }
  1427  
  1428  func (s *Expr) MarshalJSON() ([]byte, error) {
  1429  	type NoMethod Expr
  1430  	raw := NoMethod(*s)
  1431  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1432  }
  1433  
  1434  // FhirConfig: Specifies how to handle the de-identification of a FHIR
  1435  // store.
  1436  type FhirConfig struct {
  1437  	// FieldMetadataList: Specifies FHIR paths to match and how to transform
  1438  	// them. Any field that
  1439  	// is not matched by a FieldMetadata is passed through to the
  1440  	// output
  1441  	// dataset unmodified. All extensions are removed in the output.
  1442  	FieldMetadataList []*FieldMetadata `json:"fieldMetadataList,omitempty"`
  1443  
  1444  	// ForceSendFields is a list of field names (e.g. "FieldMetadataList")
  1445  	// to unconditionally include in API requests. By default, fields with
  1446  	// empty values are omitted from API requests. However, any non-pointer,
  1447  	// non-interface field appearing in ForceSendFields will be sent to the
  1448  	// server regardless of whether the field is empty or not. This may be
  1449  	// used to include empty fields in Patch requests.
  1450  	ForceSendFields []string `json:"-"`
  1451  
  1452  	// NullFields is a list of field names (e.g. "FieldMetadataList") to
  1453  	// include in API requests with the JSON null value. By default, fields
  1454  	// with empty values are omitted from API requests. However, any field
  1455  	// with an empty value appearing in NullFields will be sent to the
  1456  	// server as null. It is an error if a field in this list has a
  1457  	// non-empty value. This may be used to include null fields in Patch
  1458  	// requests.
  1459  	NullFields []string `json:"-"`
  1460  }
  1461  
  1462  func (s *FhirConfig) MarshalJSON() ([]byte, error) {
  1463  	type NoMethod FhirConfig
  1464  	raw := NoMethod(*s)
  1465  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1466  }
  1467  
  1468  // FhirStore: Represents a FHIR store.
  1469  type FhirStore struct {
  1470  	// DisableReferentialIntegrity: Whether to disable referential integrity
  1471  	// in this FHIR store. This field is
  1472  	// immutable after FHIR store creation.
  1473  	// The default value is false, meaning that the API will enforce
  1474  	// referential
  1475  	// integrity and fail the requests that will result in inconsistent
  1476  	// state in
  1477  	// the FHIR store.
  1478  	// When this field is set to true, the API will skip referential
  1479  	// integrity
  1480  	// check. Consequently, operations that rely on references, such
  1481  	// as
  1482  	// GetPatientEverything, will not return all the results if broken
  1483  	// references
  1484  	// exist.
  1485  	DisableReferentialIntegrity bool `json:"disableReferentialIntegrity,omitempty"`
  1486  
  1487  	// DisableResourceVersioning: Whether to disable resource versioning for
  1488  	// this FHIR store. This field can
  1489  	// not be changed after the creation of FHIR store.
  1490  	// If set to false, which is the default behavior, all write operations
  1491  	// will
  1492  	// cause historical versions to be recorded automatically. The
  1493  	// historical
  1494  	// versions can be fetched through the history APIs, but cannot be
  1495  	// updated.
  1496  	// If set to true, no historical versions will be kept. The server will
  1497  	// send
  1498  	// back errors for attempts to read the historical versions.
  1499  	DisableResourceVersioning bool `json:"disableResourceVersioning,omitempty"`
  1500  
  1501  	// EnableHistoryImport: Whether to allow the bulk import API to accept
  1502  	// history bundles and directly
  1503  	// insert historical resource versions into the FHIR store. Importing
  1504  	// resource
  1505  	// histories creates resource interactions that appear to have occurred
  1506  	// in the
  1507  	// past, which clients may not want to allow. If set to false, history
  1508  	// bundles
  1509  	// within an import will fail with an error.
  1510  	EnableHistoryImport bool `json:"enableHistoryImport,omitempty"`
  1511  
  1512  	// EnableUpdateCreate: Whether this FHIR store has the
  1513  	// [updateCreate
  1514  	// capability](https://www.hl7.org/fhir/capabilitystatement
  1515  	// -definitions.html#CapabilityStatement.rest.resource.updateCreate).
  1516  	// Thi
  1517  	// s determines if the client can use an Update operation to create a
  1518  	// new
  1519  	// resource with a client-specified ID. If false, all IDs are
  1520  	// server-assigned
  1521  	// through the Create operation and attempts to Update a non-existent
  1522  	// resource
  1523  	// will return errors. Please treat the audit logs with appropriate
  1524  	// levels of
  1525  	// care if client-specified resource IDs contain sensitive data such
  1526  	// as
  1527  	// patient identifiers, those IDs will be part of the FHIR resource
  1528  	// path
  1529  	// recorded in Cloud audit logs and Cloud Pub/Sub notifications.
  1530  	EnableUpdateCreate bool `json:"enableUpdateCreate,omitempty"`
  1531  
  1532  	// Labels: User-supplied key-value pairs used to organize FHIR
  1533  	// stores.
  1534  	//
  1535  	// Label keys must be between 1 and 63 characters long, have a UTF-8
  1536  	// encoding
  1537  	// of maximum 128 bytes, and must conform to the
  1538  	// following PCRE regular expression:
  1539  	// \p{Ll}\p{Lo}{0,62}
  1540  	//
  1541  	// Label values are optional, must be between 1 and 63 characters long,
  1542  	// have
  1543  	// a UTF-8 encoding of maximum 128 bytes, and must conform to
  1544  	// the
  1545  	// following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
  1546  	//
  1547  	// No more than 64 labels can be associated with a given store.
  1548  	Labels map[string]string `json:"labels,omitempty"`
  1549  
  1550  	// Name: Output only. Resource name of the FHIR store, of the
  1551  	// form
  1552  	// `projects/{project_id}/datasets/{dataset_id}/fhirStores/{fhir_sto
  1553  	// re_id}`.
  1554  	Name string `json:"name,omitempty"`
  1555  
  1556  	// NotificationConfig: If non-empty, publish all resource modifications
  1557  	// of this FHIR store to
  1558  	// this destination. The Cloud Pub/Sub message attributes will contain a
  1559  	// map
  1560  	// with a string describing the action that has triggered the
  1561  	// notification,
  1562  	// e.g. "action":"CreateResource".
  1563  	NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"`
  1564  
  1565  	// StreamConfigs: A list of streaming configs that configure the
  1566  	// destinations of streaming
  1567  	// export for every resource mutation in this FHIR store. Each store
  1568  	// is
  1569  	// allowed to have up to 10 streaming configs.
  1570  	// After a new config is added, the next resource mutation will be
  1571  	// streamed to
  1572  	// the new location in addition to the existing ones.
  1573  	// When a location is removed from the list, the server will simply
  1574  	// stop
  1575  	// streaming to that location. Before adding a new config, you must add
  1576  	// the
  1577  	// required
  1578  	// [`bigquery.dataEditor`](https://cloud.google.com/bigquery
  1579  	// /docs/access-control#bigquery.dataEditor)
  1580  	// role to your project's **Cloud Healthcare Service Agent**
  1581  	// [service
  1582  	// account](https://cloud.google.com/iam/docs/service-accounts).
  1583  	// Some lag (typically on the order of dozens of seconds) is expected
  1584  	// before
  1585  	// the results show up in the streaming destination.
  1586  	StreamConfigs []*StreamConfig `json:"streamConfigs,omitempty"`
  1587  
  1588  	// SubscriptionConfig: Configuration of FHIR
  1589  	// Subscription:
  1590  	// https://www.hl7.org/fhir/subscription.html.
  1591  	SubscriptionConfig *SubscriptionConfig `json:"subscriptionConfig,omitempty"`
  1592  
  1593  	// ValidationConfig: Configuration for how incoming FHIR resources will
  1594  	// be validated against
  1595  	// configured profiles.
  1596  	ValidationConfig *ValidationConfig `json:"validationConfig,omitempty"`
  1597  
  1598  	// ServerResponse contains the HTTP response code and headers from the
  1599  	// server.
  1600  	googleapi.ServerResponse `json:"-"`
  1601  
  1602  	// ForceSendFields is a list of field names (e.g.
  1603  	// "DisableReferentialIntegrity") to unconditionally include in API
  1604  	// requests. By default, fields with empty values are omitted from API
  1605  	// requests. However, any non-pointer, non-interface field appearing in
  1606  	// ForceSendFields will be sent to the server regardless of whether the
  1607  	// field is empty or not. This may be used to include empty fields in
  1608  	// Patch requests.
  1609  	ForceSendFields []string `json:"-"`
  1610  
  1611  	// NullFields is a list of field names (e.g.
  1612  	// "DisableReferentialIntegrity") to include in API requests with the
  1613  	// JSON null value. By default, fields with empty values are omitted
  1614  	// from API requests. However, any field with an empty value appearing
  1615  	// in NullFields will be sent to the server as null. It is an error if a
  1616  	// field in this list has a non-empty value. This may be used to include
  1617  	// null fields in Patch requests.
  1618  	NullFields []string `json:"-"`
  1619  }
  1620  
  1621  func (s *FhirStore) MarshalJSON() ([]byte, error) {
  1622  	type NoMethod FhirStore
  1623  	raw := NoMethod(*s)
  1624  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1625  }
  1626  
  1627  // FieldMetadata: Specifies FHIR paths to match and how to handle the
  1628  // de-identification of
  1629  // matching fields.
  1630  type FieldMetadata struct {
  1631  	// Action: Deidentify action for one field.
  1632  	//
  1633  	// Possible values:
  1634  	//   "ACTION_UNSPECIFIED" - No action specified.
  1635  	//   "TRANSFORM" - Transform the entire field.
  1636  	//   "INSPECT_AND_TRANSFORM" - Inspect and transform any found PHI. When
  1637  	// `AnnotationConfig` is
  1638  	// provided, annotations of PHI are generated, except for Date and
  1639  	// Datetime.
  1640  	//   "DO_NOT_TRANSFORM" - Do not transform.
  1641  	Action string `json:"action,omitempty"`
  1642  
  1643  	// Paths: List of paths to FHIR fields to redact. Each path is
  1644  	// a
  1645  	// period-separated list where each component is either a field name
  1646  	// or
  1647  	// FHIR type name. For example: Patient, HumanName.
  1648  	// For "choice" types (those defined in the FHIR spec with the
  1649  	// form:
  1650  	// field[x]), use two separate components. For
  1651  	// example,
  1652  	// "deceasedAge.unit" is matched by "Deceased.Age.unit".
  1653  	// Supported types are: AdministrativeGenderCode, Code, Date,
  1654  	// DateTime,
  1655  	// Decimal, HumanName, Id, LanguageCode, Markdown, MimeTypeCode,
  1656  	// Oid,
  1657  	// String, Uri, Uuid, Xhtml.
  1658  	Paths []string `json:"paths,omitempty"`
  1659  
  1660  	// ForceSendFields is a list of field names (e.g. "Action") to
  1661  	// unconditionally include in API requests. By default, fields with
  1662  	// empty values are omitted from API requests. However, any non-pointer,
  1663  	// non-interface field appearing in ForceSendFields will be sent to the
  1664  	// server regardless of whether the field is empty or not. This may be
  1665  	// used to include empty fields in Patch requests.
  1666  	ForceSendFields []string `json:"-"`
  1667  
  1668  	// NullFields is a list of field names (e.g. "Action") to include in API
  1669  	// requests with the JSON null value. By default, fields with empty
  1670  	// values are omitted from API requests. However, any field with an
  1671  	// empty value appearing in NullFields will be sent to the server as
  1672  	// null. It is an error if a field in this list has a non-empty value.
  1673  	// This may be used to include null fields in Patch requests.
  1674  	NullFields []string `json:"-"`
  1675  }
  1676  
  1677  func (s *FieldMetadata) MarshalJSON() ([]byte, error) {
  1678  	type NoMethod FieldMetadata
  1679  	raw := NoMethod(*s)
  1680  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1681  }
  1682  
  1683  type Finding struct {
  1684  	// End: Zero-based ending index of the found text, exclusively.
  1685  	End int64 `json:"end,omitempty,string"`
  1686  
  1687  	// InfoType: The type of information stored in this text range (e.g.
  1688  	// HumanName,
  1689  	// BirthDate, Address, etc.)
  1690  	InfoType string `json:"infoType,omitempty"`
  1691  
  1692  	// Start: Zero-based starting index of the found text, inclusively.
  1693  	Start int64 `json:"start,omitempty,string"`
  1694  
  1695  	// ForceSendFields is a list of field names (e.g. "End") to
  1696  	// unconditionally include in API requests. By default, fields with
  1697  	// empty values are omitted from API requests. However, any non-pointer,
  1698  	// non-interface field appearing in ForceSendFields will be sent to the
  1699  	// server regardless of whether the field is empty or not. This may be
  1700  	// used to include empty fields in Patch requests.
  1701  	ForceSendFields []string `json:"-"`
  1702  
  1703  	// NullFields is a list of field names (e.g. "End") to include in API
  1704  	// requests with the JSON null value. By default, fields with empty
  1705  	// values are omitted from API requests. However, any field with an
  1706  	// empty value appearing in NullFields will be sent to the server as
  1707  	// null. It is an error if a field in this list has a non-empty value.
  1708  	// This may be used to include null fields in Patch requests.
  1709  	NullFields []string `json:"-"`
  1710  }
  1711  
  1712  func (s *Finding) MarshalJSON() ([]byte, error) {
  1713  	type NoMethod Finding
  1714  	raw := NoMethod(*s)
  1715  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1716  }
  1717  
  1718  // GetIamPolicyRequest: Request message for `GetIamPolicy` method.
  1719  type GetIamPolicyRequest struct {
  1720  	// Options: OPTIONAL: A `GetPolicyOptions` object for specifying options
  1721  	// to
  1722  	// `GetIamPolicy`. This field is only used by Cloud IAM.
  1723  	Options *GetPolicyOptions `json:"options,omitempty"`
  1724  
  1725  	// ForceSendFields is a list of field names (e.g. "Options") to
  1726  	// unconditionally include in API requests. By default, fields with
  1727  	// empty values are omitted from API requests. However, any non-pointer,
  1728  	// non-interface field appearing in ForceSendFields will be sent to the
  1729  	// server regardless of whether the field is empty or not. This may be
  1730  	// used to include empty fields in Patch requests.
  1731  	ForceSendFields []string `json:"-"`
  1732  
  1733  	// NullFields is a list of field names (e.g. "Options") to include in
  1734  	// API requests with the JSON null value. By default, fields with empty
  1735  	// values are omitted from API requests. However, any field with an
  1736  	// empty value appearing in NullFields will be sent to the server as
  1737  	// null. It is an error if a field in this list has a non-empty value.
  1738  	// This may be used to include null fields in Patch requests.
  1739  	NullFields []string `json:"-"`
  1740  }
  1741  
  1742  func (s *GetIamPolicyRequest) MarshalJSON() ([]byte, error) {
  1743  	type NoMethod GetIamPolicyRequest
  1744  	raw := NoMethod(*s)
  1745  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1746  }
  1747  
  1748  // GetPolicyOptions: Encapsulates settings provided to GetIamPolicy.
  1749  type GetPolicyOptions struct {
  1750  	// RequestedPolicyVersion: Optional. The policy format version to be
  1751  	// returned.
  1752  	// Acceptable values are 0, 1, and 3.
  1753  	// If the value is 0, or the field is omitted, policy format version 1
  1754  	// will be
  1755  	// returned.
  1756  	RequestedPolicyVersion int64 `json:"requestedPolicyVersion,omitempty"`
  1757  
  1758  	// ForceSendFields is a list of field names (e.g.
  1759  	// "RequestedPolicyVersion") to unconditionally include in API requests.
  1760  	// By default, fields with empty values are omitted from API requests.
  1761  	// However, any non-pointer, non-interface field appearing in
  1762  	// ForceSendFields will be sent to the server regardless of whether the
  1763  	// field is empty or not. This may be used to include empty fields in
  1764  	// Patch requests.
  1765  	ForceSendFields []string `json:"-"`
  1766  
  1767  	// NullFields is a list of field names (e.g. "RequestedPolicyVersion")
  1768  	// to include in API requests with the JSON null value. By default,
  1769  	// fields with empty values are omitted from API requests. However, any
  1770  	// field with an empty value appearing in NullFields will be sent to the
  1771  	// server as null. It is an error if a field in this list has a
  1772  	// non-empty value. This may be used to include null fields in Patch
  1773  	// requests.
  1774  	NullFields []string `json:"-"`
  1775  }
  1776  
  1777  func (s *GetPolicyOptions) MarshalJSON() ([]byte, error) {
  1778  	type NoMethod GetPolicyOptions
  1779  	raw := NoMethod(*s)
  1780  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1781  }
  1782  
  1783  // GoogleCloudHealthcareV1alpha2DicomBigQueryDestination: The BigQuery
  1784  // table where the output should be written.
  1785  type GoogleCloudHealthcareV1alpha2DicomBigQueryDestination struct {
  1786  	// Force: If the destination table already exists and this flag is
  1787  	// `TRUE`, the table
  1788  	// will be overwritten by the contents of the DICOM store. If the flag
  1789  	// is not
  1790  	// set and the destination table already exists, the export call returns
  1791  	// an
  1792  	// error.
  1793  	Force bool `json:"force,omitempty"`
  1794  
  1795  	// TableUri: BigQuery URI to a table, up to 2000 characters long, in the
  1796  	// format
  1797  	// `bq://projectId.bqDatasetId.tableId`
  1798  	TableUri string `json:"tableUri,omitempty"`
  1799  
  1800  	// ForceSendFields is a list of field names (e.g. "Force") to
  1801  	// unconditionally include in API requests. By default, fields with
  1802  	// empty values are omitted from API requests. However, any non-pointer,
  1803  	// non-interface field appearing in ForceSendFields will be sent to the
  1804  	// server regardless of whether the field is empty or not. This may be
  1805  	// used to include empty fields in Patch requests.
  1806  	ForceSendFields []string `json:"-"`
  1807  
  1808  	// NullFields is a list of field names (e.g. "Force") to include in API
  1809  	// requests with the JSON null value. By default, fields with empty
  1810  	// values are omitted from API requests. However, any field with an
  1811  	// empty value appearing in NullFields will be sent to the server as
  1812  	// null. It is an error if a field in this list has a non-empty value.
  1813  	// This may be used to include null fields in Patch requests.
  1814  	NullFields []string `json:"-"`
  1815  }
  1816  
  1817  func (s *GoogleCloudHealthcareV1alpha2DicomBigQueryDestination) MarshalJSON() ([]byte, error) {
  1818  	type NoMethod GoogleCloudHealthcareV1alpha2DicomBigQueryDestination
  1819  	raw := NoMethod(*s)
  1820  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1821  }
  1822  
  1823  // GoogleCloudHealthcareV1alpha2DicomGcsDestination: The Cloud Storage
  1824  // location where the output should be written, and the
  1825  // export
  1826  // configuration.
  1827  type GoogleCloudHealthcareV1alpha2DicomGcsDestination struct {
  1828  	// MimeType: MIME types supported by DICOM spec.
  1829  	// Each file will be written in the following
  1830  	// format:
  1831  	// `.../{study_id}/{series_id}/{instance_id}[/{frame_number}].{ex
  1832  	// tension}`
  1833  	// The frame_number component will exist only for multi-frame
  1834  	// instances.
  1835  	//
  1836  	// Refer to the DICOM conformance statement for permissible MIME
  1837  	// types:
  1838  	// https://cloud.google.com/healthcare/docs/dicom#wado-rs
  1839  	//
  1840  	// The following extensions will be used for output files:
  1841  	//   application/dicom -> .dcm
  1842  	//   image/jpeg -> .jpg
  1843  	//   image/png -> .png
  1844  	//
  1845  	// If unspecified, the instances will be exported in their
  1846  	// original
  1847  	// DICOM format.
  1848  	MimeType string `json:"mimeType,omitempty"`
  1849  
  1850  	// UriPrefix: The Cloud Storage destination to export to.
  1851  	//
  1852  	// URI for a Cloud Storage directory where result files should be
  1853  	// written (in
  1854  	// the format `gs://{bucket-id}/{path/to/destination/dir}`). If there is
  1855  	// no
  1856  	// trailing slash, the service will append one when composing the object
  1857  	// path.
  1858  	// The user is responsible for creating the Cloud Storage bucket
  1859  	// referenced in
  1860  	// `uri_prefix`.
  1861  	UriPrefix string `json:"uriPrefix,omitempty"`
  1862  
  1863  	// ForceSendFields is a list of field names (e.g. "MimeType") to
  1864  	// unconditionally include in API requests. By default, fields with
  1865  	// empty values are omitted from API requests. However, any non-pointer,
  1866  	// non-interface field appearing in ForceSendFields will be sent to the
  1867  	// server regardless of whether the field is empty or not. This may be
  1868  	// used to include empty fields in Patch requests.
  1869  	ForceSendFields []string `json:"-"`
  1870  
  1871  	// NullFields is a list of field names (e.g. "MimeType") to include in
  1872  	// API requests with the JSON null value. By default, fields with empty
  1873  	// values are omitted from API requests. However, any field with an
  1874  	// empty value appearing in NullFields will be sent to the server as
  1875  	// null. It is an error if a field in this list has a non-empty value.
  1876  	// This may be used to include null fields in Patch requests.
  1877  	NullFields []string `json:"-"`
  1878  }
  1879  
  1880  func (s *GoogleCloudHealthcareV1alpha2DicomGcsDestination) MarshalJSON() ([]byte, error) {
  1881  	type NoMethod GoogleCloudHealthcareV1alpha2DicomGcsDestination
  1882  	raw := NoMethod(*s)
  1883  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1884  }
  1885  
  1886  // GoogleCloudHealthcareV1alpha2DicomGcsSource: Specifies the
  1887  // configuration for importing data from Cloud Storage.
  1888  type GoogleCloudHealthcareV1alpha2DicomGcsSource struct {
  1889  	// Uri: Points to a Cloud Storage URI containing file(s) with
  1890  	// content only. The URI must be in the following
  1891  	// format:
  1892  	// `gs://{bucket_id}/{object_id}`. The URI can include wildcards
  1893  	// in
  1894  	// `object_id` and thus identify multiple files. Supported wildcards:
  1895  	//  '*' to match 0 or more non-separator characters
  1896  	//  '**' to match 0 or more characters (including separators). Must be
  1897  	// used at
  1898  	//       the end of a path and with no other wildcards in the
  1899  	//       path. Can also be used with a file extension (such as .dcm),
  1900  	// which
  1901  	//       imports all files with the extension in the specified directory
  1902  	// and
  1903  	//       its sub-directories. For example,
  1904  	//       `gs://my-bucket/my-directory/**.dcm` imports all files with
  1905  	// .dcm
  1906  	//       extensions in `my-directory/` and its sub-directories.
  1907  	//  '?' to match 1 character
  1908  	// All other URI formats are invalid.
  1909  	// Files matching the wildcard are expected to contain content only,
  1910  	// no
  1911  	// metadata.
  1912  	Uri string `json:"uri,omitempty"`
  1913  
  1914  	// ForceSendFields is a list of field names (e.g. "Uri") to
  1915  	// unconditionally include in API requests. By default, fields with
  1916  	// empty values are omitted from API requests. However, any non-pointer,
  1917  	// non-interface field appearing in ForceSendFields will be sent to the
  1918  	// server regardless of whether the field is empty or not. This may be
  1919  	// used to include empty fields in Patch requests.
  1920  	ForceSendFields []string `json:"-"`
  1921  
  1922  	// NullFields is a list of field names (e.g. "Uri") to include in API
  1923  	// requests with the JSON null value. By default, fields with empty
  1924  	// values are omitted from API requests. However, any field with an
  1925  	// empty value appearing in NullFields will be sent to the server as
  1926  	// null. It is an error if a field in this list has a non-empty value.
  1927  	// This may be used to include null fields in Patch requests.
  1928  	NullFields []string `json:"-"`
  1929  }
  1930  
  1931  func (s *GoogleCloudHealthcareV1alpha2DicomGcsSource) MarshalJSON() ([]byte, error) {
  1932  	type NoMethod GoogleCloudHealthcareV1alpha2DicomGcsSource
  1933  	raw := NoMethod(*s)
  1934  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1935  }
  1936  
  1937  // GoogleCloudHealthcareV1alpha2FhirBigQueryDestination: The
  1938  // configuration for exporting to BigQuery.
  1939  type GoogleCloudHealthcareV1alpha2FhirBigQueryDestination struct {
  1940  	// DatasetUri: BigQuery URI to a dataset, up to 2000 characters long, in
  1941  	// the format
  1942  	// `bq://projectId.bqDatasetId`
  1943  	DatasetUri string `json:"datasetUri,omitempty"`
  1944  
  1945  	// SchemaConfig: The configuration for the exported BigQuery schema.
  1946  	SchemaConfig *SchemaConfig `json:"schemaConfig,omitempty"`
  1947  
  1948  	// ForceSendFields is a list of field names (e.g. "DatasetUri") to
  1949  	// unconditionally include in API requests. By default, fields with
  1950  	// empty values are omitted from API requests. However, any non-pointer,
  1951  	// non-interface field appearing in ForceSendFields will be sent to the
  1952  	// server regardless of whether the field is empty or not. This may be
  1953  	// used to include empty fields in Patch requests.
  1954  	ForceSendFields []string `json:"-"`
  1955  
  1956  	// NullFields is a list of field names (e.g. "DatasetUri") to include in
  1957  	// API requests with the JSON null value. By default, fields with empty
  1958  	// values are omitted from API requests. However, any field with an
  1959  	// empty value appearing in NullFields will be sent to the server as
  1960  	// null. It is an error if a field in this list has a non-empty value.
  1961  	// This may be used to include null fields in Patch requests.
  1962  	NullFields []string `json:"-"`
  1963  }
  1964  
  1965  func (s *GoogleCloudHealthcareV1alpha2FhirBigQueryDestination) MarshalJSON() ([]byte, error) {
  1966  	type NoMethod GoogleCloudHealthcareV1alpha2FhirBigQueryDestination
  1967  	raw := NoMethod(*s)
  1968  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  1969  }
  1970  
  1971  // GoogleCloudHealthcareV1alpha2FhirRestExportResourcesErrorDetails:
  1972  // Response when errors occur while exporting resources.
  1973  // This structure is included in the
  1974  // error details to describe the
  1975  // detailed outcome. It is only included when the operation finishes
  1976  // with
  1977  // errors.
  1978  type GoogleCloudHealthcareV1alpha2FhirRestExportResourcesErrorDetails struct {
  1979  	// ErrorCount: The number of resources that had errors.
  1980  	ErrorCount int64 `json:"errorCount,omitempty,string"`
  1981  
  1982  	// FhirStore: The name of the FHIR store where resources have been
  1983  	// exported, in
  1984  	// the
  1985  	// format
  1986  	// `projects/{project_id}/locations/{location_id}/datasets/{da
  1987  	// taset_id}/fhirStores/{fhir_store_id}`.
  1988  	FhirStore string `json:"fhirStore,omitempty"`
  1989  
  1990  	// ResourceCount: The total number of resources included in the export
  1991  	// operation. This is
  1992  	// the sum of the success and error counts.
  1993  	ResourceCount int64 `json:"resourceCount,omitempty,string"`
  1994  
  1995  	// SuccessCount: The number of resources that were exported.
  1996  	SuccessCount int64 `json:"successCount,omitempty,string"`
  1997  
  1998  	// ForceSendFields is a list of field names (e.g. "ErrorCount") to
  1999  	// unconditionally include in API requests. By default, fields with
  2000  	// empty values are omitted from API requests. However, any non-pointer,
  2001  	// non-interface field appearing in ForceSendFields will be sent to the
  2002  	// server regardless of whether the field is empty or not. This may be
  2003  	// used to include empty fields in Patch requests.
  2004  	ForceSendFields []string `json:"-"`
  2005  
  2006  	// NullFields is a list of field names (e.g. "ErrorCount") to include in
  2007  	// API requests with the JSON null value. By default, fields with empty
  2008  	// values are omitted from API requests. However, any field with an
  2009  	// empty value appearing in NullFields will be sent to the server as
  2010  	// null. It is an error if a field in this list has a non-empty value.
  2011  	// This may be used to include null fields in Patch requests.
  2012  	NullFields []string `json:"-"`
  2013  }
  2014  
  2015  func (s *GoogleCloudHealthcareV1alpha2FhirRestExportResourcesErrorDetails) MarshalJSON() ([]byte, error) {
  2016  	type NoMethod GoogleCloudHealthcareV1alpha2FhirRestExportResourcesErrorDetails
  2017  	raw := NoMethod(*s)
  2018  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2019  }
  2020  
  2021  // GoogleCloudHealthcareV1alpha2FhirRestExportResourcesResponse:
  2022  // Response when all resources export successfully.
  2023  // This structure will be included in the
  2024  // response to describe the detailed
  2025  // outcome. It will only be included when the operation finishes
  2026  // successfully.
  2027  type GoogleCloudHealthcareV1alpha2FhirRestExportResourcesResponse struct {
  2028  	// FhirStore: The name of the FHIR store where resources have been
  2029  	// exported, in
  2030  	// the
  2031  	// format
  2032  	// `projects/{project_id}/locations/{location_id}/datasets/{da
  2033  	// taset_id}/fhirStores/{fhir_store_id}`.
  2034  	FhirStore string `json:"fhirStore,omitempty"`
  2035  
  2036  	// ResourceCount: The total number of resources exported from the
  2037  	// requested FHIR store.
  2038  	ResourceCount int64 `json:"resourceCount,omitempty,string"`
  2039  
  2040  	// ForceSendFields is a list of field names (e.g. "FhirStore") to
  2041  	// unconditionally include in API requests. By default, fields with
  2042  	// empty values are omitted from API requests. However, any non-pointer,
  2043  	// non-interface field appearing in ForceSendFields will be sent to the
  2044  	// server regardless of whether the field is empty or not. This may be
  2045  	// used to include empty fields in Patch requests.
  2046  	ForceSendFields []string `json:"-"`
  2047  
  2048  	// NullFields is a list of field names (e.g. "FhirStore") to include in
  2049  	// API requests with the JSON null value. By default, fields with empty
  2050  	// values are omitted from API requests. However, any field with an
  2051  	// empty value appearing in NullFields will be sent to the server as
  2052  	// null. It is an error if a field in this list has a non-empty value.
  2053  	// This may be used to include null fields in Patch requests.
  2054  	NullFields []string `json:"-"`
  2055  }
  2056  
  2057  func (s *GoogleCloudHealthcareV1alpha2FhirRestExportResourcesResponse) MarshalJSON() ([]byte, error) {
  2058  	type NoMethod GoogleCloudHealthcareV1alpha2FhirRestExportResourcesResponse
  2059  	raw := NoMethod(*s)
  2060  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2061  }
  2062  
  2063  // GoogleCloudHealthcareV1alpha2FhirRestGcsDestination: The
  2064  // configuration for exporting to Cloud Storage.
  2065  type GoogleCloudHealthcareV1alpha2FhirRestGcsDestination struct {
  2066  	// UriPrefix: URI for a Cloud Storage directory where result files
  2067  	// should be written (in
  2068  	// the format `gs://{bucket-id}/{path/to/destination/dir}`). If there is
  2069  	// no
  2070  	// trailing slash, the service will append one when composing the object
  2071  	// path.
  2072  	// The user is responsible for creating the Cloud Storage bucket
  2073  	// referenced in
  2074  	// `uri_prefix`.
  2075  	UriPrefix string `json:"uriPrefix,omitempty"`
  2076  
  2077  	// ForceSendFields is a list of field names (e.g. "UriPrefix") to
  2078  	// unconditionally include in API requests. By default, fields with
  2079  	// empty values are omitted from API requests. However, any non-pointer,
  2080  	// non-interface field appearing in ForceSendFields will be sent to the
  2081  	// server regardless of whether the field is empty or not. This may be
  2082  	// used to include empty fields in Patch requests.
  2083  	ForceSendFields []string `json:"-"`
  2084  
  2085  	// NullFields is a list of field names (e.g. "UriPrefix") to include in
  2086  	// API requests with the JSON null value. By default, fields with empty
  2087  	// values are omitted from API requests. However, any field with an
  2088  	// empty value appearing in NullFields will be sent to the server as
  2089  	// null. It is an error if a field in this list has a non-empty value.
  2090  	// This may be used to include null fields in Patch requests.
  2091  	NullFields []string `json:"-"`
  2092  }
  2093  
  2094  func (s *GoogleCloudHealthcareV1alpha2FhirRestGcsDestination) MarshalJSON() ([]byte, error) {
  2095  	type NoMethod GoogleCloudHealthcareV1alpha2FhirRestGcsDestination
  2096  	raw := NoMethod(*s)
  2097  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2098  }
  2099  
  2100  // GoogleCloudHealthcareV1alpha2FhirRestGcsErrorDestination: Specifies
  2101  // the Cloud Storage destination where errors will be recorded.
  2102  type GoogleCloudHealthcareV1alpha2FhirRestGcsErrorDestination struct {
  2103  	// UriPrefix: URI for a Cloud Storage directory to which error report
  2104  	// files should be
  2105  	// written (in the format `gs://{bucket-id}/{path/to/destination/dir}`).
  2106  	// If
  2107  	// there is no trailing slash, the service will append one when
  2108  	// composing the
  2109  	// object path. The user is responsible for creating the Cloud Storage
  2110  	// bucket
  2111  	// referenced in `uri_prefix`.
  2112  	UriPrefix string `json:"uriPrefix,omitempty"`
  2113  
  2114  	// ForceSendFields is a list of field names (e.g. "UriPrefix") to
  2115  	// unconditionally include in API requests. By default, fields with
  2116  	// empty values are omitted from API requests. However, any non-pointer,
  2117  	// non-interface field appearing in ForceSendFields will be sent to the
  2118  	// server regardless of whether the field is empty or not. This may be
  2119  	// used to include empty fields in Patch requests.
  2120  	ForceSendFields []string `json:"-"`
  2121  
  2122  	// NullFields is a list of field names (e.g. "UriPrefix") to include in
  2123  	// API requests with the JSON null value. By default, fields with empty
  2124  	// values are omitted from API requests. However, any field with an
  2125  	// empty value appearing in NullFields will be sent to the server as
  2126  	// null. It is an error if a field in this list has a non-empty value.
  2127  	// This may be used to include null fields in Patch requests.
  2128  	NullFields []string `json:"-"`
  2129  }
  2130  
  2131  func (s *GoogleCloudHealthcareV1alpha2FhirRestGcsErrorDestination) MarshalJSON() ([]byte, error) {
  2132  	type NoMethod GoogleCloudHealthcareV1alpha2FhirRestGcsErrorDestination
  2133  	raw := NoMethod(*s)
  2134  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2135  }
  2136  
  2137  // GoogleCloudHealthcareV1alpha2FhirRestGcsSource: Specifies the
  2138  // configuration for importing data from Cloud Storage.
  2139  type GoogleCloudHealthcareV1alpha2FhirRestGcsSource struct {
  2140  	// Uri: Points to a Cloud Storage URI containing file(s) to import.
  2141  	//
  2142  	// The URI must be in the following format:
  2143  	// `gs://{bucket_id}/{object_id}`.
  2144  	// The URI can include wildcards in `object_id` and thus identify
  2145  	// multiple
  2146  	// files. Supported wildcards:
  2147  	//
  2148  	// *  `*` to match 0 or more non-separator characters
  2149  	// *  `**` to match 0 or more characters (including separators). Must be
  2150  	// used
  2151  	// at the end of a path and with no other wildcards in the
  2152  	// path. Can also be used with a file extension (such as .ndjson),
  2153  	// which
  2154  	// imports all files with the extension in the specified directory
  2155  	// and
  2156  	// its sub-directories. For example,
  2157  	// `gs://my-bucket/my-directory/**.ndjson`
  2158  	// imports all files with `.ndjson` extensions in `my-directory/` and
  2159  	// its
  2160  	// sub-directories.
  2161  	// *  `?` to match 1 character
  2162  	//
  2163  	// Files matching the wildcard are expected to contain content only,
  2164  	// no
  2165  	// metadata.
  2166  	Uri string `json:"uri,omitempty"`
  2167  
  2168  	// ForceSendFields is a list of field names (e.g. "Uri") to
  2169  	// unconditionally include in API requests. By default, fields with
  2170  	// empty values are omitted from API requests. However, any non-pointer,
  2171  	// non-interface field appearing in ForceSendFields will be sent to the
  2172  	// server regardless of whether the field is empty or not. This may be
  2173  	// used to include empty fields in Patch requests.
  2174  	ForceSendFields []string `json:"-"`
  2175  
  2176  	// NullFields is a list of field names (e.g. "Uri") to include in API
  2177  	// requests with the JSON null value. By default, fields with empty
  2178  	// values are omitted from API requests. However, any field with an
  2179  	// empty value appearing in NullFields will be sent to the server as
  2180  	// null. It is an error if a field in this list has a non-empty value.
  2181  	// This may be used to include null fields in Patch requests.
  2182  	NullFields []string `json:"-"`
  2183  }
  2184  
  2185  func (s *GoogleCloudHealthcareV1alpha2FhirRestGcsSource) MarshalJSON() ([]byte, error) {
  2186  	type NoMethod GoogleCloudHealthcareV1alpha2FhirRestGcsSource
  2187  	raw := NoMethod(*s)
  2188  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2189  }
  2190  
  2191  // GoogleCloudHealthcareV1alpha2FhirRestImportResourcesErrorDetails:
  2192  // Error response of importing resources.
  2193  // This structure will be included in the
  2194  // error details to describe the
  2195  // detailed error. It will only be included when the operation finishes
  2196  // with
  2197  // some failure.
  2198  type GoogleCloudHealthcareV1alpha2FhirRestImportResourcesErrorDetails struct {
  2199  	// ErrorCount: The number of resources that had errors.
  2200  	ErrorCount int64 `json:"errorCount,omitempty,string"`
  2201  
  2202  	// FhirStore: The name of the FHIR store where resources have been
  2203  	// imported, in
  2204  	// the
  2205  	// format
  2206  	// `projects/{project_id}/locations/{location_id}/datasets/{da
  2207  	// taset_id}/fhirStores/{fhir_store_id}`.
  2208  	FhirStore string `json:"fhirStore,omitempty"`
  2209  
  2210  	// InputSize: The total number of resources included in the source data.
  2211  	// This is the sum
  2212  	// of the success and error counts.
  2213  	InputSize int64 `json:"inputSize,omitempty,string"`
  2214  
  2215  	// SuccessCount: The number of resources that have been imported.
  2216  	SuccessCount int64 `json:"successCount,omitempty,string"`
  2217  
  2218  	// ForceSendFields is a list of field names (e.g. "ErrorCount") to
  2219  	// unconditionally include in API requests. By default, fields with
  2220  	// empty values are omitted from API requests. However, any non-pointer,
  2221  	// non-interface field appearing in ForceSendFields will be sent to the
  2222  	// server regardless of whether the field is empty or not. This may be
  2223  	// used to include empty fields in Patch requests.
  2224  	ForceSendFields []string `json:"-"`
  2225  
  2226  	// NullFields is a list of field names (e.g. "ErrorCount") to include in
  2227  	// API requests with the JSON null value. By default, fields with empty
  2228  	// values are omitted from API requests. However, any field with an
  2229  	// empty value appearing in NullFields will be sent to the server as
  2230  	// null. It is an error if a field in this list has a non-empty value.
  2231  	// This may be used to include null fields in Patch requests.
  2232  	NullFields []string `json:"-"`
  2233  }
  2234  
  2235  func (s *GoogleCloudHealthcareV1alpha2FhirRestImportResourcesErrorDetails) MarshalJSON() ([]byte, error) {
  2236  	type NoMethod GoogleCloudHealthcareV1alpha2FhirRestImportResourcesErrorDetails
  2237  	raw := NoMethod(*s)
  2238  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2239  }
  2240  
  2241  // GoogleCloudHealthcareV1alpha2FhirRestImportResourcesResponse: Final
  2242  // response of importing resources.
  2243  // This structure will be included in the
  2244  // response to describe the detailed
  2245  // outcome. It will only be included when the operation finishes
  2246  // successfully.
  2247  type GoogleCloudHealthcareV1alpha2FhirRestImportResourcesResponse struct {
  2248  	// FhirStore: The name of the FHIR store where the resources have been
  2249  	// imported, in
  2250  	// the
  2251  	// format
  2252  	// `projects/{project_id}/locations/{location_id}/datasets/{da
  2253  	// taset_id}/fhirStores/{fhir_store_id}`.
  2254  	FhirStore string `json:"fhirStore,omitempty"`
  2255  
  2256  	// InputSize: The total number of resources included in the source data.
  2257  	InputSize int64 `json:"inputSize,omitempty,string"`
  2258  
  2259  	// ForceSendFields is a list of field names (e.g. "FhirStore") to
  2260  	// unconditionally include in API requests. By default, fields with
  2261  	// empty values are omitted from API requests. However, any non-pointer,
  2262  	// non-interface field appearing in ForceSendFields will be sent to the
  2263  	// server regardless of whether the field is empty or not. This may be
  2264  	// used to include empty fields in Patch requests.
  2265  	ForceSendFields []string `json:"-"`
  2266  
  2267  	// NullFields is a list of field names (e.g. "FhirStore") to include in
  2268  	// API requests with the JSON null value. By default, fields with empty
  2269  	// values are omitted from API requests. However, any field with an
  2270  	// empty value appearing in NullFields will be sent to the server as
  2271  	// null. It is an error if a field in this list has a non-empty value.
  2272  	// This may be used to include null fields in Patch requests.
  2273  	NullFields []string `json:"-"`
  2274  }
  2275  
  2276  func (s *GoogleCloudHealthcareV1alpha2FhirRestImportResourcesResponse) MarshalJSON() ([]byte, error) {
  2277  	type NoMethod GoogleCloudHealthcareV1alpha2FhirRestImportResourcesResponse
  2278  	raw := NoMethod(*s)
  2279  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2280  }
  2281  
  2282  // Hl7V2Store: Represents an HL7v2 store.
  2283  type Hl7V2Store struct {
  2284  	// Labels: User-supplied key-value pairs used to organize HL7v2
  2285  	// stores.
  2286  	//
  2287  	// Label keys must be between 1 and 63 characters long, have a UTF-8
  2288  	// encoding
  2289  	// of maximum 128 bytes, and must conform to the
  2290  	// following PCRE regular expression:
  2291  	// \p{Ll}\p{Lo}{0,62}
  2292  	//
  2293  	// Label values are optional, must be between 1 and 63 characters long,
  2294  	// have
  2295  	// a UTF-8 encoding of maximum 128 bytes, and must conform to
  2296  	// the
  2297  	// following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
  2298  	//
  2299  	// No more than 64 labels can be associated with a given store.
  2300  	Labels map[string]string `json:"labels,omitempty"`
  2301  
  2302  	// Name: Output only. Resource name of the HL7v2 store, of the
  2303  	// form
  2304  	// `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7v2_s
  2305  	// tore_id}`.
  2306  	Name string `json:"name,omitempty"`
  2307  
  2308  	// NotificationConfig: The notification destination all messages (both
  2309  	// Ingest & Create) are
  2310  	// published on. Only the message name is sent as part of the
  2311  	// notification. If
  2312  	// this is unset, no notifications will be sent. Supplied by the client.
  2313  	NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"`
  2314  
  2315  	// ParserConfig: The configuration for the parser. It determines how the
  2316  	// server parses the
  2317  	// messages.
  2318  	ParserConfig *ParserConfig `json:"parserConfig,omitempty"`
  2319  
  2320  	// ServerResponse contains the HTTP response code and headers from the
  2321  	// server.
  2322  	googleapi.ServerResponse `json:"-"`
  2323  
  2324  	// ForceSendFields is a list of field names (e.g. "Labels") to
  2325  	// unconditionally include in API requests. By default, fields with
  2326  	// empty values are omitted from API requests. However, any non-pointer,
  2327  	// non-interface field appearing in ForceSendFields will be sent to the
  2328  	// server regardless of whether the field is empty or not. This may be
  2329  	// used to include empty fields in Patch requests.
  2330  	ForceSendFields []string `json:"-"`
  2331  
  2332  	// NullFields is a list of field names (e.g. "Labels") to include in API
  2333  	// requests with the JSON null value. By default, fields with empty
  2334  	// values are omitted from API requests. However, any field with an
  2335  	// empty value appearing in NullFields will be sent to the server as
  2336  	// null. It is an error if a field in this list has a non-empty value.
  2337  	// This may be used to include null fields in Patch requests.
  2338  	NullFields []string `json:"-"`
  2339  }
  2340  
  2341  func (s *Hl7V2Store) MarshalJSON() ([]byte, error) {
  2342  	type NoMethod Hl7V2Store
  2343  	raw := NoMethod(*s)
  2344  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2345  }
  2346  
  2347  // HttpBody: Message that represents an arbitrary HTTP body. It should
  2348  // only be used for
  2349  // payload formats that can't be represented as JSON, such as raw binary
  2350  // or
  2351  // an HTML page.
  2352  //
  2353  // This message can be used both in streaming and non-streaming API
  2354  // methods in
  2355  // the request as well as the response.
  2356  //
  2357  // It can be used as a top-level request field, which is convenient if
  2358  // one
  2359  // wants to extract parameters from either the URL or HTTP template into
  2360  // the
  2361  // request fields and also want access to the raw HTTP body.
  2362  //
  2363  // Example:
  2364  //
  2365  //	message GetResourceRequest {
  2366  //	  // A unique request id.
  2367  //	  string request_id = 1;
  2368  //
  2369  //	  // The raw HTTP body is bound to this field.
  2370  //	  google.api.HttpBody http_body = 2;
  2371  //	}
  2372  //
  2373  //	service ResourceService {
  2374  //	  rpc GetResource(GetResourceRequest) returns
  2375  //
  2376  // (google.api.HttpBody);
  2377  //
  2378  //	  rpc UpdateResource(google.api.HttpBody) returns
  2379  //	  (google.protobuf.Empty);
  2380  //	}
  2381  //
  2382  // Example with streaming methods:
  2383  //
  2384  //	service CaldavService {
  2385  //	  rpc GetCalendar(stream google.api.HttpBody)
  2386  //	    returns (stream google.api.HttpBody);
  2387  //	  rpc UpdateCalendar(stream google.api.HttpBody)
  2388  //	    returns (stream google.api.HttpBody);
  2389  //	}
  2390  //
  2391  // Use of this type only changes how the request and response bodies
  2392  // are
  2393  // handled, all other features will continue to work unchanged.
  2394  type HttpBody struct {
  2395  	// ContentType: The HTTP Content-Type header value specifying the
  2396  	// content type of the body.
  2397  	ContentType string `json:"contentType,omitempty"`
  2398  
  2399  	// Data: The HTTP request/response body as raw binary.
  2400  	Data string `json:"data,omitempty"`
  2401  
  2402  	// Extensions: Application specific response metadata. Must be set in
  2403  	// the first response
  2404  	// for streaming APIs.
  2405  	Extensions []googleapi.RawMessage `json:"extensions,omitempty"`
  2406  
  2407  	// ServerResponse contains the HTTP response code and headers from the
  2408  	// server.
  2409  	googleapi.ServerResponse `json:"-"`
  2410  
  2411  	// ForceSendFields is a list of field names (e.g. "ContentType") to
  2412  	// unconditionally include in API requests. By default, fields with
  2413  	// empty values are omitted from API requests. However, any non-pointer,
  2414  	// non-interface field appearing in ForceSendFields will be sent to the
  2415  	// server regardless of whether the field is empty or not. This may be
  2416  	// used to include empty fields in Patch requests.
  2417  	ForceSendFields []string `json:"-"`
  2418  
  2419  	// NullFields is a list of field names (e.g. "ContentType") to include
  2420  	// in API requests with the JSON null value. By default, fields with
  2421  	// empty values are omitted from API requests. However, any field with
  2422  	// an empty value appearing in NullFields will be sent to the server as
  2423  	// null. It is an error if a field in this list has a non-empty value.
  2424  	// This may be used to include null fields in Patch requests.
  2425  	NullFields []string `json:"-"`
  2426  }
  2427  
  2428  func (s *HttpBody) MarshalJSON() ([]byte, error) {
  2429  	type NoMethod HttpBody
  2430  	raw := NoMethod(*s)
  2431  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2432  }
  2433  
  2434  // ImageAnnotation: Image annotation.
  2435  type ImageAnnotation struct {
  2436  	// BoundingPolys: The list of polygons outlining the sensitive regions
  2437  	// in the image.
  2438  	BoundingPolys []*BoundingPoly `json:"boundingPolys,omitempty"`
  2439  
  2440  	// ForceSendFields is a list of field names (e.g. "BoundingPolys") to
  2441  	// unconditionally include in API requests. By default, fields with
  2442  	// empty values are omitted from API requests. However, any non-pointer,
  2443  	// non-interface field appearing in ForceSendFields will be sent to the
  2444  	// server regardless of whether the field is empty or not. This may be
  2445  	// used to include empty fields in Patch requests.
  2446  	ForceSendFields []string `json:"-"`
  2447  
  2448  	// NullFields is a list of field names (e.g. "BoundingPolys") to include
  2449  	// in API requests with the JSON null value. By default, fields with
  2450  	// empty values are omitted from API requests. However, any field with
  2451  	// an empty value appearing in NullFields will be sent to the server as
  2452  	// null. It is an error if a field in this list has a non-empty value.
  2453  	// This may be used to include null fields in Patch requests.
  2454  	NullFields []string `json:"-"`
  2455  }
  2456  
  2457  func (s *ImageAnnotation) MarshalJSON() ([]byte, error) {
  2458  	type NoMethod ImageAnnotation
  2459  	raw := NoMethod(*s)
  2460  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2461  }
  2462  
  2463  // ImageConfig: Specifies how to handle the de-identification of image
  2464  // pixels.
  2465  type ImageConfig struct {
  2466  	// TextRedactionMode: Determines how to redact text from images.
  2467  	//
  2468  	// Possible values:
  2469  	//   "TEXT_REDACTION_MODE_UNSPECIFIED" - No text redaction specified.
  2470  	// Same as REDACT_NO_TEXT.
  2471  	//   "REDACT_ALL_TEXT" - Redact all text.
  2472  	//   "REDACT_SENSITIVE_TEXT" - Redact sensitive text.
  2473  	//   "REDACT_NO_TEXT" - Do not redact text.
  2474  	TextRedactionMode string `json:"textRedactionMode,omitempty"`
  2475  
  2476  	// ForceSendFields is a list of field names (e.g. "TextRedactionMode")
  2477  	// to unconditionally include in API requests. By default, fields with
  2478  	// empty values are omitted from API requests. However, any non-pointer,
  2479  	// non-interface field appearing in ForceSendFields will be sent to the
  2480  	// server regardless of whether the field is empty or not. This may be
  2481  	// used to include empty fields in Patch requests.
  2482  	ForceSendFields []string `json:"-"`
  2483  
  2484  	// NullFields is a list of field names (e.g. "TextRedactionMode") to
  2485  	// include in API requests with the JSON null value. By default, fields
  2486  	// with empty values are omitted from API requests. However, any field
  2487  	// with an empty value appearing in NullFields will be sent to the
  2488  	// server as null. It is an error if a field in this list has a
  2489  	// non-empty value. This may be used to include null fields in Patch
  2490  	// requests.
  2491  	NullFields []string `json:"-"`
  2492  }
  2493  
  2494  func (s *ImageConfig) MarshalJSON() ([]byte, error) {
  2495  	type NoMethod ImageConfig
  2496  	raw := NoMethod(*s)
  2497  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2498  }
  2499  
  2500  // ImportDicomDataErrorDetails: Returns the errors encountered during
  2501  // DICOM store import.
  2502  type ImportDicomDataErrorDetails struct {
  2503  	// SampleErrors: Deprecated. Use only for debugging purposes.
  2504  	//
  2505  	// Contains sample errors encountered in imports of individual
  2506  	// resources
  2507  	// (for example, a Cloud Storage object).
  2508  	SampleErrors []*ErrorDetail `json:"sampleErrors,omitempty"`
  2509  
  2510  	// ForceSendFields is a list of field names (e.g. "SampleErrors") to
  2511  	// unconditionally include in API requests. By default, fields with
  2512  	// empty values are omitted from API requests. However, any non-pointer,
  2513  	// non-interface field appearing in ForceSendFields will be sent to the
  2514  	// server regardless of whether the field is empty or not. This may be
  2515  	// used to include empty fields in Patch requests.
  2516  	ForceSendFields []string `json:"-"`
  2517  
  2518  	// NullFields is a list of field names (e.g. "SampleErrors") to include
  2519  	// in API requests with the JSON null value. By default, fields with
  2520  	// empty values are omitted from API requests. However, any field with
  2521  	// an empty value appearing in NullFields will be sent to the server as
  2522  	// null. It is an error if a field in this list has a non-empty value.
  2523  	// This may be used to include null fields in Patch requests.
  2524  	NullFields []string `json:"-"`
  2525  }
  2526  
  2527  func (s *ImportDicomDataErrorDetails) MarshalJSON() ([]byte, error) {
  2528  	type NoMethod ImportDicomDataErrorDetails
  2529  	raw := NoMethod(*s)
  2530  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2531  }
  2532  
  2533  // ImportDicomDataRequest: Imports data into the specified DICOM
  2534  // store.
  2535  // Returns an error if any of the files to import are not DICOM files.
  2536  // This
  2537  // API will accept duplicate DICOM instances, by simply ignoring the
  2538  // newly
  2539  // pushed instance (it will not overwrite).
  2540  type ImportDicomDataRequest struct {
  2541  	// GcsSource: Cloud Storage source data location and import
  2542  	// configuration.
  2543  	//
  2544  	// The Cloud Storage location requires the
  2545  	// `roles/storage.objectViewer`
  2546  	// Cloud IAM role.
  2547  	GcsSource *GoogleCloudHealthcareV1alpha2DicomGcsSource `json:"gcsSource,omitempty"`
  2548  
  2549  	// ForceSendFields is a list of field names (e.g. "GcsSource") to
  2550  	// unconditionally include in API requests. By default, fields with
  2551  	// empty values are omitted from API requests. However, any non-pointer,
  2552  	// non-interface field appearing in ForceSendFields will be sent to the
  2553  	// server regardless of whether the field is empty or not. This may be
  2554  	// used to include empty fields in Patch requests.
  2555  	ForceSendFields []string `json:"-"`
  2556  
  2557  	// NullFields is a list of field names (e.g. "GcsSource") to include in
  2558  	// API requests with the JSON null value. By default, fields with empty
  2559  	// values are omitted from API requests. However, any field with an
  2560  	// empty value appearing in NullFields will be sent to the server as
  2561  	// null. It is an error if a field in this list has a non-empty value.
  2562  	// This may be used to include null fields in Patch requests.
  2563  	NullFields []string `json:"-"`
  2564  }
  2565  
  2566  func (s *ImportDicomDataRequest) MarshalJSON() ([]byte, error) {
  2567  	type NoMethod ImportDicomDataRequest
  2568  	raw := NoMethod(*s)
  2569  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2570  }
  2571  
  2572  // ImportResourcesRequest: Request to import resources.
  2573  type ImportResourcesRequest struct {
  2574  	// ContentStructure: The content structure in the source location. If
  2575  	// not specified, the server
  2576  	// treats the input source files as BUNDLE.
  2577  	//
  2578  	// Possible values:
  2579  	//   "CONTENT_STRUCTURE_UNSPECIFIED" - If the content structure is not
  2580  	// specified, the default value `BUNDLE`
  2581  	// will be used.
  2582  	//   "BUNDLE" - The source file contains one or more lines of
  2583  	// newline-delimited JSON
  2584  	// (ndjson). Each line is a bundle, which contains one or more
  2585  	// resources.
  2586  	// Set the bundle type to `history` to import resource versions.
  2587  	//   "RESOURCE" - The source file contains one or more lines of
  2588  	// newline-delimited JSON
  2589  	// (ndjson). Each line is a single resource.
  2590  	//   "BUNDLE_PRETTY" - The entire file is one JSON bundle. The JSON can
  2591  	// span multiple lines.
  2592  	//   "RESOURCE_PRETTY" - The entire file is one JSON resource. The JSON
  2593  	// can span multiple lines.
  2594  	ContentStructure string `json:"contentStructure,omitempty"`
  2595  
  2596  	// GcsErrorDestination: The Cloud Storage destination to write the error
  2597  	// report to.
  2598  	//
  2599  	// The Cloud Storage location requires the `roles/storage.objectAdmin`
  2600  	// Cloud
  2601  	// IAM role.
  2602  	//
  2603  	// Note that writing a file to the same destination multiple times
  2604  	// will
  2605  	// result in the previous version of the file being overwritten.
  2606  	GcsErrorDestination *GoogleCloudHealthcareV1alpha2FhirRestGcsErrorDestination `json:"gcsErrorDestination,omitempty"`
  2607  
  2608  	// GcsSource: Cloud Storage source data location and import
  2609  	// configuration.
  2610  	//
  2611  	// The Cloud Storage location requires the
  2612  	// `roles/storage.objectViewer`
  2613  	// Cloud IAM role.
  2614  	//
  2615  	// Each Cloud Storage object should be a text file that contains the
  2616  	// format
  2617  	// specified in ContentStructu.
  2618  	GcsSource *GoogleCloudHealthcareV1alpha2FhirRestGcsSource `json:"gcsSource,omitempty"`
  2619  
  2620  	// ForceSendFields is a list of field names (e.g. "ContentStructure") to
  2621  	// unconditionally include in API requests. By default, fields with
  2622  	// empty values are omitted from API requests. However, any non-pointer,
  2623  	// non-interface field appearing in ForceSendFields will be sent to the
  2624  	// server regardless of whether the field is empty or not. This may be
  2625  	// used to include empty fields in Patch requests.
  2626  	ForceSendFields []string `json:"-"`
  2627  
  2628  	// NullFields is a list of field names (e.g. "ContentStructure") to
  2629  	// include in API requests with the JSON null value. By default, fields
  2630  	// with empty values are omitted from API requests. However, any field
  2631  	// with an empty value appearing in NullFields will be sent to the
  2632  	// server as null. It is an error if a field in this list has a
  2633  	// non-empty value. This may be used to include null fields in Patch
  2634  	// requests.
  2635  	NullFields []string `json:"-"`
  2636  }
  2637  
  2638  func (s *ImportResourcesRequest) MarshalJSON() ([]byte, error) {
  2639  	type NoMethod ImportResourcesRequest
  2640  	raw := NoMethod(*s)
  2641  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2642  }
  2643  
  2644  // InfoTypeTransformation: A transformation to apply to text that is
  2645  // identified as a specific
  2646  // info_type.
  2647  type InfoTypeTransformation struct {
  2648  	// CharacterMaskConfig: Config for character mask.
  2649  	CharacterMaskConfig *CharacterMaskConfig `json:"characterMaskConfig,omitempty"`
  2650  
  2651  	// CryptoHashConfig: Config for crypto hash.
  2652  	CryptoHashConfig *CryptoHashConfig `json:"cryptoHashConfig,omitempty"`
  2653  
  2654  	// DateShiftConfig: Config for date shift.
  2655  	DateShiftConfig *DateShiftConfig `json:"dateShiftConfig,omitempty"`
  2656  
  2657  	// InfoTypes: InfoTypes to apply this transformation to. If this is not
  2658  	// specified, the
  2659  	// transformation applies to any info_type.
  2660  	InfoTypes []string `json:"infoTypes,omitempty"`
  2661  
  2662  	// RedactConfig: Config for text redaction.
  2663  	RedactConfig *RedactConfig `json:"redactConfig,omitempty"`
  2664  
  2665  	// ReplaceWithInfoTypeConfig: Config for replace with InfoType.
  2666  	ReplaceWithInfoTypeConfig *ReplaceWithInfoTypeConfig `json:"replaceWithInfoTypeConfig,omitempty"`
  2667  
  2668  	// ForceSendFields is a list of field names (e.g. "CharacterMaskConfig")
  2669  	// to unconditionally include in API requests. By default, fields with
  2670  	// empty values are omitted from API requests. However, any non-pointer,
  2671  	// non-interface field appearing in ForceSendFields will be sent to the
  2672  	// server regardless of whether the field is empty or not. This may be
  2673  	// used to include empty fields in Patch requests.
  2674  	ForceSendFields []string `json:"-"`
  2675  
  2676  	// NullFields is a list of field names (e.g. "CharacterMaskConfig") to
  2677  	// include in API requests with the JSON null value. By default, fields
  2678  	// with empty values are omitted from API requests. However, any field
  2679  	// with an empty value appearing in NullFields will be sent to the
  2680  	// server as null. It is an error if a field in this list has a
  2681  	// non-empty value. This may be used to include null fields in Patch
  2682  	// requests.
  2683  	NullFields []string `json:"-"`
  2684  }
  2685  
  2686  func (s *InfoTypeTransformation) MarshalJSON() ([]byte, error) {
  2687  	type NoMethod InfoTypeTransformation
  2688  	raw := NoMethod(*s)
  2689  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2690  }
  2691  
  2692  // IngestMessageRequest: Ingests a message into the specified HL7v2
  2693  // store.
  2694  type IngestMessageRequest struct {
  2695  	// Message: HL7v2 message to ingest.
  2696  	Message *Message `json:"message,omitempty"`
  2697  
  2698  	// ForceSendFields is a list of field names (e.g. "Message") to
  2699  	// unconditionally include in API requests. By default, fields with
  2700  	// empty values are omitted from API requests. However, any non-pointer,
  2701  	// non-interface field appearing in ForceSendFields will be sent to the
  2702  	// server regardless of whether the field is empty or not. This may be
  2703  	// used to include empty fields in Patch requests.
  2704  	ForceSendFields []string `json:"-"`
  2705  
  2706  	// NullFields is a list of field names (e.g. "Message") to include in
  2707  	// API requests with the JSON null value. By default, fields with empty
  2708  	// values are omitted from API requests. However, any field with an
  2709  	// empty value appearing in NullFields will be sent to the server as
  2710  	// null. It is an error if a field in this list has a non-empty value.
  2711  	// This may be used to include null fields in Patch requests.
  2712  	NullFields []string `json:"-"`
  2713  }
  2714  
  2715  func (s *IngestMessageRequest) MarshalJSON() ([]byte, error) {
  2716  	type NoMethod IngestMessageRequest
  2717  	raw := NoMethod(*s)
  2718  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2719  }
  2720  
  2721  // IngestMessageResponse: Acknowledges that a message has been ingested
  2722  // into the specified
  2723  // HL7v2 store.
  2724  type IngestMessageResponse struct {
  2725  	// Hl7Ack: HL7v2 ACK message.
  2726  	Hl7Ack string `json:"hl7Ack,omitempty"`
  2727  
  2728  	// Message: Created message resource.
  2729  	Message *Message `json:"message,omitempty"`
  2730  
  2731  	// ServerResponse contains the HTTP response code and headers from the
  2732  	// server.
  2733  	googleapi.ServerResponse `json:"-"`
  2734  
  2735  	// ForceSendFields is a list of field names (e.g. "Hl7Ack") to
  2736  	// unconditionally include in API requests. By default, fields with
  2737  	// empty values are omitted from API requests. However, any non-pointer,
  2738  	// non-interface field appearing in ForceSendFields will be sent to the
  2739  	// server regardless of whether the field is empty or not. This may be
  2740  	// used to include empty fields in Patch requests.
  2741  	ForceSendFields []string `json:"-"`
  2742  
  2743  	// NullFields is a list of field names (e.g. "Hl7Ack") to include in API
  2744  	// requests with the JSON null value. By default, fields with empty
  2745  	// values are omitted from API requests. However, any field with an
  2746  	// empty value appearing in NullFields will be sent to the server as
  2747  	// null. It is an error if a field in this list has a non-empty value.
  2748  	// This may be used to include null fields in Patch requests.
  2749  	NullFields []string `json:"-"`
  2750  }
  2751  
  2752  func (s *IngestMessageResponse) MarshalJSON() ([]byte, error) {
  2753  	type NoMethod IngestMessageResponse
  2754  	raw := NoMethod(*s)
  2755  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2756  }
  2757  
  2758  // ListAnnotationStoresResponse: Lists the Annotation stores
  2759  // in the given dataset.
  2760  type ListAnnotationStoresResponse struct {
  2761  	// AnnotationStores: The returned Annotation stores. Won't be more
  2762  	// Annotation stores than the
  2763  	// value of page_size in the request.
  2764  	AnnotationStores []*AnnotationStore `json:"annotationStores,omitempty"`
  2765  
  2766  	// NextPageToken: Token to retrieve the next page of results or empty if
  2767  	// there are no more
  2768  	// results in the list.
  2769  	NextPageToken string `json:"nextPageToken,omitempty"`
  2770  
  2771  	// ServerResponse contains the HTTP response code and headers from the
  2772  	// server.
  2773  	googleapi.ServerResponse `json:"-"`
  2774  
  2775  	// ForceSendFields is a list of field names (e.g. "AnnotationStores") to
  2776  	// unconditionally include in API requests. By default, fields with
  2777  	// empty values are omitted from API requests. However, any non-pointer,
  2778  	// non-interface field appearing in ForceSendFields will be sent to the
  2779  	// server regardless of whether the field is empty or not. This may be
  2780  	// used to include empty fields in Patch requests.
  2781  	ForceSendFields []string `json:"-"`
  2782  
  2783  	// NullFields is a list of field names (e.g. "AnnotationStores") to
  2784  	// include in API requests with the JSON null value. By default, fields
  2785  	// with empty values are omitted from API requests. However, any field
  2786  	// with an empty value appearing in NullFields will be sent to the
  2787  	// server as null. It is an error if a field in this list has a
  2788  	// non-empty value. This may be used to include null fields in Patch
  2789  	// requests.
  2790  	NullFields []string `json:"-"`
  2791  }
  2792  
  2793  func (s *ListAnnotationStoresResponse) MarshalJSON() ([]byte, error) {
  2794  	type NoMethod ListAnnotationStoresResponse
  2795  	raw := NoMethod(*s)
  2796  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2797  }
  2798  
  2799  // ListAnnotationsResponse: Lists the Annotations in the
  2800  // specified
  2801  // Annotation store.
  2802  type ListAnnotationsResponse struct {
  2803  	// Annotations: The returned Annotations names. Won't be more values
  2804  	// than the value of
  2805  	// page_size in the request.
  2806  	Annotations []string `json:"annotations,omitempty"`
  2807  
  2808  	// NextPageToken: Token to retrieve the next page of results or empty if
  2809  	// there are no more
  2810  	// results in the list.
  2811  	NextPageToken string `json:"nextPageToken,omitempty"`
  2812  
  2813  	// ServerResponse contains the HTTP response code and headers from the
  2814  	// server.
  2815  	googleapi.ServerResponse `json:"-"`
  2816  
  2817  	// ForceSendFields is a list of field names (e.g. "Annotations") to
  2818  	// unconditionally include in API requests. By default, fields with
  2819  	// empty values are omitted from API requests. However, any non-pointer,
  2820  	// non-interface field appearing in ForceSendFields will be sent to the
  2821  	// server regardless of whether the field is empty or not. This may be
  2822  	// used to include empty fields in Patch requests.
  2823  	ForceSendFields []string `json:"-"`
  2824  
  2825  	// NullFields is a list of field names (e.g. "Annotations") to include
  2826  	// in API requests with the JSON null value. By default, fields with
  2827  	// empty values are omitted from API requests. However, any field with
  2828  	// an empty value appearing in NullFields will be sent to the server as
  2829  	// null. It is an error if a field in this list has a non-empty value.
  2830  	// This may be used to include null fields in Patch requests.
  2831  	NullFields []string `json:"-"`
  2832  }
  2833  
  2834  func (s *ListAnnotationsResponse) MarshalJSON() ([]byte, error) {
  2835  	type NoMethod ListAnnotationsResponse
  2836  	raw := NoMethod(*s)
  2837  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2838  }
  2839  
  2840  // ListDatasetsResponse: Lists the available datasets.
  2841  type ListDatasetsResponse struct {
  2842  	// Datasets: The first page of datasets.
  2843  	Datasets []*Dataset `json:"datasets,omitempty"`
  2844  
  2845  	// NextPageToken: Token to retrieve the next page of results, or empty
  2846  	// if there are no
  2847  	// more results in the list.
  2848  	NextPageToken string `json:"nextPageToken,omitempty"`
  2849  
  2850  	// ServerResponse contains the HTTP response code and headers from the
  2851  	// server.
  2852  	googleapi.ServerResponse `json:"-"`
  2853  
  2854  	// ForceSendFields is a list of field names (e.g. "Datasets") to
  2855  	// unconditionally include in API requests. By default, fields with
  2856  	// empty values are omitted from API requests. However, any non-pointer,
  2857  	// non-interface field appearing in ForceSendFields will be sent to the
  2858  	// server regardless of whether the field is empty or not. This may be
  2859  	// used to include empty fields in Patch requests.
  2860  	ForceSendFields []string `json:"-"`
  2861  
  2862  	// NullFields is a list of field names (e.g. "Datasets") to include in
  2863  	// API requests with the JSON null value. By default, fields with empty
  2864  	// values are omitted from API requests. However, any field with an
  2865  	// empty value appearing in NullFields will be sent to the server as
  2866  	// null. It is an error if a field in this list has a non-empty value.
  2867  	// This may be used to include null fields in Patch requests.
  2868  	NullFields []string `json:"-"`
  2869  }
  2870  
  2871  func (s *ListDatasetsResponse) MarshalJSON() ([]byte, error) {
  2872  	type NoMethod ListDatasetsResponse
  2873  	raw := NoMethod(*s)
  2874  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2875  }
  2876  
  2877  // ListDicomStoresResponse: Lists the DICOM stores in the given dataset.
  2878  type ListDicomStoresResponse struct {
  2879  	// DicomStores: The returned DICOM stores. Won't be more DICOM stores
  2880  	// than the value of
  2881  	// page_size in the request.
  2882  	DicomStores []*DicomStore `json:"dicomStores,omitempty"`
  2883  
  2884  	// NextPageToken: Token to retrieve the next page of results or empty if
  2885  	// there are no more
  2886  	// results in the list.
  2887  	NextPageToken string `json:"nextPageToken,omitempty"`
  2888  
  2889  	// ServerResponse contains the HTTP response code and headers from the
  2890  	// server.
  2891  	googleapi.ServerResponse `json:"-"`
  2892  
  2893  	// ForceSendFields is a list of field names (e.g. "DicomStores") to
  2894  	// unconditionally include in API requests. By default, fields with
  2895  	// empty values are omitted from API requests. However, any non-pointer,
  2896  	// non-interface field appearing in ForceSendFields will be sent to the
  2897  	// server regardless of whether the field is empty or not. This may be
  2898  	// used to include empty fields in Patch requests.
  2899  	ForceSendFields []string `json:"-"`
  2900  
  2901  	// NullFields is a list of field names (e.g. "DicomStores") to include
  2902  	// in API requests with the JSON null value. By default, fields with
  2903  	// empty values are omitted from API requests. However, any field with
  2904  	// an empty value appearing in NullFields will be sent to the server as
  2905  	// null. It is an error if a field in this list has a non-empty value.
  2906  	// This may be used to include null fields in Patch requests.
  2907  	NullFields []string `json:"-"`
  2908  }
  2909  
  2910  func (s *ListDicomStoresResponse) MarshalJSON() ([]byte, error) {
  2911  	type NoMethod ListDicomStoresResponse
  2912  	raw := NoMethod(*s)
  2913  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2914  }
  2915  
  2916  // ListFhirStoresResponse: Lists the FHIR stores in the given dataset.
  2917  type ListFhirStoresResponse struct {
  2918  	// FhirStores: The returned FHIR stores. Won't be more FHIR stores than
  2919  	// the value of
  2920  	// page_size in the request.
  2921  	FhirStores []*FhirStore `json:"fhirStores,omitempty"`
  2922  
  2923  	// NextPageToken: Token to retrieve the next page of results or empty if
  2924  	// there are no more
  2925  	// results in the list.
  2926  	NextPageToken string `json:"nextPageToken,omitempty"`
  2927  
  2928  	// ServerResponse contains the HTTP response code and headers from the
  2929  	// server.
  2930  	googleapi.ServerResponse `json:"-"`
  2931  
  2932  	// ForceSendFields is a list of field names (e.g. "FhirStores") to
  2933  	// unconditionally include in API requests. By default, fields with
  2934  	// empty values are omitted from API requests. However, any non-pointer,
  2935  	// non-interface field appearing in ForceSendFields will be sent to the
  2936  	// server regardless of whether the field is empty or not. This may be
  2937  	// used to include empty fields in Patch requests.
  2938  	ForceSendFields []string `json:"-"`
  2939  
  2940  	// NullFields is a list of field names (e.g. "FhirStores") to include in
  2941  	// API requests with the JSON null value. By default, fields with empty
  2942  	// values are omitted from API requests. However, any field with an
  2943  	// empty value appearing in NullFields will be sent to the server as
  2944  	// null. It is an error if a field in this list has a non-empty value.
  2945  	// This may be used to include null fields in Patch requests.
  2946  	NullFields []string `json:"-"`
  2947  }
  2948  
  2949  func (s *ListFhirStoresResponse) MarshalJSON() ([]byte, error) {
  2950  	type NoMethod ListFhirStoresResponse
  2951  	raw := NoMethod(*s)
  2952  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2953  }
  2954  
  2955  // ListHl7V2StoresResponse: Lists the HL7v2 stores in the given dataset.
  2956  type ListHl7V2StoresResponse struct {
  2957  	// Hl7V2Stores: The returned HL7v2 stores. Won't be more HL7v2 stores
  2958  	// than the value of
  2959  	// page_size in the request.
  2960  	Hl7V2Stores []*Hl7V2Store `json:"hl7V2Stores,omitempty"`
  2961  
  2962  	// NextPageToken: Token to retrieve the next page of results or empty if
  2963  	// there are no more
  2964  	// results in the list.
  2965  	NextPageToken string `json:"nextPageToken,omitempty"`
  2966  
  2967  	// ServerResponse contains the HTTP response code and headers from the
  2968  	// server.
  2969  	googleapi.ServerResponse `json:"-"`
  2970  
  2971  	// ForceSendFields is a list of field names (e.g. "Hl7V2Stores") to
  2972  	// unconditionally include in API requests. By default, fields with
  2973  	// empty values are omitted from API requests. However, any non-pointer,
  2974  	// non-interface field appearing in ForceSendFields will be sent to the
  2975  	// server regardless of whether the field is empty or not. This may be
  2976  	// used to include empty fields in Patch requests.
  2977  	ForceSendFields []string `json:"-"`
  2978  
  2979  	// NullFields is a list of field names (e.g. "Hl7V2Stores") to include
  2980  	// in API requests with the JSON null value. By default, fields with
  2981  	// empty values are omitted from API requests. However, any field with
  2982  	// an empty value appearing in NullFields will be sent to the server as
  2983  	// null. It is an error if a field in this list has a non-empty value.
  2984  	// This may be used to include null fields in Patch requests.
  2985  	NullFields []string `json:"-"`
  2986  }
  2987  
  2988  func (s *ListHl7V2StoresResponse) MarshalJSON() ([]byte, error) {
  2989  	type NoMethod ListHl7V2StoresResponse
  2990  	raw := NoMethod(*s)
  2991  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  2992  }
  2993  
  2994  // ListLocationsResponse: The response message for
  2995  // Locations.ListLocations.
  2996  type ListLocationsResponse struct {
  2997  	// Locations: A list of locations that matches the specified filter in
  2998  	// the request.
  2999  	Locations []*Location `json:"locations,omitempty"`
  3000  
  3001  	// NextPageToken: The standard List next-page token.
  3002  	NextPageToken string `json:"nextPageToken,omitempty"`
  3003  
  3004  	// ServerResponse contains the HTTP response code and headers from the
  3005  	// server.
  3006  	googleapi.ServerResponse `json:"-"`
  3007  
  3008  	// ForceSendFields is a list of field names (e.g. "Locations") to
  3009  	// unconditionally include in API requests. By default, fields with
  3010  	// empty values are omitted from API requests. However, any non-pointer,
  3011  	// non-interface field appearing in ForceSendFields will be sent to the
  3012  	// server regardless of whether the field is empty or not. This may be
  3013  	// used to include empty fields in Patch requests.
  3014  	ForceSendFields []string `json:"-"`
  3015  
  3016  	// NullFields is a list of field names (e.g. "Locations") to include in
  3017  	// API requests with the JSON null value. By default, fields with empty
  3018  	// values are omitted from API requests. However, any field with an
  3019  	// empty value appearing in NullFields will be sent to the server as
  3020  	// null. It is an error if a field in this list has a non-empty value.
  3021  	// This may be used to include null fields in Patch requests.
  3022  	NullFields []string `json:"-"`
  3023  }
  3024  
  3025  func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) {
  3026  	type NoMethod ListLocationsResponse
  3027  	raw := NoMethod(*s)
  3028  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3029  }
  3030  
  3031  // ListMessagesResponse: Lists the messages in the specified HL7v2
  3032  // store.
  3033  type ListMessagesResponse struct {
  3034  	// Messages: The returned message names. Won't be more values than the
  3035  	// value of
  3036  	// page_size in the request.
  3037  	Messages []string `json:"messages,omitempty"`
  3038  
  3039  	// NextPageToken: Token to retrieve the next page of results or empty if
  3040  	// there are no more
  3041  	// results in the list.
  3042  	NextPageToken string `json:"nextPageToken,omitempty"`
  3043  
  3044  	// ServerResponse contains the HTTP response code and headers from the
  3045  	// server.
  3046  	googleapi.ServerResponse `json:"-"`
  3047  
  3048  	// ForceSendFields is a list of field names (e.g. "Messages") to
  3049  	// unconditionally include in API requests. By default, fields with
  3050  	// empty values are omitted from API requests. However, any non-pointer,
  3051  	// non-interface field appearing in ForceSendFields will be sent to the
  3052  	// server regardless of whether the field is empty or not. This may be
  3053  	// used to include empty fields in Patch requests.
  3054  	ForceSendFields []string `json:"-"`
  3055  
  3056  	// NullFields is a list of field names (e.g. "Messages") to include in
  3057  	// API requests with the JSON null value. By default, fields with empty
  3058  	// values are omitted from API requests. However, any field with an
  3059  	// empty value appearing in NullFields will be sent to the server as
  3060  	// null. It is an error if a field in this list has a non-empty value.
  3061  	// This may be used to include null fields in Patch requests.
  3062  	NullFields []string `json:"-"`
  3063  }
  3064  
  3065  func (s *ListMessagesResponse) MarshalJSON() ([]byte, error) {
  3066  	type NoMethod ListMessagesResponse
  3067  	raw := NoMethod(*s)
  3068  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3069  }
  3070  
  3071  // ListOperationsResponse: The response message for
  3072  // Operations.ListOperations.
  3073  type ListOperationsResponse struct {
  3074  	// NextPageToken: The standard List next-page token.
  3075  	NextPageToken string `json:"nextPageToken,omitempty"`
  3076  
  3077  	// Operations: A list of operations that matches the specified filter in
  3078  	// the request.
  3079  	Operations []*Operation `json:"operations,omitempty"`
  3080  
  3081  	// ServerResponse contains the HTTP response code and headers from the
  3082  	// server.
  3083  	googleapi.ServerResponse `json:"-"`
  3084  
  3085  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  3086  	// unconditionally include in API requests. By default, fields with
  3087  	// empty values are omitted from API requests. However, any non-pointer,
  3088  	// non-interface field appearing in ForceSendFields will be sent to the
  3089  	// server regardless of whether the field is empty or not. This may be
  3090  	// used to include empty fields in Patch requests.
  3091  	ForceSendFields []string `json:"-"`
  3092  
  3093  	// NullFields is a list of field names (e.g. "NextPageToken") to include
  3094  	// in API requests with the JSON null value. By default, fields with
  3095  	// empty values are omitted from API requests. However, any field with
  3096  	// an empty value appearing in NullFields will be sent to the server as
  3097  	// null. It is an error if a field in this list has a non-empty value.
  3098  	// This may be used to include null fields in Patch requests.
  3099  	NullFields []string `json:"-"`
  3100  }
  3101  
  3102  func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
  3103  	type NoMethod ListOperationsResponse
  3104  	raw := NoMethod(*s)
  3105  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3106  }
  3107  
  3108  // Location: A resource that represents Google Cloud Platform location.
  3109  type Location struct {
  3110  	// DisplayName: The friendly name for this location, typically a nearby
  3111  	// city name.
  3112  	// For example, "Tokyo".
  3113  	DisplayName string `json:"displayName,omitempty"`
  3114  
  3115  	// Labels: Cross-service attributes for the location. For example
  3116  	//
  3117  	//     {"cloud.googleapis.com/region": "us-east1"}
  3118  	Labels map[string]string `json:"labels,omitempty"`
  3119  
  3120  	// LocationId: The canonical id for this location. For example:
  3121  	// "us-east1".
  3122  	LocationId string `json:"locationId,omitempty"`
  3123  
  3124  	// Metadata: Service-specific metadata. For example the available
  3125  	// capacity at the given
  3126  	// location.
  3127  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  3128  
  3129  	// Name: Resource name for the location, which may vary between
  3130  	// implementations.
  3131  	// For example: "projects/example-project/locations/us-east1"
  3132  	Name string `json:"name,omitempty"`
  3133  
  3134  	// ServerResponse contains the HTTP response code and headers from the
  3135  	// server.
  3136  	googleapi.ServerResponse `json:"-"`
  3137  
  3138  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  3139  	// unconditionally include in API requests. By default, fields with
  3140  	// empty values are omitted from API requests. However, any non-pointer,
  3141  	// non-interface field appearing in ForceSendFields will be sent to the
  3142  	// server regardless of whether the field is empty or not. This may be
  3143  	// used to include empty fields in Patch requests.
  3144  	ForceSendFields []string `json:"-"`
  3145  
  3146  	// NullFields is a list of field names (e.g. "DisplayName") to include
  3147  	// in API requests with the JSON null value. By default, fields with
  3148  	// empty values are omitted from API requests. However, any field with
  3149  	// an empty value appearing in NullFields will be sent to the server as
  3150  	// null. It is an error if a field in this list has a non-empty value.
  3151  	// This may be used to include null fields in Patch requests.
  3152  	NullFields []string `json:"-"`
  3153  }
  3154  
  3155  func (s *Location) MarshalJSON() ([]byte, error) {
  3156  	type NoMethod Location
  3157  	raw := NoMethod(*s)
  3158  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3159  }
  3160  
  3161  // Message: A complete HL7v2 message.
  3162  // See http://www.hl7.org/implement/standards/index.cfm?ref=common for
  3163  // details
  3164  // on the standard.
  3165  type Message struct {
  3166  	// CreateTime: Output only. The datetime when the message was created.
  3167  	// Set by the server.
  3168  	CreateTime string `json:"createTime,omitempty"`
  3169  
  3170  	// Data: Raw message bytes.
  3171  	Data string `json:"data,omitempty"`
  3172  
  3173  	// Labels: User-supplied key-value pairs used to organize HL7v2
  3174  	// stores.
  3175  	//
  3176  	// Label keys must be between 1 and 63 characters long, have a UTF-8
  3177  	// encoding
  3178  	// of maximum 128 bytes, and must conform to the
  3179  	// following PCRE regular expression:
  3180  	// \p{Ll}\p{Lo}{0,62}
  3181  	//
  3182  	// Label values are optional, must be between 1 and 63 characters long,
  3183  	// have
  3184  	// a UTF-8 encoding of maximum 128 bytes, and must conform to
  3185  	// the
  3186  	// following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
  3187  	//
  3188  	// No more than 64 labels can be associated with a given store.
  3189  	Labels map[string]string `json:"labels,omitempty"`
  3190  
  3191  	// MessageType: The message type and trigger event for this message.
  3192  	// MSH-9.
  3193  	MessageType string `json:"messageType,omitempty"`
  3194  
  3195  	// Name: Resource name of the Message, of the
  3196  	// form
  3197  	// `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_
  3198  	// store_id}/messages/{message_id}`.
  3199  	// Assigned by the server.
  3200  	Name string `json:"name,omitempty"`
  3201  
  3202  	// ParsedData: Output only. The parsed version of the raw message data.
  3203  	ParsedData *ParsedData `json:"parsedData,omitempty"`
  3204  
  3205  	// PatientIds: All patient IDs listed in the PID-2, PID-3, and PID-4
  3206  	// segments of this
  3207  	// message.
  3208  	PatientIds []*PatientId `json:"patientIds,omitempty"`
  3209  
  3210  	// SendFacility: The hospital that this message came from. MSH-4.
  3211  	SendFacility string `json:"sendFacility,omitempty"`
  3212  
  3213  	// SendTime: The datetime the sending application sent this message.
  3214  	// MSH-7.
  3215  	SendTime string `json:"sendTime,omitempty"`
  3216  
  3217  	// ServerResponse contains the HTTP response code and headers from the
  3218  	// server.
  3219  	googleapi.ServerResponse `json:"-"`
  3220  
  3221  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  3222  	// unconditionally include in API requests. By default, fields with
  3223  	// empty values are omitted from API requests. However, any non-pointer,
  3224  	// non-interface field appearing in ForceSendFields will be sent to the
  3225  	// server regardless of whether the field is empty or not. This may be
  3226  	// used to include empty fields in Patch requests.
  3227  	ForceSendFields []string `json:"-"`
  3228  
  3229  	// NullFields is a list of field names (e.g. "CreateTime") to include in
  3230  	// API requests with the JSON null value. By default, fields with empty
  3231  	// values are omitted from API requests. However, any field with an
  3232  	// empty value appearing in NullFields will be sent to the server as
  3233  	// null. It is an error if a field in this list has a non-empty value.
  3234  	// This may be used to include null fields in Patch requests.
  3235  	NullFields []string `json:"-"`
  3236  }
  3237  
  3238  func (s *Message) MarshalJSON() ([]byte, error) {
  3239  	type NoMethod Message
  3240  	raw := NoMethod(*s)
  3241  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3242  }
  3243  
  3244  // NotificationConfig: Specifies where notifications should be sent upon
  3245  // changes to a data store.
  3246  type NotificationConfig struct {
  3247  	// PubsubTopic: The [Cloud
  3248  	// Pub/Sub](https://cloud.google.com/pubsub/docs/) topic
  3249  	// that
  3250  	// notifications of changes are published on. Supplied by the
  3251  	// client.
  3252  	// PubsubMessage.Data will contain the resource
  3253  	// name.
  3254  	// PubsubMessage.MessageId is the ID of this message. It is guaranteed
  3255  	// to be
  3256  	// unique within the topic.
  3257  	// PubsubMessage.PublishTime is the time at which the message was
  3258  	// published.
  3259  	// Notifications are only sent if the topic is
  3260  	// non-empty.
  3261  	// [Topic
  3262  	// names](https://cloud.google.com/pubsub/docs/overview#names) must be
  3263  	// scoped
  3264  	// to a project. cloud-healthcare@system.gserviceaccount.com must
  3265  	// have
  3266  	// publisher permissions on the given Cloud Pub/Sub topic. Not having
  3267  	// adequate
  3268  	// permissions will cause the calls that send notifications to fail.
  3269  	PubsubTopic string `json:"pubsubTopic,omitempty"`
  3270  
  3271  	// ForceSendFields is a list of field names (e.g. "PubsubTopic") to
  3272  	// unconditionally include in API requests. By default, fields with
  3273  	// empty values are omitted from API requests. However, any non-pointer,
  3274  	// non-interface field appearing in ForceSendFields will be sent to the
  3275  	// server regardless of whether the field is empty or not. This may be
  3276  	// used to include empty fields in Patch requests.
  3277  	ForceSendFields []string `json:"-"`
  3278  
  3279  	// NullFields is a list of field names (e.g. "PubsubTopic") to include
  3280  	// in API requests with the JSON null value. By default, fields with
  3281  	// empty values are omitted from API requests. However, any field with
  3282  	// an empty value appearing in NullFields will be sent to the server as
  3283  	// null. It is an error if a field in this list has a non-empty value.
  3284  	// This may be used to include null fields in Patch requests.
  3285  	NullFields []string `json:"-"`
  3286  }
  3287  
  3288  func (s *NotificationConfig) MarshalJSON() ([]byte, error) {
  3289  	type NoMethod NotificationConfig
  3290  	raw := NoMethod(*s)
  3291  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3292  }
  3293  
  3294  // Operation: This resource represents a long-running operation that is
  3295  // the result of a
  3296  // network API call.
  3297  type Operation struct {
  3298  	// Done: If the value is `false`, it means the operation is still in
  3299  	// progress.
  3300  	// If `true`, the operation is completed, and either `error` or
  3301  	// `response` is
  3302  	// available.
  3303  	Done bool `json:"done,omitempty"`
  3304  
  3305  	// Error: The error result of the operation in case of failure or
  3306  	// cancellation.
  3307  	Error *Status `json:"error,omitempty"`
  3308  
  3309  	// Metadata: Service-specific metadata associated with the operation.
  3310  	// It typically
  3311  	// contains progress information and common metadata such as create
  3312  	// time.
  3313  	// Some services might not provide such metadata.  Any method that
  3314  	// returns a
  3315  	// long-running operation should document the metadata type, if any.
  3316  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  3317  
  3318  	// Name: The server-assigned name, which is only unique within the same
  3319  	// service that
  3320  	// originally returns it. If you use the default HTTP mapping,
  3321  	// the
  3322  	// `name` should be a resource name ending with
  3323  	// `operations/{unique_id}`.
  3324  	Name string `json:"name,omitempty"`
  3325  
  3326  	// Response: The normal response of the operation in case of success.
  3327  	// If the original
  3328  	// method returns no data on success, such as `Delete`, the response
  3329  	// is
  3330  	// `google.protobuf.Empty`.  If the original method is
  3331  	// standard
  3332  	// `Get`/`Create`/`Update`, the response should be the resource.  For
  3333  	// other
  3334  	// methods, the response should have the type `XxxResponse`, where
  3335  	// `Xxx`
  3336  	// is the original method name.  For example, if the original method
  3337  	// name
  3338  	// is `TakeSnapshot()`, the inferred response type
  3339  	// is
  3340  	// `TakeSnapshotResponse`.
  3341  	Response googleapi.RawMessage `json:"response,omitempty"`
  3342  
  3343  	// ServerResponse contains the HTTP response code and headers from the
  3344  	// server.
  3345  	googleapi.ServerResponse `json:"-"`
  3346  
  3347  	// ForceSendFields is a list of field names (e.g. "Done") to
  3348  	// unconditionally include in API requests. By default, fields with
  3349  	// empty values are omitted from API requests. However, any non-pointer,
  3350  	// non-interface field appearing in ForceSendFields will be sent to the
  3351  	// server regardless of whether the field is empty or not. This may be
  3352  	// used to include empty fields in Patch requests.
  3353  	ForceSendFields []string `json:"-"`
  3354  
  3355  	// NullFields is a list of field names (e.g. "Done") to include in API
  3356  	// requests with the JSON null value. By default, fields with empty
  3357  	// values are omitted from API requests. However, any field with an
  3358  	// empty value appearing in NullFields will be sent to the server as
  3359  	// null. It is an error if a field in this list has a non-empty value.
  3360  	// This may be used to include null fields in Patch requests.
  3361  	NullFields []string `json:"-"`
  3362  }
  3363  
  3364  func (s *Operation) MarshalJSON() ([]byte, error) {
  3365  	type NoMethod Operation
  3366  	raw := NoMethod(*s)
  3367  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3368  }
  3369  
  3370  // OperationMetadata: OperationMetadata provides information about the
  3371  // operation execution.
  3372  // Returned in the long-running operation's metadata field.
  3373  type OperationMetadata struct {
  3374  	// ApiMethodName: The name of the API method that initiated the
  3375  	// operation.
  3376  	ApiMethodName string `json:"apiMethodName,omitempty"`
  3377  
  3378  	Counter *ProgressCounter `json:"counter,omitempty"`
  3379  
  3380  	// CreateTime: The time at which the operation was created by the API.
  3381  	CreateTime string `json:"createTime,omitempty"`
  3382  
  3383  	// EndTime: The time at which execution was completed.
  3384  	EndTime string `json:"endTime,omitempty"`
  3385  
  3386  	// ForceSendFields is a list of field names (e.g. "ApiMethodName") to
  3387  	// unconditionally include in API requests. By default, fields with
  3388  	// empty values are omitted from API requests. However, any non-pointer,
  3389  	// non-interface field appearing in ForceSendFields will be sent to the
  3390  	// server regardless of whether the field is empty or not. This may be
  3391  	// used to include empty fields in Patch requests.
  3392  	ForceSendFields []string `json:"-"`
  3393  
  3394  	// NullFields is a list of field names (e.g. "ApiMethodName") to include
  3395  	// in API requests with the JSON null value. By default, fields with
  3396  	// empty values are omitted from API requests. However, any field with
  3397  	// an empty value appearing in NullFields will be sent to the server as
  3398  	// null. It is an error if a field in this list has a non-empty value.
  3399  	// This may be used to include null fields in Patch requests.
  3400  	NullFields []string `json:"-"`
  3401  }
  3402  
  3403  func (s *OperationMetadata) MarshalJSON() ([]byte, error) {
  3404  	type NoMethod OperationMetadata
  3405  	raw := NoMethod(*s)
  3406  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3407  }
  3408  
  3409  // ParsedData: The content of a HL7v2 message in a structured format.
  3410  type ParsedData struct {
  3411  	Segments []*Segment `json:"segments,omitempty"`
  3412  
  3413  	// ForceSendFields is a list of field names (e.g. "Segments") to
  3414  	// unconditionally include in API requests. By default, fields with
  3415  	// empty values are omitted from API requests. However, any non-pointer,
  3416  	// non-interface field appearing in ForceSendFields will be sent to the
  3417  	// server regardless of whether the field is empty or not. This may be
  3418  	// used to include empty fields in Patch requests.
  3419  	ForceSendFields []string `json:"-"`
  3420  
  3421  	// NullFields is a list of field names (e.g. "Segments") to include in
  3422  	// API requests with the JSON null value. By default, fields with empty
  3423  	// values are omitted from API requests. However, any field with an
  3424  	// empty value appearing in NullFields will be sent to the server as
  3425  	// null. It is an error if a field in this list has a non-empty value.
  3426  	// This may be used to include null fields in Patch requests.
  3427  	NullFields []string `json:"-"`
  3428  }
  3429  
  3430  func (s *ParsedData) MarshalJSON() ([]byte, error) {
  3431  	type NoMethod ParsedData
  3432  	raw := NoMethod(*s)
  3433  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3434  }
  3435  
  3436  // ParserConfig: The configuration for the parser. It determines how the
  3437  // server parses the
  3438  // messages.
  3439  type ParserConfig struct {
  3440  	// AllowNullHeader: Determines whether messages with no header are
  3441  	// allowed.
  3442  	AllowNullHeader bool `json:"allowNullHeader,omitempty"`
  3443  
  3444  	// SegmentTerminator: Byte(s) to be used as the segment terminator. If
  3445  	// this is unset, '\r' will
  3446  	// be used as the segment terminator, matching the HL7 version
  3447  	// 2
  3448  	// specification.
  3449  	SegmentTerminator string `json:"segmentTerminator,omitempty"`
  3450  
  3451  	// ForceSendFields is a list of field names (e.g. "AllowNullHeader") to
  3452  	// unconditionally include in API requests. By default, fields with
  3453  	// empty values are omitted from API requests. However, any non-pointer,
  3454  	// non-interface field appearing in ForceSendFields will be sent to the
  3455  	// server regardless of whether the field is empty or not. This may be
  3456  	// used to include empty fields in Patch requests.
  3457  	ForceSendFields []string `json:"-"`
  3458  
  3459  	// NullFields is a list of field names (e.g. "AllowNullHeader") to
  3460  	// include in API requests with the JSON null value. By default, fields
  3461  	// with empty values are omitted from API requests. However, any field
  3462  	// with an empty value appearing in NullFields will be sent to the
  3463  	// server as null. It is an error if a field in this list has a
  3464  	// non-empty value. This may be used to include null fields in Patch
  3465  	// requests.
  3466  	NullFields []string `json:"-"`
  3467  }
  3468  
  3469  func (s *ParserConfig) MarshalJSON() ([]byte, error) {
  3470  	type NoMethod ParserConfig
  3471  	raw := NoMethod(*s)
  3472  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3473  }
  3474  
  3475  // PatientId: A patient identifier and associated type.
  3476  type PatientId struct {
  3477  	// Type: ID type, e.g. MRN or NHS.
  3478  	Type string `json:"type,omitempty"`
  3479  
  3480  	// Value: The patient's unique identifier.
  3481  	Value string `json:"value,omitempty"`
  3482  
  3483  	// ForceSendFields is a list of field names (e.g. "Type") to
  3484  	// unconditionally include in API requests. By default, fields with
  3485  	// empty values are omitted from API requests. However, any non-pointer,
  3486  	// non-interface field appearing in ForceSendFields will be sent to the
  3487  	// server regardless of whether the field is empty or not. This may be
  3488  	// used to include empty fields in Patch requests.
  3489  	ForceSendFields []string `json:"-"`
  3490  
  3491  	// NullFields is a list of field names (e.g. "Type") to include in API
  3492  	// requests with the JSON null value. By default, fields with empty
  3493  	// values are omitted from API requests. However, any field with an
  3494  	// empty value appearing in NullFields will be sent to the server as
  3495  	// null. It is an error if a field in this list has a non-empty value.
  3496  	// This may be used to include null fields in Patch requests.
  3497  	NullFields []string `json:"-"`
  3498  }
  3499  
  3500  func (s *PatientId) MarshalJSON() ([]byte, error) {
  3501  	type NoMethod PatientId
  3502  	raw := NoMethod(*s)
  3503  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3504  }
  3505  
  3506  // Policy: Defines an Identity and Access Management (IAM) policy. It is
  3507  // used to
  3508  // specify access control policies for Cloud Platform resources.
  3509  //
  3510  // A `Policy` consists of a list of `bindings`. A `binding` binds a list
  3511  // of
  3512  // `members` to a `role`, where the members can be user accounts, Google
  3513  // groups,
  3514  // Google domains, and service accounts. A `role` is a named list of
  3515  // permissions
  3516  // defined by IAM.
  3517  //
  3518  // **JSON Example**
  3519  //
  3520  //	{
  3521  //	  "bindings": [
  3522  //	    {
  3523  //	      "role": "roles/owner",
  3524  //	      "members": [
  3525  //	        "user:mike@example.com",
  3526  //	        "group:admins@example.com",
  3527  //	        "domain:google.com",
  3528  //
  3529  // "serviceAccount:my-other-app@appspot.gserviceaccount.com"
  3530  //
  3531  //	      ]
  3532  //	    },
  3533  //	    {
  3534  //	      "role": "roles/viewer",
  3535  //	      "members": ["user:sean@example.com"]
  3536  //	    }
  3537  //	  ]
  3538  //	}
  3539  //
  3540  // **YAML Example**
  3541  //
  3542  //	bindings:
  3543  //	- members:
  3544  //	  - user:mike@example.com
  3545  //	  - group:admins@example.com
  3546  //	  - domain:google.com
  3547  //	  - serviceAccount:my-other-app@appspot.gserviceaccount.com
  3548  //	  role: roles/owner
  3549  //	- members:
  3550  //	  - user:sean@example.com
  3551  //	  role: roles/viewer
  3552  //
  3553  // For a description of IAM and its features, see the
  3554  // [IAM developer's guide](https://cloud.google.com/iam/docs).
  3555  type Policy struct {
  3556  	// AuditConfigs: Specifies cloud audit logging configuration for this
  3557  	// policy.
  3558  	AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"`
  3559  
  3560  	// Bindings: Associates a list of `members` to a `role`.
  3561  	// `bindings` with no members will result in an error.
  3562  	Bindings []*Binding `json:"bindings,omitempty"`
  3563  
  3564  	// Etag: `etag` is used for optimistic concurrency control as a way to
  3565  	// help
  3566  	// prevent simultaneous updates of a policy from overwriting each
  3567  	// other.
  3568  	// It is strongly suggested that systems make use of the `etag` in
  3569  	// the
  3570  	// read-modify-write cycle to perform policy updates in order to avoid
  3571  	// race
  3572  	// conditions: An `etag` is returned in the response to `getIamPolicy`,
  3573  	// and
  3574  	// systems are expected to put that etag in the request to
  3575  	// `setIamPolicy` to
  3576  	// ensure that their change will be applied to the same version of the
  3577  	// policy.
  3578  	//
  3579  	// If no `etag` is provided in the call to `setIamPolicy`, then the
  3580  	// existing
  3581  	// policy is overwritten.
  3582  	Etag string `json:"etag,omitempty"`
  3583  
  3584  	// Version: Deprecated.
  3585  	Version int64 `json:"version,omitempty"`
  3586  
  3587  	// ServerResponse contains the HTTP response code and headers from the
  3588  	// server.
  3589  	googleapi.ServerResponse `json:"-"`
  3590  
  3591  	// ForceSendFields is a list of field names (e.g. "AuditConfigs") to
  3592  	// unconditionally include in API requests. By default, fields with
  3593  	// empty values are omitted from API requests. However, any non-pointer,
  3594  	// non-interface field appearing in ForceSendFields will be sent to the
  3595  	// server regardless of whether the field is empty or not. This may be
  3596  	// used to include empty fields in Patch requests.
  3597  	ForceSendFields []string `json:"-"`
  3598  
  3599  	// NullFields is a list of field names (e.g. "AuditConfigs") to include
  3600  	// in API requests with the JSON null value. By default, fields with
  3601  	// empty values are omitted from API requests. However, any field with
  3602  	// an empty value appearing in NullFields will be sent to the server as
  3603  	// null. It is an error if a field in this list has a non-empty value.
  3604  	// This may be used to include null fields in Patch requests.
  3605  	NullFields []string `json:"-"`
  3606  }
  3607  
  3608  func (s *Policy) MarshalJSON() ([]byte, error) {
  3609  	type NoMethod Policy
  3610  	raw := NoMethod(*s)
  3611  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3612  }
  3613  
  3614  // ProgressCounter: ProgressCounter provides counters to describe an
  3615  // operation's progress.
  3616  type ProgressCounter struct {
  3617  	// Failure: The number of units that failed in the operation.
  3618  	Failure int64 `json:"failure,omitempty,string"`
  3619  
  3620  	// Pending: The number of units that are pending in the operation.
  3621  	Pending int64 `json:"pending,omitempty,string"`
  3622  
  3623  	// Success: The number of units that succeeded in the operation.
  3624  	Success int64 `json:"success,omitempty,string"`
  3625  
  3626  	// ForceSendFields is a list of field names (e.g. "Failure") to
  3627  	// unconditionally include in API requests. By default, fields with
  3628  	// empty values are omitted from API requests. However, any non-pointer,
  3629  	// non-interface field appearing in ForceSendFields will be sent to the
  3630  	// server regardless of whether the field is empty or not. This may be
  3631  	// used to include empty fields in Patch requests.
  3632  	ForceSendFields []string `json:"-"`
  3633  
  3634  	// NullFields is a list of field names (e.g. "Failure") to include in
  3635  	// API requests with the JSON null value. By default, fields with empty
  3636  	// values are omitted from API requests. However, any field with an
  3637  	// empty value appearing in NullFields will be sent to the server as
  3638  	// null. It is an error if a field in this list has a non-empty value.
  3639  	// This may be used to include null fields in Patch requests.
  3640  	NullFields []string `json:"-"`
  3641  }
  3642  
  3643  func (s *ProgressCounter) MarshalJSON() ([]byte, error) {
  3644  	type NoMethod ProgressCounter
  3645  	raw := NoMethod(*s)
  3646  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3647  }
  3648  
  3649  // RedactConfig: Defines how to redact sensitive values. Default
  3650  // behavior is erase.
  3651  // For example, "My name is Jake." becomes "My name is ."
  3652  type RedactConfig struct {
  3653  }
  3654  
  3655  // ReplaceWithInfoTypeConfig: When using the INSPECT_AND_TRANSFORM
  3656  // action, each match is replaced with
  3657  // the name of the `info_type`. For example, "My name is Jake" becomes
  3658  // "My name
  3659  // is [PERSON_NAME]." The TRANSFORM action is equivalent to redacting.
  3660  type ReplaceWithInfoTypeConfig struct {
  3661  }
  3662  
  3663  // ResourceAnnotation: Resource level annotation.
  3664  type ResourceAnnotation struct {
  3665  	Label string `json:"label,omitempty"`
  3666  
  3667  	// ForceSendFields is a list of field names (e.g. "Label") to
  3668  	// unconditionally include in API requests. By default, fields with
  3669  	// empty values are omitted from API requests. However, any non-pointer,
  3670  	// non-interface field appearing in ForceSendFields will be sent to the
  3671  	// server regardless of whether the field is empty or not. This may be
  3672  	// used to include empty fields in Patch requests.
  3673  	ForceSendFields []string `json:"-"`
  3674  
  3675  	// NullFields is a list of field names (e.g. "Label") to include in API
  3676  	// requests with the JSON null value. By default, fields with empty
  3677  	// values are omitted from API requests. However, any field with an
  3678  	// empty value appearing in NullFields will be sent to the server as
  3679  	// null. It is an error if a field in this list has a non-empty value.
  3680  	// This may be used to include null fields in Patch requests.
  3681  	NullFields []string `json:"-"`
  3682  }
  3683  
  3684  func (s *ResourceAnnotation) MarshalJSON() ([]byte, error) {
  3685  	type NoMethod ResourceAnnotation
  3686  	raw := NoMethod(*s)
  3687  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3688  }
  3689  
  3690  // SchemaConfig: Configuration for the FHIR BigQuery and Cloud Storage
  3691  // schema. Determines
  3692  // how the server generates the schema.
  3693  type SchemaConfig struct {
  3694  	// RecursiveStructureDepth: The depth for all recursive structures in
  3695  	// the output analytics
  3696  	// schema. For example, `concept` in the CodeSystem resource is a
  3697  	// recursive
  3698  	// structure; when the depth is 2, the CodeSystem table will have a
  3699  	// column
  3700  	// called `concept.concept` but not `concept.concept.concept`. If
  3701  	// not
  3702  	// specified or set to 0, the server will use the default value 2.
  3703  	RecursiveStructureDepth int64 `json:"recursiveStructureDepth,omitempty,string"`
  3704  
  3705  	// SchemaType: Specifies the output schema type. If unspecified, the
  3706  	// default is
  3707  	// `LOSSLESS`.
  3708  	//
  3709  	// Possible values:
  3710  	//   "SCHEMA_TYPE_UNSPECIFIED" - No schema type specified. Same as
  3711  	// `LOSSLESS`.
  3712  	//   "LOSSLESS" - A data-driven schema generated from the fields present
  3713  	// in the FHIR data
  3714  	// being exported, with no additional simplification.
  3715  	//   "ANALYTICS" - Analytics schema defined by the FHIR community.
  3716  	// See https://github.com/FHIR/sql-on-fhir/blob/master/sql-on-fhir.md.
  3717  	SchemaType string `json:"schemaType,omitempty"`
  3718  
  3719  	// ForceSendFields is a list of field names (e.g.
  3720  	// "RecursiveStructureDepth") to unconditionally include in API
  3721  	// requests. By default, fields with empty values are omitted from API
  3722  	// requests. However, any non-pointer, non-interface field appearing in
  3723  	// ForceSendFields will be sent to the server regardless of whether the
  3724  	// field is empty or not. This may be used to include empty fields in
  3725  	// Patch requests.
  3726  	ForceSendFields []string `json:"-"`
  3727  
  3728  	// NullFields is a list of field names (e.g. "RecursiveStructureDepth")
  3729  	// to include in API requests with the JSON null value. By default,
  3730  	// fields with empty values are omitted from API requests. However, any
  3731  	// field with an empty value appearing in NullFields will be sent to the
  3732  	// server as null. It is an error if a field in this list has a
  3733  	// non-empty value. This may be used to include null fields in Patch
  3734  	// requests.
  3735  	NullFields []string `json:"-"`
  3736  }
  3737  
  3738  func (s *SchemaConfig) MarshalJSON() ([]byte, error) {
  3739  	type NoMethod SchemaConfig
  3740  	raw := NoMethod(*s)
  3741  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3742  }
  3743  
  3744  // SearchResourcesRequest: Request to search the resources in the
  3745  // specified FHIR store.
  3746  type SearchResourcesRequest struct {
  3747  	// ResourceType: The FHIR resource type to search, such as Patient or
  3748  	// Observation. For a
  3749  	// complete list, see the FHIR Resource
  3750  	// Index
  3751  	// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcel
  3752  	// ist.html),
  3753  	// [STU3](http://hl7.org/implement/standards/fhir/STU3/resourc
  3754  	// elist.html)).
  3755  	ResourceType string `json:"resourceType,omitempty"`
  3756  
  3757  	// ForceSendFields is a list of field names (e.g. "ResourceType") to
  3758  	// unconditionally include in API requests. By default, fields with
  3759  	// empty values are omitted from API requests. However, any non-pointer,
  3760  	// non-interface field appearing in ForceSendFields will be sent to the
  3761  	// server regardless of whether the field is empty or not. This may be
  3762  	// used to include empty fields in Patch requests.
  3763  	ForceSendFields []string `json:"-"`
  3764  
  3765  	// NullFields is a list of field names (e.g. "ResourceType") to include
  3766  	// in API requests with the JSON null value. By default, fields with
  3767  	// empty values are omitted from API requests. However, any field with
  3768  	// an empty value appearing in NullFields will be sent to the server as
  3769  	// null. It is an error if a field in this list has a non-empty value.
  3770  	// This may be used to include null fields in Patch requests.
  3771  	NullFields []string `json:"-"`
  3772  }
  3773  
  3774  func (s *SearchResourcesRequest) MarshalJSON() ([]byte, error) {
  3775  	type NoMethod SearchResourcesRequest
  3776  	raw := NoMethod(*s)
  3777  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3778  }
  3779  
  3780  // Segment: A segment in a structured format.
  3781  type Segment struct {
  3782  	// Fields: A mapping from the positional location to the value.
  3783  	// The key string uses zero-based indexes separated by dots to
  3784  	// identify
  3785  	// Fields, components and sub-components. A bracket notation is also
  3786  	// used to
  3787  	// identify different instances of a repeated field.
  3788  	// Regex for key: (\d+)(\[\d+\])?(.\d+)?(.\d+)?
  3789  	//
  3790  	// Examples of (key, value) pairs:
  3791  	// - (0.1, "foo"): Component 1 of Field 0 has the value "foo".
  3792  	// - (1.1.2, "bar"): Sub-component 2 of Component 1 of field 1 has the
  3793  	// value
  3794  	// "bar".
  3795  	// - (1[2].1, "baz"): Component 1 of Instance 2 of Field 1, which is
  3796  	// repeated,
  3797  	// has the value "baz".
  3798  	Fields map[string]string `json:"fields,omitempty"`
  3799  
  3800  	// SegmentId: A string that indicates the type of segment, e.g., EVN,
  3801  	// PID.
  3802  	SegmentId string `json:"segmentId,omitempty"`
  3803  
  3804  	// SetId: Set ID for segments that can be in a set. This can be empty if
  3805  	// it is
  3806  	// missing or it is not applicable.
  3807  	SetId string `json:"setId,omitempty"`
  3808  
  3809  	// ForceSendFields is a list of field names (e.g. "Fields") to
  3810  	// unconditionally include in API requests. By default, fields with
  3811  	// empty values are omitted from API requests. However, any non-pointer,
  3812  	// non-interface field appearing in ForceSendFields will be sent to the
  3813  	// server regardless of whether the field is empty or not. This may be
  3814  	// used to include empty fields in Patch requests.
  3815  	ForceSendFields []string `json:"-"`
  3816  
  3817  	// NullFields is a list of field names (e.g. "Fields") to include in API
  3818  	// requests with the JSON null value. By default, fields with empty
  3819  	// values are omitted from API requests. However, any field with an
  3820  	// empty value appearing in NullFields will be sent to the server as
  3821  	// null. It is an error if a field in this list has a non-empty value.
  3822  	// This may be used to include null fields in Patch requests.
  3823  	NullFields []string `json:"-"`
  3824  }
  3825  
  3826  func (s *Segment) MarshalJSON() ([]byte, error) {
  3827  	type NoMethod Segment
  3828  	raw := NoMethod(*s)
  3829  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3830  }
  3831  
  3832  // SensitiveTextAnnotation: A TextAnnotation specifies a text range that
  3833  // includes sensitive information.
  3834  type SensitiveTextAnnotation struct {
  3835  	// Details: Maps from a resource slice (e.g. FHIR resource field path)
  3836  	// to a set of
  3837  	// sensitive text findings. For example,
  3838  	// Appointment.Narrative text1 --> {findings_1, findings_2, findings_3}
  3839  	Details map[string]Detail `json:"details,omitempty"`
  3840  
  3841  	// ForceSendFields is a list of field names (e.g. "Details") to
  3842  	// unconditionally include in API requests. By default, fields with
  3843  	// empty values are omitted from API requests. However, any non-pointer,
  3844  	// non-interface field appearing in ForceSendFields will be sent to the
  3845  	// server regardless of whether the field is empty or not. This may be
  3846  	// used to include empty fields in Patch requests.
  3847  	ForceSendFields []string `json:"-"`
  3848  
  3849  	// NullFields is a list of field names (e.g. "Details") to include in
  3850  	// API requests with the JSON null value. By default, fields with empty
  3851  	// values are omitted from API requests. However, any field with an
  3852  	// empty value appearing in NullFields will be sent to the server as
  3853  	// null. It is an error if a field in this list has a non-empty value.
  3854  	// This may be used to include null fields in Patch requests.
  3855  	NullFields []string `json:"-"`
  3856  }
  3857  
  3858  func (s *SensitiveTextAnnotation) MarshalJSON() ([]byte, error) {
  3859  	type NoMethod SensitiveTextAnnotation
  3860  	raw := NoMethod(*s)
  3861  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3862  }
  3863  
  3864  // SetIamPolicyRequest: Request message for `SetIamPolicy` method.
  3865  type SetIamPolicyRequest struct {
  3866  	// Policy: REQUIRED: The complete policy to be applied to the
  3867  	// `resource`. The size of
  3868  	// the policy is limited to a few 10s of KB. An empty policy is a
  3869  	// valid policy but certain Cloud Platform services (such as
  3870  	// Projects)
  3871  	// might reject them.
  3872  	Policy *Policy `json:"policy,omitempty"`
  3873  
  3874  	// UpdateMask: OPTIONAL: A FieldMask specifying which fields of the
  3875  	// policy to modify. Only
  3876  	// the fields in the mask will be modified. If no mask is provided,
  3877  	// the
  3878  	// following default mask is used:
  3879  	// paths: "bindings, etag"
  3880  	// This field is only used by Cloud IAM.
  3881  	UpdateMask string `json:"updateMask,omitempty"`
  3882  
  3883  	// ForceSendFields is a list of field names (e.g. "Policy") to
  3884  	// unconditionally include in API requests. By default, fields with
  3885  	// empty values are omitted from API requests. However, any non-pointer,
  3886  	// non-interface field appearing in ForceSendFields will be sent to the
  3887  	// server regardless of whether the field is empty or not. This may be
  3888  	// used to include empty fields in Patch requests.
  3889  	ForceSendFields []string `json:"-"`
  3890  
  3891  	// NullFields is a list of field names (e.g. "Policy") to include in API
  3892  	// requests with the JSON null value. By default, fields with empty
  3893  	// values are omitted from API requests. However, any field with an
  3894  	// empty value appearing in NullFields will be sent to the server as
  3895  	// null. It is an error if a field in this list has a non-empty value.
  3896  	// This may be used to include null fields in Patch requests.
  3897  	NullFields []string `json:"-"`
  3898  }
  3899  
  3900  func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
  3901  	type NoMethod SetIamPolicyRequest
  3902  	raw := NoMethod(*s)
  3903  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3904  }
  3905  
  3906  // Status: The `Status` type defines a logical error model that is
  3907  // suitable for
  3908  // different programming environments, including REST APIs and RPC APIs.
  3909  // It is
  3910  // used by [gRPC](https://github.com/grpc). Each `Status` message
  3911  // contains
  3912  // three pieces of data: error code, error message, and error
  3913  // details.
  3914  //
  3915  // You can find out more about this error model and how to work with it
  3916  // in the
  3917  // [API Design Guide](https://cloud.google.com/apis/design/errors).
  3918  type Status struct {
  3919  	// Code: The status code, which should be an enum value of
  3920  	// google.rpc.Code.
  3921  	Code int64 `json:"code,omitempty"`
  3922  
  3923  	// Details: A list of messages that carry the error details.  There is a
  3924  	// common set of
  3925  	// message types for APIs to use.
  3926  	Details []googleapi.RawMessage `json:"details,omitempty"`
  3927  
  3928  	// Message: A developer-facing error message, which should be in
  3929  	// English. Any
  3930  	// user-facing error message should be localized and sent in
  3931  	// the
  3932  	// google.rpc.Status.details field, or localized by the client.
  3933  	Message string `json:"message,omitempty"`
  3934  
  3935  	// ForceSendFields is a list of field names (e.g. "Code") to
  3936  	// unconditionally include in API requests. By default, fields with
  3937  	// empty values are omitted from API requests. However, any non-pointer,
  3938  	// non-interface field appearing in ForceSendFields will be sent to the
  3939  	// server regardless of whether the field is empty or not. This may be
  3940  	// used to include empty fields in Patch requests.
  3941  	ForceSendFields []string `json:"-"`
  3942  
  3943  	// NullFields is a list of field names (e.g. "Code") to include in API
  3944  	// requests with the JSON null value. By default, fields with empty
  3945  	// values are omitted from API requests. However, any field with an
  3946  	// empty value appearing in NullFields will be sent to the server as
  3947  	// null. It is an error if a field in this list has a non-empty value.
  3948  	// This may be used to include null fields in Patch requests.
  3949  	NullFields []string `json:"-"`
  3950  }
  3951  
  3952  func (s *Status) MarshalJSON() ([]byte, error) {
  3953  	type NoMethod Status
  3954  	raw := NoMethod(*s)
  3955  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  3956  }
  3957  
  3958  // StreamConfig: This structure contains configuration for streaming
  3959  // FHIR export.
  3960  type StreamConfig struct {
  3961  	// BigqueryDestination: The destination BigQuery structure that contains
  3962  	// both the dataset
  3963  	// location and corresponding schema config.
  3964  	// The output will be organized in one table per resource type.
  3965  	// The server will inspect and potentially create new tables (if
  3966  	// they
  3967  	// don't exist) in the given BigQuery dataset.
  3968  	// Results will be appended to the corresponding BigQuery tables.
  3969  	// The views of the latest snapshot will also be automatically created
  3970  	// in
  3971  	// the dataset.
  3972  	BigqueryDestination *GoogleCloudHealthcareV1alpha2FhirBigQueryDestination `json:"bigqueryDestination,omitempty"`
  3973  
  3974  	// ResourceTypes: Supply a FHIR resource type (such as "Patient" or
  3975  	// "Observation").
  3976  	// See https://www.hl7.org/fhir/valueset-resource-types.html for a list
  3977  	// of
  3978  	// all FHIR resource types.
  3979  	// The server will treat an empty list as an intent to stream all
  3980  	// the
  3981  	// supported resource types in this FHIR store.
  3982  	ResourceTypes []string `json:"resourceTypes,omitempty"`
  3983  
  3984  	// ForceSendFields is a list of field names (e.g. "BigqueryDestination")
  3985  	// to unconditionally include in API requests. By default, fields with
  3986  	// empty values are omitted from API requests. However, any non-pointer,
  3987  	// non-interface field appearing in ForceSendFields will be sent to the
  3988  	// server regardless of whether the field is empty or not. This may be
  3989  	// used to include empty fields in Patch requests.
  3990  	ForceSendFields []string `json:"-"`
  3991  
  3992  	// NullFields is a list of field names (e.g. "BigqueryDestination") to
  3993  	// include in API requests with the JSON null value. By default, fields
  3994  	// with empty values are omitted from API requests. However, any field
  3995  	// with an empty value appearing in NullFields will be sent to the
  3996  	// server as null. It is an error if a field in this list has a
  3997  	// non-empty value. This may be used to include null fields in Patch
  3998  	// requests.
  3999  	NullFields []string `json:"-"`
  4000  }
  4001  
  4002  func (s *StreamConfig) MarshalJSON() ([]byte, error) {
  4003  	type NoMethod StreamConfig
  4004  	raw := NoMethod(*s)
  4005  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4006  }
  4007  
  4008  // SubscriptionConfig: Configuration of FHIR
  4009  // Subscription:
  4010  // https://www.hl7.org/fhir/subscription.html.
  4011  type SubscriptionConfig struct {
  4012  	// AllowedRestHookEndpoints: REST hook endpoints that are allowed to
  4013  	// receive subscription notifications.
  4014  	// The create or update operation on a FHIR Subscription resource will
  4015  	// fail if
  4016  	// the FHIR Subscription resource contains a REST hook endpoint that is
  4017  	// not in
  4018  	// this list.
  4019  	// A subscription notification push will fail if the FHIR
  4020  	// Subscription
  4021  	// resource contains a REST hook endpoint that is not in this list.
  4022  	// The REST hook endpoint in a subscription resource will be compared
  4023  	// with the
  4024  	// endpoints in this list by exact matching.
  4025  	// Users must verify their ownership of the domain of an endpoint
  4026  	// before
  4027  	// adding it to this list. To verify domain ownership, go
  4028  	// to
  4029  	// https://search.google.com/search-console/welcome.
  4030  	AllowedRestHookEndpoints []*SubscriptionRestHookEndpoint `json:"allowedRestHookEndpoints,omitempty"`
  4031  
  4032  	// ForceSendFields is a list of field names (e.g.
  4033  	// "AllowedRestHookEndpoints") to unconditionally include in API
  4034  	// requests. By default, fields with empty values are omitted from API
  4035  	// requests. However, any non-pointer, non-interface field appearing in
  4036  	// ForceSendFields will be sent to the server regardless of whether the
  4037  	// field is empty or not. This may be used to include empty fields in
  4038  	// Patch requests.
  4039  	ForceSendFields []string `json:"-"`
  4040  
  4041  	// NullFields is a list of field names (e.g. "AllowedRestHookEndpoints")
  4042  	// to include in API requests with the JSON null value. By default,
  4043  	// fields with empty values are omitted from API requests. However, any
  4044  	// field with an empty value appearing in NullFields will be sent to the
  4045  	// server as null. It is an error if a field in this list has a
  4046  	// non-empty value. This may be used to include null fields in Patch
  4047  	// requests.
  4048  	NullFields []string `json:"-"`
  4049  }
  4050  
  4051  func (s *SubscriptionConfig) MarshalJSON() ([]byte, error) {
  4052  	type NoMethod SubscriptionConfig
  4053  	raw := NoMethod(*s)
  4054  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4055  }
  4056  
  4057  // SubscriptionRestHookEndpoint: REST hook endpoint of FHIR
  4058  // Subscription.
  4059  type SubscriptionRestHookEndpoint struct {
  4060  	// AllowResourcePayload: Whether this endpoint is allowed to receive
  4061  	// full resource payloads. If set
  4062  	// to false, the subscription notificiation sending to this endpoint
  4063  	// with full
  4064  	// resource payload will be blocked.
  4065  	AllowResourcePayload bool `json:"allowResourcePayload,omitempty"`
  4066  
  4067  	// Endpoint: Address of the REST hook endpoint. It must be a valid HTTPS
  4068  	// URL with TLS
  4069  	// certificate.
  4070  	Endpoint string `json:"endpoint,omitempty"`
  4071  
  4072  	// ForceSendFields is a list of field names (e.g.
  4073  	// "AllowResourcePayload") to unconditionally include in API requests.
  4074  	// By default, fields with empty values are omitted from API requests.
  4075  	// However, any non-pointer, non-interface field appearing in
  4076  	// ForceSendFields will be sent to the server regardless of whether the
  4077  	// field is empty or not. This may be used to include empty fields in
  4078  	// Patch requests.
  4079  	ForceSendFields []string `json:"-"`
  4080  
  4081  	// NullFields is a list of field names (e.g. "AllowResourcePayload") to
  4082  	// include in API requests with the JSON null value. By default, fields
  4083  	// with empty values are omitted from API requests. However, any field
  4084  	// with an empty value appearing in NullFields will be sent to the
  4085  	// server as null. It is an error if a field in this list has a
  4086  	// non-empty value. This may be used to include null fields in Patch
  4087  	// requests.
  4088  	NullFields []string `json:"-"`
  4089  }
  4090  
  4091  func (s *SubscriptionRestHookEndpoint) MarshalJSON() ([]byte, error) {
  4092  	type NoMethod SubscriptionRestHookEndpoint
  4093  	raw := NoMethod(*s)
  4094  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4095  }
  4096  
  4097  // TagFilterList: List of tags to filter.
  4098  type TagFilterList struct {
  4099  	// Tags: Tags to filter. Tags must be DICOM Data Elements, File
  4100  	// Meta
  4101  	// Elements, or Directory Structuring Elements, as defined
  4102  	// at:
  4103  	// http://dicom.nema.org/medical/dicom/current/output/html/part06.htm
  4104  	// l#table_6-1,.
  4105  	// They may be provided by "Keyword" or "Tag". For example,
  4106  	// "PatientID",
  4107  	// "00100010".
  4108  	Tags []string `json:"tags,omitempty"`
  4109  
  4110  	// ForceSendFields is a list of field names (e.g. "Tags") to
  4111  	// unconditionally include in API requests. By default, fields with
  4112  	// empty values are omitted from API requests. However, any non-pointer,
  4113  	// non-interface field appearing in ForceSendFields will be sent to the
  4114  	// server regardless of whether the field is empty or not. This may be
  4115  	// used to include empty fields in Patch requests.
  4116  	ForceSendFields []string `json:"-"`
  4117  
  4118  	// NullFields is a list of field names (e.g. "Tags") to include in API
  4119  	// requests with the JSON null value. By default, fields with empty
  4120  	// values are omitted from API requests. However, any field with an
  4121  	// empty value appearing in NullFields will be sent to the server as
  4122  	// null. It is an error if a field in this list has a non-empty value.
  4123  	// This may be used to include null fields in Patch requests.
  4124  	NullFields []string `json:"-"`
  4125  }
  4126  
  4127  func (s *TagFilterList) MarshalJSON() ([]byte, error) {
  4128  	type NoMethod TagFilterList
  4129  	raw := NoMethod(*s)
  4130  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4131  }
  4132  
  4133  // TestIamPermissionsRequest: Request message for `TestIamPermissions`
  4134  // method.
  4135  type TestIamPermissionsRequest struct {
  4136  	// Permissions: The set of permissions to check for the `resource`.
  4137  	// Permissions with
  4138  	// wildcards (such as '*' or 'storage.*') are not allowed. For
  4139  	// more
  4140  	// information see
  4141  	// [IAM
  4142  	// Overview](https://cloud.google.com/iam/docs/overview#permissions).
  4143  	Permissions []string `json:"permissions,omitempty"`
  4144  
  4145  	// ForceSendFields is a list of field names (e.g. "Permissions") to
  4146  	// unconditionally include in API requests. By default, fields with
  4147  	// empty values are omitted from API requests. However, any non-pointer,
  4148  	// non-interface field appearing in ForceSendFields will be sent to the
  4149  	// server regardless of whether the field is empty or not. This may be
  4150  	// used to include empty fields in Patch requests.
  4151  	ForceSendFields []string `json:"-"`
  4152  
  4153  	// NullFields is a list of field names (e.g. "Permissions") to include
  4154  	// in API requests with the JSON null value. By default, fields with
  4155  	// empty values are omitted from API requests. However, any field with
  4156  	// an empty value appearing in NullFields will be sent to the server as
  4157  	// null. It is an error if a field in this list has a non-empty value.
  4158  	// This may be used to include null fields in Patch requests.
  4159  	NullFields []string `json:"-"`
  4160  }
  4161  
  4162  func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
  4163  	type NoMethod TestIamPermissionsRequest
  4164  	raw := NoMethod(*s)
  4165  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4166  }
  4167  
  4168  // TestIamPermissionsResponse: Response message for `TestIamPermissions`
  4169  // method.
  4170  type TestIamPermissionsResponse struct {
  4171  	// Permissions: A subset of `TestPermissionsRequest.permissions` that
  4172  	// the caller is
  4173  	// allowed.
  4174  	Permissions []string `json:"permissions,omitempty"`
  4175  
  4176  	// ServerResponse contains the HTTP response code and headers from the
  4177  	// server.
  4178  	googleapi.ServerResponse `json:"-"`
  4179  
  4180  	// ForceSendFields is a list of field names (e.g. "Permissions") to
  4181  	// unconditionally include in API requests. By default, fields with
  4182  	// empty values are omitted from API requests. However, any non-pointer,
  4183  	// non-interface field appearing in ForceSendFields will be sent to the
  4184  	// server regardless of whether the field is empty or not. This may be
  4185  	// used to include empty fields in Patch requests.
  4186  	ForceSendFields []string `json:"-"`
  4187  
  4188  	// NullFields is a list of field names (e.g. "Permissions") to include
  4189  	// in API requests with the JSON null value. By default, fields with
  4190  	// empty values are omitted from API requests. However, any field with
  4191  	// an empty value appearing in NullFields will be sent to the server as
  4192  	// null. It is an error if a field in this list has a non-empty value.
  4193  	// This may be used to include null fields in Patch requests.
  4194  	NullFields []string `json:"-"`
  4195  }
  4196  
  4197  func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
  4198  	type NoMethod TestIamPermissionsResponse
  4199  	raw := NoMethod(*s)
  4200  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4201  }
  4202  
  4203  type TextConfig struct {
  4204  	// Transformations: The transformations to apply to the detected data.
  4205  	Transformations []*InfoTypeTransformation `json:"transformations,omitempty"`
  4206  
  4207  	// ForceSendFields is a list of field names (e.g. "Transformations") to
  4208  	// unconditionally include in API requests. By default, fields with
  4209  	// empty values are omitted from API requests. However, any non-pointer,
  4210  	// non-interface field appearing in ForceSendFields will be sent to the
  4211  	// server regardless of whether the field is empty or not. This may be
  4212  	// used to include empty fields in Patch requests.
  4213  	ForceSendFields []string `json:"-"`
  4214  
  4215  	// NullFields is a list of field names (e.g. "Transformations") to
  4216  	// include in API requests with the JSON null value. By default, fields
  4217  	// with empty values are omitted from API requests. However, any field
  4218  	// with an empty value appearing in NullFields will be sent to the
  4219  	// server as null. It is an error if a field in this list has a
  4220  	// non-empty value. This may be used to include null fields in Patch
  4221  	// requests.
  4222  	NullFields []string `json:"-"`
  4223  }
  4224  
  4225  func (s *TextConfig) MarshalJSON() ([]byte, error) {
  4226  	type NoMethod TextConfig
  4227  	raw := NoMethod(*s)
  4228  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4229  }
  4230  
  4231  // ValidationConfig: This structure contains the configuration for FHIR
  4232  // profiles and validation.
  4233  type ValidationConfig struct {
  4234  	// DisableProfileValidation: Whether profile validation should be
  4235  	// disabled for this FHIR store. Set
  4236  	// this to true to disable checking incoming resources for
  4237  	// conformance
  4238  	// against StructureDefinitions in this FHIR store.
  4239  	DisableProfileValidation bool `json:"disableProfileValidation,omitempty"`
  4240  
  4241  	// EnabledImplementationGuides: A list of ImplementationGuide IDs in
  4242  	// this FHIR store that will be used to
  4243  	// configure which profiles are used for validation. For example, to
  4244  	// enable
  4245  	// an implementation guide with ID 1 set `enabled_implementation_guides`
  4246  	// to
  4247  	// `["1"]`. If `enabled_implementation_guides` is empty or omitted
  4248  	// then
  4249  	// incoming resources will only be required to conform to the base
  4250  	// FHIR
  4251  	// profiles. Otherwise, a resource must conform to at least one
  4252  	// profile
  4253  	// listed in the `global` property of one of the
  4254  	// enabled
  4255  	// ImplementationGuides.
  4256  	EnabledImplementationGuides []string `json:"enabledImplementationGuides,omitempty"`
  4257  
  4258  	// ForceSendFields is a list of field names (e.g.
  4259  	// "DisableProfileValidation") to unconditionally include in API
  4260  	// requests. By default, fields with empty values are omitted from API
  4261  	// requests. However, any non-pointer, non-interface field appearing in
  4262  	// ForceSendFields will be sent to the server regardless of whether the
  4263  	// field is empty or not. This may be used to include empty fields in
  4264  	// Patch requests.
  4265  	ForceSendFields []string `json:"-"`
  4266  
  4267  	// NullFields is a list of field names (e.g. "DisableProfileValidation")
  4268  	// to include in API requests with the JSON null value. By default,
  4269  	// fields with empty values are omitted from API requests. However, any
  4270  	// field with an empty value appearing in NullFields will be sent to the
  4271  	// server as null. It is an error if a field in this list has a
  4272  	// non-empty value. This may be used to include null fields in Patch
  4273  	// requests.
  4274  	NullFields []string `json:"-"`
  4275  }
  4276  
  4277  func (s *ValidationConfig) MarshalJSON() ([]byte, error) {
  4278  	type NoMethod ValidationConfig
  4279  	raw := NoMethod(*s)
  4280  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4281  }
  4282  
  4283  // Vertex: A 2D coordinate in an image. The origin is the top-left.
  4284  type Vertex struct {
  4285  	// X: X coordinate.
  4286  	X float64 `json:"x,omitempty"`
  4287  
  4288  	// Y: Y coordinate.
  4289  	Y float64 `json:"y,omitempty"`
  4290  
  4291  	// ForceSendFields is a list of field names (e.g. "X") to
  4292  	// unconditionally include in API requests. By default, fields with
  4293  	// empty values are omitted from API requests. However, any non-pointer,
  4294  	// non-interface field appearing in ForceSendFields will be sent to the
  4295  	// server regardless of whether the field is empty or not. This may be
  4296  	// used to include empty fields in Patch requests.
  4297  	ForceSendFields []string `json:"-"`
  4298  
  4299  	// NullFields is a list of field names (e.g. "X") to include in API
  4300  	// requests with the JSON null value. By default, fields with empty
  4301  	// values are omitted from API requests. However, any field with an
  4302  	// empty value appearing in NullFields will be sent to the server as
  4303  	// null. It is an error if a field in this list has a non-empty value.
  4304  	// This may be used to include null fields in Patch requests.
  4305  	NullFields []string `json:"-"`
  4306  }
  4307  
  4308  func (s *Vertex) MarshalJSON() ([]byte, error) {
  4309  	type NoMethod Vertex
  4310  	raw := NoMethod(*s)
  4311  	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  4312  }
  4313  
  4314  func (s *Vertex) UnmarshalJSON(data []byte) error {
  4315  	type NoMethod Vertex
  4316  	var s1 struct {
  4317  		X gensupport.JSONFloat64 `json:"x"`
  4318  		Y gensupport.JSONFloat64 `json:"y"`
  4319  		*NoMethod
  4320  	}
  4321  	s1.NoMethod = (*NoMethod)(s)
  4322  	if err := json.Unmarshal(data, &s1); err != nil {
  4323  		return err
  4324  	}
  4325  	s.X = float64(s1.X)
  4326  	s.Y = float64(s1.Y)
  4327  	return nil
  4328  }
  4329  
  4330  // method id "healthcare.projects.locations.get":
  4331  
  4332  type ProjectsLocationsGetCall struct {
  4333  	s            *Service
  4334  	name         string
  4335  	urlParams_   gensupport.URLParams
  4336  	ifNoneMatch_ string
  4337  	ctx_         context.Context
  4338  	header_      http.Header
  4339  }
  4340  
  4341  // Get: Gets information about a location.
  4342  func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
  4343  	c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4344  	c.name = name
  4345  	return c
  4346  }
  4347  
  4348  // Fields allows partial responses to be retrieved. See
  4349  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  4350  // for more information.
  4351  func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
  4352  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4353  	return c
  4354  }
  4355  
  4356  // IfNoneMatch sets the optional parameter which makes the operation
  4357  // fail if the object's ETag matches the given value. This is useful for
  4358  // getting updates only after the object has changed since the last
  4359  // request. Use googleapi.IsNotModified to check whether the response
  4360  // error from Do is the result of In-None-Match.
  4361  func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
  4362  	c.ifNoneMatch_ = entityTag
  4363  	return c
  4364  }
  4365  
  4366  // Context sets the context to be used in this call's Do method. Any
  4367  // pending HTTP request will be aborted if the provided context is
  4368  // canceled.
  4369  func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
  4370  	c.ctx_ = ctx
  4371  	return c
  4372  }
  4373  
  4374  // Header returns an http.Header that can be modified by the caller to
  4375  // add HTTP headers to the request.
  4376  func (c *ProjectsLocationsGetCall) Header() http.Header {
  4377  	if c.header_ == nil {
  4378  		c.header_ = make(http.Header)
  4379  	}
  4380  	return c.header_
  4381  }
  4382  
  4383  func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
  4384  	reqHeaders := make(http.Header)
  4385  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  4386  	for k, v := range c.header_ {
  4387  		reqHeaders[k] = v
  4388  	}
  4389  	reqHeaders.Set("User-Agent", c.s.userAgent())
  4390  	if c.ifNoneMatch_ != "" {
  4391  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  4392  	}
  4393  	var body io.Reader = nil
  4394  	c.urlParams_.Set("alt", alt)
  4395  	c.urlParams_.Set("prettyPrint", "false")
  4396  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
  4397  	urls += "?" + c.urlParams_.Encode()
  4398  	req, err := http.NewRequest("GET", urls, body)
  4399  	if err != nil {
  4400  		return nil, err
  4401  	}
  4402  	req.Header = reqHeaders
  4403  	googleapi.Expand(req.URL, map[string]string{
  4404  		"name": c.name,
  4405  	})
  4406  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4407  }
  4408  
  4409  // Do executes the "healthcare.projects.locations.get" call.
  4410  // Exactly one of *Location or error will be non-nil. Any non-2xx status
  4411  // code is an error. Response headers are in either
  4412  // *Location.ServerResponse.Header or (if a response was returned at
  4413  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  4414  // to check whether the returned error was because
  4415  // http.StatusNotModified was returned.
  4416  func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) {
  4417  	gensupport.SetOptions(c.urlParams_, opts...)
  4418  	res, err := c.doRequest("json")
  4419  	if res != nil && res.StatusCode == http.StatusNotModified {
  4420  		if res.Body != nil {
  4421  			res.Body.Close()
  4422  		}
  4423  		return nil, &googleapi.Error{
  4424  			Code:   res.StatusCode,
  4425  			Header: res.Header,
  4426  		}
  4427  	}
  4428  	if err != nil {
  4429  		return nil, err
  4430  	}
  4431  	defer googleapi.CloseBody(res)
  4432  	if err := googleapi.CheckResponse(res); err != nil {
  4433  		return nil, err
  4434  	}
  4435  	ret := &Location{
  4436  		ServerResponse: googleapi.ServerResponse{
  4437  			Header:         res.Header,
  4438  			HTTPStatusCode: res.StatusCode,
  4439  		},
  4440  	}
  4441  	target := &ret
  4442  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4443  		return nil, err
  4444  	}
  4445  	return ret, nil
  4446  	// {
  4447  	//   "description": "Gets information about a location.",
  4448  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}",
  4449  	//   "httpMethod": "GET",
  4450  	//   "id": "healthcare.projects.locations.get",
  4451  	//   "parameterOrder": [
  4452  	//     "name"
  4453  	//   ],
  4454  	//   "parameters": {
  4455  	//     "name": {
  4456  	//       "description": "Resource name for the location.",
  4457  	//       "location": "path",
  4458  	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
  4459  	//       "required": true,
  4460  	//       "type": "string"
  4461  	//     }
  4462  	//   },
  4463  	//   "path": "v1alpha2/{+name}",
  4464  	//   "response": {
  4465  	//     "$ref": "Location"
  4466  	//   },
  4467  	//   "scopes": [
  4468  	//     "https://www.googleapis.com/auth/cloud-platform"
  4469  	//   ]
  4470  	// }
  4471  
  4472  }
  4473  
  4474  // method id "healthcare.projects.locations.list":
  4475  
  4476  type ProjectsLocationsListCall struct {
  4477  	s            *Service
  4478  	name         string
  4479  	urlParams_   gensupport.URLParams
  4480  	ifNoneMatch_ string
  4481  	ctx_         context.Context
  4482  	header_      http.Header
  4483  }
  4484  
  4485  // List: Lists information about the supported locations for this
  4486  // service.
  4487  func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
  4488  	c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4489  	c.name = name
  4490  	return c
  4491  }
  4492  
  4493  // Filter sets the optional parameter "filter": The standard list
  4494  // filter.
  4495  func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
  4496  	c.urlParams_.Set("filter", filter)
  4497  	return c
  4498  }
  4499  
  4500  // PageSize sets the optional parameter "pageSize": The standard list
  4501  // page size.
  4502  func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
  4503  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  4504  	return c
  4505  }
  4506  
  4507  // PageToken sets the optional parameter "pageToken": The standard list
  4508  // page token.
  4509  func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
  4510  	c.urlParams_.Set("pageToken", pageToken)
  4511  	return c
  4512  }
  4513  
  4514  // Fields allows partial responses to be retrieved. See
  4515  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  4516  // for more information.
  4517  func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
  4518  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4519  	return c
  4520  }
  4521  
  4522  // IfNoneMatch sets the optional parameter which makes the operation
  4523  // fail if the object's ETag matches the given value. This is useful for
  4524  // getting updates only after the object has changed since the last
  4525  // request. Use googleapi.IsNotModified to check whether the response
  4526  // error from Do is the result of In-None-Match.
  4527  func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
  4528  	c.ifNoneMatch_ = entityTag
  4529  	return c
  4530  }
  4531  
  4532  // Context sets the context to be used in this call's Do method. Any
  4533  // pending HTTP request will be aborted if the provided context is
  4534  // canceled.
  4535  func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
  4536  	c.ctx_ = ctx
  4537  	return c
  4538  }
  4539  
  4540  // Header returns an http.Header that can be modified by the caller to
  4541  // add HTTP headers to the request.
  4542  func (c *ProjectsLocationsListCall) Header() http.Header {
  4543  	if c.header_ == nil {
  4544  		c.header_ = make(http.Header)
  4545  	}
  4546  	return c.header_
  4547  }
  4548  
  4549  func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
  4550  	reqHeaders := make(http.Header)
  4551  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  4552  	for k, v := range c.header_ {
  4553  		reqHeaders[k] = v
  4554  	}
  4555  	reqHeaders.Set("User-Agent", c.s.userAgent())
  4556  	if c.ifNoneMatch_ != "" {
  4557  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  4558  	}
  4559  	var body io.Reader = nil
  4560  	c.urlParams_.Set("alt", alt)
  4561  	c.urlParams_.Set("prettyPrint", "false")
  4562  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}/locations")
  4563  	urls += "?" + c.urlParams_.Encode()
  4564  	req, err := http.NewRequest("GET", urls, body)
  4565  	if err != nil {
  4566  		return nil, err
  4567  	}
  4568  	req.Header = reqHeaders
  4569  	googleapi.Expand(req.URL, map[string]string{
  4570  		"name": c.name,
  4571  	})
  4572  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4573  }
  4574  
  4575  // Do executes the "healthcare.projects.locations.list" call.
  4576  // Exactly one of *ListLocationsResponse or error will be non-nil. Any
  4577  // non-2xx status code is an error. Response headers are in either
  4578  // *ListLocationsResponse.ServerResponse.Header or (if a response was
  4579  // returned at all) in error.(*googleapi.Error).Header. Use
  4580  // googleapi.IsNotModified to check whether the returned error was
  4581  // because http.StatusNotModified was returned.
  4582  func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) {
  4583  	gensupport.SetOptions(c.urlParams_, opts...)
  4584  	res, err := c.doRequest("json")
  4585  	if res != nil && res.StatusCode == http.StatusNotModified {
  4586  		if res.Body != nil {
  4587  			res.Body.Close()
  4588  		}
  4589  		return nil, &googleapi.Error{
  4590  			Code:   res.StatusCode,
  4591  			Header: res.Header,
  4592  		}
  4593  	}
  4594  	if err != nil {
  4595  		return nil, err
  4596  	}
  4597  	defer googleapi.CloseBody(res)
  4598  	if err := googleapi.CheckResponse(res); err != nil {
  4599  		return nil, err
  4600  	}
  4601  	ret := &ListLocationsResponse{
  4602  		ServerResponse: googleapi.ServerResponse{
  4603  			Header:         res.Header,
  4604  			HTTPStatusCode: res.StatusCode,
  4605  		},
  4606  	}
  4607  	target := &ret
  4608  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4609  		return nil, err
  4610  	}
  4611  	return ret, nil
  4612  	// {
  4613  	//   "description": "Lists information about the supported locations for this service.",
  4614  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations",
  4615  	//   "httpMethod": "GET",
  4616  	//   "id": "healthcare.projects.locations.list",
  4617  	//   "parameterOrder": [
  4618  	//     "name"
  4619  	//   ],
  4620  	//   "parameters": {
  4621  	//     "filter": {
  4622  	//       "description": "The standard list filter.",
  4623  	//       "location": "query",
  4624  	//       "type": "string"
  4625  	//     },
  4626  	//     "name": {
  4627  	//       "description": "The resource that owns the locations collection, if applicable.",
  4628  	//       "location": "path",
  4629  	//       "pattern": "^projects/[^/]+$",
  4630  	//       "required": true,
  4631  	//       "type": "string"
  4632  	//     },
  4633  	//     "pageSize": {
  4634  	//       "description": "The standard list page size.",
  4635  	//       "format": "int32",
  4636  	//       "location": "query",
  4637  	//       "type": "integer"
  4638  	//     },
  4639  	//     "pageToken": {
  4640  	//       "description": "The standard list page token.",
  4641  	//       "location": "query",
  4642  	//       "type": "string"
  4643  	//     }
  4644  	//   },
  4645  	//   "path": "v1alpha2/{+name}/locations",
  4646  	//   "response": {
  4647  	//     "$ref": "ListLocationsResponse"
  4648  	//   },
  4649  	//   "scopes": [
  4650  	//     "https://www.googleapis.com/auth/cloud-platform"
  4651  	//   ]
  4652  	// }
  4653  
  4654  }
  4655  
  4656  // Pages invokes f for each page of results.
  4657  // A non-nil error returned from f will halt the iteration.
  4658  // The provided context supersedes any context provided to the Context method.
  4659  func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error {
  4660  	c.ctx_ = ctx
  4661  	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
  4662  	for {
  4663  		x, err := c.Do()
  4664  		if err != nil {
  4665  			return err
  4666  		}
  4667  		if err := f(x); err != nil {
  4668  			return err
  4669  		}
  4670  		if x.NextPageToken == "" {
  4671  			return nil
  4672  		}
  4673  		c.PageToken(x.NextPageToken)
  4674  	}
  4675  }
  4676  
  4677  // method id "healthcare.projects.locations.datasets.create":
  4678  
  4679  type ProjectsLocationsDatasetsCreateCall struct {
  4680  	s          *Service
  4681  	parent     string
  4682  	dataset    *Dataset
  4683  	urlParams_ gensupport.URLParams
  4684  	ctx_       context.Context
  4685  	header_    http.Header
  4686  }
  4687  
  4688  // Create: Creates a new health dataset. Results are returned through
  4689  // the
  4690  // Operation interface which returns either an
  4691  // `Operation.response` which contains a Dataset or
  4692  // `Operation.error`. The metadata
  4693  // field type is OperationMetadata.
  4694  // A Google Cloud Platform project can contain up to 500 datasets across
  4695  // all
  4696  // regions.
  4697  func (r *ProjectsLocationsDatasetsService) Create(parent string, dataset *Dataset) *ProjectsLocationsDatasetsCreateCall {
  4698  	c := &ProjectsLocationsDatasetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4699  	c.parent = parent
  4700  	c.dataset = dataset
  4701  	return c
  4702  }
  4703  
  4704  // DatasetId sets the optional parameter "datasetId": The ID of the
  4705  // dataset that is being created.
  4706  // The string must match the following regex:
  4707  // `[\p{L}\p{N}_\-\.]{1,256}`.
  4708  func (c *ProjectsLocationsDatasetsCreateCall) DatasetId(datasetId string) *ProjectsLocationsDatasetsCreateCall {
  4709  	c.urlParams_.Set("datasetId", datasetId)
  4710  	return c
  4711  }
  4712  
  4713  // Fields allows partial responses to be retrieved. See
  4714  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  4715  // for more information.
  4716  func (c *ProjectsLocationsDatasetsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsCreateCall {
  4717  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4718  	return c
  4719  }
  4720  
  4721  // Context sets the context to be used in this call's Do method. Any
  4722  // pending HTTP request will be aborted if the provided context is
  4723  // canceled.
  4724  func (c *ProjectsLocationsDatasetsCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsCreateCall {
  4725  	c.ctx_ = ctx
  4726  	return c
  4727  }
  4728  
  4729  // Header returns an http.Header that can be modified by the caller to
  4730  // add HTTP headers to the request.
  4731  func (c *ProjectsLocationsDatasetsCreateCall) Header() http.Header {
  4732  	if c.header_ == nil {
  4733  		c.header_ = make(http.Header)
  4734  	}
  4735  	return c.header_
  4736  }
  4737  
  4738  func (c *ProjectsLocationsDatasetsCreateCall) doRequest(alt string) (*http.Response, error) {
  4739  	reqHeaders := make(http.Header)
  4740  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  4741  	for k, v := range c.header_ {
  4742  		reqHeaders[k] = v
  4743  	}
  4744  	reqHeaders.Set("User-Agent", c.s.userAgent())
  4745  	var body io.Reader = nil
  4746  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.dataset)
  4747  	if err != nil {
  4748  		return nil, err
  4749  	}
  4750  	reqHeaders.Set("Content-Type", "application/json")
  4751  	c.urlParams_.Set("alt", alt)
  4752  	c.urlParams_.Set("prettyPrint", "false")
  4753  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/datasets")
  4754  	urls += "?" + c.urlParams_.Encode()
  4755  	req, err := http.NewRequest("POST", urls, body)
  4756  	if err != nil {
  4757  		return nil, err
  4758  	}
  4759  	req.Header = reqHeaders
  4760  	googleapi.Expand(req.URL, map[string]string{
  4761  		"parent": c.parent,
  4762  	})
  4763  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4764  }
  4765  
  4766  // Do executes the "healthcare.projects.locations.datasets.create" call.
  4767  // Exactly one of *Operation or error will be non-nil. Any non-2xx
  4768  // status code is an error. Response headers are in either
  4769  // *Operation.ServerResponse.Header or (if a response was returned at
  4770  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  4771  // to check whether the returned error was because
  4772  // http.StatusNotModified was returned.
  4773  func (c *ProjectsLocationsDatasetsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  4774  	gensupport.SetOptions(c.urlParams_, opts...)
  4775  	res, err := c.doRequest("json")
  4776  	if res != nil && res.StatusCode == http.StatusNotModified {
  4777  		if res.Body != nil {
  4778  			res.Body.Close()
  4779  		}
  4780  		return nil, &googleapi.Error{
  4781  			Code:   res.StatusCode,
  4782  			Header: res.Header,
  4783  		}
  4784  	}
  4785  	if err != nil {
  4786  		return nil, err
  4787  	}
  4788  	defer googleapi.CloseBody(res)
  4789  	if err := googleapi.CheckResponse(res); err != nil {
  4790  		return nil, err
  4791  	}
  4792  	ret := &Operation{
  4793  		ServerResponse: googleapi.ServerResponse{
  4794  			Header:         res.Header,
  4795  			HTTPStatusCode: res.StatusCode,
  4796  		},
  4797  	}
  4798  	target := &ret
  4799  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4800  		return nil, err
  4801  	}
  4802  	return ret, nil
  4803  	// {
  4804  	//   "description": "Creates a new health dataset. Results are returned through the\nOperation interface which returns either an\n`Operation.response` which contains a Dataset or\n`Operation.error`. The metadata\nfield type is OperationMetadata.\nA Google Cloud Platform project can contain up to 500 datasets across all\nregions.",
  4805  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets",
  4806  	//   "httpMethod": "POST",
  4807  	//   "id": "healthcare.projects.locations.datasets.create",
  4808  	//   "parameterOrder": [
  4809  	//     "parent"
  4810  	//   ],
  4811  	//   "parameters": {
  4812  	//     "datasetId": {
  4813  	//       "description": "The ID of the dataset that is being created.\nThe string must match the following regex: `[\\p{L}\\p{N}_\\-\\.]{1,256}`.",
  4814  	//       "location": "query",
  4815  	//       "type": "string"
  4816  	//     },
  4817  	//     "parent": {
  4818  	//       "description": "The name of the project in which the dataset should be created (e.g.,\n`projects/{project_id}/locations/{location_id}`).",
  4819  	//       "location": "path",
  4820  	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
  4821  	//       "required": true,
  4822  	//       "type": "string"
  4823  	//     }
  4824  	//   },
  4825  	//   "path": "v1alpha2/{+parent}/datasets",
  4826  	//   "request": {
  4827  	//     "$ref": "Dataset"
  4828  	//   },
  4829  	//   "response": {
  4830  	//     "$ref": "Operation"
  4831  	//   },
  4832  	//   "scopes": [
  4833  	//     "https://www.googleapis.com/auth/cloud-platform"
  4834  	//   ]
  4835  	// }
  4836  
  4837  }
  4838  
  4839  // method id "healthcare.projects.locations.datasets.deidentify":
  4840  
  4841  type ProjectsLocationsDatasetsDeidentifyCall struct {
  4842  	s                        *Service
  4843  	sourceDataset            string
  4844  	deidentifydatasetrequest *DeidentifyDatasetRequest
  4845  	urlParams_               gensupport.URLParams
  4846  	ctx_                     context.Context
  4847  	header_                  http.Header
  4848  }
  4849  
  4850  // Deidentify: Creates a new dataset containing de-identified data from
  4851  // the source
  4852  // dataset. The metadata field type
  4853  // is OperationMetadata.
  4854  // If the request is successful, the
  4855  // response field type is
  4856  // DeidentifySummary.
  4857  // If errors occur,
  4858  // details field type is
  4859  // DeidentifyErrorDetails.
  4860  // Errors are also logged to Stackdriver
  4861  // (see [Viewing logs](/healthcare/docs/how-tos/stackdriver-logging)).
  4862  func (r *ProjectsLocationsDatasetsService) Deidentify(sourceDataset string, deidentifydatasetrequest *DeidentifyDatasetRequest) *ProjectsLocationsDatasetsDeidentifyCall {
  4863  	c := &ProjectsLocationsDatasetsDeidentifyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4864  	c.sourceDataset = sourceDataset
  4865  	c.deidentifydatasetrequest = deidentifydatasetrequest
  4866  	return c
  4867  }
  4868  
  4869  // Fields allows partial responses to be retrieved. See
  4870  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  4871  // for more information.
  4872  func (c *ProjectsLocationsDatasetsDeidentifyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDeidentifyCall {
  4873  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4874  	return c
  4875  }
  4876  
  4877  // Context sets the context to be used in this call's Do method. Any
  4878  // pending HTTP request will be aborted if the provided context is
  4879  // canceled.
  4880  func (c *ProjectsLocationsDatasetsDeidentifyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDeidentifyCall {
  4881  	c.ctx_ = ctx
  4882  	return c
  4883  }
  4884  
  4885  // Header returns an http.Header that can be modified by the caller to
  4886  // add HTTP headers to the request.
  4887  func (c *ProjectsLocationsDatasetsDeidentifyCall) Header() http.Header {
  4888  	if c.header_ == nil {
  4889  		c.header_ = make(http.Header)
  4890  	}
  4891  	return c.header_
  4892  }
  4893  
  4894  func (c *ProjectsLocationsDatasetsDeidentifyCall) doRequest(alt string) (*http.Response, error) {
  4895  	reqHeaders := make(http.Header)
  4896  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  4897  	for k, v := range c.header_ {
  4898  		reqHeaders[k] = v
  4899  	}
  4900  	reqHeaders.Set("User-Agent", c.s.userAgent())
  4901  	var body io.Reader = nil
  4902  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.deidentifydatasetrequest)
  4903  	if err != nil {
  4904  		return nil, err
  4905  	}
  4906  	reqHeaders.Set("Content-Type", "application/json")
  4907  	c.urlParams_.Set("alt", alt)
  4908  	c.urlParams_.Set("prettyPrint", "false")
  4909  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+sourceDataset}:deidentify")
  4910  	urls += "?" + c.urlParams_.Encode()
  4911  	req, err := http.NewRequest("POST", urls, body)
  4912  	if err != nil {
  4913  		return nil, err
  4914  	}
  4915  	req.Header = reqHeaders
  4916  	googleapi.Expand(req.URL, map[string]string{
  4917  		"sourceDataset": c.sourceDataset,
  4918  	})
  4919  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4920  }
  4921  
  4922  // Do executes the "healthcare.projects.locations.datasets.deidentify" call.
  4923  // Exactly one of *Operation or error will be non-nil. Any non-2xx
  4924  // status code is an error. Response headers are in either
  4925  // *Operation.ServerResponse.Header or (if a response was returned at
  4926  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  4927  // to check whether the returned error was because
  4928  // http.StatusNotModified was returned.
  4929  func (c *ProjectsLocationsDatasetsDeidentifyCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  4930  	gensupport.SetOptions(c.urlParams_, opts...)
  4931  	res, err := c.doRequest("json")
  4932  	if res != nil && res.StatusCode == http.StatusNotModified {
  4933  		if res.Body != nil {
  4934  			res.Body.Close()
  4935  		}
  4936  		return nil, &googleapi.Error{
  4937  			Code:   res.StatusCode,
  4938  			Header: res.Header,
  4939  		}
  4940  	}
  4941  	if err != nil {
  4942  		return nil, err
  4943  	}
  4944  	defer googleapi.CloseBody(res)
  4945  	if err := googleapi.CheckResponse(res); err != nil {
  4946  		return nil, err
  4947  	}
  4948  	ret := &Operation{
  4949  		ServerResponse: googleapi.ServerResponse{
  4950  			Header:         res.Header,
  4951  			HTTPStatusCode: res.StatusCode,
  4952  		},
  4953  	}
  4954  	target := &ret
  4955  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4956  		return nil, err
  4957  	}
  4958  	return ret, nil
  4959  	// {
  4960  	//   "description": "Creates a new dataset containing de-identified data from the source\ndataset. The metadata field type\nis OperationMetadata.\nIf the request is successful, the\nresponse field type is\nDeidentifySummary.\nIf errors occur,\ndetails field type is\nDeidentifyErrorDetails.\nErrors are also logged to Stackdriver\n(see [Viewing logs](/healthcare/docs/how-tos/stackdriver-logging)).",
  4961  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:deidentify",
  4962  	//   "httpMethod": "POST",
  4963  	//   "id": "healthcare.projects.locations.datasets.deidentify",
  4964  	//   "parameterOrder": [
  4965  	//     "sourceDataset"
  4966  	//   ],
  4967  	//   "parameters": {
  4968  	//     "sourceDataset": {
  4969  	//       "description": "Source dataset resource name. (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`).",
  4970  	//       "location": "path",
  4971  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
  4972  	//       "required": true,
  4973  	//       "type": "string"
  4974  	//     }
  4975  	//   },
  4976  	//   "path": "v1alpha2/{+sourceDataset}:deidentify",
  4977  	//   "request": {
  4978  	//     "$ref": "DeidentifyDatasetRequest"
  4979  	//   },
  4980  	//   "response": {
  4981  	//     "$ref": "Operation"
  4982  	//   },
  4983  	//   "scopes": [
  4984  	//     "https://www.googleapis.com/auth/cloud-platform"
  4985  	//   ]
  4986  	// }
  4987  
  4988  }
  4989  
  4990  // method id "healthcare.projects.locations.datasets.delete":
  4991  
  4992  type ProjectsLocationsDatasetsDeleteCall struct {
  4993  	s          *Service
  4994  	name       string
  4995  	urlParams_ gensupport.URLParams
  4996  	ctx_       context.Context
  4997  	header_    http.Header
  4998  }
  4999  
  5000  // Delete: Deletes the specified health dataset and all data contained
  5001  // in the dataset.
  5002  // Deleting a dataset does not affect the sources from which the dataset
  5003  // was
  5004  // imported (if any).
  5005  func (r *ProjectsLocationsDatasetsService) Delete(name string) *ProjectsLocationsDatasetsDeleteCall {
  5006  	c := &ProjectsLocationsDatasetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5007  	c.name = name
  5008  	return c
  5009  }
  5010  
  5011  // Fields allows partial responses to be retrieved. See
  5012  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  5013  // for more information.
  5014  func (c *ProjectsLocationsDatasetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDeleteCall {
  5015  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5016  	return c
  5017  }
  5018  
  5019  // Context sets the context to be used in this call's Do method. Any
  5020  // pending HTTP request will be aborted if the provided context is
  5021  // canceled.
  5022  func (c *ProjectsLocationsDatasetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDeleteCall {
  5023  	c.ctx_ = ctx
  5024  	return c
  5025  }
  5026  
  5027  // Header returns an http.Header that can be modified by the caller to
  5028  // add HTTP headers to the request.
  5029  func (c *ProjectsLocationsDatasetsDeleteCall) Header() http.Header {
  5030  	if c.header_ == nil {
  5031  		c.header_ = make(http.Header)
  5032  	}
  5033  	return c.header_
  5034  }
  5035  
  5036  func (c *ProjectsLocationsDatasetsDeleteCall) doRequest(alt string) (*http.Response, error) {
  5037  	reqHeaders := make(http.Header)
  5038  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  5039  	for k, v := range c.header_ {
  5040  		reqHeaders[k] = v
  5041  	}
  5042  	reqHeaders.Set("User-Agent", c.s.userAgent())
  5043  	var body io.Reader = nil
  5044  	c.urlParams_.Set("alt", alt)
  5045  	c.urlParams_.Set("prettyPrint", "false")
  5046  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
  5047  	urls += "?" + c.urlParams_.Encode()
  5048  	req, err := http.NewRequest("DELETE", urls, body)
  5049  	if err != nil {
  5050  		return nil, err
  5051  	}
  5052  	req.Header = reqHeaders
  5053  	googleapi.Expand(req.URL, map[string]string{
  5054  		"name": c.name,
  5055  	})
  5056  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5057  }
  5058  
  5059  // Do executes the "healthcare.projects.locations.datasets.delete" call.
  5060  // Exactly one of *Empty or error will be non-nil. Any non-2xx status
  5061  // code is an error. Response headers are in either
  5062  // *Empty.ServerResponse.Header or (if a response was returned at all)
  5063  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  5064  // check whether the returned error was because http.StatusNotModified
  5065  // was returned.
  5066  func (c *ProjectsLocationsDatasetsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  5067  	gensupport.SetOptions(c.urlParams_, opts...)
  5068  	res, err := c.doRequest("json")
  5069  	if res != nil && res.StatusCode == http.StatusNotModified {
  5070  		if res.Body != nil {
  5071  			res.Body.Close()
  5072  		}
  5073  		return nil, &googleapi.Error{
  5074  			Code:   res.StatusCode,
  5075  			Header: res.Header,
  5076  		}
  5077  	}
  5078  	if err != nil {
  5079  		return nil, err
  5080  	}
  5081  	defer googleapi.CloseBody(res)
  5082  	if err := googleapi.CheckResponse(res); err != nil {
  5083  		return nil, err
  5084  	}
  5085  	ret := &Empty{
  5086  		ServerResponse: googleapi.ServerResponse{
  5087  			Header:         res.Header,
  5088  			HTTPStatusCode: res.StatusCode,
  5089  		},
  5090  	}
  5091  	target := &ret
  5092  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5093  		return nil, err
  5094  	}
  5095  	return ret, nil
  5096  	// {
  5097  	//   "description": "Deletes the specified health dataset and all data contained in the dataset.\nDeleting a dataset does not affect the sources from which the dataset was\nimported (if any).",
  5098  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}",
  5099  	//   "httpMethod": "DELETE",
  5100  	//   "id": "healthcare.projects.locations.datasets.delete",
  5101  	//   "parameterOrder": [
  5102  	//     "name"
  5103  	//   ],
  5104  	//   "parameters": {
  5105  	//     "name": {
  5106  	//       "description": "The name of the dataset to delete (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`).",
  5107  	//       "location": "path",
  5108  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
  5109  	//       "required": true,
  5110  	//       "type": "string"
  5111  	//     }
  5112  	//   },
  5113  	//   "path": "v1alpha2/{+name}",
  5114  	//   "response": {
  5115  	//     "$ref": "Empty"
  5116  	//   },
  5117  	//   "scopes": [
  5118  	//     "https://www.googleapis.com/auth/cloud-platform"
  5119  	//   ]
  5120  	// }
  5121  
  5122  }
  5123  
  5124  // method id "healthcare.projects.locations.datasets.get":
  5125  
  5126  type ProjectsLocationsDatasetsGetCall struct {
  5127  	s            *Service
  5128  	name         string
  5129  	urlParams_   gensupport.URLParams
  5130  	ifNoneMatch_ string
  5131  	ctx_         context.Context
  5132  	header_      http.Header
  5133  }
  5134  
  5135  // Get: Gets any metadata associated with a dataset.
  5136  func (r *ProjectsLocationsDatasetsService) Get(name string) *ProjectsLocationsDatasetsGetCall {
  5137  	c := &ProjectsLocationsDatasetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5138  	c.name = name
  5139  	return c
  5140  }
  5141  
  5142  // Fields allows partial responses to be retrieved. See
  5143  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  5144  // for more information.
  5145  func (c *ProjectsLocationsDatasetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsGetCall {
  5146  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5147  	return c
  5148  }
  5149  
  5150  // IfNoneMatch sets the optional parameter which makes the operation
  5151  // fail if the object's ETag matches the given value. This is useful for
  5152  // getting updates only after the object has changed since the last
  5153  // request. Use googleapi.IsNotModified to check whether the response
  5154  // error from Do is the result of In-None-Match.
  5155  func (c *ProjectsLocationsDatasetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsGetCall {
  5156  	c.ifNoneMatch_ = entityTag
  5157  	return c
  5158  }
  5159  
  5160  // Context sets the context to be used in this call's Do method. Any
  5161  // pending HTTP request will be aborted if the provided context is
  5162  // canceled.
  5163  func (c *ProjectsLocationsDatasetsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsGetCall {
  5164  	c.ctx_ = ctx
  5165  	return c
  5166  }
  5167  
  5168  // Header returns an http.Header that can be modified by the caller to
  5169  // add HTTP headers to the request.
  5170  func (c *ProjectsLocationsDatasetsGetCall) Header() http.Header {
  5171  	if c.header_ == nil {
  5172  		c.header_ = make(http.Header)
  5173  	}
  5174  	return c.header_
  5175  }
  5176  
  5177  func (c *ProjectsLocationsDatasetsGetCall) doRequest(alt string) (*http.Response, error) {
  5178  	reqHeaders := make(http.Header)
  5179  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  5180  	for k, v := range c.header_ {
  5181  		reqHeaders[k] = v
  5182  	}
  5183  	reqHeaders.Set("User-Agent", c.s.userAgent())
  5184  	if c.ifNoneMatch_ != "" {
  5185  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5186  	}
  5187  	var body io.Reader = nil
  5188  	c.urlParams_.Set("alt", alt)
  5189  	c.urlParams_.Set("prettyPrint", "false")
  5190  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
  5191  	urls += "?" + c.urlParams_.Encode()
  5192  	req, err := http.NewRequest("GET", urls, body)
  5193  	if err != nil {
  5194  		return nil, err
  5195  	}
  5196  	req.Header = reqHeaders
  5197  	googleapi.Expand(req.URL, map[string]string{
  5198  		"name": c.name,
  5199  	})
  5200  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5201  }
  5202  
  5203  // Do executes the "healthcare.projects.locations.datasets.get" call.
  5204  // Exactly one of *Dataset or error will be non-nil. Any non-2xx status
  5205  // code is an error. Response headers are in either
  5206  // *Dataset.ServerResponse.Header or (if a response was returned at all)
  5207  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  5208  // check whether the returned error was because http.StatusNotModified
  5209  // was returned.
  5210  func (c *ProjectsLocationsDatasetsGetCall) Do(opts ...googleapi.CallOption) (*Dataset, error) {
  5211  	gensupport.SetOptions(c.urlParams_, opts...)
  5212  	res, err := c.doRequest("json")
  5213  	if res != nil && res.StatusCode == http.StatusNotModified {
  5214  		if res.Body != nil {
  5215  			res.Body.Close()
  5216  		}
  5217  		return nil, &googleapi.Error{
  5218  			Code:   res.StatusCode,
  5219  			Header: res.Header,
  5220  		}
  5221  	}
  5222  	if err != nil {
  5223  		return nil, err
  5224  	}
  5225  	defer googleapi.CloseBody(res)
  5226  	if err := googleapi.CheckResponse(res); err != nil {
  5227  		return nil, err
  5228  	}
  5229  	ret := &Dataset{
  5230  		ServerResponse: googleapi.ServerResponse{
  5231  			Header:         res.Header,
  5232  			HTTPStatusCode: res.StatusCode,
  5233  		},
  5234  	}
  5235  	target := &ret
  5236  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5237  		return nil, err
  5238  	}
  5239  	return ret, nil
  5240  	// {
  5241  	//   "description": "Gets any metadata associated with a dataset.",
  5242  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}",
  5243  	//   "httpMethod": "GET",
  5244  	//   "id": "healthcare.projects.locations.datasets.get",
  5245  	//   "parameterOrder": [
  5246  	//     "name"
  5247  	//   ],
  5248  	//   "parameters": {
  5249  	//     "name": {
  5250  	//       "description": "The name of the dataset to read (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`).",
  5251  	//       "location": "path",
  5252  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
  5253  	//       "required": true,
  5254  	//       "type": "string"
  5255  	//     }
  5256  	//   },
  5257  	//   "path": "v1alpha2/{+name}",
  5258  	//   "response": {
  5259  	//     "$ref": "Dataset"
  5260  	//   },
  5261  	//   "scopes": [
  5262  	//     "https://www.googleapis.com/auth/cloud-platform"
  5263  	//   ]
  5264  	// }
  5265  
  5266  }
  5267  
  5268  // method id "healthcare.projects.locations.datasets.getIamPolicy":
  5269  
  5270  type ProjectsLocationsDatasetsGetIamPolicyCall struct {
  5271  	s            *Service
  5272  	resource     string
  5273  	urlParams_   gensupport.URLParams
  5274  	ifNoneMatch_ string
  5275  	ctx_         context.Context
  5276  	header_      http.Header
  5277  }
  5278  
  5279  // GetIamPolicy: Gets the access control policy for a resource.
  5280  // Returns an empty policy if the resource exists and does not have a
  5281  // policy
  5282  // set.
  5283  func (r *ProjectsLocationsDatasetsService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsGetIamPolicyCall {
  5284  	c := &ProjectsLocationsDatasetsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5285  	c.resource = resource
  5286  	return c
  5287  }
  5288  
  5289  // OptionsRequestedPolicyVersion sets the optional parameter
  5290  // "options.requestedPolicyVersion": The policy format version to be
  5291  // returned.
  5292  // Acceptable values are 0, 1, and 3.
  5293  // If the value is 0, or the field is omitted, policy format version 1
  5294  // will be
  5295  // returned.
  5296  func (c *ProjectsLocationsDatasetsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsGetIamPolicyCall {
  5297  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
  5298  	return c
  5299  }
  5300  
  5301  // Fields allows partial responses to be retrieved. See
  5302  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  5303  // for more information.
  5304  func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsGetIamPolicyCall {
  5305  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5306  	return c
  5307  }
  5308  
  5309  // IfNoneMatch sets the optional parameter which makes the operation
  5310  // fail if the object's ETag matches the given value. This is useful for
  5311  // getting updates only after the object has changed since the last
  5312  // request. Use googleapi.IsNotModified to check whether the response
  5313  // error from Do is the result of In-None-Match.
  5314  func (c *ProjectsLocationsDatasetsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsGetIamPolicyCall {
  5315  	c.ifNoneMatch_ = entityTag
  5316  	return c
  5317  }
  5318  
  5319  // Context sets the context to be used in this call's Do method. Any
  5320  // pending HTTP request will be aborted if the provided context is
  5321  // canceled.
  5322  func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsGetIamPolicyCall {
  5323  	c.ctx_ = ctx
  5324  	return c
  5325  }
  5326  
  5327  // Header returns an http.Header that can be modified by the caller to
  5328  // add HTTP headers to the request.
  5329  func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Header() http.Header {
  5330  	if c.header_ == nil {
  5331  		c.header_ = make(http.Header)
  5332  	}
  5333  	return c.header_
  5334  }
  5335  
  5336  func (c *ProjectsLocationsDatasetsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  5337  	reqHeaders := make(http.Header)
  5338  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  5339  	for k, v := range c.header_ {
  5340  		reqHeaders[k] = v
  5341  	}
  5342  	reqHeaders.Set("User-Agent", c.s.userAgent())
  5343  	if c.ifNoneMatch_ != "" {
  5344  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5345  	}
  5346  	var body io.Reader = nil
  5347  	c.urlParams_.Set("alt", alt)
  5348  	c.urlParams_.Set("prettyPrint", "false")
  5349  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:getIamPolicy")
  5350  	urls += "?" + c.urlParams_.Encode()
  5351  	req, err := http.NewRequest("GET", urls, body)
  5352  	if err != nil {
  5353  		return nil, err
  5354  	}
  5355  	req.Header = reqHeaders
  5356  	googleapi.Expand(req.URL, map[string]string{
  5357  		"resource": c.resource,
  5358  	})
  5359  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5360  }
  5361  
  5362  // Do executes the "healthcare.projects.locations.datasets.getIamPolicy" call.
  5363  // Exactly one of *Policy or error will be non-nil. Any non-2xx status
  5364  // code is an error. Response headers are in either
  5365  // *Policy.ServerResponse.Header or (if a response was returned at all)
  5366  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  5367  // check whether the returned error was because http.StatusNotModified
  5368  // was returned.
  5369  func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
  5370  	gensupport.SetOptions(c.urlParams_, opts...)
  5371  	res, err := c.doRequest("json")
  5372  	if res != nil && res.StatusCode == http.StatusNotModified {
  5373  		if res.Body != nil {
  5374  			res.Body.Close()
  5375  		}
  5376  		return nil, &googleapi.Error{
  5377  			Code:   res.StatusCode,
  5378  			Header: res.Header,
  5379  		}
  5380  	}
  5381  	if err != nil {
  5382  		return nil, err
  5383  	}
  5384  	defer googleapi.CloseBody(res)
  5385  	if err := googleapi.CheckResponse(res); err != nil {
  5386  		return nil, err
  5387  	}
  5388  	ret := &Policy{
  5389  		ServerResponse: googleapi.ServerResponse{
  5390  			Header:         res.Header,
  5391  			HTTPStatusCode: res.StatusCode,
  5392  		},
  5393  	}
  5394  	target := &ret
  5395  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5396  		return nil, err
  5397  	}
  5398  	return ret, nil
  5399  	// {
  5400  	//   "description": "Gets the access control policy for a resource.\nReturns an empty policy if the resource exists and does not have a policy\nset.",
  5401  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:getIamPolicy",
  5402  	//   "httpMethod": "GET",
  5403  	//   "id": "healthcare.projects.locations.datasets.getIamPolicy",
  5404  	//   "parameterOrder": [
  5405  	//     "resource"
  5406  	//   ],
  5407  	//   "parameters": {
  5408  	//     "options.requestedPolicyVersion": {
  5409  	//       "description": "Optional. The policy format version to be returned.\nAcceptable values are 0, 1, and 3.\nIf the value is 0, or the field is omitted, policy format version 1 will be\nreturned.",
  5410  	//       "format": "int32",
  5411  	//       "location": "query",
  5412  	//       "type": "integer"
  5413  	//     },
  5414  	//     "resource": {
  5415  	//       "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.",
  5416  	//       "location": "path",
  5417  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
  5418  	//       "required": true,
  5419  	//       "type": "string"
  5420  	//     }
  5421  	//   },
  5422  	//   "path": "v1alpha2/{+resource}:getIamPolicy",
  5423  	//   "response": {
  5424  	//     "$ref": "Policy"
  5425  	//   },
  5426  	//   "scopes": [
  5427  	//     "https://www.googleapis.com/auth/cloud-platform"
  5428  	//   ]
  5429  	// }
  5430  
  5431  }
  5432  
  5433  // method id "healthcare.projects.locations.datasets.list":
  5434  
  5435  type ProjectsLocationsDatasetsListCall struct {
  5436  	s            *Service
  5437  	parent       string
  5438  	urlParams_   gensupport.URLParams
  5439  	ifNoneMatch_ string
  5440  	ctx_         context.Context
  5441  	header_      http.Header
  5442  }
  5443  
  5444  // List: Lists the health datasets in the current project.
  5445  func (r *ProjectsLocationsDatasetsService) List(parent string) *ProjectsLocationsDatasetsListCall {
  5446  	c := &ProjectsLocationsDatasetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5447  	c.parent = parent
  5448  	return c
  5449  }
  5450  
  5451  // PageSize sets the optional parameter "pageSize": The maximum number
  5452  // of items to return. Capped to 100 if not specified.
  5453  // May not be larger than 1000.
  5454  func (c *ProjectsLocationsDatasetsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsListCall {
  5455  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  5456  	return c
  5457  }
  5458  
  5459  // PageToken sets the optional parameter "pageToken": The
  5460  // next_page_token value returned from a previous List request, if any.
  5461  func (c *ProjectsLocationsDatasetsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsListCall {
  5462  	c.urlParams_.Set("pageToken", pageToken)
  5463  	return c
  5464  }
  5465  
  5466  // Fields allows partial responses to be retrieved. See
  5467  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  5468  // for more information.
  5469  func (c *ProjectsLocationsDatasetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsListCall {
  5470  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5471  	return c
  5472  }
  5473  
  5474  // IfNoneMatch sets the optional parameter which makes the operation
  5475  // fail if the object's ETag matches the given value. This is useful for
  5476  // getting updates only after the object has changed since the last
  5477  // request. Use googleapi.IsNotModified to check whether the response
  5478  // error from Do is the result of In-None-Match.
  5479  func (c *ProjectsLocationsDatasetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsListCall {
  5480  	c.ifNoneMatch_ = entityTag
  5481  	return c
  5482  }
  5483  
  5484  // Context sets the context to be used in this call's Do method. Any
  5485  // pending HTTP request will be aborted if the provided context is
  5486  // canceled.
  5487  func (c *ProjectsLocationsDatasetsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsListCall {
  5488  	c.ctx_ = ctx
  5489  	return c
  5490  }
  5491  
  5492  // Header returns an http.Header that can be modified by the caller to
  5493  // add HTTP headers to the request.
  5494  func (c *ProjectsLocationsDatasetsListCall) Header() http.Header {
  5495  	if c.header_ == nil {
  5496  		c.header_ = make(http.Header)
  5497  	}
  5498  	return c.header_
  5499  }
  5500  
  5501  func (c *ProjectsLocationsDatasetsListCall) doRequest(alt string) (*http.Response, error) {
  5502  	reqHeaders := make(http.Header)
  5503  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  5504  	for k, v := range c.header_ {
  5505  		reqHeaders[k] = v
  5506  	}
  5507  	reqHeaders.Set("User-Agent", c.s.userAgent())
  5508  	if c.ifNoneMatch_ != "" {
  5509  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5510  	}
  5511  	var body io.Reader = nil
  5512  	c.urlParams_.Set("alt", alt)
  5513  	c.urlParams_.Set("prettyPrint", "false")
  5514  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/datasets")
  5515  	urls += "?" + c.urlParams_.Encode()
  5516  	req, err := http.NewRequest("GET", urls, body)
  5517  	if err != nil {
  5518  		return nil, err
  5519  	}
  5520  	req.Header = reqHeaders
  5521  	googleapi.Expand(req.URL, map[string]string{
  5522  		"parent": c.parent,
  5523  	})
  5524  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5525  }
  5526  
  5527  // Do executes the "healthcare.projects.locations.datasets.list" call.
  5528  // Exactly one of *ListDatasetsResponse or error will be non-nil. Any
  5529  // non-2xx status code is an error. Response headers are in either
  5530  // *ListDatasetsResponse.ServerResponse.Header or (if a response was
  5531  // returned at all) in error.(*googleapi.Error).Header. Use
  5532  // googleapi.IsNotModified to check whether the returned error was
  5533  // because http.StatusNotModified was returned.
  5534  func (c *ProjectsLocationsDatasetsListCall) Do(opts ...googleapi.CallOption) (*ListDatasetsResponse, error) {
  5535  	gensupport.SetOptions(c.urlParams_, opts...)
  5536  	res, err := c.doRequest("json")
  5537  	if res != nil && res.StatusCode == http.StatusNotModified {
  5538  		if res.Body != nil {
  5539  			res.Body.Close()
  5540  		}
  5541  		return nil, &googleapi.Error{
  5542  			Code:   res.StatusCode,
  5543  			Header: res.Header,
  5544  		}
  5545  	}
  5546  	if err != nil {
  5547  		return nil, err
  5548  	}
  5549  	defer googleapi.CloseBody(res)
  5550  	if err := googleapi.CheckResponse(res); err != nil {
  5551  		return nil, err
  5552  	}
  5553  	ret := &ListDatasetsResponse{
  5554  		ServerResponse: googleapi.ServerResponse{
  5555  			Header:         res.Header,
  5556  			HTTPStatusCode: res.StatusCode,
  5557  		},
  5558  	}
  5559  	target := &ret
  5560  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5561  		return nil, err
  5562  	}
  5563  	return ret, nil
  5564  	// {
  5565  	//   "description": "Lists the health datasets in the current project.",
  5566  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets",
  5567  	//   "httpMethod": "GET",
  5568  	//   "id": "healthcare.projects.locations.datasets.list",
  5569  	//   "parameterOrder": [
  5570  	//     "parent"
  5571  	//   ],
  5572  	//   "parameters": {
  5573  	//     "pageSize": {
  5574  	//       "description": "The maximum number of items to return. Capped to 100 if not specified.\nMay not be larger than 1000.",
  5575  	//       "format": "int32",
  5576  	//       "location": "query",
  5577  	//       "type": "integer"
  5578  	//     },
  5579  	//     "pageToken": {
  5580  	//       "description": "The next_page_token value returned from a previous List request, if any.",
  5581  	//       "location": "query",
  5582  	//       "type": "string"
  5583  	//     },
  5584  	//     "parent": {
  5585  	//       "description": "The name of the project whose datasets should be listed (e.g.,\n`projects/{project_id}/locations/{location_id}`).",
  5586  	//       "location": "path",
  5587  	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
  5588  	//       "required": true,
  5589  	//       "type": "string"
  5590  	//     }
  5591  	//   },
  5592  	//   "path": "v1alpha2/{+parent}/datasets",
  5593  	//   "response": {
  5594  	//     "$ref": "ListDatasetsResponse"
  5595  	//   },
  5596  	//   "scopes": [
  5597  	//     "https://www.googleapis.com/auth/cloud-platform"
  5598  	//   ]
  5599  	// }
  5600  
  5601  }
  5602  
  5603  // Pages invokes f for each page of results.
  5604  // A non-nil error returned from f will halt the iteration.
  5605  // The provided context supersedes any context provided to the Context method.
  5606  func (c *ProjectsLocationsDatasetsListCall) Pages(ctx context.Context, f func(*ListDatasetsResponse) error) error {
  5607  	c.ctx_ = ctx
  5608  	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
  5609  	for {
  5610  		x, err := c.Do()
  5611  		if err != nil {
  5612  			return err
  5613  		}
  5614  		if err := f(x); err != nil {
  5615  			return err
  5616  		}
  5617  		if x.NextPageToken == "" {
  5618  			return nil
  5619  		}
  5620  		c.PageToken(x.NextPageToken)
  5621  	}
  5622  }
  5623  
  5624  // method id "healthcare.projects.locations.datasets.patch":
  5625  
  5626  type ProjectsLocationsDatasetsPatchCall struct {
  5627  	s          *Service
  5628  	name       string
  5629  	dataset    *Dataset
  5630  	urlParams_ gensupport.URLParams
  5631  	ctx_       context.Context
  5632  	header_    http.Header
  5633  }
  5634  
  5635  // Patch: Updates dataset metadata.
  5636  func (r *ProjectsLocationsDatasetsService) Patch(name string, dataset *Dataset) *ProjectsLocationsDatasetsPatchCall {
  5637  	c := &ProjectsLocationsDatasetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5638  	c.name = name
  5639  	c.dataset = dataset
  5640  	return c
  5641  }
  5642  
  5643  // UpdateMask sets the optional parameter "updateMask": The update mask
  5644  // applies to the resource. For the `FieldMask`
  5645  // definition,
  5646  // see
  5647  // https://developers.google.com/protocol-buffers/docs/re
  5648  // ference/google.protobuf#fieldmask
  5649  func (c *ProjectsLocationsDatasetsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsPatchCall {
  5650  	c.urlParams_.Set("updateMask", updateMask)
  5651  	return c
  5652  }
  5653  
  5654  // Fields allows partial responses to be retrieved. See
  5655  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  5656  // for more information.
  5657  func (c *ProjectsLocationsDatasetsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsPatchCall {
  5658  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5659  	return c
  5660  }
  5661  
  5662  // Context sets the context to be used in this call's Do method. Any
  5663  // pending HTTP request will be aborted if the provided context is
  5664  // canceled.
  5665  func (c *ProjectsLocationsDatasetsPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsPatchCall {
  5666  	c.ctx_ = ctx
  5667  	return c
  5668  }
  5669  
  5670  // Header returns an http.Header that can be modified by the caller to
  5671  // add HTTP headers to the request.
  5672  func (c *ProjectsLocationsDatasetsPatchCall) Header() http.Header {
  5673  	if c.header_ == nil {
  5674  		c.header_ = make(http.Header)
  5675  	}
  5676  	return c.header_
  5677  }
  5678  
  5679  func (c *ProjectsLocationsDatasetsPatchCall) doRequest(alt string) (*http.Response, error) {
  5680  	reqHeaders := make(http.Header)
  5681  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  5682  	for k, v := range c.header_ {
  5683  		reqHeaders[k] = v
  5684  	}
  5685  	reqHeaders.Set("User-Agent", c.s.userAgent())
  5686  	var body io.Reader = nil
  5687  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.dataset)
  5688  	if err != nil {
  5689  		return nil, err
  5690  	}
  5691  	reqHeaders.Set("Content-Type", "application/json")
  5692  	c.urlParams_.Set("alt", alt)
  5693  	c.urlParams_.Set("prettyPrint", "false")
  5694  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
  5695  	urls += "?" + c.urlParams_.Encode()
  5696  	req, err := http.NewRequest("PATCH", urls, body)
  5697  	if err != nil {
  5698  		return nil, err
  5699  	}
  5700  	req.Header = reqHeaders
  5701  	googleapi.Expand(req.URL, map[string]string{
  5702  		"name": c.name,
  5703  	})
  5704  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5705  }
  5706  
  5707  // Do executes the "healthcare.projects.locations.datasets.patch" call.
  5708  // Exactly one of *Dataset or error will be non-nil. Any non-2xx status
  5709  // code is an error. Response headers are in either
  5710  // *Dataset.ServerResponse.Header or (if a response was returned at all)
  5711  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  5712  // check whether the returned error was because http.StatusNotModified
  5713  // was returned.
  5714  func (c *ProjectsLocationsDatasetsPatchCall) Do(opts ...googleapi.CallOption) (*Dataset, error) {
  5715  	gensupport.SetOptions(c.urlParams_, opts...)
  5716  	res, err := c.doRequest("json")
  5717  	if res != nil && res.StatusCode == http.StatusNotModified {
  5718  		if res.Body != nil {
  5719  			res.Body.Close()
  5720  		}
  5721  		return nil, &googleapi.Error{
  5722  			Code:   res.StatusCode,
  5723  			Header: res.Header,
  5724  		}
  5725  	}
  5726  	if err != nil {
  5727  		return nil, err
  5728  	}
  5729  	defer googleapi.CloseBody(res)
  5730  	if err := googleapi.CheckResponse(res); err != nil {
  5731  		return nil, err
  5732  	}
  5733  	ret := &Dataset{
  5734  		ServerResponse: googleapi.ServerResponse{
  5735  			Header:         res.Header,
  5736  			HTTPStatusCode: res.StatusCode,
  5737  		},
  5738  	}
  5739  	target := &ret
  5740  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5741  		return nil, err
  5742  	}
  5743  	return ret, nil
  5744  	// {
  5745  	//   "description": "Updates dataset metadata.",
  5746  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}",
  5747  	//   "httpMethod": "PATCH",
  5748  	//   "id": "healthcare.projects.locations.datasets.patch",
  5749  	//   "parameterOrder": [
  5750  	//     "name"
  5751  	//   ],
  5752  	//   "parameters": {
  5753  	//     "name": {
  5754  	//       "description": "Output only. Resource name of the dataset, of the form\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`.",
  5755  	//       "location": "path",
  5756  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
  5757  	//       "required": true,
  5758  	//       "type": "string"
  5759  	//     },
  5760  	//     "updateMask": {
  5761  	//       "description": "The update mask applies to the resource. For the `FieldMask` definition,\nsee\nhttps://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask",
  5762  	//       "format": "google-fieldmask",
  5763  	//       "location": "query",
  5764  	//       "type": "string"
  5765  	//     }
  5766  	//   },
  5767  	//   "path": "v1alpha2/{+name}",
  5768  	//   "request": {
  5769  	//     "$ref": "Dataset"
  5770  	//   },
  5771  	//   "response": {
  5772  	//     "$ref": "Dataset"
  5773  	//   },
  5774  	//   "scopes": [
  5775  	//     "https://www.googleapis.com/auth/cloud-platform"
  5776  	//   ]
  5777  	// }
  5778  
  5779  }
  5780  
  5781  // method id "healthcare.projects.locations.datasets.setIamPolicy":
  5782  
  5783  type ProjectsLocationsDatasetsSetIamPolicyCall struct {
  5784  	s                   *Service
  5785  	resource            string
  5786  	setiampolicyrequest *SetIamPolicyRequest
  5787  	urlParams_          gensupport.URLParams
  5788  	ctx_                context.Context
  5789  	header_             http.Header
  5790  }
  5791  
  5792  // SetIamPolicy: Sets the access control policy on the specified
  5793  // resource. Replaces any
  5794  // existing policy.
  5795  func (r *ProjectsLocationsDatasetsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsSetIamPolicyCall {
  5796  	c := &ProjectsLocationsDatasetsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5797  	c.resource = resource
  5798  	c.setiampolicyrequest = setiampolicyrequest
  5799  	return c
  5800  }
  5801  
  5802  // Fields allows partial responses to be retrieved. See
  5803  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  5804  // for more information.
  5805  func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSetIamPolicyCall {
  5806  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5807  	return c
  5808  }
  5809  
  5810  // Context sets the context to be used in this call's Do method. Any
  5811  // pending HTTP request will be aborted if the provided context is
  5812  // canceled.
  5813  func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSetIamPolicyCall {
  5814  	c.ctx_ = ctx
  5815  	return c
  5816  }
  5817  
  5818  // Header returns an http.Header that can be modified by the caller to
  5819  // add HTTP headers to the request.
  5820  func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Header() http.Header {
  5821  	if c.header_ == nil {
  5822  		c.header_ = make(http.Header)
  5823  	}
  5824  	return c.header_
  5825  }
  5826  
  5827  func (c *ProjectsLocationsDatasetsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  5828  	reqHeaders := make(http.Header)
  5829  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  5830  	for k, v := range c.header_ {
  5831  		reqHeaders[k] = v
  5832  	}
  5833  	reqHeaders.Set("User-Agent", c.s.userAgent())
  5834  	var body io.Reader = nil
  5835  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
  5836  	if err != nil {
  5837  		return nil, err
  5838  	}
  5839  	reqHeaders.Set("Content-Type", "application/json")
  5840  	c.urlParams_.Set("alt", alt)
  5841  	c.urlParams_.Set("prettyPrint", "false")
  5842  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:setIamPolicy")
  5843  	urls += "?" + c.urlParams_.Encode()
  5844  	req, err := http.NewRequest("POST", urls, body)
  5845  	if err != nil {
  5846  		return nil, err
  5847  	}
  5848  	req.Header = reqHeaders
  5849  	googleapi.Expand(req.URL, map[string]string{
  5850  		"resource": c.resource,
  5851  	})
  5852  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5853  }
  5854  
  5855  // Do executes the "healthcare.projects.locations.datasets.setIamPolicy" call.
  5856  // Exactly one of *Policy or error will be non-nil. Any non-2xx status
  5857  // code is an error. Response headers are in either
  5858  // *Policy.ServerResponse.Header or (if a response was returned at all)
  5859  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  5860  // check whether the returned error was because http.StatusNotModified
  5861  // was returned.
  5862  func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
  5863  	gensupport.SetOptions(c.urlParams_, opts...)
  5864  	res, err := c.doRequest("json")
  5865  	if res != nil && res.StatusCode == http.StatusNotModified {
  5866  		if res.Body != nil {
  5867  			res.Body.Close()
  5868  		}
  5869  		return nil, &googleapi.Error{
  5870  			Code:   res.StatusCode,
  5871  			Header: res.Header,
  5872  		}
  5873  	}
  5874  	if err != nil {
  5875  		return nil, err
  5876  	}
  5877  	defer googleapi.CloseBody(res)
  5878  	if err := googleapi.CheckResponse(res); err != nil {
  5879  		return nil, err
  5880  	}
  5881  	ret := &Policy{
  5882  		ServerResponse: googleapi.ServerResponse{
  5883  			Header:         res.Header,
  5884  			HTTPStatusCode: res.StatusCode,
  5885  		},
  5886  	}
  5887  	target := &ret
  5888  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5889  		return nil, err
  5890  	}
  5891  	return ret, nil
  5892  	// {
  5893  	//   "description": "Sets the access control policy on the specified resource. Replaces any\nexisting policy.",
  5894  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:setIamPolicy",
  5895  	//   "httpMethod": "POST",
  5896  	//   "id": "healthcare.projects.locations.datasets.setIamPolicy",
  5897  	//   "parameterOrder": [
  5898  	//     "resource"
  5899  	//   ],
  5900  	//   "parameters": {
  5901  	//     "resource": {
  5902  	//       "description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.",
  5903  	//       "location": "path",
  5904  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
  5905  	//       "required": true,
  5906  	//       "type": "string"
  5907  	//     }
  5908  	//   },
  5909  	//   "path": "v1alpha2/{+resource}:setIamPolicy",
  5910  	//   "request": {
  5911  	//     "$ref": "SetIamPolicyRequest"
  5912  	//   },
  5913  	//   "response": {
  5914  	//     "$ref": "Policy"
  5915  	//   },
  5916  	//   "scopes": [
  5917  	//     "https://www.googleapis.com/auth/cloud-platform"
  5918  	//   ]
  5919  	// }
  5920  
  5921  }
  5922  
  5923  // method id "healthcare.projects.locations.datasets.testIamPermissions":
  5924  
  5925  type ProjectsLocationsDatasetsTestIamPermissionsCall struct {
  5926  	s                         *Service
  5927  	resource                  string
  5928  	testiampermissionsrequest *TestIamPermissionsRequest
  5929  	urlParams_                gensupport.URLParams
  5930  	ctx_                      context.Context
  5931  	header_                   http.Header
  5932  }
  5933  
  5934  // TestIamPermissions: Returns permissions that a caller has on the
  5935  // specified resource.
  5936  // If the resource does not exist, this will return an empty set
  5937  // of
  5938  // permissions, not a NOT_FOUND error.
  5939  //
  5940  // Note: This operation is designed to be used for building
  5941  // permission-aware
  5942  // UIs and command-line tools, not for authorization checking. This
  5943  // operation
  5944  // may "fail open" without warning.
  5945  func (r *ProjectsLocationsDatasetsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsTestIamPermissionsCall {
  5946  	c := &ProjectsLocationsDatasetsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5947  	c.resource = resource
  5948  	c.testiampermissionsrequest = testiampermissionsrequest
  5949  	return c
  5950  }
  5951  
  5952  // Fields allows partial responses to be retrieved. See
  5953  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  5954  // for more information.
  5955  func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsTestIamPermissionsCall {
  5956  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5957  	return c
  5958  }
  5959  
  5960  // Context sets the context to be used in this call's Do method. Any
  5961  // pending HTTP request will be aborted if the provided context is
  5962  // canceled.
  5963  func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsTestIamPermissionsCall {
  5964  	c.ctx_ = ctx
  5965  	return c
  5966  }
  5967  
  5968  // Header returns an http.Header that can be modified by the caller to
  5969  // add HTTP headers to the request.
  5970  func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Header() http.Header {
  5971  	if c.header_ == nil {
  5972  		c.header_ = make(http.Header)
  5973  	}
  5974  	return c.header_
  5975  }
  5976  
  5977  func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
  5978  	reqHeaders := make(http.Header)
  5979  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  5980  	for k, v := range c.header_ {
  5981  		reqHeaders[k] = v
  5982  	}
  5983  	reqHeaders.Set("User-Agent", c.s.userAgent())
  5984  	var body io.Reader = nil
  5985  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
  5986  	if err != nil {
  5987  		return nil, err
  5988  	}
  5989  	reqHeaders.Set("Content-Type", "application/json")
  5990  	c.urlParams_.Set("alt", alt)
  5991  	c.urlParams_.Set("prettyPrint", "false")
  5992  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:testIamPermissions")
  5993  	urls += "?" + c.urlParams_.Encode()
  5994  	req, err := http.NewRequest("POST", urls, body)
  5995  	if err != nil {
  5996  		return nil, err
  5997  	}
  5998  	req.Header = reqHeaders
  5999  	googleapi.Expand(req.URL, map[string]string{
  6000  		"resource": c.resource,
  6001  	})
  6002  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6003  }
  6004  
  6005  // Do executes the "healthcare.projects.locations.datasets.testIamPermissions" call.
  6006  // Exactly one of *TestIamPermissionsResponse or error will be non-nil.
  6007  // Any non-2xx status code is an error. Response headers are in either
  6008  // *TestIamPermissionsResponse.ServerResponse.Header or (if a response
  6009  // was returned at all) in error.(*googleapi.Error).Header. Use
  6010  // googleapi.IsNotModified to check whether the returned error was
  6011  // because http.StatusNotModified was returned.
  6012  func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
  6013  	gensupport.SetOptions(c.urlParams_, opts...)
  6014  	res, err := c.doRequest("json")
  6015  	if res != nil && res.StatusCode == http.StatusNotModified {
  6016  		if res.Body != nil {
  6017  			res.Body.Close()
  6018  		}
  6019  		return nil, &googleapi.Error{
  6020  			Code:   res.StatusCode,
  6021  			Header: res.Header,
  6022  		}
  6023  	}
  6024  	if err != nil {
  6025  		return nil, err
  6026  	}
  6027  	defer googleapi.CloseBody(res)
  6028  	if err := googleapi.CheckResponse(res); err != nil {
  6029  		return nil, err
  6030  	}
  6031  	ret := &TestIamPermissionsResponse{
  6032  		ServerResponse: googleapi.ServerResponse{
  6033  			Header:         res.Header,
  6034  			HTTPStatusCode: res.StatusCode,
  6035  		},
  6036  	}
  6037  	target := &ret
  6038  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6039  		return nil, err
  6040  	}
  6041  	return ret, nil
  6042  	// {
  6043  	//   "description": "Returns permissions that a caller has on the specified resource.\nIf the resource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building permission-aware\nUIs and command-line tools, not for authorization checking. This operation\nmay \"fail open\" without warning.",
  6044  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:testIamPermissions",
  6045  	//   "httpMethod": "POST",
  6046  	//   "id": "healthcare.projects.locations.datasets.testIamPermissions",
  6047  	//   "parameterOrder": [
  6048  	//     "resource"
  6049  	//   ],
  6050  	//   "parameters": {
  6051  	//     "resource": {
  6052  	//       "description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.",
  6053  	//       "location": "path",
  6054  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
  6055  	//       "required": true,
  6056  	//       "type": "string"
  6057  	//     }
  6058  	//   },
  6059  	//   "path": "v1alpha2/{+resource}:testIamPermissions",
  6060  	//   "request": {
  6061  	//     "$ref": "TestIamPermissionsRequest"
  6062  	//   },
  6063  	//   "response": {
  6064  	//     "$ref": "TestIamPermissionsResponse"
  6065  	//   },
  6066  	//   "scopes": [
  6067  	//     "https://www.googleapis.com/auth/cloud-platform"
  6068  	//   ]
  6069  	// }
  6070  
  6071  }
  6072  
  6073  // method id "healthcare.projects.locations.datasets.annotationStores.create":
  6074  
  6075  type ProjectsLocationsDatasetsAnnotationStoresCreateCall struct {
  6076  	s               *Service
  6077  	parent          string
  6078  	annotationstore *AnnotationStore
  6079  	urlParams_      gensupport.URLParams
  6080  	ctx_            context.Context
  6081  	header_         http.Header
  6082  }
  6083  
  6084  // Create: Creates a new Annotation store within the parent dataset.
  6085  func (r *ProjectsLocationsDatasetsAnnotationStoresService) Create(parent string, annotationstore *AnnotationStore) *ProjectsLocationsDatasetsAnnotationStoresCreateCall {
  6086  	c := &ProjectsLocationsDatasetsAnnotationStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6087  	c.parent = parent
  6088  	c.annotationstore = annotationstore
  6089  	return c
  6090  }
  6091  
  6092  // AnnotationStoreId sets the optional parameter "annotationStoreId":
  6093  // The ID of the Annotation store that is being created.
  6094  // The string must match the following regex:
  6095  // `[\p{L}\p{N}_\-\.]{1,256}`.
  6096  func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) AnnotationStoreId(annotationStoreId string) *ProjectsLocationsDatasetsAnnotationStoresCreateCall {
  6097  	c.urlParams_.Set("annotationStoreId", annotationStoreId)
  6098  	return c
  6099  }
  6100  
  6101  // Fields allows partial responses to be retrieved. See
  6102  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  6103  // for more information.
  6104  func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresCreateCall {
  6105  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6106  	return c
  6107  }
  6108  
  6109  // Context sets the context to be used in this call's Do method. Any
  6110  // pending HTTP request will be aborted if the provided context is
  6111  // canceled.
  6112  func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresCreateCall {
  6113  	c.ctx_ = ctx
  6114  	return c
  6115  }
  6116  
  6117  // Header returns an http.Header that can be modified by the caller to
  6118  // add HTTP headers to the request.
  6119  func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) Header() http.Header {
  6120  	if c.header_ == nil {
  6121  		c.header_ = make(http.Header)
  6122  	}
  6123  	return c.header_
  6124  }
  6125  
  6126  func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) doRequest(alt string) (*http.Response, error) {
  6127  	reqHeaders := make(http.Header)
  6128  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  6129  	for k, v := range c.header_ {
  6130  		reqHeaders[k] = v
  6131  	}
  6132  	reqHeaders.Set("User-Agent", c.s.userAgent())
  6133  	var body io.Reader = nil
  6134  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.annotationstore)
  6135  	if err != nil {
  6136  		return nil, err
  6137  	}
  6138  	reqHeaders.Set("Content-Type", "application/json")
  6139  	c.urlParams_.Set("alt", alt)
  6140  	c.urlParams_.Set("prettyPrint", "false")
  6141  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/annotationStores")
  6142  	urls += "?" + c.urlParams_.Encode()
  6143  	req, err := http.NewRequest("POST", urls, body)
  6144  	if err != nil {
  6145  		return nil, err
  6146  	}
  6147  	req.Header = reqHeaders
  6148  	googleapi.Expand(req.URL, map[string]string{
  6149  		"parent": c.parent,
  6150  	})
  6151  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6152  }
  6153  
  6154  // Do executes the "healthcare.projects.locations.datasets.annotationStores.create" call.
  6155  // Exactly one of *AnnotationStore or error will be non-nil. Any non-2xx
  6156  // status code is an error. Response headers are in either
  6157  // *AnnotationStore.ServerResponse.Header or (if a response was returned
  6158  // at all) in error.(*googleapi.Error).Header. Use
  6159  // googleapi.IsNotModified to check whether the returned error was
  6160  // because http.StatusNotModified was returned.
  6161  func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) Do(opts ...googleapi.CallOption) (*AnnotationStore, error) {
  6162  	gensupport.SetOptions(c.urlParams_, opts...)
  6163  	res, err := c.doRequest("json")
  6164  	if res != nil && res.StatusCode == http.StatusNotModified {
  6165  		if res.Body != nil {
  6166  			res.Body.Close()
  6167  		}
  6168  		return nil, &googleapi.Error{
  6169  			Code:   res.StatusCode,
  6170  			Header: res.Header,
  6171  		}
  6172  	}
  6173  	if err != nil {
  6174  		return nil, err
  6175  	}
  6176  	defer googleapi.CloseBody(res)
  6177  	if err := googleapi.CheckResponse(res); err != nil {
  6178  		return nil, err
  6179  	}
  6180  	ret := &AnnotationStore{
  6181  		ServerResponse: googleapi.ServerResponse{
  6182  			Header:         res.Header,
  6183  			HTTPStatusCode: res.StatusCode,
  6184  		},
  6185  	}
  6186  	target := &ret
  6187  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6188  		return nil, err
  6189  	}
  6190  	return ret, nil
  6191  	// {
  6192  	//   "description": "Creates a new Annotation store within the parent dataset.",
  6193  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores",
  6194  	//   "httpMethod": "POST",
  6195  	//   "id": "healthcare.projects.locations.datasets.annotationStores.create",
  6196  	//   "parameterOrder": [
  6197  	//     "parent"
  6198  	//   ],
  6199  	//   "parameters": {
  6200  	//     "annotationStoreId": {
  6201  	//       "description": "The ID of the Annotation store that is being created.\nThe string must match the following regex: `[\\p{L}\\p{N}_\\-\\.]{1,256}`.",
  6202  	//       "location": "query",
  6203  	//       "type": "string"
  6204  	//     },
  6205  	//     "parent": {
  6206  	//       "description": "The name of the dataset this Annotation store belongs to.",
  6207  	//       "location": "path",
  6208  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
  6209  	//       "required": true,
  6210  	//       "type": "string"
  6211  	//     }
  6212  	//   },
  6213  	//   "path": "v1alpha2/{+parent}/annotationStores",
  6214  	//   "request": {
  6215  	//     "$ref": "AnnotationStore"
  6216  	//   },
  6217  	//   "response": {
  6218  	//     "$ref": "AnnotationStore"
  6219  	//   },
  6220  	//   "scopes": [
  6221  	//     "https://www.googleapis.com/auth/cloud-platform"
  6222  	//   ]
  6223  	// }
  6224  
  6225  }
  6226  
  6227  // method id "healthcare.projects.locations.datasets.annotationStores.delete":
  6228  
  6229  type ProjectsLocationsDatasetsAnnotationStoresDeleteCall struct {
  6230  	s          *Service
  6231  	name       string
  6232  	urlParams_ gensupport.URLParams
  6233  	ctx_       context.Context
  6234  	header_    http.Header
  6235  }
  6236  
  6237  // Delete: Deletes the specified Annotation store and removes all
  6238  // annotations that are
  6239  // contained within it.
  6240  func (r *ProjectsLocationsDatasetsAnnotationStoresService) Delete(name string) *ProjectsLocationsDatasetsAnnotationStoresDeleteCall {
  6241  	c := &ProjectsLocationsDatasetsAnnotationStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6242  	c.name = name
  6243  	return c
  6244  }
  6245  
  6246  // Fields allows partial responses to be retrieved. See
  6247  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  6248  // for more information.
  6249  func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresDeleteCall {
  6250  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6251  	return c
  6252  }
  6253  
  6254  // Context sets the context to be used in this call's Do method. Any
  6255  // pending HTTP request will be aborted if the provided context is
  6256  // canceled.
  6257  func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresDeleteCall {
  6258  	c.ctx_ = ctx
  6259  	return c
  6260  }
  6261  
  6262  // Header returns an http.Header that can be modified by the caller to
  6263  // add HTTP headers to the request.
  6264  func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) Header() http.Header {
  6265  	if c.header_ == nil {
  6266  		c.header_ = make(http.Header)
  6267  	}
  6268  	return c.header_
  6269  }
  6270  
  6271  func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) doRequest(alt string) (*http.Response, error) {
  6272  	reqHeaders := make(http.Header)
  6273  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  6274  	for k, v := range c.header_ {
  6275  		reqHeaders[k] = v
  6276  	}
  6277  	reqHeaders.Set("User-Agent", c.s.userAgent())
  6278  	var body io.Reader = nil
  6279  	c.urlParams_.Set("alt", alt)
  6280  	c.urlParams_.Set("prettyPrint", "false")
  6281  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
  6282  	urls += "?" + c.urlParams_.Encode()
  6283  	req, err := http.NewRequest("DELETE", urls, body)
  6284  	if err != nil {
  6285  		return nil, err
  6286  	}
  6287  	req.Header = reqHeaders
  6288  	googleapi.Expand(req.URL, map[string]string{
  6289  		"name": c.name,
  6290  	})
  6291  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6292  }
  6293  
  6294  // Do executes the "healthcare.projects.locations.datasets.annotationStores.delete" call.
  6295  // Exactly one of *Empty or error will be non-nil. Any non-2xx status
  6296  // code is an error. Response headers are in either
  6297  // *Empty.ServerResponse.Header or (if a response was returned at all)
  6298  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  6299  // check whether the returned error was because http.StatusNotModified
  6300  // was returned.
  6301  func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  6302  	gensupport.SetOptions(c.urlParams_, opts...)
  6303  	res, err := c.doRequest("json")
  6304  	if res != nil && res.StatusCode == http.StatusNotModified {
  6305  		if res.Body != nil {
  6306  			res.Body.Close()
  6307  		}
  6308  		return nil, &googleapi.Error{
  6309  			Code:   res.StatusCode,
  6310  			Header: res.Header,
  6311  		}
  6312  	}
  6313  	if err != nil {
  6314  		return nil, err
  6315  	}
  6316  	defer googleapi.CloseBody(res)
  6317  	if err := googleapi.CheckResponse(res); err != nil {
  6318  		return nil, err
  6319  	}
  6320  	ret := &Empty{
  6321  		ServerResponse: googleapi.ServerResponse{
  6322  			Header:         res.Header,
  6323  			HTTPStatusCode: res.StatusCode,
  6324  		},
  6325  	}
  6326  	target := &ret
  6327  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6328  		return nil, err
  6329  	}
  6330  	return ret, nil
  6331  	// {
  6332  	//   "description": "Deletes the specified Annotation store and removes all annotations that are\ncontained within it.",
  6333  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}",
  6334  	//   "httpMethod": "DELETE",
  6335  	//   "id": "healthcare.projects.locations.datasets.annotationStores.delete",
  6336  	//   "parameterOrder": [
  6337  	//     "name"
  6338  	//   ],
  6339  	//   "parameters": {
  6340  	//     "name": {
  6341  	//       "description": "The resource name of the Annotation store to delete.",
  6342  	//       "location": "path",
  6343  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+$",
  6344  	//       "required": true,
  6345  	//       "type": "string"
  6346  	//     }
  6347  	//   },
  6348  	//   "path": "v1alpha2/{+name}",
  6349  	//   "response": {
  6350  	//     "$ref": "Empty"
  6351  	//   },
  6352  	//   "scopes": [
  6353  	//     "https://www.googleapis.com/auth/cloud-platform"
  6354  	//   ]
  6355  	// }
  6356  
  6357  }
  6358  
  6359  // method id "healthcare.projects.locations.datasets.annotationStores.get":
  6360  
  6361  type ProjectsLocationsDatasetsAnnotationStoresGetCall struct {
  6362  	s            *Service
  6363  	name         string
  6364  	urlParams_   gensupport.URLParams
  6365  	ifNoneMatch_ string
  6366  	ctx_         context.Context
  6367  	header_      http.Header
  6368  }
  6369  
  6370  // Get: Gets the specified Annotation store or returns NOT_FOUND if it
  6371  // does not
  6372  // exist.
  6373  func (r *ProjectsLocationsDatasetsAnnotationStoresService) Get(name string) *ProjectsLocationsDatasetsAnnotationStoresGetCall {
  6374  	c := &ProjectsLocationsDatasetsAnnotationStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6375  	c.name = name
  6376  	return c
  6377  }
  6378  
  6379  // Fields allows partial responses to be retrieved. See
  6380  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  6381  // for more information.
  6382  func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresGetCall {
  6383  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6384  	return c
  6385  }
  6386  
  6387  // IfNoneMatch sets the optional parameter which makes the operation
  6388  // fail if the object's ETag matches the given value. This is useful for
  6389  // getting updates only after the object has changed since the last
  6390  // request. Use googleapi.IsNotModified to check whether the response
  6391  // error from Do is the result of In-None-Match.
  6392  func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationStoresGetCall {
  6393  	c.ifNoneMatch_ = entityTag
  6394  	return c
  6395  }
  6396  
  6397  // Context sets the context to be used in this call's Do method. Any
  6398  // pending HTTP request will be aborted if the provided context is
  6399  // canceled.
  6400  func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresGetCall {
  6401  	c.ctx_ = ctx
  6402  	return c
  6403  }
  6404  
  6405  // Header returns an http.Header that can be modified by the caller to
  6406  // add HTTP headers to the request.
  6407  func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) Header() http.Header {
  6408  	if c.header_ == nil {
  6409  		c.header_ = make(http.Header)
  6410  	}
  6411  	return c.header_
  6412  }
  6413  
  6414  func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) doRequest(alt string) (*http.Response, error) {
  6415  	reqHeaders := make(http.Header)
  6416  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  6417  	for k, v := range c.header_ {
  6418  		reqHeaders[k] = v
  6419  	}
  6420  	reqHeaders.Set("User-Agent", c.s.userAgent())
  6421  	if c.ifNoneMatch_ != "" {
  6422  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6423  	}
  6424  	var body io.Reader = nil
  6425  	c.urlParams_.Set("alt", alt)
  6426  	c.urlParams_.Set("prettyPrint", "false")
  6427  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
  6428  	urls += "?" + c.urlParams_.Encode()
  6429  	req, err := http.NewRequest("GET", urls, body)
  6430  	if err != nil {
  6431  		return nil, err
  6432  	}
  6433  	req.Header = reqHeaders
  6434  	googleapi.Expand(req.URL, map[string]string{
  6435  		"name": c.name,
  6436  	})
  6437  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6438  }
  6439  
  6440  // Do executes the "healthcare.projects.locations.datasets.annotationStores.get" call.
  6441  // Exactly one of *AnnotationStore or error will be non-nil. Any non-2xx
  6442  // status code is an error. Response headers are in either
  6443  // *AnnotationStore.ServerResponse.Header or (if a response was returned
  6444  // at all) in error.(*googleapi.Error).Header. Use
  6445  // googleapi.IsNotModified to check whether the returned error was
  6446  // because http.StatusNotModified was returned.
  6447  func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) Do(opts ...googleapi.CallOption) (*AnnotationStore, error) {
  6448  	gensupport.SetOptions(c.urlParams_, opts...)
  6449  	res, err := c.doRequest("json")
  6450  	if res != nil && res.StatusCode == http.StatusNotModified {
  6451  		if res.Body != nil {
  6452  			res.Body.Close()
  6453  		}
  6454  		return nil, &googleapi.Error{
  6455  			Code:   res.StatusCode,
  6456  			Header: res.Header,
  6457  		}
  6458  	}
  6459  	if err != nil {
  6460  		return nil, err
  6461  	}
  6462  	defer googleapi.CloseBody(res)
  6463  	if err := googleapi.CheckResponse(res); err != nil {
  6464  		return nil, err
  6465  	}
  6466  	ret := &AnnotationStore{
  6467  		ServerResponse: googleapi.ServerResponse{
  6468  			Header:         res.Header,
  6469  			HTTPStatusCode: res.StatusCode,
  6470  		},
  6471  	}
  6472  	target := &ret
  6473  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6474  		return nil, err
  6475  	}
  6476  	return ret, nil
  6477  	// {
  6478  	//   "description": "Gets the specified Annotation store or returns NOT_FOUND if it does not\nexist.",
  6479  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}",
  6480  	//   "httpMethod": "GET",
  6481  	//   "id": "healthcare.projects.locations.datasets.annotationStores.get",
  6482  	//   "parameterOrder": [
  6483  	//     "name"
  6484  	//   ],
  6485  	//   "parameters": {
  6486  	//     "name": {
  6487  	//       "description": "The resource name of the Annotation store to get.",
  6488  	//       "location": "path",
  6489  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+$",
  6490  	//       "required": true,
  6491  	//       "type": "string"
  6492  	//     }
  6493  	//   },
  6494  	//   "path": "v1alpha2/{+name}",
  6495  	//   "response": {
  6496  	//     "$ref": "AnnotationStore"
  6497  	//   },
  6498  	//   "scopes": [
  6499  	//     "https://www.googleapis.com/auth/cloud-platform"
  6500  	//   ]
  6501  	// }
  6502  
  6503  }
  6504  
  6505  // method id "healthcare.projects.locations.datasets.annotationStores.getIamPolicy":
  6506  
  6507  type ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall struct {
  6508  	s                   *Service
  6509  	resource            string
  6510  	getiampolicyrequest *GetIamPolicyRequest
  6511  	urlParams_          gensupport.URLParams
  6512  	ctx_                context.Context
  6513  	header_             http.Header
  6514  }
  6515  
  6516  // GetIamPolicy: Gets the access control policy for a resource. Returns
  6517  // NOT_FOUND error if
  6518  // the resource does not exist. Returns an empty policy if the resource
  6519  // exists
  6520  // but does not have a policy set.
  6521  //
  6522  // Authorization requires the Google IAM
  6523  // permission
  6524  // `healthcare.AnnotationStores.getIamPolicy` on the specified
  6525  // resource
  6526  func (r *ProjectsLocationsDatasetsAnnotationStoresService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall {
  6527  	c := &ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6528  	c.resource = resource
  6529  	c.getiampolicyrequest = getiampolicyrequest
  6530  	return c
  6531  }
  6532  
  6533  // Fields allows partial responses to be retrieved. See
  6534  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  6535  // for more information.
  6536  func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall {
  6537  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6538  	return c
  6539  }
  6540  
  6541  // Context sets the context to be used in this call's Do method. Any
  6542  // pending HTTP request will be aborted if the provided context is
  6543  // canceled.
  6544  func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall {
  6545  	c.ctx_ = ctx
  6546  	return c
  6547  }
  6548  
  6549  // Header returns an http.Header that can be modified by the caller to
  6550  // add HTTP headers to the request.
  6551  func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) Header() http.Header {
  6552  	if c.header_ == nil {
  6553  		c.header_ = make(http.Header)
  6554  	}
  6555  	return c.header_
  6556  }
  6557  
  6558  func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  6559  	reqHeaders := make(http.Header)
  6560  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  6561  	for k, v := range c.header_ {
  6562  		reqHeaders[k] = v
  6563  	}
  6564  	reqHeaders.Set("User-Agent", c.s.userAgent())
  6565  	var body io.Reader = nil
  6566  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.getiampolicyrequest)
  6567  	if err != nil {
  6568  		return nil, err
  6569  	}
  6570  	reqHeaders.Set("Content-Type", "application/json")
  6571  	c.urlParams_.Set("alt", alt)
  6572  	c.urlParams_.Set("prettyPrint", "false")
  6573  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:getIamPolicy")
  6574  	urls += "?" + c.urlParams_.Encode()
  6575  	req, err := http.NewRequest("POST", urls, body)
  6576  	if err != nil {
  6577  		return nil, err
  6578  	}
  6579  	req.Header = reqHeaders
  6580  	googleapi.Expand(req.URL, map[string]string{
  6581  		"resource": c.resource,
  6582  	})
  6583  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6584  }
  6585  
  6586  // Do executes the "healthcare.projects.locations.datasets.annotationStores.getIamPolicy" call.
  6587  // Exactly one of *Policy or error will be non-nil. Any non-2xx status
  6588  // code is an error. Response headers are in either
  6589  // *Policy.ServerResponse.Header or (if a response was returned at all)
  6590  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  6591  // check whether the returned error was because http.StatusNotModified
  6592  // was returned.
  6593  func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
  6594  	gensupport.SetOptions(c.urlParams_, opts...)
  6595  	res, err := c.doRequest("json")
  6596  	if res != nil && res.StatusCode == http.StatusNotModified {
  6597  		if res.Body != nil {
  6598  			res.Body.Close()
  6599  		}
  6600  		return nil, &googleapi.Error{
  6601  			Code:   res.StatusCode,
  6602  			Header: res.Header,
  6603  		}
  6604  	}
  6605  	if err != nil {
  6606  		return nil, err
  6607  	}
  6608  	defer googleapi.CloseBody(res)
  6609  	if err := googleapi.CheckResponse(res); err != nil {
  6610  		return nil, err
  6611  	}
  6612  	ret := &Policy{
  6613  		ServerResponse: googleapi.ServerResponse{
  6614  			Header:         res.Header,
  6615  			HTTPStatusCode: res.StatusCode,
  6616  		},
  6617  	}
  6618  	target := &ret
  6619  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6620  		return nil, err
  6621  	}
  6622  	return ret, nil
  6623  	// {
  6624  	//   "description": "Gets the access control policy for a resource. Returns NOT_FOUND error if\nthe resource does not exist. Returns an empty policy if the resource exists\nbut does not have a policy set.\n\nAuthorization requires the Google IAM permission\n`healthcare.AnnotationStores.getIamPolicy` on the specified\nresource",
  6625  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}:getIamPolicy",
  6626  	//   "httpMethod": "POST",
  6627  	//   "id": "healthcare.projects.locations.datasets.annotationStores.getIamPolicy",
  6628  	//   "parameterOrder": [
  6629  	//     "resource"
  6630  	//   ],
  6631  	//   "parameters": {
  6632  	//     "resource": {
  6633  	//       "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.",
  6634  	//       "location": "path",
  6635  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+$",
  6636  	//       "required": true,
  6637  	//       "type": "string"
  6638  	//     }
  6639  	//   },
  6640  	//   "path": "v1alpha2/{+resource}:getIamPolicy",
  6641  	//   "request": {
  6642  	//     "$ref": "GetIamPolicyRequest"
  6643  	//   },
  6644  	//   "response": {
  6645  	//     "$ref": "Policy"
  6646  	//   },
  6647  	//   "scopes": [
  6648  	//     "https://www.googleapis.com/auth/cloud-platform"
  6649  	//   ]
  6650  	// }
  6651  
  6652  }
  6653  
  6654  // method id "healthcare.projects.locations.datasets.annotationStores.list":
  6655  
  6656  type ProjectsLocationsDatasetsAnnotationStoresListCall struct {
  6657  	s            *Service
  6658  	parent       string
  6659  	urlParams_   gensupport.URLParams
  6660  	ifNoneMatch_ string
  6661  	ctx_         context.Context
  6662  	header_      http.Header
  6663  }
  6664  
  6665  // List: Lists the Annotation stores in the given dataset for a source
  6666  // store.
  6667  func (r *ProjectsLocationsDatasetsAnnotationStoresService) List(parent string) *ProjectsLocationsDatasetsAnnotationStoresListCall {
  6668  	c := &ProjectsLocationsDatasetsAnnotationStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6669  	c.parent = parent
  6670  	return c
  6671  }
  6672  
  6673  // Filter sets the optional parameter "filter": Restricts stores
  6674  // returned to those matching a filter.
  6675  // Syntax:
  6676  // https://cloud.google.com/appengine/docs/standard/python/search
  6677  // /query_strings
  6678  // Only filtering on labels is supported, for example
  6679  // `labels.key=value`.
  6680  func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Filter(filter string) *ProjectsLocationsDatasetsAnnotationStoresListCall {
  6681  	c.urlParams_.Set("filter", filter)
  6682  	return c
  6683  }
  6684  
  6685  // PageSize sets the optional parameter "pageSize": Limit on the number
  6686  // of Annotation stores to return in a single response.
  6687  // If zero the default page size of 100 is used.
  6688  func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsAnnotationStoresListCall {
  6689  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  6690  	return c
  6691  }
  6692  
  6693  // PageToken sets the optional parameter "pageToken": The
  6694  // next_page_token value returned from the previous List request, if
  6695  // any.
  6696  func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsAnnotationStoresListCall {
  6697  	c.urlParams_.Set("pageToken", pageToken)
  6698  	return c
  6699  }
  6700  
  6701  // Fields allows partial responses to be retrieved. See
  6702  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  6703  // for more information.
  6704  func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresListCall {
  6705  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6706  	return c
  6707  }
  6708  
  6709  // IfNoneMatch sets the optional parameter which makes the operation
  6710  // fail if the object's ETag matches the given value. This is useful for
  6711  // getting updates only after the object has changed since the last
  6712  // request. Use googleapi.IsNotModified to check whether the response
  6713  // error from Do is the result of In-None-Match.
  6714  func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationStoresListCall {
  6715  	c.ifNoneMatch_ = entityTag
  6716  	return c
  6717  }
  6718  
  6719  // Context sets the context to be used in this call's Do method. Any
  6720  // pending HTTP request will be aborted if the provided context is
  6721  // canceled.
  6722  func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresListCall {
  6723  	c.ctx_ = ctx
  6724  	return c
  6725  }
  6726  
  6727  // Header returns an http.Header that can be modified by the caller to
  6728  // add HTTP headers to the request.
  6729  func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Header() http.Header {
  6730  	if c.header_ == nil {
  6731  		c.header_ = make(http.Header)
  6732  	}
  6733  	return c.header_
  6734  }
  6735  
  6736  func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) doRequest(alt string) (*http.Response, error) {
  6737  	reqHeaders := make(http.Header)
  6738  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  6739  	for k, v := range c.header_ {
  6740  		reqHeaders[k] = v
  6741  	}
  6742  	reqHeaders.Set("User-Agent", c.s.userAgent())
  6743  	if c.ifNoneMatch_ != "" {
  6744  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6745  	}
  6746  	var body io.Reader = nil
  6747  	c.urlParams_.Set("alt", alt)
  6748  	c.urlParams_.Set("prettyPrint", "false")
  6749  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/annotationStores")
  6750  	urls += "?" + c.urlParams_.Encode()
  6751  	req, err := http.NewRequest("GET", urls, body)
  6752  	if err != nil {
  6753  		return nil, err
  6754  	}
  6755  	req.Header = reqHeaders
  6756  	googleapi.Expand(req.URL, map[string]string{
  6757  		"parent": c.parent,
  6758  	})
  6759  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6760  }
  6761  
  6762  // Do executes the "healthcare.projects.locations.datasets.annotationStores.list" call.
  6763  // Exactly one of *ListAnnotationStoresResponse or error will be
  6764  // non-nil. Any non-2xx status code is an error. Response headers are in
  6765  // either *ListAnnotationStoresResponse.ServerResponse.Header or (if a
  6766  // response was returned at all) in error.(*googleapi.Error).Header. Use
  6767  // googleapi.IsNotModified to check whether the returned error was
  6768  // because http.StatusNotModified was returned.
  6769  func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Do(opts ...googleapi.CallOption) (*ListAnnotationStoresResponse, error) {
  6770  	gensupport.SetOptions(c.urlParams_, opts...)
  6771  	res, err := c.doRequest("json")
  6772  	if res != nil && res.StatusCode == http.StatusNotModified {
  6773  		if res.Body != nil {
  6774  			res.Body.Close()
  6775  		}
  6776  		return nil, &googleapi.Error{
  6777  			Code:   res.StatusCode,
  6778  			Header: res.Header,
  6779  		}
  6780  	}
  6781  	if err != nil {
  6782  		return nil, err
  6783  	}
  6784  	defer googleapi.CloseBody(res)
  6785  	if err := googleapi.CheckResponse(res); err != nil {
  6786  		return nil, err
  6787  	}
  6788  	ret := &ListAnnotationStoresResponse{
  6789  		ServerResponse: googleapi.ServerResponse{
  6790  			Header:         res.Header,
  6791  			HTTPStatusCode: res.StatusCode,
  6792  		},
  6793  	}
  6794  	target := &ret
  6795  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6796  		return nil, err
  6797  	}
  6798  	return ret, nil
  6799  	// {
  6800  	//   "description": "Lists the Annotation stores in the given dataset for a source store.",
  6801  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores",
  6802  	//   "httpMethod": "GET",
  6803  	//   "id": "healthcare.projects.locations.datasets.annotationStores.list",
  6804  	//   "parameterOrder": [
  6805  	//     "parent"
  6806  	//   ],
  6807  	//   "parameters": {
  6808  	//     "filter": {
  6809  	//       "description": "Restricts stores returned to those matching a filter. Syntax:\nhttps://cloud.google.com/appengine/docs/standard/python/search/query_strings\nOnly filtering on labels is supported, for example `labels.key=value`.",
  6810  	//       "location": "query",
  6811  	//       "type": "string"
  6812  	//     },
  6813  	//     "pageSize": {
  6814  	//       "description": "Limit on the number of Annotation stores to return in a single response.\nIf zero the default page size of 100 is used.",
  6815  	//       "format": "int32",
  6816  	//       "location": "query",
  6817  	//       "type": "integer"
  6818  	//     },
  6819  	//     "pageToken": {
  6820  	//       "description": "The next_page_token value returned from the previous List request, if any.",
  6821  	//       "location": "query",
  6822  	//       "type": "string"
  6823  	//     },
  6824  	//     "parent": {
  6825  	//       "description": "Name of the dataset.",
  6826  	//       "location": "path",
  6827  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
  6828  	//       "required": true,
  6829  	//       "type": "string"
  6830  	//     }
  6831  	//   },
  6832  	//   "path": "v1alpha2/{+parent}/annotationStores",
  6833  	//   "response": {
  6834  	//     "$ref": "ListAnnotationStoresResponse"
  6835  	//   },
  6836  	//   "scopes": [
  6837  	//     "https://www.googleapis.com/auth/cloud-platform"
  6838  	//   ]
  6839  	// }
  6840  
  6841  }
  6842  
  6843  // Pages invokes f for each page of results.
  6844  // A non-nil error returned from f will halt the iteration.
  6845  // The provided context supersedes any context provided to the Context method.
  6846  func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Pages(ctx context.Context, f func(*ListAnnotationStoresResponse) error) error {
  6847  	c.ctx_ = ctx
  6848  	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
  6849  	for {
  6850  		x, err := c.Do()
  6851  		if err != nil {
  6852  			return err
  6853  		}
  6854  		if err := f(x); err != nil {
  6855  			return err
  6856  		}
  6857  		if x.NextPageToken == "" {
  6858  			return nil
  6859  		}
  6860  		c.PageToken(x.NextPageToken)
  6861  	}
  6862  }
  6863  
  6864  // method id "healthcare.projects.locations.datasets.annotationStores.patch":
  6865  
  6866  type ProjectsLocationsDatasetsAnnotationStoresPatchCall struct {
  6867  	s               *Service
  6868  	name            string
  6869  	annotationstore *AnnotationStore
  6870  	urlParams_      gensupport.URLParams
  6871  	ctx_            context.Context
  6872  	header_         http.Header
  6873  }
  6874  
  6875  // Patch: Updates the specified Annotation store.
  6876  func (r *ProjectsLocationsDatasetsAnnotationStoresService) Patch(name string, annotationstore *AnnotationStore) *ProjectsLocationsDatasetsAnnotationStoresPatchCall {
  6877  	c := &ProjectsLocationsDatasetsAnnotationStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6878  	c.name = name
  6879  	c.annotationstore = annotationstore
  6880  	return c
  6881  }
  6882  
  6883  // UpdateMask sets the optional parameter "updateMask": The update mask
  6884  // applies to the resource. For the `FieldMask`
  6885  // definition,
  6886  // see
  6887  // https://developers.google.com/protocol-buffers/docs/re
  6888  // ference/google.protobuf#fieldmask
  6889  func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsAnnotationStoresPatchCall {
  6890  	c.urlParams_.Set("updateMask", updateMask)
  6891  	return c
  6892  }
  6893  
  6894  // Fields allows partial responses to be retrieved. See
  6895  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  6896  // for more information.
  6897  func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresPatchCall {
  6898  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6899  	return c
  6900  }
  6901  
  6902  // Context sets the context to be used in this call's Do method. Any
  6903  // pending HTTP request will be aborted if the provided context is
  6904  // canceled.
  6905  func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresPatchCall {
  6906  	c.ctx_ = ctx
  6907  	return c
  6908  }
  6909  
  6910  // Header returns an http.Header that can be modified by the caller to
  6911  // add HTTP headers to the request.
  6912  func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) Header() http.Header {
  6913  	if c.header_ == nil {
  6914  		c.header_ = make(http.Header)
  6915  	}
  6916  	return c.header_
  6917  }
  6918  
  6919  func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) doRequest(alt string) (*http.Response, error) {
  6920  	reqHeaders := make(http.Header)
  6921  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  6922  	for k, v := range c.header_ {
  6923  		reqHeaders[k] = v
  6924  	}
  6925  	reqHeaders.Set("User-Agent", c.s.userAgent())
  6926  	var body io.Reader = nil
  6927  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.annotationstore)
  6928  	if err != nil {
  6929  		return nil, err
  6930  	}
  6931  	reqHeaders.Set("Content-Type", "application/json")
  6932  	c.urlParams_.Set("alt", alt)
  6933  	c.urlParams_.Set("prettyPrint", "false")
  6934  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
  6935  	urls += "?" + c.urlParams_.Encode()
  6936  	req, err := http.NewRequest("PATCH", urls, body)
  6937  	if err != nil {
  6938  		return nil, err
  6939  	}
  6940  	req.Header = reqHeaders
  6941  	googleapi.Expand(req.URL, map[string]string{
  6942  		"name": c.name,
  6943  	})
  6944  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6945  }
  6946  
  6947  // Do executes the "healthcare.projects.locations.datasets.annotationStores.patch" call.
  6948  // Exactly one of *AnnotationStore or error will be non-nil. Any non-2xx
  6949  // status code is an error. Response headers are in either
  6950  // *AnnotationStore.ServerResponse.Header or (if a response was returned
  6951  // at all) in error.(*googleapi.Error).Header. Use
  6952  // googleapi.IsNotModified to check whether the returned error was
  6953  // because http.StatusNotModified was returned.
  6954  func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) Do(opts ...googleapi.CallOption) (*AnnotationStore, error) {
  6955  	gensupport.SetOptions(c.urlParams_, opts...)
  6956  	res, err := c.doRequest("json")
  6957  	if res != nil && res.StatusCode == http.StatusNotModified {
  6958  		if res.Body != nil {
  6959  			res.Body.Close()
  6960  		}
  6961  		return nil, &googleapi.Error{
  6962  			Code:   res.StatusCode,
  6963  			Header: res.Header,
  6964  		}
  6965  	}
  6966  	if err != nil {
  6967  		return nil, err
  6968  	}
  6969  	defer googleapi.CloseBody(res)
  6970  	if err := googleapi.CheckResponse(res); err != nil {
  6971  		return nil, err
  6972  	}
  6973  	ret := &AnnotationStore{
  6974  		ServerResponse: googleapi.ServerResponse{
  6975  			Header:         res.Header,
  6976  			HTTPStatusCode: res.StatusCode,
  6977  		},
  6978  	}
  6979  	target := &ret
  6980  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6981  		return nil, err
  6982  	}
  6983  	return ret, nil
  6984  	// {
  6985  	//   "description": "Updates the specified Annotation store.",
  6986  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}",
  6987  	//   "httpMethod": "PATCH",
  6988  	//   "id": "healthcare.projects.locations.datasets.annotationStores.patch",
  6989  	//   "parameterOrder": [
  6990  	//     "name"
  6991  	//   ],
  6992  	//   "parameters": {
  6993  	//     "name": {
  6994  	//       "description": "Output only. Resource name of the Annotation store, of the form\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationStores/{annotation_store_id}`.",
  6995  	//       "location": "path",
  6996  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+$",
  6997  	//       "required": true,
  6998  	//       "type": "string"
  6999  	//     },
  7000  	//     "updateMask": {
  7001  	//       "description": "The update mask applies to the resource. For the `FieldMask` definition,\nsee\nhttps://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask",
  7002  	//       "format": "google-fieldmask",
  7003  	//       "location": "query",
  7004  	//       "type": "string"
  7005  	//     }
  7006  	//   },
  7007  	//   "path": "v1alpha2/{+name}",
  7008  	//   "request": {
  7009  	//     "$ref": "AnnotationStore"
  7010  	//   },
  7011  	//   "response": {
  7012  	//     "$ref": "AnnotationStore"
  7013  	//   },
  7014  	//   "scopes": [
  7015  	//     "https://www.googleapis.com/auth/cloud-platform"
  7016  	//   ]
  7017  	// }
  7018  
  7019  }
  7020  
  7021  // method id "healthcare.projects.locations.datasets.annotationStores.setIamPolicy":
  7022  
  7023  type ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall struct {
  7024  	s                   *Service
  7025  	resource            string
  7026  	setiampolicyrequest *SetIamPolicyRequest
  7027  	urlParams_          gensupport.URLParams
  7028  	ctx_                context.Context
  7029  	header_             http.Header
  7030  }
  7031  
  7032  // SetIamPolicy: POLICIES
  7033  // Sets the access control policy for a resource. Replaces any
  7034  // existing
  7035  // policy.
  7036  //
  7037  // Authorization requires the Google IAM
  7038  // permission
  7039  // `healthcare.annotationStores.setIamPolicy` on the specified
  7040  // resource
  7041  func (r *ProjectsLocationsDatasetsAnnotationStoresService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall {
  7042  	c := &ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7043  	c.resource = resource
  7044  	c.setiampolicyrequest = setiampolicyrequest
  7045  	return c
  7046  }
  7047  
  7048  // Fields allows partial responses to be retrieved. See
  7049  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  7050  // for more information.
  7051  func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall {
  7052  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7053  	return c
  7054  }
  7055  
  7056  // Context sets the context to be used in this call's Do method. Any
  7057  // pending HTTP request will be aborted if the provided context is
  7058  // canceled.
  7059  func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall {
  7060  	c.ctx_ = ctx
  7061  	return c
  7062  }
  7063  
  7064  // Header returns an http.Header that can be modified by the caller to
  7065  // add HTTP headers to the request.
  7066  func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) Header() http.Header {
  7067  	if c.header_ == nil {
  7068  		c.header_ = make(http.Header)
  7069  	}
  7070  	return c.header_
  7071  }
  7072  
  7073  func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  7074  	reqHeaders := make(http.Header)
  7075  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  7076  	for k, v := range c.header_ {
  7077  		reqHeaders[k] = v
  7078  	}
  7079  	reqHeaders.Set("User-Agent", c.s.userAgent())
  7080  	var body io.Reader = nil
  7081  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
  7082  	if err != nil {
  7083  		return nil, err
  7084  	}
  7085  	reqHeaders.Set("Content-Type", "application/json")
  7086  	c.urlParams_.Set("alt", alt)
  7087  	c.urlParams_.Set("prettyPrint", "false")
  7088  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:setIamPolicy")
  7089  	urls += "?" + c.urlParams_.Encode()
  7090  	req, err := http.NewRequest("POST", urls, body)
  7091  	if err != nil {
  7092  		return nil, err
  7093  	}
  7094  	req.Header = reqHeaders
  7095  	googleapi.Expand(req.URL, map[string]string{
  7096  		"resource": c.resource,
  7097  	})
  7098  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7099  }
  7100  
  7101  // Do executes the "healthcare.projects.locations.datasets.annotationStores.setIamPolicy" call.
  7102  // Exactly one of *Policy or error will be non-nil. Any non-2xx status
  7103  // code is an error. Response headers are in either
  7104  // *Policy.ServerResponse.Header or (if a response was returned at all)
  7105  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  7106  // check whether the returned error was because http.StatusNotModified
  7107  // was returned.
  7108  func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
  7109  	gensupport.SetOptions(c.urlParams_, opts...)
  7110  	res, err := c.doRequest("json")
  7111  	if res != nil && res.StatusCode == http.StatusNotModified {
  7112  		if res.Body != nil {
  7113  			res.Body.Close()
  7114  		}
  7115  		return nil, &googleapi.Error{
  7116  			Code:   res.StatusCode,
  7117  			Header: res.Header,
  7118  		}
  7119  	}
  7120  	if err != nil {
  7121  		return nil, err
  7122  	}
  7123  	defer googleapi.CloseBody(res)
  7124  	if err := googleapi.CheckResponse(res); err != nil {
  7125  		return nil, err
  7126  	}
  7127  	ret := &Policy{
  7128  		ServerResponse: googleapi.ServerResponse{
  7129  			Header:         res.Header,
  7130  			HTTPStatusCode: res.StatusCode,
  7131  		},
  7132  	}
  7133  	target := &ret
  7134  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7135  		return nil, err
  7136  	}
  7137  	return ret, nil
  7138  	// {
  7139  	//   "description": "POLICIES\nSets the access control policy for a resource. Replaces any existing\npolicy.\n\nAuthorization requires the Google IAM permission\n`healthcare.annotationStores.setIamPolicy` on the specified\nresource",
  7140  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}:setIamPolicy",
  7141  	//   "httpMethod": "POST",
  7142  	//   "id": "healthcare.projects.locations.datasets.annotationStores.setIamPolicy",
  7143  	//   "parameterOrder": [
  7144  	//     "resource"
  7145  	//   ],
  7146  	//   "parameters": {
  7147  	//     "resource": {
  7148  	//       "description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.",
  7149  	//       "location": "path",
  7150  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+$",
  7151  	//       "required": true,
  7152  	//       "type": "string"
  7153  	//     }
  7154  	//   },
  7155  	//   "path": "v1alpha2/{+resource}:setIamPolicy",
  7156  	//   "request": {
  7157  	//     "$ref": "SetIamPolicyRequest"
  7158  	//   },
  7159  	//   "response": {
  7160  	//     "$ref": "Policy"
  7161  	//   },
  7162  	//   "scopes": [
  7163  	//     "https://www.googleapis.com/auth/cloud-platform"
  7164  	//   ]
  7165  	// }
  7166  
  7167  }
  7168  
  7169  // method id "healthcare.projects.locations.datasets.annotationStores.testIamPermissions":
  7170  
  7171  type ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall struct {
  7172  	s                         *Service
  7173  	resource                  string
  7174  	testiampermissionsrequest *TestIamPermissionsRequest
  7175  	urlParams_                gensupport.URLParams
  7176  	ctx_                      context.Context
  7177  	header_                   http.Header
  7178  }
  7179  
  7180  // TestIamPermissions: Returns permissions that a caller has on the
  7181  // specified resource.
  7182  // If the resource does not exist, this will return an empty set
  7183  // of
  7184  // permissions, not a NOT_FOUND error.
  7185  //
  7186  // There is no permission required to make this API call.
  7187  func (r *ProjectsLocationsDatasetsAnnotationStoresService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall {
  7188  	c := &ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7189  	c.resource = resource
  7190  	c.testiampermissionsrequest = testiampermissionsrequest
  7191  	return c
  7192  }
  7193  
  7194  // Fields allows partial responses to be retrieved. See
  7195  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  7196  // for more information.
  7197  func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall {
  7198  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7199  	return c
  7200  }
  7201  
  7202  // Context sets the context to be used in this call's Do method. Any
  7203  // pending HTTP request will be aborted if the provided context is
  7204  // canceled.
  7205  func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall {
  7206  	c.ctx_ = ctx
  7207  	return c
  7208  }
  7209  
  7210  // Header returns an http.Header that can be modified by the caller to
  7211  // add HTTP headers to the request.
  7212  func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) Header() http.Header {
  7213  	if c.header_ == nil {
  7214  		c.header_ = make(http.Header)
  7215  	}
  7216  	return c.header_
  7217  }
  7218  
  7219  func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
  7220  	reqHeaders := make(http.Header)
  7221  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  7222  	for k, v := range c.header_ {
  7223  		reqHeaders[k] = v
  7224  	}
  7225  	reqHeaders.Set("User-Agent", c.s.userAgent())
  7226  	var body io.Reader = nil
  7227  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
  7228  	if err != nil {
  7229  		return nil, err
  7230  	}
  7231  	reqHeaders.Set("Content-Type", "application/json")
  7232  	c.urlParams_.Set("alt", alt)
  7233  	c.urlParams_.Set("prettyPrint", "false")
  7234  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:testIamPermissions")
  7235  	urls += "?" + c.urlParams_.Encode()
  7236  	req, err := http.NewRequest("POST", urls, body)
  7237  	if err != nil {
  7238  		return nil, err
  7239  	}
  7240  	req.Header = reqHeaders
  7241  	googleapi.Expand(req.URL, map[string]string{
  7242  		"resource": c.resource,
  7243  	})
  7244  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7245  }
  7246  
  7247  // Do executes the "healthcare.projects.locations.datasets.annotationStores.testIamPermissions" call.
  7248  // Exactly one of *TestIamPermissionsResponse or error will be non-nil.
  7249  // Any non-2xx status code is an error. Response headers are in either
  7250  // *TestIamPermissionsResponse.ServerResponse.Header or (if a response
  7251  // was returned at all) in error.(*googleapi.Error).Header. Use
  7252  // googleapi.IsNotModified to check whether the returned error was
  7253  // because http.StatusNotModified was returned.
  7254  func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
  7255  	gensupport.SetOptions(c.urlParams_, opts...)
  7256  	res, err := c.doRequest("json")
  7257  	if res != nil && res.StatusCode == http.StatusNotModified {
  7258  		if res.Body != nil {
  7259  			res.Body.Close()
  7260  		}
  7261  		return nil, &googleapi.Error{
  7262  			Code:   res.StatusCode,
  7263  			Header: res.Header,
  7264  		}
  7265  	}
  7266  	if err != nil {
  7267  		return nil, err
  7268  	}
  7269  	defer googleapi.CloseBody(res)
  7270  	if err := googleapi.CheckResponse(res); err != nil {
  7271  		return nil, err
  7272  	}
  7273  	ret := &TestIamPermissionsResponse{
  7274  		ServerResponse: googleapi.ServerResponse{
  7275  			Header:         res.Header,
  7276  			HTTPStatusCode: res.StatusCode,
  7277  		},
  7278  	}
  7279  	target := &ret
  7280  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7281  		return nil, err
  7282  	}
  7283  	return ret, nil
  7284  	// {
  7285  	//   "description": "Returns permissions that a caller has on the specified resource.\nIf the resource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nThere is no permission required to make this API call.",
  7286  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}:testIamPermissions",
  7287  	//   "httpMethod": "POST",
  7288  	//   "id": "healthcare.projects.locations.datasets.annotationStores.testIamPermissions",
  7289  	//   "parameterOrder": [
  7290  	//     "resource"
  7291  	//   ],
  7292  	//   "parameters": {
  7293  	//     "resource": {
  7294  	//       "description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.",
  7295  	//       "location": "path",
  7296  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+$",
  7297  	//       "required": true,
  7298  	//       "type": "string"
  7299  	//     }
  7300  	//   },
  7301  	//   "path": "v1alpha2/{+resource}:testIamPermissions",
  7302  	//   "request": {
  7303  	//     "$ref": "TestIamPermissionsRequest"
  7304  	//   },
  7305  	//   "response": {
  7306  	//     "$ref": "TestIamPermissionsResponse"
  7307  	//   },
  7308  	//   "scopes": [
  7309  	//     "https://www.googleapis.com/auth/cloud-platform"
  7310  	//   ]
  7311  	// }
  7312  
  7313  }
  7314  
  7315  // method id "healthcare.projects.locations.datasets.annotationStores.annotations.create":
  7316  
  7317  type ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall struct {
  7318  	s          *Service
  7319  	parent     string
  7320  	annotation *Annotation
  7321  	urlParams_ gensupport.URLParams
  7322  	ctx_       context.Context
  7323  	header_    http.Header
  7324  }
  7325  
  7326  // Create: Creates a new Annotation record. It is
  7327  // valid to create Annotation objects for the same source more than once
  7328  // since
  7329  // a unique ID is assigned to each record by this service.
  7330  func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) Create(parent string, annotation *Annotation) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall {
  7331  	c := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7332  	c.parent = parent
  7333  	c.annotation = annotation
  7334  	return c
  7335  }
  7336  
  7337  // Fields allows partial responses to be retrieved. See
  7338  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  7339  // for more information.
  7340  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall {
  7341  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7342  	return c
  7343  }
  7344  
  7345  // Context sets the context to be used in this call's Do method. Any
  7346  // pending HTTP request will be aborted if the provided context is
  7347  // canceled.
  7348  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall {
  7349  	c.ctx_ = ctx
  7350  	return c
  7351  }
  7352  
  7353  // Header returns an http.Header that can be modified by the caller to
  7354  // add HTTP headers to the request.
  7355  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) Header() http.Header {
  7356  	if c.header_ == nil {
  7357  		c.header_ = make(http.Header)
  7358  	}
  7359  	return c.header_
  7360  }
  7361  
  7362  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) doRequest(alt string) (*http.Response, error) {
  7363  	reqHeaders := make(http.Header)
  7364  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  7365  	for k, v := range c.header_ {
  7366  		reqHeaders[k] = v
  7367  	}
  7368  	reqHeaders.Set("User-Agent", c.s.userAgent())
  7369  	var body io.Reader = nil
  7370  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.annotation)
  7371  	if err != nil {
  7372  		return nil, err
  7373  	}
  7374  	reqHeaders.Set("Content-Type", "application/json")
  7375  	c.urlParams_.Set("alt", alt)
  7376  	c.urlParams_.Set("prettyPrint", "false")
  7377  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/annotations")
  7378  	urls += "?" + c.urlParams_.Encode()
  7379  	req, err := http.NewRequest("POST", urls, body)
  7380  	if err != nil {
  7381  		return nil, err
  7382  	}
  7383  	req.Header = reqHeaders
  7384  	googleapi.Expand(req.URL, map[string]string{
  7385  		"parent": c.parent,
  7386  	})
  7387  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7388  }
  7389  
  7390  // Do executes the "healthcare.projects.locations.datasets.annotationStores.annotations.create" call.
  7391  // Exactly one of *Annotation or error will be non-nil. Any non-2xx
  7392  // status code is an error. Response headers are in either
  7393  // *Annotation.ServerResponse.Header or (if a response was returned at
  7394  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  7395  // to check whether the returned error was because
  7396  // http.StatusNotModified was returned.
  7397  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) Do(opts ...googleapi.CallOption) (*Annotation, error) {
  7398  	gensupport.SetOptions(c.urlParams_, opts...)
  7399  	res, err := c.doRequest("json")
  7400  	if res != nil && res.StatusCode == http.StatusNotModified {
  7401  		if res.Body != nil {
  7402  			res.Body.Close()
  7403  		}
  7404  		return nil, &googleapi.Error{
  7405  			Code:   res.StatusCode,
  7406  			Header: res.Header,
  7407  		}
  7408  	}
  7409  	if err != nil {
  7410  		return nil, err
  7411  	}
  7412  	defer googleapi.CloseBody(res)
  7413  	if err := googleapi.CheckResponse(res); err != nil {
  7414  		return nil, err
  7415  	}
  7416  	ret := &Annotation{
  7417  		ServerResponse: googleapi.ServerResponse{
  7418  			Header:         res.Header,
  7419  			HTTPStatusCode: res.StatusCode,
  7420  		},
  7421  	}
  7422  	target := &ret
  7423  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7424  		return nil, err
  7425  	}
  7426  	return ret, nil
  7427  	// {
  7428  	//   "description": "Creates a new Annotation record. It is\nvalid to create Annotation objects for the same source more than once since\na unique ID is assigned to each record by this service.",
  7429  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}/annotations",
  7430  	//   "httpMethod": "POST",
  7431  	//   "id": "healthcare.projects.locations.datasets.annotationStores.annotations.create",
  7432  	//   "parameterOrder": [
  7433  	//     "parent"
  7434  	//   ],
  7435  	//   "parameters": {
  7436  	//     "parent": {
  7437  	//       "description": "The name of the Annotation store this annotation belongs to. For example,\n`projects/my-project/locations/us-central1/datasets/mydataset/annotationStores/myannotationstore`.",
  7438  	//       "location": "path",
  7439  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+$",
  7440  	//       "required": true,
  7441  	//       "type": "string"
  7442  	//     }
  7443  	//   },
  7444  	//   "path": "v1alpha2/{+parent}/annotations",
  7445  	//   "request": {
  7446  	//     "$ref": "Annotation"
  7447  	//   },
  7448  	//   "response": {
  7449  	//     "$ref": "Annotation"
  7450  	//   },
  7451  	//   "scopes": [
  7452  	//     "https://www.googleapis.com/auth/cloud-platform"
  7453  	//   ]
  7454  	// }
  7455  
  7456  }
  7457  
  7458  // method id "healthcare.projects.locations.datasets.annotationStores.annotations.delete":
  7459  
  7460  type ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall struct {
  7461  	s          *Service
  7462  	name       string
  7463  	urlParams_ gensupport.URLParams
  7464  	ctx_       context.Context
  7465  	header_    http.Header
  7466  }
  7467  
  7468  // Delete: Deletes an Annotation or returns
  7469  // NOT_FOUND if it does not exist.
  7470  func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) Delete(name string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall {
  7471  	c := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7472  	c.name = name
  7473  	return c
  7474  }
  7475  
  7476  // Fields allows partial responses to be retrieved. See
  7477  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  7478  // for more information.
  7479  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall {
  7480  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7481  	return c
  7482  }
  7483  
  7484  // Context sets the context to be used in this call's Do method. Any
  7485  // pending HTTP request will be aborted if the provided context is
  7486  // canceled.
  7487  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall {
  7488  	c.ctx_ = ctx
  7489  	return c
  7490  }
  7491  
  7492  // Header returns an http.Header that can be modified by the caller to
  7493  // add HTTP headers to the request.
  7494  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) Header() http.Header {
  7495  	if c.header_ == nil {
  7496  		c.header_ = make(http.Header)
  7497  	}
  7498  	return c.header_
  7499  }
  7500  
  7501  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) doRequest(alt string) (*http.Response, error) {
  7502  	reqHeaders := make(http.Header)
  7503  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  7504  	for k, v := range c.header_ {
  7505  		reqHeaders[k] = v
  7506  	}
  7507  	reqHeaders.Set("User-Agent", c.s.userAgent())
  7508  	var body io.Reader = nil
  7509  	c.urlParams_.Set("alt", alt)
  7510  	c.urlParams_.Set("prettyPrint", "false")
  7511  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
  7512  	urls += "?" + c.urlParams_.Encode()
  7513  	req, err := http.NewRequest("DELETE", urls, body)
  7514  	if err != nil {
  7515  		return nil, err
  7516  	}
  7517  	req.Header = reqHeaders
  7518  	googleapi.Expand(req.URL, map[string]string{
  7519  		"name": c.name,
  7520  	})
  7521  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7522  }
  7523  
  7524  // Do executes the "healthcare.projects.locations.datasets.annotationStores.annotations.delete" call.
  7525  // Exactly one of *Empty or error will be non-nil. Any non-2xx status
  7526  // code is an error. Response headers are in either
  7527  // *Empty.ServerResponse.Header or (if a response was returned at all)
  7528  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  7529  // check whether the returned error was because http.StatusNotModified
  7530  // was returned.
  7531  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  7532  	gensupport.SetOptions(c.urlParams_, opts...)
  7533  	res, err := c.doRequest("json")
  7534  	if res != nil && res.StatusCode == http.StatusNotModified {
  7535  		if res.Body != nil {
  7536  			res.Body.Close()
  7537  		}
  7538  		return nil, &googleapi.Error{
  7539  			Code:   res.StatusCode,
  7540  			Header: res.Header,
  7541  		}
  7542  	}
  7543  	if err != nil {
  7544  		return nil, err
  7545  	}
  7546  	defer googleapi.CloseBody(res)
  7547  	if err := googleapi.CheckResponse(res); err != nil {
  7548  		return nil, err
  7549  	}
  7550  	ret := &Empty{
  7551  		ServerResponse: googleapi.ServerResponse{
  7552  			Header:         res.Header,
  7553  			HTTPStatusCode: res.StatusCode,
  7554  		},
  7555  	}
  7556  	target := &ret
  7557  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7558  		return nil, err
  7559  	}
  7560  	return ret, nil
  7561  	// {
  7562  	//   "description": "Deletes an Annotation or returns\nNOT_FOUND if it does not exist.",
  7563  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}/annotations/{annotationsId}",
  7564  	//   "httpMethod": "DELETE",
  7565  	//   "id": "healthcare.projects.locations.datasets.annotationStores.annotations.delete",
  7566  	//   "parameterOrder": [
  7567  	//     "name"
  7568  	//   ],
  7569  	//   "parameters": {
  7570  	//     "name": {
  7571  	//       "description": "The resource name of the Annotation to delete.",
  7572  	//       "location": "path",
  7573  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+/annotations/[^/]+$",
  7574  	//       "required": true,
  7575  	//       "type": "string"
  7576  	//     }
  7577  	//   },
  7578  	//   "path": "v1alpha2/{+name}",
  7579  	//   "response": {
  7580  	//     "$ref": "Empty"
  7581  	//   },
  7582  	//   "scopes": [
  7583  	//     "https://www.googleapis.com/auth/cloud-platform"
  7584  	//   ]
  7585  	// }
  7586  
  7587  }
  7588  
  7589  // method id "healthcare.projects.locations.datasets.annotationStores.annotations.get":
  7590  
  7591  type ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall struct {
  7592  	s            *Service
  7593  	name         string
  7594  	urlParams_   gensupport.URLParams
  7595  	ifNoneMatch_ string
  7596  	ctx_         context.Context
  7597  	header_      http.Header
  7598  }
  7599  
  7600  // Get: Gets an Annotation.
  7601  func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) Get(name string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall {
  7602  	c := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7603  	c.name = name
  7604  	return c
  7605  }
  7606  
  7607  // Fields allows partial responses to be retrieved. See
  7608  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  7609  // for more information.
  7610  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall {
  7611  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7612  	return c
  7613  }
  7614  
  7615  // IfNoneMatch sets the optional parameter which makes the operation
  7616  // fail if the object's ETag matches the given value. This is useful for
  7617  // getting updates only after the object has changed since the last
  7618  // request. Use googleapi.IsNotModified to check whether the response
  7619  // error from Do is the result of In-None-Match.
  7620  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall {
  7621  	c.ifNoneMatch_ = entityTag
  7622  	return c
  7623  }
  7624  
  7625  // Context sets the context to be used in this call's Do method. Any
  7626  // pending HTTP request will be aborted if the provided context is
  7627  // canceled.
  7628  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall {
  7629  	c.ctx_ = ctx
  7630  	return c
  7631  }
  7632  
  7633  // Header returns an http.Header that can be modified by the caller to
  7634  // add HTTP headers to the request.
  7635  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) Header() http.Header {
  7636  	if c.header_ == nil {
  7637  		c.header_ = make(http.Header)
  7638  	}
  7639  	return c.header_
  7640  }
  7641  
  7642  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) doRequest(alt string) (*http.Response, error) {
  7643  	reqHeaders := make(http.Header)
  7644  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  7645  	for k, v := range c.header_ {
  7646  		reqHeaders[k] = v
  7647  	}
  7648  	reqHeaders.Set("User-Agent", c.s.userAgent())
  7649  	if c.ifNoneMatch_ != "" {
  7650  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7651  	}
  7652  	var body io.Reader = nil
  7653  	c.urlParams_.Set("alt", alt)
  7654  	c.urlParams_.Set("prettyPrint", "false")
  7655  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
  7656  	urls += "?" + c.urlParams_.Encode()
  7657  	req, err := http.NewRequest("GET", urls, body)
  7658  	if err != nil {
  7659  		return nil, err
  7660  	}
  7661  	req.Header = reqHeaders
  7662  	googleapi.Expand(req.URL, map[string]string{
  7663  		"name": c.name,
  7664  	})
  7665  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7666  }
  7667  
  7668  // Do executes the "healthcare.projects.locations.datasets.annotationStores.annotations.get" call.
  7669  // Exactly one of *Annotation or error will be non-nil. Any non-2xx
  7670  // status code is an error. Response headers are in either
  7671  // *Annotation.ServerResponse.Header or (if a response was returned at
  7672  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  7673  // to check whether the returned error was because
  7674  // http.StatusNotModified was returned.
  7675  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) Do(opts ...googleapi.CallOption) (*Annotation, error) {
  7676  	gensupport.SetOptions(c.urlParams_, opts...)
  7677  	res, err := c.doRequest("json")
  7678  	if res != nil && res.StatusCode == http.StatusNotModified {
  7679  		if res.Body != nil {
  7680  			res.Body.Close()
  7681  		}
  7682  		return nil, &googleapi.Error{
  7683  			Code:   res.StatusCode,
  7684  			Header: res.Header,
  7685  		}
  7686  	}
  7687  	if err != nil {
  7688  		return nil, err
  7689  	}
  7690  	defer googleapi.CloseBody(res)
  7691  	if err := googleapi.CheckResponse(res); err != nil {
  7692  		return nil, err
  7693  	}
  7694  	ret := &Annotation{
  7695  		ServerResponse: googleapi.ServerResponse{
  7696  			Header:         res.Header,
  7697  			HTTPStatusCode: res.StatusCode,
  7698  		},
  7699  	}
  7700  	target := &ret
  7701  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7702  		return nil, err
  7703  	}
  7704  	return ret, nil
  7705  	// {
  7706  	//   "description": "Gets an Annotation.",
  7707  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}/annotations/{annotationsId}",
  7708  	//   "httpMethod": "GET",
  7709  	//   "id": "healthcare.projects.locations.datasets.annotationStores.annotations.get",
  7710  	//   "parameterOrder": [
  7711  	//     "name"
  7712  	//   ],
  7713  	//   "parameters": {
  7714  	//     "name": {
  7715  	//       "description": "The resource name of the Annotation to retrieve.",
  7716  	//       "location": "path",
  7717  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+/annotations/[^/]+$",
  7718  	//       "required": true,
  7719  	//       "type": "string"
  7720  	//     }
  7721  	//   },
  7722  	//   "path": "v1alpha2/{+name}",
  7723  	//   "response": {
  7724  	//     "$ref": "Annotation"
  7725  	//   },
  7726  	//   "scopes": [
  7727  	//     "https://www.googleapis.com/auth/cloud-platform"
  7728  	//   ]
  7729  	// }
  7730  
  7731  }
  7732  
  7733  // method id "healthcare.projects.locations.datasets.annotationStores.annotations.list":
  7734  
  7735  type ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall struct {
  7736  	s            *Service
  7737  	parent       string
  7738  	urlParams_   gensupport.URLParams
  7739  	ifNoneMatch_ string
  7740  	ctx_         context.Context
  7741  	header_      http.Header
  7742  }
  7743  
  7744  // List: Lists the Annotations in the given
  7745  // Annotation store for a source
  7746  // resource.
  7747  func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) List(parent string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
  7748  	c := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7749  	c.parent = parent
  7750  	return c
  7751  }
  7752  
  7753  // Filter sets the optional parameter "filter": Restricts Annotations
  7754  // returned to those matching a filter.
  7755  // Syntax:
  7756  // https://cloud.google.com/appengine/docs/standard/python/search
  7757  // /query_strings
  7758  // Fields/functions available for filtering are:
  7759  // - source_version
  7760  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Filter(filter string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
  7761  	c.urlParams_.Set("filter", filter)
  7762  	return c
  7763  }
  7764  
  7765  // PageSize sets the optional parameter "pageSize": Limit on the number
  7766  // of Annotations to return in a single response.
  7767  // If zero the default page size of 100 is used.
  7768  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
  7769  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  7770  	return c
  7771  }
  7772  
  7773  // PageToken sets the optional parameter "pageToken": The
  7774  // next_page_token value returned from the previous List request, if
  7775  // any.
  7776  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
  7777  	c.urlParams_.Set("pageToken", pageToken)
  7778  	return c
  7779  }
  7780  
  7781  // Fields allows partial responses to be retrieved. See
  7782  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  7783  // for more information.
  7784  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
  7785  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7786  	return c
  7787  }
  7788  
  7789  // IfNoneMatch sets the optional parameter which makes the operation
  7790  // fail if the object's ETag matches the given value. This is useful for
  7791  // getting updates only after the object has changed since the last
  7792  // request. Use googleapi.IsNotModified to check whether the response
  7793  // error from Do is the result of In-None-Match.
  7794  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
  7795  	c.ifNoneMatch_ = entityTag
  7796  	return c
  7797  }
  7798  
  7799  // Context sets the context to be used in this call's Do method. Any
  7800  // pending HTTP request will be aborted if the provided context is
  7801  // canceled.
  7802  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
  7803  	c.ctx_ = ctx
  7804  	return c
  7805  }
  7806  
  7807  // Header returns an http.Header that can be modified by the caller to
  7808  // add HTTP headers to the request.
  7809  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Header() http.Header {
  7810  	if c.header_ == nil {
  7811  		c.header_ = make(http.Header)
  7812  	}
  7813  	return c.header_
  7814  }
  7815  
  7816  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) doRequest(alt string) (*http.Response, error) {
  7817  	reqHeaders := make(http.Header)
  7818  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  7819  	for k, v := range c.header_ {
  7820  		reqHeaders[k] = v
  7821  	}
  7822  	reqHeaders.Set("User-Agent", c.s.userAgent())
  7823  	if c.ifNoneMatch_ != "" {
  7824  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7825  	}
  7826  	var body io.Reader = nil
  7827  	c.urlParams_.Set("alt", alt)
  7828  	c.urlParams_.Set("prettyPrint", "false")
  7829  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/annotations")
  7830  	urls += "?" + c.urlParams_.Encode()
  7831  	req, err := http.NewRequest("GET", urls, body)
  7832  	if err != nil {
  7833  		return nil, err
  7834  	}
  7835  	req.Header = reqHeaders
  7836  	googleapi.Expand(req.URL, map[string]string{
  7837  		"parent": c.parent,
  7838  	})
  7839  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7840  }
  7841  
  7842  // Do executes the "healthcare.projects.locations.datasets.annotationStores.annotations.list" call.
  7843  // Exactly one of *ListAnnotationsResponse or error will be non-nil. Any
  7844  // non-2xx status code is an error. Response headers are in either
  7845  // *ListAnnotationsResponse.ServerResponse.Header or (if a response was
  7846  // returned at all) in error.(*googleapi.Error).Header. Use
  7847  // googleapi.IsNotModified to check whether the returned error was
  7848  // because http.StatusNotModified was returned.
  7849  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Do(opts ...googleapi.CallOption) (*ListAnnotationsResponse, error) {
  7850  	gensupport.SetOptions(c.urlParams_, opts...)
  7851  	res, err := c.doRequest("json")
  7852  	if res != nil && res.StatusCode == http.StatusNotModified {
  7853  		if res.Body != nil {
  7854  			res.Body.Close()
  7855  		}
  7856  		return nil, &googleapi.Error{
  7857  			Code:   res.StatusCode,
  7858  			Header: res.Header,
  7859  		}
  7860  	}
  7861  	if err != nil {
  7862  		return nil, err
  7863  	}
  7864  	defer googleapi.CloseBody(res)
  7865  	if err := googleapi.CheckResponse(res); err != nil {
  7866  		return nil, err
  7867  	}
  7868  	ret := &ListAnnotationsResponse{
  7869  		ServerResponse: googleapi.ServerResponse{
  7870  			Header:         res.Header,
  7871  			HTTPStatusCode: res.StatusCode,
  7872  		},
  7873  	}
  7874  	target := &ret
  7875  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7876  		return nil, err
  7877  	}
  7878  	return ret, nil
  7879  	// {
  7880  	//   "description": "Lists the Annotations in the given\nAnnotation store for a source\nresource.",
  7881  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}/annotations",
  7882  	//   "httpMethod": "GET",
  7883  	//   "id": "healthcare.projects.locations.datasets.annotationStores.annotations.list",
  7884  	//   "parameterOrder": [
  7885  	//     "parent"
  7886  	//   ],
  7887  	//   "parameters": {
  7888  	//     "filter": {
  7889  	//       "description": "Restricts Annotations returned to those matching a filter. Syntax:\nhttps://cloud.google.com/appengine/docs/standard/python/search/query_strings\nFields/functions available for filtering are:\n- source_version",
  7890  	//       "location": "query",
  7891  	//       "type": "string"
  7892  	//     },
  7893  	//     "pageSize": {
  7894  	//       "description": "Limit on the number of Annotations to return in a single response.\nIf zero the default page size of 100 is used.",
  7895  	//       "format": "int32",
  7896  	//       "location": "query",
  7897  	//       "type": "integer"
  7898  	//     },
  7899  	//     "pageToken": {
  7900  	//       "description": "The next_page_token value returned from the previous List request, if any.",
  7901  	//       "location": "query",
  7902  	//       "type": "string"
  7903  	//     },
  7904  	//     "parent": {
  7905  	//       "description": "Name of the Annotation store to retrieve Annotations from.",
  7906  	//       "location": "path",
  7907  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+$",
  7908  	//       "required": true,
  7909  	//       "type": "string"
  7910  	//     }
  7911  	//   },
  7912  	//   "path": "v1alpha2/{+parent}/annotations",
  7913  	//   "response": {
  7914  	//     "$ref": "ListAnnotationsResponse"
  7915  	//   },
  7916  	//   "scopes": [
  7917  	//     "https://www.googleapis.com/auth/cloud-platform"
  7918  	//   ]
  7919  	// }
  7920  
  7921  }
  7922  
  7923  // Pages invokes f for each page of results.
  7924  // A non-nil error returned from f will halt the iteration.
  7925  // The provided context supersedes any context provided to the Context method.
  7926  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Pages(ctx context.Context, f func(*ListAnnotationsResponse) error) error {
  7927  	c.ctx_ = ctx
  7928  	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
  7929  	for {
  7930  		x, err := c.Do()
  7931  		if err != nil {
  7932  			return err
  7933  		}
  7934  		if err := f(x); err != nil {
  7935  			return err
  7936  		}
  7937  		if x.NextPageToken == "" {
  7938  			return nil
  7939  		}
  7940  		c.PageToken(x.NextPageToken)
  7941  	}
  7942  }
  7943  
  7944  // method id "healthcare.projects.locations.datasets.annotationStores.annotations.patch":
  7945  
  7946  type ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall struct {
  7947  	s          *Service
  7948  	name       string
  7949  	annotation *Annotation
  7950  	urlParams_ gensupport.URLParams
  7951  	ctx_       context.Context
  7952  	header_    http.Header
  7953  }
  7954  
  7955  // Patch: Updates the Annotation.
  7956  func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) Patch(name string, annotation *Annotation) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall {
  7957  	c := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7958  	c.name = name
  7959  	c.annotation = annotation
  7960  	return c
  7961  }
  7962  
  7963  // UpdateMask sets the optional parameter "updateMask": The update mask
  7964  // applies to the resource. For the `FieldMask`
  7965  // definition,
  7966  // see
  7967  // https://developers.google.com/protocol-buffers/docs/re
  7968  // ference/google.protobuf#fieldmask
  7969  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall {
  7970  	c.urlParams_.Set("updateMask", updateMask)
  7971  	return c
  7972  }
  7973  
  7974  // Fields allows partial responses to be retrieved. See
  7975  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  7976  // for more information.
  7977  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall {
  7978  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7979  	return c
  7980  }
  7981  
  7982  // Context sets the context to be used in this call's Do method. Any
  7983  // pending HTTP request will be aborted if the provided context is
  7984  // canceled.
  7985  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall {
  7986  	c.ctx_ = ctx
  7987  	return c
  7988  }
  7989  
  7990  // Header returns an http.Header that can be modified by the caller to
  7991  // add HTTP headers to the request.
  7992  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) Header() http.Header {
  7993  	if c.header_ == nil {
  7994  		c.header_ = make(http.Header)
  7995  	}
  7996  	return c.header_
  7997  }
  7998  
  7999  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) doRequest(alt string) (*http.Response, error) {
  8000  	reqHeaders := make(http.Header)
  8001  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  8002  	for k, v := range c.header_ {
  8003  		reqHeaders[k] = v
  8004  	}
  8005  	reqHeaders.Set("User-Agent", c.s.userAgent())
  8006  	var body io.Reader = nil
  8007  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.annotation)
  8008  	if err != nil {
  8009  		return nil, err
  8010  	}
  8011  	reqHeaders.Set("Content-Type", "application/json")
  8012  	c.urlParams_.Set("alt", alt)
  8013  	c.urlParams_.Set("prettyPrint", "false")
  8014  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
  8015  	urls += "?" + c.urlParams_.Encode()
  8016  	req, err := http.NewRequest("PATCH", urls, body)
  8017  	if err != nil {
  8018  		return nil, err
  8019  	}
  8020  	req.Header = reqHeaders
  8021  	googleapi.Expand(req.URL, map[string]string{
  8022  		"name": c.name,
  8023  	})
  8024  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8025  }
  8026  
  8027  // Do executes the "healthcare.projects.locations.datasets.annotationStores.annotations.patch" call.
  8028  // Exactly one of *Annotation or error will be non-nil. Any non-2xx
  8029  // status code is an error. Response headers are in either
  8030  // *Annotation.ServerResponse.Header or (if a response was returned at
  8031  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  8032  // to check whether the returned error was because
  8033  // http.StatusNotModified was returned.
  8034  func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) Do(opts ...googleapi.CallOption) (*Annotation, error) {
  8035  	gensupport.SetOptions(c.urlParams_, opts...)
  8036  	res, err := c.doRequest("json")
  8037  	if res != nil && res.StatusCode == http.StatusNotModified {
  8038  		if res.Body != nil {
  8039  			res.Body.Close()
  8040  		}
  8041  		return nil, &googleapi.Error{
  8042  			Code:   res.StatusCode,
  8043  			Header: res.Header,
  8044  		}
  8045  	}
  8046  	if err != nil {
  8047  		return nil, err
  8048  	}
  8049  	defer googleapi.CloseBody(res)
  8050  	if err := googleapi.CheckResponse(res); err != nil {
  8051  		return nil, err
  8052  	}
  8053  	ret := &Annotation{
  8054  		ServerResponse: googleapi.ServerResponse{
  8055  			Header:         res.Header,
  8056  			HTTPStatusCode: res.StatusCode,
  8057  		},
  8058  	}
  8059  	target := &ret
  8060  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8061  		return nil, err
  8062  	}
  8063  	return ret, nil
  8064  	// {
  8065  	//   "description": "Updates the Annotation.",
  8066  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}/annotations/{annotationsId}",
  8067  	//   "httpMethod": "PATCH",
  8068  	//   "id": "healthcare.projects.locations.datasets.annotationStores.annotations.patch",
  8069  	//   "parameterOrder": [
  8070  	//     "name"
  8071  	//   ],
  8072  	//   "parameters": {
  8073  	//     "name": {
  8074  	//       "description": "Output only. Resource name of the Annotation, of the form\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationStores/{annotation_store_id}/annotations/{annotation_id}`.",
  8075  	//       "location": "path",
  8076  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+/annotations/[^/]+$",
  8077  	//       "required": true,
  8078  	//       "type": "string"
  8079  	//     },
  8080  	//     "updateMask": {
  8081  	//       "description": "The update mask applies to the resource. For the `FieldMask` definition,\nsee\nhttps://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask",
  8082  	//       "format": "google-fieldmask",
  8083  	//       "location": "query",
  8084  	//       "type": "string"
  8085  	//     }
  8086  	//   },
  8087  	//   "path": "v1alpha2/{+name}",
  8088  	//   "request": {
  8089  	//     "$ref": "Annotation"
  8090  	//   },
  8091  	//   "response": {
  8092  	//     "$ref": "Annotation"
  8093  	//   },
  8094  	//   "scopes": [
  8095  	//     "https://www.googleapis.com/auth/cloud-platform"
  8096  	//   ]
  8097  	// }
  8098  
  8099  }
  8100  
  8101  // method id "healthcare.projects.locations.datasets.dicomStores.create":
  8102  
  8103  type ProjectsLocationsDatasetsDicomStoresCreateCall struct {
  8104  	s          *Service
  8105  	parent     string
  8106  	dicomstore *DicomStore
  8107  	urlParams_ gensupport.URLParams
  8108  	ctx_       context.Context
  8109  	header_    http.Header
  8110  }
  8111  
  8112  // Create: Creates a new DICOM store within the parent dataset.
  8113  func (r *ProjectsLocationsDatasetsDicomStoresService) Create(parent string, dicomstore *DicomStore) *ProjectsLocationsDatasetsDicomStoresCreateCall {
  8114  	c := &ProjectsLocationsDatasetsDicomStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8115  	c.parent = parent
  8116  	c.dicomstore = dicomstore
  8117  	return c
  8118  }
  8119  
  8120  // DicomStoreId sets the optional parameter "dicomStoreId": The ID of
  8121  // the DICOM store that is being created.
  8122  // Any string value up to 256 characters in length.
  8123  func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) DicomStoreId(dicomStoreId string) *ProjectsLocationsDatasetsDicomStoresCreateCall {
  8124  	c.urlParams_.Set("dicomStoreId", dicomStoreId)
  8125  	return c
  8126  }
  8127  
  8128  // Fields allows partial responses to be retrieved. See
  8129  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  8130  // for more information.
  8131  func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresCreateCall {
  8132  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8133  	return c
  8134  }
  8135  
  8136  // Context sets the context to be used in this call's Do method. Any
  8137  // pending HTTP request will be aborted if the provided context is
  8138  // canceled.
  8139  func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresCreateCall {
  8140  	c.ctx_ = ctx
  8141  	return c
  8142  }
  8143  
  8144  // Header returns an http.Header that can be modified by the caller to
  8145  // add HTTP headers to the request.
  8146  func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) Header() http.Header {
  8147  	if c.header_ == nil {
  8148  		c.header_ = make(http.Header)
  8149  	}
  8150  	return c.header_
  8151  }
  8152  
  8153  func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) doRequest(alt string) (*http.Response, error) {
  8154  	reqHeaders := make(http.Header)
  8155  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  8156  	for k, v := range c.header_ {
  8157  		reqHeaders[k] = v
  8158  	}
  8159  	reqHeaders.Set("User-Agent", c.s.userAgent())
  8160  	var body io.Reader = nil
  8161  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.dicomstore)
  8162  	if err != nil {
  8163  		return nil, err
  8164  	}
  8165  	reqHeaders.Set("Content-Type", "application/json")
  8166  	c.urlParams_.Set("alt", alt)
  8167  	c.urlParams_.Set("prettyPrint", "false")
  8168  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomStores")
  8169  	urls += "?" + c.urlParams_.Encode()
  8170  	req, err := http.NewRequest("POST", urls, body)
  8171  	if err != nil {
  8172  		return nil, err
  8173  	}
  8174  	req.Header = reqHeaders
  8175  	googleapi.Expand(req.URL, map[string]string{
  8176  		"parent": c.parent,
  8177  	})
  8178  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8179  }
  8180  
  8181  // Do executes the "healthcare.projects.locations.datasets.dicomStores.create" call.
  8182  // Exactly one of *DicomStore or error will be non-nil. Any non-2xx
  8183  // status code is an error. Response headers are in either
  8184  // *DicomStore.ServerResponse.Header or (if a response was returned at
  8185  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  8186  // to check whether the returned error was because
  8187  // http.StatusNotModified was returned.
  8188  func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) Do(opts ...googleapi.CallOption) (*DicomStore, error) {
  8189  	gensupport.SetOptions(c.urlParams_, opts...)
  8190  	res, err := c.doRequest("json")
  8191  	if res != nil && res.StatusCode == http.StatusNotModified {
  8192  		if res.Body != nil {
  8193  			res.Body.Close()
  8194  		}
  8195  		return nil, &googleapi.Error{
  8196  			Code:   res.StatusCode,
  8197  			Header: res.Header,
  8198  		}
  8199  	}
  8200  	if err != nil {
  8201  		return nil, err
  8202  	}
  8203  	defer googleapi.CloseBody(res)
  8204  	if err := googleapi.CheckResponse(res); err != nil {
  8205  		return nil, err
  8206  	}
  8207  	ret := &DicomStore{
  8208  		ServerResponse: googleapi.ServerResponse{
  8209  			Header:         res.Header,
  8210  			HTTPStatusCode: res.StatusCode,
  8211  		},
  8212  	}
  8213  	target := &ret
  8214  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8215  		return nil, err
  8216  	}
  8217  	return ret, nil
  8218  	// {
  8219  	//   "description": "Creates a new DICOM store within the parent dataset.",
  8220  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores",
  8221  	//   "httpMethod": "POST",
  8222  	//   "id": "healthcare.projects.locations.datasets.dicomStores.create",
  8223  	//   "parameterOrder": [
  8224  	//     "parent"
  8225  	//   ],
  8226  	//   "parameters": {
  8227  	//     "dicomStoreId": {
  8228  	//       "description": "The ID of the DICOM store that is being created.\nAny string value up to 256 characters in length.",
  8229  	//       "location": "query",
  8230  	//       "type": "string"
  8231  	//     },
  8232  	//     "parent": {
  8233  	//       "description": "The name of the dataset this DICOM store belongs to.",
  8234  	//       "location": "path",
  8235  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
  8236  	//       "required": true,
  8237  	//       "type": "string"
  8238  	//     }
  8239  	//   },
  8240  	//   "path": "v1alpha2/{+parent}/dicomStores",
  8241  	//   "request": {
  8242  	//     "$ref": "DicomStore"
  8243  	//   },
  8244  	//   "response": {
  8245  	//     "$ref": "DicomStore"
  8246  	//   },
  8247  	//   "scopes": [
  8248  	//     "https://www.googleapis.com/auth/cloud-platform"
  8249  	//   ]
  8250  	// }
  8251  
  8252  }
  8253  
  8254  // method id "healthcare.projects.locations.datasets.dicomStores.delete":
  8255  
  8256  type ProjectsLocationsDatasetsDicomStoresDeleteCall struct {
  8257  	s          *Service
  8258  	name       string
  8259  	urlParams_ gensupport.URLParams
  8260  	ctx_       context.Context
  8261  	header_    http.Header
  8262  }
  8263  
  8264  // Delete: Deletes the specified DICOM store and removes all images that
  8265  // are contained
  8266  // within it.
  8267  func (r *ProjectsLocationsDatasetsDicomStoresService) Delete(name string) *ProjectsLocationsDatasetsDicomStoresDeleteCall {
  8268  	c := &ProjectsLocationsDatasetsDicomStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8269  	c.name = name
  8270  	return c
  8271  }
  8272  
  8273  // Fields allows partial responses to be retrieved. See
  8274  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  8275  // for more information.
  8276  func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDeleteCall {
  8277  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8278  	return c
  8279  }
  8280  
  8281  // Context sets the context to be used in this call's Do method. Any
  8282  // pending HTTP request will be aborted if the provided context is
  8283  // canceled.
  8284  func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDeleteCall {
  8285  	c.ctx_ = ctx
  8286  	return c
  8287  }
  8288  
  8289  // Header returns an http.Header that can be modified by the caller to
  8290  // add HTTP headers to the request.
  8291  func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) Header() http.Header {
  8292  	if c.header_ == nil {
  8293  		c.header_ = make(http.Header)
  8294  	}
  8295  	return c.header_
  8296  }
  8297  
  8298  func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) doRequest(alt string) (*http.Response, error) {
  8299  	reqHeaders := make(http.Header)
  8300  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  8301  	for k, v := range c.header_ {
  8302  		reqHeaders[k] = v
  8303  	}
  8304  	reqHeaders.Set("User-Agent", c.s.userAgent())
  8305  	var body io.Reader = nil
  8306  	c.urlParams_.Set("alt", alt)
  8307  	c.urlParams_.Set("prettyPrint", "false")
  8308  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
  8309  	urls += "?" + c.urlParams_.Encode()
  8310  	req, err := http.NewRequest("DELETE", urls, body)
  8311  	if err != nil {
  8312  		return nil, err
  8313  	}
  8314  	req.Header = reqHeaders
  8315  	googleapi.Expand(req.URL, map[string]string{
  8316  		"name": c.name,
  8317  	})
  8318  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8319  }
  8320  
  8321  // Do executes the "healthcare.projects.locations.datasets.dicomStores.delete" call.
  8322  // Exactly one of *Empty or error will be non-nil. Any non-2xx status
  8323  // code is an error. Response headers are in either
  8324  // *Empty.ServerResponse.Header or (if a response was returned at all)
  8325  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  8326  // check whether the returned error was because http.StatusNotModified
  8327  // was returned.
  8328  func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  8329  	gensupport.SetOptions(c.urlParams_, opts...)
  8330  	res, err := c.doRequest("json")
  8331  	if res != nil && res.StatusCode == http.StatusNotModified {
  8332  		if res.Body != nil {
  8333  			res.Body.Close()
  8334  		}
  8335  		return nil, &googleapi.Error{
  8336  			Code:   res.StatusCode,
  8337  			Header: res.Header,
  8338  		}
  8339  	}
  8340  	if err != nil {
  8341  		return nil, err
  8342  	}
  8343  	defer googleapi.CloseBody(res)
  8344  	if err := googleapi.CheckResponse(res); err != nil {
  8345  		return nil, err
  8346  	}
  8347  	ret := &Empty{
  8348  		ServerResponse: googleapi.ServerResponse{
  8349  			Header:         res.Header,
  8350  			HTTPStatusCode: res.StatusCode,
  8351  		},
  8352  	}
  8353  	target := &ret
  8354  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8355  		return nil, err
  8356  	}
  8357  	return ret, nil
  8358  	// {
  8359  	//   "description": "Deletes the specified DICOM store and removes all images that are contained\nwithin it.",
  8360  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}",
  8361  	//   "httpMethod": "DELETE",
  8362  	//   "id": "healthcare.projects.locations.datasets.dicomStores.delete",
  8363  	//   "parameterOrder": [
  8364  	//     "name"
  8365  	//   ],
  8366  	//   "parameters": {
  8367  	//     "name": {
  8368  	//       "description": "The resource name of the DICOM store to delete.",
  8369  	//       "location": "path",
  8370  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
  8371  	//       "required": true,
  8372  	//       "type": "string"
  8373  	//     }
  8374  	//   },
  8375  	//   "path": "v1alpha2/{+name}",
  8376  	//   "response": {
  8377  	//     "$ref": "Empty"
  8378  	//   },
  8379  	//   "scopes": [
  8380  	//     "https://www.googleapis.com/auth/cloud-platform"
  8381  	//   ]
  8382  	// }
  8383  
  8384  }
  8385  
  8386  // method id "healthcare.projects.locations.datasets.dicomStores.export":
  8387  
  8388  type ProjectsLocationsDatasetsDicomStoresExportCall struct {
  8389  	s                      *Service
  8390  	name                   string
  8391  	exportdicomdatarequest *ExportDicomDataRequest
  8392  	urlParams_             gensupport.URLParams
  8393  	ctx_                   context.Context
  8394  	header_                http.Header
  8395  }
  8396  
  8397  // Export: Exports data to the specified destination by copying it from
  8398  // the DICOM
  8399  // store.
  8400  // The metadata field type is
  8401  // OperationMetadata.
  8402  func (r *ProjectsLocationsDatasetsDicomStoresService) Export(name string, exportdicomdatarequest *ExportDicomDataRequest) *ProjectsLocationsDatasetsDicomStoresExportCall {
  8403  	c := &ProjectsLocationsDatasetsDicomStoresExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8404  	c.name = name
  8405  	c.exportdicomdatarequest = exportdicomdatarequest
  8406  	return c
  8407  }
  8408  
  8409  // Fields allows partial responses to be retrieved. See
  8410  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  8411  // for more information.
  8412  func (c *ProjectsLocationsDatasetsDicomStoresExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresExportCall {
  8413  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8414  	return c
  8415  }
  8416  
  8417  // Context sets the context to be used in this call's Do method. Any
  8418  // pending HTTP request will be aborted if the provided context is
  8419  // canceled.
  8420  func (c *ProjectsLocationsDatasetsDicomStoresExportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresExportCall {
  8421  	c.ctx_ = ctx
  8422  	return c
  8423  }
  8424  
  8425  // Header returns an http.Header that can be modified by the caller to
  8426  // add HTTP headers to the request.
  8427  func (c *ProjectsLocationsDatasetsDicomStoresExportCall) Header() http.Header {
  8428  	if c.header_ == nil {
  8429  		c.header_ = make(http.Header)
  8430  	}
  8431  	return c.header_
  8432  }
  8433  
  8434  func (c *ProjectsLocationsDatasetsDicomStoresExportCall) doRequest(alt string) (*http.Response, error) {
  8435  	reqHeaders := make(http.Header)
  8436  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  8437  	for k, v := range c.header_ {
  8438  		reqHeaders[k] = v
  8439  	}
  8440  	reqHeaders.Set("User-Agent", c.s.userAgent())
  8441  	var body io.Reader = nil
  8442  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.exportdicomdatarequest)
  8443  	if err != nil {
  8444  		return nil, err
  8445  	}
  8446  	reqHeaders.Set("Content-Type", "application/json")
  8447  	c.urlParams_.Set("alt", alt)
  8448  	c.urlParams_.Set("prettyPrint", "false")
  8449  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}:export")
  8450  	urls += "?" + c.urlParams_.Encode()
  8451  	req, err := http.NewRequest("POST", urls, body)
  8452  	if err != nil {
  8453  		return nil, err
  8454  	}
  8455  	req.Header = reqHeaders
  8456  	googleapi.Expand(req.URL, map[string]string{
  8457  		"name": c.name,
  8458  	})
  8459  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8460  }
  8461  
  8462  // Do executes the "healthcare.projects.locations.datasets.dicomStores.export" call.
  8463  // Exactly one of *Operation or error will be non-nil. Any non-2xx
  8464  // status code is an error. Response headers are in either
  8465  // *Operation.ServerResponse.Header or (if a response was returned at
  8466  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  8467  // to check whether the returned error was because
  8468  // http.StatusNotModified was returned.
  8469  func (c *ProjectsLocationsDatasetsDicomStoresExportCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  8470  	gensupport.SetOptions(c.urlParams_, opts...)
  8471  	res, err := c.doRequest("json")
  8472  	if res != nil && res.StatusCode == http.StatusNotModified {
  8473  		if res.Body != nil {
  8474  			res.Body.Close()
  8475  		}
  8476  		return nil, &googleapi.Error{
  8477  			Code:   res.StatusCode,
  8478  			Header: res.Header,
  8479  		}
  8480  	}
  8481  	if err != nil {
  8482  		return nil, err
  8483  	}
  8484  	defer googleapi.CloseBody(res)
  8485  	if err := googleapi.CheckResponse(res); err != nil {
  8486  		return nil, err
  8487  	}
  8488  	ret := &Operation{
  8489  		ServerResponse: googleapi.ServerResponse{
  8490  			Header:         res.Header,
  8491  			HTTPStatusCode: res.StatusCode,
  8492  		},
  8493  	}
  8494  	target := &ret
  8495  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8496  		return nil, err
  8497  	}
  8498  	return ret, nil
  8499  	// {
  8500  	//   "description": "Exports data to the specified destination by copying it from the DICOM\nstore.\nThe metadata field type is\nOperationMetadata.",
  8501  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}:export",
  8502  	//   "httpMethod": "POST",
  8503  	//   "id": "healthcare.projects.locations.datasets.dicomStores.export",
  8504  	//   "parameterOrder": [
  8505  	//     "name"
  8506  	//   ],
  8507  	//   "parameters": {
  8508  	//     "name": {
  8509  	//       "description": "The DICOM store resource name from which the data should be exported (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).",
  8510  	//       "location": "path",
  8511  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
  8512  	//       "required": true,
  8513  	//       "type": "string"
  8514  	//     }
  8515  	//   },
  8516  	//   "path": "v1alpha2/{+name}:export",
  8517  	//   "request": {
  8518  	//     "$ref": "ExportDicomDataRequest"
  8519  	//   },
  8520  	//   "response": {
  8521  	//     "$ref": "Operation"
  8522  	//   },
  8523  	//   "scopes": [
  8524  	//     "https://www.googleapis.com/auth/cloud-platform"
  8525  	//   ]
  8526  	// }
  8527  
  8528  }
  8529  
  8530  // method id "healthcare.projects.locations.datasets.dicomStores.get":
  8531  
  8532  type ProjectsLocationsDatasetsDicomStoresGetCall struct {
  8533  	s            *Service
  8534  	name         string
  8535  	urlParams_   gensupport.URLParams
  8536  	ifNoneMatch_ string
  8537  	ctx_         context.Context
  8538  	header_      http.Header
  8539  }
  8540  
  8541  // Get: Gets the specified DICOM store.
  8542  func (r *ProjectsLocationsDatasetsDicomStoresService) Get(name string) *ProjectsLocationsDatasetsDicomStoresGetCall {
  8543  	c := &ProjectsLocationsDatasetsDicomStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8544  	c.name = name
  8545  	return c
  8546  }
  8547  
  8548  // Fields allows partial responses to be retrieved. See
  8549  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  8550  // for more information.
  8551  func (c *ProjectsLocationsDatasetsDicomStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresGetCall {
  8552  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8553  	return c
  8554  }
  8555  
  8556  // IfNoneMatch sets the optional parameter which makes the operation
  8557  // fail if the object's ETag matches the given value. This is useful for
  8558  // getting updates only after the object has changed since the last
  8559  // request. Use googleapi.IsNotModified to check whether the response
  8560  // error from Do is the result of In-None-Match.
  8561  func (c *ProjectsLocationsDatasetsDicomStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresGetCall {
  8562  	c.ifNoneMatch_ = entityTag
  8563  	return c
  8564  }
  8565  
  8566  // Context sets the context to be used in this call's Do method. Any
  8567  // pending HTTP request will be aborted if the provided context is
  8568  // canceled.
  8569  func (c *ProjectsLocationsDatasetsDicomStoresGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresGetCall {
  8570  	c.ctx_ = ctx
  8571  	return c
  8572  }
  8573  
  8574  // Header returns an http.Header that can be modified by the caller to
  8575  // add HTTP headers to the request.
  8576  func (c *ProjectsLocationsDatasetsDicomStoresGetCall) Header() http.Header {
  8577  	if c.header_ == nil {
  8578  		c.header_ = make(http.Header)
  8579  	}
  8580  	return c.header_
  8581  }
  8582  
  8583  func (c *ProjectsLocationsDatasetsDicomStoresGetCall) doRequest(alt string) (*http.Response, error) {
  8584  	reqHeaders := make(http.Header)
  8585  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  8586  	for k, v := range c.header_ {
  8587  		reqHeaders[k] = v
  8588  	}
  8589  	reqHeaders.Set("User-Agent", c.s.userAgent())
  8590  	if c.ifNoneMatch_ != "" {
  8591  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8592  	}
  8593  	var body io.Reader = nil
  8594  	c.urlParams_.Set("alt", alt)
  8595  	c.urlParams_.Set("prettyPrint", "false")
  8596  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
  8597  	urls += "?" + c.urlParams_.Encode()
  8598  	req, err := http.NewRequest("GET", urls, body)
  8599  	if err != nil {
  8600  		return nil, err
  8601  	}
  8602  	req.Header = reqHeaders
  8603  	googleapi.Expand(req.URL, map[string]string{
  8604  		"name": c.name,
  8605  	})
  8606  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8607  }
  8608  
  8609  // Do executes the "healthcare.projects.locations.datasets.dicomStores.get" call.
  8610  // Exactly one of *DicomStore or error will be non-nil. Any non-2xx
  8611  // status code is an error. Response headers are in either
  8612  // *DicomStore.ServerResponse.Header or (if a response was returned at
  8613  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  8614  // to check whether the returned error was because
  8615  // http.StatusNotModified was returned.
  8616  func (c *ProjectsLocationsDatasetsDicomStoresGetCall) Do(opts ...googleapi.CallOption) (*DicomStore, error) {
  8617  	gensupport.SetOptions(c.urlParams_, opts...)
  8618  	res, err := c.doRequest("json")
  8619  	if res != nil && res.StatusCode == http.StatusNotModified {
  8620  		if res.Body != nil {
  8621  			res.Body.Close()
  8622  		}
  8623  		return nil, &googleapi.Error{
  8624  			Code:   res.StatusCode,
  8625  			Header: res.Header,
  8626  		}
  8627  	}
  8628  	if err != nil {
  8629  		return nil, err
  8630  	}
  8631  	defer googleapi.CloseBody(res)
  8632  	if err := googleapi.CheckResponse(res); err != nil {
  8633  		return nil, err
  8634  	}
  8635  	ret := &DicomStore{
  8636  		ServerResponse: googleapi.ServerResponse{
  8637  			Header:         res.Header,
  8638  			HTTPStatusCode: res.StatusCode,
  8639  		},
  8640  	}
  8641  	target := &ret
  8642  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8643  		return nil, err
  8644  	}
  8645  	return ret, nil
  8646  	// {
  8647  	//   "description": "Gets the specified DICOM store.",
  8648  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}",
  8649  	//   "httpMethod": "GET",
  8650  	//   "id": "healthcare.projects.locations.datasets.dicomStores.get",
  8651  	//   "parameterOrder": [
  8652  	//     "name"
  8653  	//   ],
  8654  	//   "parameters": {
  8655  	//     "name": {
  8656  	//       "description": "The resource name of the DICOM store to get.",
  8657  	//       "location": "path",
  8658  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
  8659  	//       "required": true,
  8660  	//       "type": "string"
  8661  	//     }
  8662  	//   },
  8663  	//   "path": "v1alpha2/{+name}",
  8664  	//   "response": {
  8665  	//     "$ref": "DicomStore"
  8666  	//   },
  8667  	//   "scopes": [
  8668  	//     "https://www.googleapis.com/auth/cloud-platform"
  8669  	//   ]
  8670  	// }
  8671  
  8672  }
  8673  
  8674  // method id "healthcare.projects.locations.datasets.dicomStores.getIamPolicy":
  8675  
  8676  type ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall struct {
  8677  	s            *Service
  8678  	resource     string
  8679  	urlParams_   gensupport.URLParams
  8680  	ifNoneMatch_ string
  8681  	ctx_         context.Context
  8682  	header_      http.Header
  8683  }
  8684  
  8685  // GetIamPolicy: Gets the access control policy for a resource.
  8686  // Returns an empty policy if the resource exists and does not have a
  8687  // policy
  8688  // set.
  8689  func (r *ProjectsLocationsDatasetsDicomStoresService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall {
  8690  	c := &ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8691  	c.resource = resource
  8692  	return c
  8693  }
  8694  
  8695  // OptionsRequestedPolicyVersion sets the optional parameter
  8696  // "options.requestedPolicyVersion": The policy format version to be
  8697  // returned.
  8698  // Acceptable values are 0, 1, and 3.
  8699  // If the value is 0, or the field is omitted, policy format version 1
  8700  // will be
  8701  // returned.
  8702  func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall {
  8703  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
  8704  	return c
  8705  }
  8706  
  8707  // Fields allows partial responses to be retrieved. See
  8708  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  8709  // for more information.
  8710  func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall {
  8711  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8712  	return c
  8713  }
  8714  
  8715  // IfNoneMatch sets the optional parameter which makes the operation
  8716  // fail if the object's ETag matches the given value. This is useful for
  8717  // getting updates only after the object has changed since the last
  8718  // request. Use googleapi.IsNotModified to check whether the response
  8719  // error from Do is the result of In-None-Match.
  8720  func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall {
  8721  	c.ifNoneMatch_ = entityTag
  8722  	return c
  8723  }
  8724  
  8725  // Context sets the context to be used in this call's Do method. Any
  8726  // pending HTTP request will be aborted if the provided context is
  8727  // canceled.
  8728  func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall {
  8729  	c.ctx_ = ctx
  8730  	return c
  8731  }
  8732  
  8733  // Header returns an http.Header that can be modified by the caller to
  8734  // add HTTP headers to the request.
  8735  func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Header() http.Header {
  8736  	if c.header_ == nil {
  8737  		c.header_ = make(http.Header)
  8738  	}
  8739  	return c.header_
  8740  }
  8741  
  8742  func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  8743  	reqHeaders := make(http.Header)
  8744  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  8745  	for k, v := range c.header_ {
  8746  		reqHeaders[k] = v
  8747  	}
  8748  	reqHeaders.Set("User-Agent", c.s.userAgent())
  8749  	if c.ifNoneMatch_ != "" {
  8750  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8751  	}
  8752  	var body io.Reader = nil
  8753  	c.urlParams_.Set("alt", alt)
  8754  	c.urlParams_.Set("prettyPrint", "false")
  8755  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:getIamPolicy")
  8756  	urls += "?" + c.urlParams_.Encode()
  8757  	req, err := http.NewRequest("GET", urls, body)
  8758  	if err != nil {
  8759  		return nil, err
  8760  	}
  8761  	req.Header = reqHeaders
  8762  	googleapi.Expand(req.URL, map[string]string{
  8763  		"resource": c.resource,
  8764  	})
  8765  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8766  }
  8767  
  8768  // Do executes the "healthcare.projects.locations.datasets.dicomStores.getIamPolicy" call.
  8769  // Exactly one of *Policy or error will be non-nil. Any non-2xx status
  8770  // code is an error. Response headers are in either
  8771  // *Policy.ServerResponse.Header or (if a response was returned at all)
  8772  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  8773  // check whether the returned error was because http.StatusNotModified
  8774  // was returned.
  8775  func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
  8776  	gensupport.SetOptions(c.urlParams_, opts...)
  8777  	res, err := c.doRequest("json")
  8778  	if res != nil && res.StatusCode == http.StatusNotModified {
  8779  		if res.Body != nil {
  8780  			res.Body.Close()
  8781  		}
  8782  		return nil, &googleapi.Error{
  8783  			Code:   res.StatusCode,
  8784  			Header: res.Header,
  8785  		}
  8786  	}
  8787  	if err != nil {
  8788  		return nil, err
  8789  	}
  8790  	defer googleapi.CloseBody(res)
  8791  	if err := googleapi.CheckResponse(res); err != nil {
  8792  		return nil, err
  8793  	}
  8794  	ret := &Policy{
  8795  		ServerResponse: googleapi.ServerResponse{
  8796  			Header:         res.Header,
  8797  			HTTPStatusCode: res.StatusCode,
  8798  		},
  8799  	}
  8800  	target := &ret
  8801  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8802  		return nil, err
  8803  	}
  8804  	return ret, nil
  8805  	// {
  8806  	//   "description": "Gets the access control policy for a resource.\nReturns an empty policy if the resource exists and does not have a policy\nset.",
  8807  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}:getIamPolicy",
  8808  	//   "httpMethod": "GET",
  8809  	//   "id": "healthcare.projects.locations.datasets.dicomStores.getIamPolicy",
  8810  	//   "parameterOrder": [
  8811  	//     "resource"
  8812  	//   ],
  8813  	//   "parameters": {
  8814  	//     "options.requestedPolicyVersion": {
  8815  	//       "description": "Optional. The policy format version to be returned.\nAcceptable values are 0, 1, and 3.\nIf the value is 0, or the field is omitted, policy format version 1 will be\nreturned.",
  8816  	//       "format": "int32",
  8817  	//       "location": "query",
  8818  	//       "type": "integer"
  8819  	//     },
  8820  	//     "resource": {
  8821  	//       "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.",
  8822  	//       "location": "path",
  8823  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
  8824  	//       "required": true,
  8825  	//       "type": "string"
  8826  	//     }
  8827  	//   },
  8828  	//   "path": "v1alpha2/{+resource}:getIamPolicy",
  8829  	//   "response": {
  8830  	//     "$ref": "Policy"
  8831  	//   },
  8832  	//   "scopes": [
  8833  	//     "https://www.googleapis.com/auth/cloud-platform"
  8834  	//   ]
  8835  	// }
  8836  
  8837  }
  8838  
  8839  // method id "healthcare.projects.locations.datasets.dicomStores.import":
  8840  
  8841  type ProjectsLocationsDatasetsDicomStoresImportCall struct {
  8842  	s                      *Service
  8843  	name                   string
  8844  	importdicomdatarequest *ImportDicomDataRequest
  8845  	urlParams_             gensupport.URLParams
  8846  	ctx_                   context.Context
  8847  	header_                http.Header
  8848  }
  8849  
  8850  // Import: Imports data into the DICOM store by copying it from the
  8851  // specified source.
  8852  // For errors, the Operation will be populated with error details (in
  8853  // the form
  8854  // of ImportDicomDataErrorDetails in error.details), which will
  8855  // hold
  8856  // finer-grained error information. Errors are also logged to
  8857  // Stackdriver
  8858  // (see [Viewing
  8859  // logs](/healthcare/docs/how-tos/stackdriver-logging)).
  8860  // The metadata field type is
  8861  // OperationMetadata.
  8862  func (r *ProjectsLocationsDatasetsDicomStoresService) Import(name string, importdicomdatarequest *ImportDicomDataRequest) *ProjectsLocationsDatasetsDicomStoresImportCall {
  8863  	c := &ProjectsLocationsDatasetsDicomStoresImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8864  	c.name = name
  8865  	c.importdicomdatarequest = importdicomdatarequest
  8866  	return c
  8867  }
  8868  
  8869  // Fields allows partial responses to be retrieved. See
  8870  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  8871  // for more information.
  8872  func (c *ProjectsLocationsDatasetsDicomStoresImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresImportCall {
  8873  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8874  	return c
  8875  }
  8876  
  8877  // Context sets the context to be used in this call's Do method. Any
  8878  // pending HTTP request will be aborted if the provided context is
  8879  // canceled.
  8880  func (c *ProjectsLocationsDatasetsDicomStoresImportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresImportCall {
  8881  	c.ctx_ = ctx
  8882  	return c
  8883  }
  8884  
  8885  // Header returns an http.Header that can be modified by the caller to
  8886  // add HTTP headers to the request.
  8887  func (c *ProjectsLocationsDatasetsDicomStoresImportCall) Header() http.Header {
  8888  	if c.header_ == nil {
  8889  		c.header_ = make(http.Header)
  8890  	}
  8891  	return c.header_
  8892  }
  8893  
  8894  func (c *ProjectsLocationsDatasetsDicomStoresImportCall) doRequest(alt string) (*http.Response, error) {
  8895  	reqHeaders := make(http.Header)
  8896  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  8897  	for k, v := range c.header_ {
  8898  		reqHeaders[k] = v
  8899  	}
  8900  	reqHeaders.Set("User-Agent", c.s.userAgent())
  8901  	var body io.Reader = nil
  8902  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.importdicomdatarequest)
  8903  	if err != nil {
  8904  		return nil, err
  8905  	}
  8906  	reqHeaders.Set("Content-Type", "application/json")
  8907  	c.urlParams_.Set("alt", alt)
  8908  	c.urlParams_.Set("prettyPrint", "false")
  8909  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}:import")
  8910  	urls += "?" + c.urlParams_.Encode()
  8911  	req, err := http.NewRequest("POST", urls, body)
  8912  	if err != nil {
  8913  		return nil, err
  8914  	}
  8915  	req.Header = reqHeaders
  8916  	googleapi.Expand(req.URL, map[string]string{
  8917  		"name": c.name,
  8918  	})
  8919  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8920  }
  8921  
  8922  // Do executes the "healthcare.projects.locations.datasets.dicomStores.import" call.
  8923  // Exactly one of *Operation or error will be non-nil. Any non-2xx
  8924  // status code is an error. Response headers are in either
  8925  // *Operation.ServerResponse.Header or (if a response was returned at
  8926  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  8927  // to check whether the returned error was because
  8928  // http.StatusNotModified was returned.
  8929  func (c *ProjectsLocationsDatasetsDicomStoresImportCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  8930  	gensupport.SetOptions(c.urlParams_, opts...)
  8931  	res, err := c.doRequest("json")
  8932  	if res != nil && res.StatusCode == http.StatusNotModified {
  8933  		if res.Body != nil {
  8934  			res.Body.Close()
  8935  		}
  8936  		return nil, &googleapi.Error{
  8937  			Code:   res.StatusCode,
  8938  			Header: res.Header,
  8939  		}
  8940  	}
  8941  	if err != nil {
  8942  		return nil, err
  8943  	}
  8944  	defer googleapi.CloseBody(res)
  8945  	if err := googleapi.CheckResponse(res); err != nil {
  8946  		return nil, err
  8947  	}
  8948  	ret := &Operation{
  8949  		ServerResponse: googleapi.ServerResponse{
  8950  			Header:         res.Header,
  8951  			HTTPStatusCode: res.StatusCode,
  8952  		},
  8953  	}
  8954  	target := &ret
  8955  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8956  		return nil, err
  8957  	}
  8958  	return ret, nil
  8959  	// {
  8960  	//   "description": "Imports data into the DICOM store by copying it from the specified source.\nFor errors, the Operation will be populated with error details (in the form\nof ImportDicomDataErrorDetails in error.details), which will hold\nfiner-grained error information. Errors are also logged to Stackdriver\n(see [Viewing logs](/healthcare/docs/how-tos/stackdriver-logging)).\nThe metadata field type is\nOperationMetadata.",
  8961  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}:import",
  8962  	//   "httpMethod": "POST",
  8963  	//   "id": "healthcare.projects.locations.datasets.dicomStores.import",
  8964  	//   "parameterOrder": [
  8965  	//     "name"
  8966  	//   ],
  8967  	//   "parameters": {
  8968  	//     "name": {
  8969  	//       "description": "The name of the DICOM store resource into which the data is imported (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).",
  8970  	//       "location": "path",
  8971  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
  8972  	//       "required": true,
  8973  	//       "type": "string"
  8974  	//     }
  8975  	//   },
  8976  	//   "path": "v1alpha2/{+name}:import",
  8977  	//   "request": {
  8978  	//     "$ref": "ImportDicomDataRequest"
  8979  	//   },
  8980  	//   "response": {
  8981  	//     "$ref": "Operation"
  8982  	//   },
  8983  	//   "scopes": [
  8984  	//     "https://www.googleapis.com/auth/cloud-platform"
  8985  	//   ]
  8986  	// }
  8987  
  8988  }
  8989  
  8990  // method id "healthcare.projects.locations.datasets.dicomStores.list":
  8991  
  8992  type ProjectsLocationsDatasetsDicomStoresListCall struct {
  8993  	s            *Service
  8994  	parent       string
  8995  	urlParams_   gensupport.URLParams
  8996  	ifNoneMatch_ string
  8997  	ctx_         context.Context
  8998  	header_      http.Header
  8999  }
  9000  
  9001  // List: Lists the DICOM stores in the given dataset.
  9002  func (r *ProjectsLocationsDatasetsDicomStoresService) List(parent string) *ProjectsLocationsDatasetsDicomStoresListCall {
  9003  	c := &ProjectsLocationsDatasetsDicomStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9004  	c.parent = parent
  9005  	return c
  9006  }
  9007  
  9008  // Filter sets the optional parameter "filter": Restricts stores
  9009  // returned to those matching a filter.
  9010  // Syntax:
  9011  // https://cloud.google.com/appengine/docs/standard/python/search
  9012  // /query_strings
  9013  // Only filtering on labels is supported, for example
  9014  // `labels.key=value`.
  9015  func (c *ProjectsLocationsDatasetsDicomStoresListCall) Filter(filter string) *ProjectsLocationsDatasetsDicomStoresListCall {
  9016  	c.urlParams_.Set("filter", filter)
  9017  	return c
  9018  }
  9019  
  9020  // PageSize sets the optional parameter "pageSize": Limit on the number
  9021  // of DICOM stores to return in a single response.
  9022  // If zero the default page size of 100 is used.
  9023  func (c *ProjectsLocationsDatasetsDicomStoresListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsDicomStoresListCall {
  9024  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  9025  	return c
  9026  }
  9027  
  9028  // PageToken sets the optional parameter "pageToken": The
  9029  // next_page_token value returned from the previous List request, if
  9030  // any.
  9031  func (c *ProjectsLocationsDatasetsDicomStoresListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsDicomStoresListCall {
  9032  	c.urlParams_.Set("pageToken", pageToken)
  9033  	return c
  9034  }
  9035  
  9036  // Fields allows partial responses to be retrieved. See
  9037  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  9038  // for more information.
  9039  func (c *ProjectsLocationsDatasetsDicomStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresListCall {
  9040  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9041  	return c
  9042  }
  9043  
  9044  // IfNoneMatch sets the optional parameter which makes the operation
  9045  // fail if the object's ETag matches the given value. This is useful for
  9046  // getting updates only after the object has changed since the last
  9047  // request. Use googleapi.IsNotModified to check whether the response
  9048  // error from Do is the result of In-None-Match.
  9049  func (c *ProjectsLocationsDatasetsDicomStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresListCall {
  9050  	c.ifNoneMatch_ = entityTag
  9051  	return c
  9052  }
  9053  
  9054  // Context sets the context to be used in this call's Do method. Any
  9055  // pending HTTP request will be aborted if the provided context is
  9056  // canceled.
  9057  func (c *ProjectsLocationsDatasetsDicomStoresListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresListCall {
  9058  	c.ctx_ = ctx
  9059  	return c
  9060  }
  9061  
  9062  // Header returns an http.Header that can be modified by the caller to
  9063  // add HTTP headers to the request.
  9064  func (c *ProjectsLocationsDatasetsDicomStoresListCall) Header() http.Header {
  9065  	if c.header_ == nil {
  9066  		c.header_ = make(http.Header)
  9067  	}
  9068  	return c.header_
  9069  }
  9070  
  9071  func (c *ProjectsLocationsDatasetsDicomStoresListCall) doRequest(alt string) (*http.Response, error) {
  9072  	reqHeaders := make(http.Header)
  9073  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  9074  	for k, v := range c.header_ {
  9075  		reqHeaders[k] = v
  9076  	}
  9077  	reqHeaders.Set("User-Agent", c.s.userAgent())
  9078  	if c.ifNoneMatch_ != "" {
  9079  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9080  	}
  9081  	var body io.Reader = nil
  9082  	c.urlParams_.Set("alt", alt)
  9083  	c.urlParams_.Set("prettyPrint", "false")
  9084  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomStores")
  9085  	urls += "?" + c.urlParams_.Encode()
  9086  	req, err := http.NewRequest("GET", urls, body)
  9087  	if err != nil {
  9088  		return nil, err
  9089  	}
  9090  	req.Header = reqHeaders
  9091  	googleapi.Expand(req.URL, map[string]string{
  9092  		"parent": c.parent,
  9093  	})
  9094  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9095  }
  9096  
  9097  // Do executes the "healthcare.projects.locations.datasets.dicomStores.list" call.
  9098  // Exactly one of *ListDicomStoresResponse or error will be non-nil. Any
  9099  // non-2xx status code is an error. Response headers are in either
  9100  // *ListDicomStoresResponse.ServerResponse.Header or (if a response was
  9101  // returned at all) in error.(*googleapi.Error).Header. Use
  9102  // googleapi.IsNotModified to check whether the returned error was
  9103  // because http.StatusNotModified was returned.
  9104  func (c *ProjectsLocationsDatasetsDicomStoresListCall) Do(opts ...googleapi.CallOption) (*ListDicomStoresResponse, error) {
  9105  	gensupport.SetOptions(c.urlParams_, opts...)
  9106  	res, err := c.doRequest("json")
  9107  	if res != nil && res.StatusCode == http.StatusNotModified {
  9108  		if res.Body != nil {
  9109  			res.Body.Close()
  9110  		}
  9111  		return nil, &googleapi.Error{
  9112  			Code:   res.StatusCode,
  9113  			Header: res.Header,
  9114  		}
  9115  	}
  9116  	if err != nil {
  9117  		return nil, err
  9118  	}
  9119  	defer googleapi.CloseBody(res)
  9120  	if err := googleapi.CheckResponse(res); err != nil {
  9121  		return nil, err
  9122  	}
  9123  	ret := &ListDicomStoresResponse{
  9124  		ServerResponse: googleapi.ServerResponse{
  9125  			Header:         res.Header,
  9126  			HTTPStatusCode: res.StatusCode,
  9127  		},
  9128  	}
  9129  	target := &ret
  9130  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9131  		return nil, err
  9132  	}
  9133  	return ret, nil
  9134  	// {
  9135  	//   "description": "Lists the DICOM stores in the given dataset.",
  9136  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores",
  9137  	//   "httpMethod": "GET",
  9138  	//   "id": "healthcare.projects.locations.datasets.dicomStores.list",
  9139  	//   "parameterOrder": [
  9140  	//     "parent"
  9141  	//   ],
  9142  	//   "parameters": {
  9143  	//     "filter": {
  9144  	//       "description": "Restricts stores returned to those matching a filter. Syntax:\nhttps://cloud.google.com/appengine/docs/standard/python/search/query_strings\nOnly filtering on labels is supported, for example `labels.key=value`.",
  9145  	//       "location": "query",
  9146  	//       "type": "string"
  9147  	//     },
  9148  	//     "pageSize": {
  9149  	//       "description": "Limit on the number of DICOM stores to return in a single response.\nIf zero the default page size of 100 is used.",
  9150  	//       "format": "int32",
  9151  	//       "location": "query",
  9152  	//       "type": "integer"
  9153  	//     },
  9154  	//     "pageToken": {
  9155  	//       "description": "The next_page_token value returned from the previous List request, if any.",
  9156  	//       "location": "query",
  9157  	//       "type": "string"
  9158  	//     },
  9159  	//     "parent": {
  9160  	//       "description": "Name of the dataset.",
  9161  	//       "location": "path",
  9162  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
  9163  	//       "required": true,
  9164  	//       "type": "string"
  9165  	//     }
  9166  	//   },
  9167  	//   "path": "v1alpha2/{+parent}/dicomStores",
  9168  	//   "response": {
  9169  	//     "$ref": "ListDicomStoresResponse"
  9170  	//   },
  9171  	//   "scopes": [
  9172  	//     "https://www.googleapis.com/auth/cloud-platform"
  9173  	//   ]
  9174  	// }
  9175  
  9176  }
  9177  
  9178  // Pages invokes f for each page of results.
  9179  // A non-nil error returned from f will halt the iteration.
  9180  // The provided context supersedes any context provided to the Context method.
  9181  func (c *ProjectsLocationsDatasetsDicomStoresListCall) Pages(ctx context.Context, f func(*ListDicomStoresResponse) error) error {
  9182  	c.ctx_ = ctx
  9183  	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
  9184  	for {
  9185  		x, err := c.Do()
  9186  		if err != nil {
  9187  			return err
  9188  		}
  9189  		if err := f(x); err != nil {
  9190  			return err
  9191  		}
  9192  		if x.NextPageToken == "" {
  9193  			return nil
  9194  		}
  9195  		c.PageToken(x.NextPageToken)
  9196  	}
  9197  }
  9198  
  9199  // method id "healthcare.projects.locations.datasets.dicomStores.patch":
  9200  
  9201  type ProjectsLocationsDatasetsDicomStoresPatchCall struct {
  9202  	s          *Service
  9203  	name       string
  9204  	dicomstore *DicomStore
  9205  	urlParams_ gensupport.URLParams
  9206  	ctx_       context.Context
  9207  	header_    http.Header
  9208  }
  9209  
  9210  // Patch: Updates the specified DICOM store.
  9211  func (r *ProjectsLocationsDatasetsDicomStoresService) Patch(name string, dicomstore *DicomStore) *ProjectsLocationsDatasetsDicomStoresPatchCall {
  9212  	c := &ProjectsLocationsDatasetsDicomStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9213  	c.name = name
  9214  	c.dicomstore = dicomstore
  9215  	return c
  9216  }
  9217  
  9218  // UpdateMask sets the optional parameter "updateMask": The update mask
  9219  // applies to the resource. For the `FieldMask`
  9220  // definition,
  9221  // see
  9222  // https://developers.google.com/protocol-buffers/docs/re
  9223  // ference/google.protobuf#fieldmask
  9224  func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsDicomStoresPatchCall {
  9225  	c.urlParams_.Set("updateMask", updateMask)
  9226  	return c
  9227  }
  9228  
  9229  // Fields allows partial responses to be retrieved. See
  9230  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  9231  // for more information.
  9232  func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresPatchCall {
  9233  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9234  	return c
  9235  }
  9236  
  9237  // Context sets the context to be used in this call's Do method. Any
  9238  // pending HTTP request will be aborted if the provided context is
  9239  // canceled.
  9240  func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresPatchCall {
  9241  	c.ctx_ = ctx
  9242  	return c
  9243  }
  9244  
  9245  // Header returns an http.Header that can be modified by the caller to
  9246  // add HTTP headers to the request.
  9247  func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) Header() http.Header {
  9248  	if c.header_ == nil {
  9249  		c.header_ = make(http.Header)
  9250  	}
  9251  	return c.header_
  9252  }
  9253  
  9254  func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) doRequest(alt string) (*http.Response, error) {
  9255  	reqHeaders := make(http.Header)
  9256  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  9257  	for k, v := range c.header_ {
  9258  		reqHeaders[k] = v
  9259  	}
  9260  	reqHeaders.Set("User-Agent", c.s.userAgent())
  9261  	var body io.Reader = nil
  9262  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.dicomstore)
  9263  	if err != nil {
  9264  		return nil, err
  9265  	}
  9266  	reqHeaders.Set("Content-Type", "application/json")
  9267  	c.urlParams_.Set("alt", alt)
  9268  	c.urlParams_.Set("prettyPrint", "false")
  9269  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
  9270  	urls += "?" + c.urlParams_.Encode()
  9271  	req, err := http.NewRequest("PATCH", urls, body)
  9272  	if err != nil {
  9273  		return nil, err
  9274  	}
  9275  	req.Header = reqHeaders
  9276  	googleapi.Expand(req.URL, map[string]string{
  9277  		"name": c.name,
  9278  	})
  9279  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9280  }
  9281  
  9282  // Do executes the "healthcare.projects.locations.datasets.dicomStores.patch" call.
  9283  // Exactly one of *DicomStore or error will be non-nil. Any non-2xx
  9284  // status code is an error. Response headers are in either
  9285  // *DicomStore.ServerResponse.Header or (if a response was returned at
  9286  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  9287  // to check whether the returned error was because
  9288  // http.StatusNotModified was returned.
  9289  func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) Do(opts ...googleapi.CallOption) (*DicomStore, error) {
  9290  	gensupport.SetOptions(c.urlParams_, opts...)
  9291  	res, err := c.doRequest("json")
  9292  	if res != nil && res.StatusCode == http.StatusNotModified {
  9293  		if res.Body != nil {
  9294  			res.Body.Close()
  9295  		}
  9296  		return nil, &googleapi.Error{
  9297  			Code:   res.StatusCode,
  9298  			Header: res.Header,
  9299  		}
  9300  	}
  9301  	if err != nil {
  9302  		return nil, err
  9303  	}
  9304  	defer googleapi.CloseBody(res)
  9305  	if err := googleapi.CheckResponse(res); err != nil {
  9306  		return nil, err
  9307  	}
  9308  	ret := &DicomStore{
  9309  		ServerResponse: googleapi.ServerResponse{
  9310  			Header:         res.Header,
  9311  			HTTPStatusCode: res.StatusCode,
  9312  		},
  9313  	}
  9314  	target := &ret
  9315  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9316  		return nil, err
  9317  	}
  9318  	return ret, nil
  9319  	// {
  9320  	//   "description": "Updates the specified DICOM store.",
  9321  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}",
  9322  	//   "httpMethod": "PATCH",
  9323  	//   "id": "healthcare.projects.locations.datasets.dicomStores.patch",
  9324  	//   "parameterOrder": [
  9325  	//     "name"
  9326  	//   ],
  9327  	//   "parameters": {
  9328  	//     "name": {
  9329  	//       "description": "Output only. Resource name of the DICOM store, of the form\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`.",
  9330  	//       "location": "path",
  9331  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
  9332  	//       "required": true,
  9333  	//       "type": "string"
  9334  	//     },
  9335  	//     "updateMask": {
  9336  	//       "description": "The update mask applies to the resource. For the `FieldMask` definition,\nsee\nhttps://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask",
  9337  	//       "format": "google-fieldmask",
  9338  	//       "location": "query",
  9339  	//       "type": "string"
  9340  	//     }
  9341  	//   },
  9342  	//   "path": "v1alpha2/{+name}",
  9343  	//   "request": {
  9344  	//     "$ref": "DicomStore"
  9345  	//   },
  9346  	//   "response": {
  9347  	//     "$ref": "DicomStore"
  9348  	//   },
  9349  	//   "scopes": [
  9350  	//     "https://www.googleapis.com/auth/cloud-platform"
  9351  	//   ]
  9352  	// }
  9353  
  9354  }
  9355  
  9356  // method id "healthcare.projects.locations.datasets.dicomStores.setIamPolicy":
  9357  
  9358  type ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall struct {
  9359  	s                   *Service
  9360  	resource            string
  9361  	setiampolicyrequest *SetIamPolicyRequest
  9362  	urlParams_          gensupport.URLParams
  9363  	ctx_                context.Context
  9364  	header_             http.Header
  9365  }
  9366  
  9367  // SetIamPolicy: Sets the access control policy on the specified
  9368  // resource. Replaces any
  9369  // existing policy.
  9370  func (r *ProjectsLocationsDatasetsDicomStoresService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall {
  9371  	c := &ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9372  	c.resource = resource
  9373  	c.setiampolicyrequest = setiampolicyrequest
  9374  	return c
  9375  }
  9376  
  9377  // Fields allows partial responses to be retrieved. See
  9378  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  9379  // for more information.
  9380  func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall {
  9381  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9382  	return c
  9383  }
  9384  
  9385  // Context sets the context to be used in this call's Do method. Any
  9386  // pending HTTP request will be aborted if the provided context is
  9387  // canceled.
  9388  func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall {
  9389  	c.ctx_ = ctx
  9390  	return c
  9391  }
  9392  
  9393  // Header returns an http.Header that can be modified by the caller to
  9394  // add HTTP headers to the request.
  9395  func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Header() http.Header {
  9396  	if c.header_ == nil {
  9397  		c.header_ = make(http.Header)
  9398  	}
  9399  	return c.header_
  9400  }
  9401  
  9402  func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
  9403  	reqHeaders := make(http.Header)
  9404  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  9405  	for k, v := range c.header_ {
  9406  		reqHeaders[k] = v
  9407  	}
  9408  	reqHeaders.Set("User-Agent", c.s.userAgent())
  9409  	var body io.Reader = nil
  9410  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
  9411  	if err != nil {
  9412  		return nil, err
  9413  	}
  9414  	reqHeaders.Set("Content-Type", "application/json")
  9415  	c.urlParams_.Set("alt", alt)
  9416  	c.urlParams_.Set("prettyPrint", "false")
  9417  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:setIamPolicy")
  9418  	urls += "?" + c.urlParams_.Encode()
  9419  	req, err := http.NewRequest("POST", urls, body)
  9420  	if err != nil {
  9421  		return nil, err
  9422  	}
  9423  	req.Header = reqHeaders
  9424  	googleapi.Expand(req.URL, map[string]string{
  9425  		"resource": c.resource,
  9426  	})
  9427  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9428  }
  9429  
  9430  // Do executes the "healthcare.projects.locations.datasets.dicomStores.setIamPolicy" call.
  9431  // Exactly one of *Policy or error will be non-nil. Any non-2xx status
  9432  // code is an error. Response headers are in either
  9433  // *Policy.ServerResponse.Header or (if a response was returned at all)
  9434  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  9435  // check whether the returned error was because http.StatusNotModified
  9436  // was returned.
  9437  func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, 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, &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, err
  9455  	}
  9456  	ret := &Policy{
  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  	//   "description": "Sets the access control policy on the specified resource. Replaces any\nexisting policy.",
  9469  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}:setIamPolicy",
  9470  	//   "httpMethod": "POST",
  9471  	//   "id": "healthcare.projects.locations.datasets.dicomStores.setIamPolicy",
  9472  	//   "parameterOrder": [
  9473  	//     "resource"
  9474  	//   ],
  9475  	//   "parameters": {
  9476  	//     "resource": {
  9477  	//       "description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.",
  9478  	//       "location": "path",
  9479  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
  9480  	//       "required": true,
  9481  	//       "type": "string"
  9482  	//     }
  9483  	//   },
  9484  	//   "path": "v1alpha2/{+resource}:setIamPolicy",
  9485  	//   "request": {
  9486  	//     "$ref": "SetIamPolicyRequest"
  9487  	//   },
  9488  	//   "response": {
  9489  	//     "$ref": "Policy"
  9490  	//   },
  9491  	//   "scopes": [
  9492  	//     "https://www.googleapis.com/auth/cloud-platform"
  9493  	//   ]
  9494  	// }
  9495  
  9496  }
  9497  
  9498  // method id "healthcare.projects.locations.datasets.dicomStores.testIamPermissions":
  9499  
  9500  type ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall struct {
  9501  	s                         *Service
  9502  	resource                  string
  9503  	testiampermissionsrequest *TestIamPermissionsRequest
  9504  	urlParams_                gensupport.URLParams
  9505  	ctx_                      context.Context
  9506  	header_                   http.Header
  9507  }
  9508  
  9509  // TestIamPermissions: Returns permissions that a caller has on the
  9510  // specified resource.
  9511  // If the resource does not exist, this will return an empty set
  9512  // of
  9513  // permissions, not a NOT_FOUND error.
  9514  //
  9515  // Note: This operation is designed to be used for building
  9516  // permission-aware
  9517  // UIs and command-line tools, not for authorization checking. This
  9518  // operation
  9519  // may "fail open" without warning.
  9520  func (r *ProjectsLocationsDatasetsDicomStoresService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall {
  9521  	c := &ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9522  	c.resource = resource
  9523  	c.testiampermissionsrequest = testiampermissionsrequest
  9524  	return c
  9525  }
  9526  
  9527  // Fields allows partial responses to be retrieved. See
  9528  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  9529  // for more information.
  9530  func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall {
  9531  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9532  	return c
  9533  }
  9534  
  9535  // Context sets the context to be used in this call's Do method. Any
  9536  // pending HTTP request will be aborted if the provided context is
  9537  // canceled.
  9538  func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall {
  9539  	c.ctx_ = ctx
  9540  	return c
  9541  }
  9542  
  9543  // Header returns an http.Header that can be modified by the caller to
  9544  // add HTTP headers to the request.
  9545  func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Header() http.Header {
  9546  	if c.header_ == nil {
  9547  		c.header_ = make(http.Header)
  9548  	}
  9549  	return c.header_
  9550  }
  9551  
  9552  func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
  9553  	reqHeaders := make(http.Header)
  9554  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  9555  	for k, v := range c.header_ {
  9556  		reqHeaders[k] = v
  9557  	}
  9558  	reqHeaders.Set("User-Agent", c.s.userAgent())
  9559  	var body io.Reader = nil
  9560  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
  9561  	if err != nil {
  9562  		return nil, err
  9563  	}
  9564  	reqHeaders.Set("Content-Type", "application/json")
  9565  	c.urlParams_.Set("alt", alt)
  9566  	c.urlParams_.Set("prettyPrint", "false")
  9567  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:testIamPermissions")
  9568  	urls += "?" + c.urlParams_.Encode()
  9569  	req, err := http.NewRequest("POST", urls, body)
  9570  	if err != nil {
  9571  		return nil, err
  9572  	}
  9573  	req.Header = reqHeaders
  9574  	googleapi.Expand(req.URL, map[string]string{
  9575  		"resource": c.resource,
  9576  	})
  9577  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9578  }
  9579  
  9580  // Do executes the "healthcare.projects.locations.datasets.dicomStores.testIamPermissions" call.
  9581  // Exactly one of *TestIamPermissionsResponse or error will be non-nil.
  9582  // Any non-2xx status code is an error. Response headers are in either
  9583  // *TestIamPermissionsResponse.ServerResponse.Header or (if a response
  9584  // was returned at all) in error.(*googleapi.Error).Header. Use
  9585  // googleapi.IsNotModified to check whether the returned error was
  9586  // because http.StatusNotModified was returned.
  9587  func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
  9588  	gensupport.SetOptions(c.urlParams_, opts...)
  9589  	res, err := c.doRequest("json")
  9590  	if res != nil && res.StatusCode == http.StatusNotModified {
  9591  		if res.Body != nil {
  9592  			res.Body.Close()
  9593  		}
  9594  		return nil, &googleapi.Error{
  9595  			Code:   res.StatusCode,
  9596  			Header: res.Header,
  9597  		}
  9598  	}
  9599  	if err != nil {
  9600  		return nil, err
  9601  	}
  9602  	defer googleapi.CloseBody(res)
  9603  	if err := googleapi.CheckResponse(res); err != nil {
  9604  		return nil, err
  9605  	}
  9606  	ret := &TestIamPermissionsResponse{
  9607  		ServerResponse: googleapi.ServerResponse{
  9608  			Header:         res.Header,
  9609  			HTTPStatusCode: res.StatusCode,
  9610  		},
  9611  	}
  9612  	target := &ret
  9613  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9614  		return nil, err
  9615  	}
  9616  	return ret, nil
  9617  	// {
  9618  	//   "description": "Returns permissions that a caller has on the specified resource.\nIf the resource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building permission-aware\nUIs and command-line tools, not for authorization checking. This operation\nmay \"fail open\" without warning.",
  9619  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}:testIamPermissions",
  9620  	//   "httpMethod": "POST",
  9621  	//   "id": "healthcare.projects.locations.datasets.dicomStores.testIamPermissions",
  9622  	//   "parameterOrder": [
  9623  	//     "resource"
  9624  	//   ],
  9625  	//   "parameters": {
  9626  	//     "resource": {
  9627  	//       "description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.",
  9628  	//       "location": "path",
  9629  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
  9630  	//       "required": true,
  9631  	//       "type": "string"
  9632  	//     }
  9633  	//   },
  9634  	//   "path": "v1alpha2/{+resource}:testIamPermissions",
  9635  	//   "request": {
  9636  	//     "$ref": "TestIamPermissionsRequest"
  9637  	//   },
  9638  	//   "response": {
  9639  	//     "$ref": "TestIamPermissionsResponse"
  9640  	//   },
  9641  	//   "scopes": [
  9642  	//     "https://www.googleapis.com/auth/cloud-platform"
  9643  	//   ]
  9644  	// }
  9645  
  9646  }
  9647  
  9648  // method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.searchForInstances":
  9649  
  9650  type ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall struct {
  9651  	s            *Service
  9652  	parent       string
  9653  	dicomWebPath string
  9654  	urlParams_   gensupport.URLParams
  9655  	ifNoneMatch_ string
  9656  	ctx_         context.Context
  9657  	header_      http.Header
  9658  }
  9659  
  9660  // SearchForInstances: SearchForInstances returns a list of matching
  9661  // instances.
  9662  // See
  9663  // http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
  9664  // l#sect_10.6.
  9665  func (r *ProjectsLocationsDatasetsDicomStoresDicomWebService) SearchForInstances(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall {
  9666  	c := &ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9667  	c.parent = parent
  9668  	c.dicomWebPath = dicomWebPath
  9669  	return c
  9670  }
  9671  
  9672  // Fields allows partial responses to be retrieved. See
  9673  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  9674  // for more information.
  9675  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall {
  9676  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9677  	return c
  9678  }
  9679  
  9680  // IfNoneMatch sets the optional parameter which makes the operation
  9681  // fail if the object's ETag matches the given value. This is useful for
  9682  // getting updates only after the object has changed since the last
  9683  // request. Use googleapi.IsNotModified to check whether the response
  9684  // error from Do is the result of In-None-Match.
  9685  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall {
  9686  	c.ifNoneMatch_ = entityTag
  9687  	return c
  9688  }
  9689  
  9690  // Context sets the context to be used in this call's Do method. Any
  9691  // pending HTTP request will be aborted if the provided context is
  9692  // canceled.
  9693  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall {
  9694  	c.ctx_ = ctx
  9695  	return c
  9696  }
  9697  
  9698  // Header returns an http.Header that can be modified by the caller to
  9699  // add HTTP headers to the request.
  9700  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall) Header() http.Header {
  9701  	if c.header_ == nil {
  9702  		c.header_ = make(http.Header)
  9703  	}
  9704  	return c.header_
  9705  }
  9706  
  9707  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall) doRequest(alt string) (*http.Response, error) {
  9708  	reqHeaders := make(http.Header)
  9709  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  9710  	for k, v := range c.header_ {
  9711  		reqHeaders[k] = v
  9712  	}
  9713  	reqHeaders.Set("User-Agent", c.s.userAgent())
  9714  	if c.ifNoneMatch_ != "" {
  9715  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9716  	}
  9717  	var body io.Reader = nil
  9718  	c.urlParams_.Set("alt", alt)
  9719  	c.urlParams_.Set("prettyPrint", "false")
  9720  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
  9721  	urls += "?" + c.urlParams_.Encode()
  9722  	req, err := http.NewRequest("GET", urls, body)
  9723  	if err != nil {
  9724  		return nil, err
  9725  	}
  9726  	req.Header = reqHeaders
  9727  	googleapi.Expand(req.URL, map[string]string{
  9728  		"parent":       c.parent,
  9729  		"dicomWebPath": c.dicomWebPath,
  9730  	})
  9731  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9732  }
  9733  
  9734  // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.searchForInstances" call.
  9735  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
  9736  	gensupport.SetOptions(c.urlParams_, opts...)
  9737  	return c.doRequest("")
  9738  	// {
  9739  	//   "description": "SearchForInstances returns a list of matching instances. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6.",
  9740  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/instances",
  9741  	//   "httpMethod": "GET",
  9742  	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.searchForInstances",
  9743  	//   "parameterOrder": [
  9744  	//     "parent",
  9745  	//     "dicomWebPath"
  9746  	//   ],
  9747  	//   "parameters": {
  9748  	//     "dicomWebPath": {
  9749  	//       "description": "The path of the SearchForInstancesRequest DICOMweb request (e.g.,\n`instances` or `series/{series_uid}/instances` or\n`studies/{study_uid}/instances`).",
  9750  	//       "location": "path",
  9751  	//       "pattern": "^instances$",
  9752  	//       "required": true,
  9753  	//       "type": "string"
  9754  	//     },
  9755  	//     "parent": {
  9756  	//       "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).",
  9757  	//       "location": "path",
  9758  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
  9759  	//       "required": true,
  9760  	//       "type": "string"
  9761  	//     }
  9762  	//   },
  9763  	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
  9764  	//   "response": {
  9765  	//     "$ref": "HttpBody"
  9766  	//   },
  9767  	//   "scopes": [
  9768  	//     "https://www.googleapis.com/auth/cloud-platform"
  9769  	//   ]
  9770  	// }
  9771  
  9772  }
  9773  
  9774  // method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.searchForSeries":
  9775  
  9776  type ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall struct {
  9777  	s            *Service
  9778  	parent       string
  9779  	dicomWebPath string
  9780  	urlParams_   gensupport.URLParams
  9781  	ifNoneMatch_ string
  9782  	ctx_         context.Context
  9783  	header_      http.Header
  9784  }
  9785  
  9786  // SearchForSeries: SearchForSeries returns a list of matching series.
  9787  // See
  9788  // http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
  9789  // l#sect_10.6.
  9790  func (r *ProjectsLocationsDatasetsDicomStoresDicomWebService) SearchForSeries(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall {
  9791  	c := &ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9792  	c.parent = parent
  9793  	c.dicomWebPath = dicomWebPath
  9794  	return c
  9795  }
  9796  
  9797  // Fields allows partial responses to be retrieved. See
  9798  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  9799  // for more information.
  9800  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall {
  9801  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9802  	return c
  9803  }
  9804  
  9805  // IfNoneMatch sets the optional parameter which makes the operation
  9806  // fail if the object's ETag matches the given value. This is useful for
  9807  // getting updates only after the object has changed since the last
  9808  // request. Use googleapi.IsNotModified to check whether the response
  9809  // error from Do is the result of In-None-Match.
  9810  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall {
  9811  	c.ifNoneMatch_ = entityTag
  9812  	return c
  9813  }
  9814  
  9815  // Context sets the context to be used in this call's Do method. Any
  9816  // pending HTTP request will be aborted if the provided context is
  9817  // canceled.
  9818  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall {
  9819  	c.ctx_ = ctx
  9820  	return c
  9821  }
  9822  
  9823  // Header returns an http.Header that can be modified by the caller to
  9824  // add HTTP headers to the request.
  9825  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall) Header() http.Header {
  9826  	if c.header_ == nil {
  9827  		c.header_ = make(http.Header)
  9828  	}
  9829  	return c.header_
  9830  }
  9831  
  9832  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall) doRequest(alt string) (*http.Response, error) {
  9833  	reqHeaders := make(http.Header)
  9834  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  9835  	for k, v := range c.header_ {
  9836  		reqHeaders[k] = v
  9837  	}
  9838  	reqHeaders.Set("User-Agent", c.s.userAgent())
  9839  	if c.ifNoneMatch_ != "" {
  9840  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9841  	}
  9842  	var body io.Reader = nil
  9843  	c.urlParams_.Set("alt", alt)
  9844  	c.urlParams_.Set("prettyPrint", "false")
  9845  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
  9846  	urls += "?" + c.urlParams_.Encode()
  9847  	req, err := http.NewRequest("GET", urls, body)
  9848  	if err != nil {
  9849  		return nil, err
  9850  	}
  9851  	req.Header = reqHeaders
  9852  	googleapi.Expand(req.URL, map[string]string{
  9853  		"parent":       c.parent,
  9854  		"dicomWebPath": c.dicomWebPath,
  9855  	})
  9856  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9857  }
  9858  
  9859  // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.searchForSeries" call.
  9860  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
  9861  	gensupport.SetOptions(c.urlParams_, opts...)
  9862  	return c.doRequest("")
  9863  	// {
  9864  	//   "description": "SearchForSeries returns a list of matching series. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6.",
  9865  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/series",
  9866  	//   "httpMethod": "GET",
  9867  	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.searchForSeries",
  9868  	//   "parameterOrder": [
  9869  	//     "parent",
  9870  	//     "dicomWebPath"
  9871  	//   ],
  9872  	//   "parameters": {
  9873  	//     "dicomWebPath": {
  9874  	//       "description": "The path of the SearchForSeries DICOMweb request(e.g., `series` or\n`studies/{study_uid}/series`).",
  9875  	//       "location": "path",
  9876  	//       "pattern": "^series$",
  9877  	//       "required": true,
  9878  	//       "type": "string"
  9879  	//     },
  9880  	//     "parent": {
  9881  	//       "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).",
  9882  	//       "location": "path",
  9883  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
  9884  	//       "required": true,
  9885  	//       "type": "string"
  9886  	//     }
  9887  	//   },
  9888  	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
  9889  	//   "response": {
  9890  	//     "$ref": "HttpBody"
  9891  	//   },
  9892  	//   "scopes": [
  9893  	//     "https://www.googleapis.com/auth/cloud-platform"
  9894  	//   ]
  9895  	// }
  9896  
  9897  }
  9898  
  9899  // method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.searchForStudies":
  9900  
  9901  type ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall struct {
  9902  	s            *Service
  9903  	parent       string
  9904  	dicomWebPath string
  9905  	urlParams_   gensupport.URLParams
  9906  	ifNoneMatch_ string
  9907  	ctx_         context.Context
  9908  	header_      http.Header
  9909  }
  9910  
  9911  // SearchForStudies: SearchForStudies returns a list of matching
  9912  // studies.
  9913  // See
  9914  // http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
  9915  // l#sect_10.6.
  9916  func (r *ProjectsLocationsDatasetsDicomStoresDicomWebService) SearchForStudies(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall {
  9917  	c := &ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9918  	c.parent = parent
  9919  	c.dicomWebPath = dicomWebPath
  9920  	return c
  9921  }
  9922  
  9923  // Fields allows partial responses to be retrieved. See
  9924  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  9925  // for more information.
  9926  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall {
  9927  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9928  	return c
  9929  }
  9930  
  9931  // IfNoneMatch sets the optional parameter which makes the operation
  9932  // fail if the object's ETag matches the given value. This is useful for
  9933  // getting updates only after the object has changed since the last
  9934  // request. Use googleapi.IsNotModified to check whether the response
  9935  // error from Do is the result of In-None-Match.
  9936  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall {
  9937  	c.ifNoneMatch_ = entityTag
  9938  	return c
  9939  }
  9940  
  9941  // Context sets the context to be used in this call's Do method. Any
  9942  // pending HTTP request will be aborted if the provided context is
  9943  // canceled.
  9944  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall {
  9945  	c.ctx_ = ctx
  9946  	return c
  9947  }
  9948  
  9949  // Header returns an http.Header that can be modified by the caller to
  9950  // add HTTP headers to the request.
  9951  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall) Header() http.Header {
  9952  	if c.header_ == nil {
  9953  		c.header_ = make(http.Header)
  9954  	}
  9955  	return c.header_
  9956  }
  9957  
  9958  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall) doRequest(alt string) (*http.Response, error) {
  9959  	reqHeaders := make(http.Header)
  9960  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
  9961  	for k, v := range c.header_ {
  9962  		reqHeaders[k] = v
  9963  	}
  9964  	reqHeaders.Set("User-Agent", c.s.userAgent())
  9965  	if c.ifNoneMatch_ != "" {
  9966  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9967  	}
  9968  	var body io.Reader = nil
  9969  	c.urlParams_.Set("alt", alt)
  9970  	c.urlParams_.Set("prettyPrint", "false")
  9971  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
  9972  	urls += "?" + c.urlParams_.Encode()
  9973  	req, err := http.NewRequest("GET", urls, body)
  9974  	if err != nil {
  9975  		return nil, err
  9976  	}
  9977  	req.Header = reqHeaders
  9978  	googleapi.Expand(req.URL, map[string]string{
  9979  		"parent":       c.parent,
  9980  		"dicomWebPath": c.dicomWebPath,
  9981  	})
  9982  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9983  }
  9984  
  9985  // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.searchForStudies" call.
  9986  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
  9987  	gensupport.SetOptions(c.urlParams_, opts...)
  9988  	return c.doRequest("")
  9989  	// {
  9990  	//   "description": "SearchForStudies returns a list of matching studies. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6.",
  9991  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies",
  9992  	//   "httpMethod": "GET",
  9993  	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.searchForStudies",
  9994  	//   "parameterOrder": [
  9995  	//     "parent",
  9996  	//     "dicomWebPath"
  9997  	//   ],
  9998  	//   "parameters": {
  9999  	//     "dicomWebPath": {
 10000  	//       "description": "The path of the SearchForStudies DICOMweb request (e.g., `studies`).",
 10001  	//       "location": "path",
 10002  	//       "pattern": "^studies$",
 10003  	//       "required": true,
 10004  	//       "type": "string"
 10005  	//     },
 10006  	//     "parent": {
 10007  	//       "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).",
 10008  	//       "location": "path",
 10009  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
 10010  	//       "required": true,
 10011  	//       "type": "string"
 10012  	//     }
 10013  	//   },
 10014  	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
 10015  	//   "response": {
 10016  	//     "$ref": "HttpBody"
 10017  	//   },
 10018  	//   "scopes": [
 10019  	//     "https://www.googleapis.com/auth/cloud-platform"
 10020  	//   ]
 10021  	// }
 10022  
 10023  }
 10024  
 10025  // method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.storeInstances":
 10026  
 10027  type ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall struct {
 10028  	s            *Service
 10029  	parent       string
 10030  	dicomWebPath string
 10031  	body_        io.Reader
 10032  	urlParams_   gensupport.URLParams
 10033  	ctx_         context.Context
 10034  	header_      http.Header
 10035  }
 10036  
 10037  // StoreInstances: StoreInstances stores DICOM instances associated with
 10038  // study instance unique
 10039  // identifiers (SUID).
 10040  // See
 10041  // http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
 10042  // l#sect_10.5.
 10043  func (r *ProjectsLocationsDatasetsDicomStoresDicomWebService) StoreInstances(parent string, dicomWebPath string, body_ io.Reader) *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall {
 10044  	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10045  	c.parent = parent
 10046  	c.dicomWebPath = dicomWebPath
 10047  	c.body_ = body_
 10048  	return c
 10049  }
 10050  
 10051  // Fields allows partial responses to be retrieved. See
 10052  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 10053  // for more information.
 10054  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall {
 10055  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10056  	return c
 10057  }
 10058  
 10059  // Context sets the context to be used in this call's Do method. Any
 10060  // pending HTTP request will be aborted if the provided context is
 10061  // canceled.
 10062  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall {
 10063  	c.ctx_ = ctx
 10064  	return c
 10065  }
 10066  
 10067  // Header returns an http.Header that can be modified by the caller to
 10068  // add HTTP headers to the request.
 10069  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall) Header() http.Header {
 10070  	if c.header_ == nil {
 10071  		c.header_ = make(http.Header)
 10072  	}
 10073  	return c.header_
 10074  }
 10075  
 10076  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall) doRequest(alt string) (*http.Response, error) {
 10077  	reqHeaders := make(http.Header)
 10078  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 10079  	for k, v := range c.header_ {
 10080  		reqHeaders[k] = v
 10081  	}
 10082  	reqHeaders.Set("User-Agent", c.s.userAgent())
 10083  	var body io.Reader = nil
 10084  	body = c.body_
 10085  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
 10086  	urls += "?" + c.urlParams_.Encode()
 10087  	req, err := http.NewRequest("POST", urls, body)
 10088  	if err != nil {
 10089  		return nil, err
 10090  	}
 10091  	req.Header = reqHeaders
 10092  	googleapi.Expand(req.URL, map[string]string{
 10093  		"parent":       c.parent,
 10094  		"dicomWebPath": c.dicomWebPath,
 10095  	})
 10096  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10097  }
 10098  
 10099  // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.storeInstances" call.
 10100  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 10101  	gensupport.SetOptions(c.urlParams_, opts...)
 10102  	return c.doRequest("")
 10103  	// {
 10104  	//   "description": "StoreInstances stores DICOM instances associated with study instance unique\nidentifiers (SUID). See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.5.",
 10105  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies",
 10106  	//   "httpMethod": "POST",
 10107  	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.storeInstances",
 10108  	//   "parameterOrder": [
 10109  	//     "parent",
 10110  	//     "dicomWebPath"
 10111  	//   ],
 10112  	//   "parameters": {
 10113  	//     "dicomWebPath": {
 10114  	//       "description": "The path of the StoreInstances DICOMweb request (e.g.,\n`studies/[{study_id}]`). Note that the `study_uid` is optional.",
 10115  	//       "location": "path",
 10116  	//       "pattern": "^studies$",
 10117  	//       "required": true,
 10118  	//       "type": "string"
 10119  	//     },
 10120  	//     "parent": {
 10121  	//       "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).",
 10122  	//       "location": "path",
 10123  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
 10124  	//       "required": true,
 10125  	//       "type": "string"
 10126  	//     }
 10127  	//   },
 10128  	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
 10129  	//   "request": {
 10130  	//     "$ref": "HttpBody"
 10131  	//   },
 10132  	//   "response": {
 10133  	//     "$ref": "HttpBody"
 10134  	//   },
 10135  	//   "scopes": [
 10136  	//     "https://www.googleapis.com/auth/cloud-platform"
 10137  	//   ]
 10138  	// }
 10139  
 10140  }
 10141  
 10142  // method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.delete":
 10143  
 10144  type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall struct {
 10145  	s            *Service
 10146  	parent       string
 10147  	dicomWebPath string
 10148  	urlParams_   gensupport.URLParams
 10149  	ctx_         context.Context
 10150  	header_      http.Header
 10151  }
 10152  
 10153  // Delete: DeleteStudy deletes all instances within the given study.
 10154  // Delete requests
 10155  // are equivalent to the GET requests specified in the WADO-RS standard.
 10156  func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) Delete(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall {
 10157  	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10158  	c.parent = parent
 10159  	c.dicomWebPath = dicomWebPath
 10160  	return c
 10161  }
 10162  
 10163  // Fields allows partial responses to be retrieved. See
 10164  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 10165  // for more information.
 10166  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall {
 10167  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10168  	return c
 10169  }
 10170  
 10171  // Context sets the context to be used in this call's Do method. Any
 10172  // pending HTTP request will be aborted if the provided context is
 10173  // canceled.
 10174  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall {
 10175  	c.ctx_ = ctx
 10176  	return c
 10177  }
 10178  
 10179  // Header returns an http.Header that can be modified by the caller to
 10180  // add HTTP headers to the request.
 10181  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall) Header() http.Header {
 10182  	if c.header_ == nil {
 10183  		c.header_ = make(http.Header)
 10184  	}
 10185  	return c.header_
 10186  }
 10187  
 10188  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall) doRequest(alt string) (*http.Response, error) {
 10189  	reqHeaders := make(http.Header)
 10190  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 10191  	for k, v := range c.header_ {
 10192  		reqHeaders[k] = v
 10193  	}
 10194  	reqHeaders.Set("User-Agent", c.s.userAgent())
 10195  	var body io.Reader = nil
 10196  	c.urlParams_.Set("alt", alt)
 10197  	c.urlParams_.Set("prettyPrint", "false")
 10198  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
 10199  	urls += "?" + c.urlParams_.Encode()
 10200  	req, err := http.NewRequest("DELETE", urls, body)
 10201  	if err != nil {
 10202  		return nil, err
 10203  	}
 10204  	req.Header = reqHeaders
 10205  	googleapi.Expand(req.URL, map[string]string{
 10206  		"parent":       c.parent,
 10207  		"dicomWebPath": c.dicomWebPath,
 10208  	})
 10209  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10210  }
 10211  
 10212  // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.delete" call.
 10213  // Exactly one of *Empty or error will be non-nil. Any non-2xx status
 10214  // code is an error. Response headers are in either
 10215  // *Empty.ServerResponse.Header or (if a response was returned at all)
 10216  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 10217  // check whether the returned error was because http.StatusNotModified
 10218  // was returned.
 10219  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 10220  	gensupport.SetOptions(c.urlParams_, opts...)
 10221  	res, err := c.doRequest("json")
 10222  	if res != nil && res.StatusCode == http.StatusNotModified {
 10223  		if res.Body != nil {
 10224  			res.Body.Close()
 10225  		}
 10226  		return nil, &googleapi.Error{
 10227  			Code:   res.StatusCode,
 10228  			Header: res.Header,
 10229  		}
 10230  	}
 10231  	if err != nil {
 10232  		return nil, err
 10233  	}
 10234  	defer googleapi.CloseBody(res)
 10235  	if err := googleapi.CheckResponse(res); err != nil {
 10236  		return nil, err
 10237  	}
 10238  	ret := &Empty{
 10239  		ServerResponse: googleapi.ServerResponse{
 10240  			Header:         res.Header,
 10241  			HTTPStatusCode: res.StatusCode,
 10242  		},
 10243  	}
 10244  	target := &ret
 10245  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10246  		return nil, err
 10247  	}
 10248  	return ret, nil
 10249  	// {
 10250  	//   "description": "DeleteStudy deletes all instances within the given study. Delete requests\nare equivalent to the GET requests specified in the WADO-RS standard.",
 10251  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}",
 10252  	//   "httpMethod": "DELETE",
 10253  	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.delete",
 10254  	//   "parameterOrder": [
 10255  	//     "parent",
 10256  	//     "dicomWebPath"
 10257  	//   ],
 10258  	//   "parameters": {
 10259  	//     "dicomWebPath": {
 10260  	//       "description": "The path of the DeleteStudy request (e.g., `studies/{study_id}`).",
 10261  	//       "location": "path",
 10262  	//       "pattern": "^studies/[^/]+$",
 10263  	//       "required": true,
 10264  	//       "type": "string"
 10265  	//     },
 10266  	//     "parent": {
 10267  	//       "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).",
 10268  	//       "location": "path",
 10269  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
 10270  	//       "required": true,
 10271  	//       "type": "string"
 10272  	//     }
 10273  	//   },
 10274  	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
 10275  	//   "response": {
 10276  	//     "$ref": "Empty"
 10277  	//   },
 10278  	//   "scopes": [
 10279  	//     "https://www.googleapis.com/auth/cloud-platform"
 10280  	//   ]
 10281  	// }
 10282  
 10283  }
 10284  
 10285  // method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.metadata":
 10286  
 10287  type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall struct {
 10288  	s            *Service
 10289  	parent       string
 10290  	dicomWebPath string
 10291  	urlParams_   gensupport.URLParams
 10292  	ifNoneMatch_ string
 10293  	ctx_         context.Context
 10294  	header_      http.Header
 10295  }
 10296  
 10297  // Metadata: RetrieveStudyMetadata returns instance associated with the
 10298  // given study
 10299  // presented as metadata with the bulk data removed.
 10300  // See
 10301  // http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
 10302  // l#sect_10.4.
 10303  func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) Metadata(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall {
 10304  	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10305  	c.parent = parent
 10306  	c.dicomWebPath = dicomWebPath
 10307  	return c
 10308  }
 10309  
 10310  // Fields allows partial responses to be retrieved. See
 10311  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 10312  // for more information.
 10313  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall {
 10314  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10315  	return c
 10316  }
 10317  
 10318  // IfNoneMatch sets the optional parameter which makes the operation
 10319  // fail if the object's ETag matches the given value. This is useful for
 10320  // getting updates only after the object has changed since the last
 10321  // request. Use googleapi.IsNotModified to check whether the response
 10322  // error from Do is the result of In-None-Match.
 10323  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall {
 10324  	c.ifNoneMatch_ = entityTag
 10325  	return c
 10326  }
 10327  
 10328  // Context sets the context to be used in this call's Do method. Any
 10329  // pending HTTP request will be aborted if the provided context is
 10330  // canceled.
 10331  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall {
 10332  	c.ctx_ = ctx
 10333  	return c
 10334  }
 10335  
 10336  // Header returns an http.Header that can be modified by the caller to
 10337  // add HTTP headers to the request.
 10338  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall) Header() http.Header {
 10339  	if c.header_ == nil {
 10340  		c.header_ = make(http.Header)
 10341  	}
 10342  	return c.header_
 10343  }
 10344  
 10345  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall) doRequest(alt string) (*http.Response, error) {
 10346  	reqHeaders := make(http.Header)
 10347  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 10348  	for k, v := range c.header_ {
 10349  		reqHeaders[k] = v
 10350  	}
 10351  	reqHeaders.Set("User-Agent", c.s.userAgent())
 10352  	if c.ifNoneMatch_ != "" {
 10353  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10354  	}
 10355  	var body io.Reader = nil
 10356  	c.urlParams_.Set("alt", alt)
 10357  	c.urlParams_.Set("prettyPrint", "false")
 10358  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
 10359  	urls += "?" + c.urlParams_.Encode()
 10360  	req, err := http.NewRequest("GET", urls, body)
 10361  	if err != nil {
 10362  		return nil, err
 10363  	}
 10364  	req.Header = reqHeaders
 10365  	googleapi.Expand(req.URL, map[string]string{
 10366  		"parent":       c.parent,
 10367  		"dicomWebPath": c.dicomWebPath,
 10368  	})
 10369  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10370  }
 10371  
 10372  // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.metadata" call.
 10373  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 10374  	gensupport.SetOptions(c.urlParams_, opts...)
 10375  	return c.doRequest("")
 10376  	// {
 10377  	//   "description": "RetrieveStudyMetadata returns instance associated with the given study\npresented as metadata with the bulk data removed. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.",
 10378  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/metadata",
 10379  	//   "httpMethod": "GET",
 10380  	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.metadata",
 10381  	//   "parameterOrder": [
 10382  	//     "parent",
 10383  	//     "dicomWebPath"
 10384  	//   ],
 10385  	//   "parameters": {
 10386  	//     "dicomWebPath": {
 10387  	//       "description": "The path of the RetrieveStudyMetadata DICOMweb request (e.g.,\n`studies/{study_id}/metadata`).",
 10388  	//       "location": "path",
 10389  	//       "pattern": "^studies/[^/]+/metadata$",
 10390  	//       "required": true,
 10391  	//       "type": "string"
 10392  	//     },
 10393  	//     "parent": {
 10394  	//       "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).",
 10395  	//       "location": "path",
 10396  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
 10397  	//       "required": true,
 10398  	//       "type": "string"
 10399  	//     }
 10400  	//   },
 10401  	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
 10402  	//   "response": {
 10403  	//     "$ref": "HttpBody"
 10404  	//   },
 10405  	//   "scopes": [
 10406  	//     "https://www.googleapis.com/auth/cloud-platform"
 10407  	//   ]
 10408  	// }
 10409  
 10410  }
 10411  
 10412  // method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.retrieveStudy":
 10413  
 10414  type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall struct {
 10415  	s            *Service
 10416  	parent       string
 10417  	dicomWebPath string
 10418  	urlParams_   gensupport.URLParams
 10419  	ifNoneMatch_ string
 10420  	ctx_         context.Context
 10421  	header_      http.Header
 10422  }
 10423  
 10424  // RetrieveStudy: RetrieveStudy returns all instances within the given
 10425  // study.
 10426  // See
 10427  // http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
 10428  // l#sect_10.4.
 10429  func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) RetrieveStudy(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall {
 10430  	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10431  	c.parent = parent
 10432  	c.dicomWebPath = dicomWebPath
 10433  	return c
 10434  }
 10435  
 10436  // Fields allows partial responses to be retrieved. See
 10437  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 10438  // for more information.
 10439  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall {
 10440  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10441  	return c
 10442  }
 10443  
 10444  // IfNoneMatch sets the optional parameter which makes the operation
 10445  // fail if the object's ETag matches the given value. This is useful for
 10446  // getting updates only after the object has changed since the last
 10447  // request. Use googleapi.IsNotModified to check whether the response
 10448  // error from Do is the result of In-None-Match.
 10449  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall {
 10450  	c.ifNoneMatch_ = entityTag
 10451  	return c
 10452  }
 10453  
 10454  // Context sets the context to be used in this call's Do method. Any
 10455  // pending HTTP request will be aborted if the provided context is
 10456  // canceled.
 10457  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall {
 10458  	c.ctx_ = ctx
 10459  	return c
 10460  }
 10461  
 10462  // Header returns an http.Header that can be modified by the caller to
 10463  // add HTTP headers to the request.
 10464  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall) Header() http.Header {
 10465  	if c.header_ == nil {
 10466  		c.header_ = make(http.Header)
 10467  	}
 10468  	return c.header_
 10469  }
 10470  
 10471  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall) doRequest(alt string) (*http.Response, error) {
 10472  	reqHeaders := make(http.Header)
 10473  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 10474  	for k, v := range c.header_ {
 10475  		reqHeaders[k] = v
 10476  	}
 10477  	reqHeaders.Set("User-Agent", c.s.userAgent())
 10478  	if c.ifNoneMatch_ != "" {
 10479  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10480  	}
 10481  	var body io.Reader = nil
 10482  	c.urlParams_.Set("alt", alt)
 10483  	c.urlParams_.Set("prettyPrint", "false")
 10484  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
 10485  	urls += "?" + c.urlParams_.Encode()
 10486  	req, err := http.NewRequest("GET", urls, body)
 10487  	if err != nil {
 10488  		return nil, err
 10489  	}
 10490  	req.Header = reqHeaders
 10491  	googleapi.Expand(req.URL, map[string]string{
 10492  		"parent":       c.parent,
 10493  		"dicomWebPath": c.dicomWebPath,
 10494  	})
 10495  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10496  }
 10497  
 10498  // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.retrieveStudy" call.
 10499  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 10500  	gensupport.SetOptions(c.urlParams_, opts...)
 10501  	return c.doRequest("")
 10502  	// {
 10503  	//   "description": "RetrieveStudy returns all instances within the given study. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.",
 10504  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}",
 10505  	//   "httpMethod": "GET",
 10506  	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.retrieveStudy",
 10507  	//   "parameterOrder": [
 10508  	//     "parent",
 10509  	//     "dicomWebPath"
 10510  	//   ],
 10511  	//   "parameters": {
 10512  	//     "dicomWebPath": {
 10513  	//       "description": "The path of the RetrieveStudy DICOMweb request (e.g.,\n`studies/{study_id}`).",
 10514  	//       "location": "path",
 10515  	//       "pattern": "^studies/[^/]+$",
 10516  	//       "required": true,
 10517  	//       "type": "string"
 10518  	//     },
 10519  	//     "parent": {
 10520  	//       "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).",
 10521  	//       "location": "path",
 10522  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
 10523  	//       "required": true,
 10524  	//       "type": "string"
 10525  	//     }
 10526  	//   },
 10527  	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
 10528  	//   "response": {
 10529  	//     "$ref": "HttpBody"
 10530  	//   },
 10531  	//   "scopes": [
 10532  	//     "https://www.googleapis.com/auth/cloud-platform"
 10533  	//   ]
 10534  	// }
 10535  
 10536  }
 10537  
 10538  // method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.searchForInstances":
 10539  
 10540  type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall struct {
 10541  	s            *Service
 10542  	parent       string
 10543  	dicomWebPath string
 10544  	urlParams_   gensupport.URLParams
 10545  	ifNoneMatch_ string
 10546  	ctx_         context.Context
 10547  	header_      http.Header
 10548  }
 10549  
 10550  // SearchForInstances: SearchForInstances returns a list of matching
 10551  // instances.
 10552  // See
 10553  // http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
 10554  // l#sect_10.6.
 10555  func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) SearchForInstances(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall {
 10556  	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10557  	c.parent = parent
 10558  	c.dicomWebPath = dicomWebPath
 10559  	return c
 10560  }
 10561  
 10562  // Fields allows partial responses to be retrieved. See
 10563  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 10564  // for more information.
 10565  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall {
 10566  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10567  	return c
 10568  }
 10569  
 10570  // IfNoneMatch sets the optional parameter which makes the operation
 10571  // fail if the object's ETag matches the given value. This is useful for
 10572  // getting updates only after the object has changed since the last
 10573  // request. Use googleapi.IsNotModified to check whether the response
 10574  // error from Do is the result of In-None-Match.
 10575  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall {
 10576  	c.ifNoneMatch_ = entityTag
 10577  	return c
 10578  }
 10579  
 10580  // Context sets the context to be used in this call's Do method. Any
 10581  // pending HTTP request will be aborted if the provided context is
 10582  // canceled.
 10583  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall {
 10584  	c.ctx_ = ctx
 10585  	return c
 10586  }
 10587  
 10588  // Header returns an http.Header that can be modified by the caller to
 10589  // add HTTP headers to the request.
 10590  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall) Header() http.Header {
 10591  	if c.header_ == nil {
 10592  		c.header_ = make(http.Header)
 10593  	}
 10594  	return c.header_
 10595  }
 10596  
 10597  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall) doRequest(alt string) (*http.Response, error) {
 10598  	reqHeaders := make(http.Header)
 10599  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 10600  	for k, v := range c.header_ {
 10601  		reqHeaders[k] = v
 10602  	}
 10603  	reqHeaders.Set("User-Agent", c.s.userAgent())
 10604  	if c.ifNoneMatch_ != "" {
 10605  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10606  	}
 10607  	var body io.Reader = nil
 10608  	c.urlParams_.Set("alt", alt)
 10609  	c.urlParams_.Set("prettyPrint", "false")
 10610  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
 10611  	urls += "?" + c.urlParams_.Encode()
 10612  	req, err := http.NewRequest("GET", urls, body)
 10613  	if err != nil {
 10614  		return nil, err
 10615  	}
 10616  	req.Header = reqHeaders
 10617  	googleapi.Expand(req.URL, map[string]string{
 10618  		"parent":       c.parent,
 10619  		"dicomWebPath": c.dicomWebPath,
 10620  	})
 10621  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10622  }
 10623  
 10624  // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.searchForInstances" call.
 10625  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 10626  	gensupport.SetOptions(c.urlParams_, opts...)
 10627  	return c.doRequest("")
 10628  	// {
 10629  	//   "description": "SearchForInstances returns a list of matching instances. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6.",
 10630  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/instances",
 10631  	//   "httpMethod": "GET",
 10632  	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.searchForInstances",
 10633  	//   "parameterOrder": [
 10634  	//     "parent",
 10635  	//     "dicomWebPath"
 10636  	//   ],
 10637  	//   "parameters": {
 10638  	//     "dicomWebPath": {
 10639  	//       "description": "The path of the SearchForInstancesRequest DICOMweb request (e.g.,\n`instances` or `series/{series_uid}/instances` or\n`studies/{study_uid}/instances`).",
 10640  	//       "location": "path",
 10641  	//       "pattern": "^studies/[^/]+/instances$",
 10642  	//       "required": true,
 10643  	//       "type": "string"
 10644  	//     },
 10645  	//     "parent": {
 10646  	//       "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).",
 10647  	//       "location": "path",
 10648  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
 10649  	//       "required": true,
 10650  	//       "type": "string"
 10651  	//     }
 10652  	//   },
 10653  	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
 10654  	//   "response": {
 10655  	//     "$ref": "HttpBody"
 10656  	//   },
 10657  	//   "scopes": [
 10658  	//     "https://www.googleapis.com/auth/cloud-platform"
 10659  	//   ]
 10660  	// }
 10661  
 10662  }
 10663  
 10664  // method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.searchForSeries":
 10665  
 10666  type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall struct {
 10667  	s            *Service
 10668  	parent       string
 10669  	dicomWebPath string
 10670  	urlParams_   gensupport.URLParams
 10671  	ifNoneMatch_ string
 10672  	ctx_         context.Context
 10673  	header_      http.Header
 10674  }
 10675  
 10676  // SearchForSeries: SearchForSeries returns a list of matching series.
 10677  // See
 10678  // http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
 10679  // l#sect_10.6.
 10680  func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) SearchForSeries(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall {
 10681  	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10682  	c.parent = parent
 10683  	c.dicomWebPath = dicomWebPath
 10684  	return c
 10685  }
 10686  
 10687  // Fields allows partial responses to be retrieved. See
 10688  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 10689  // for more information.
 10690  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall {
 10691  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10692  	return c
 10693  }
 10694  
 10695  // IfNoneMatch sets the optional parameter which makes the operation
 10696  // fail if the object's ETag matches the given value. This is useful for
 10697  // getting updates only after the object has changed since the last
 10698  // request. Use googleapi.IsNotModified to check whether the response
 10699  // error from Do is the result of In-None-Match.
 10700  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall {
 10701  	c.ifNoneMatch_ = entityTag
 10702  	return c
 10703  }
 10704  
 10705  // Context sets the context to be used in this call's Do method. Any
 10706  // pending HTTP request will be aborted if the provided context is
 10707  // canceled.
 10708  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall {
 10709  	c.ctx_ = ctx
 10710  	return c
 10711  }
 10712  
 10713  // Header returns an http.Header that can be modified by the caller to
 10714  // add HTTP headers to the request.
 10715  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall) Header() http.Header {
 10716  	if c.header_ == nil {
 10717  		c.header_ = make(http.Header)
 10718  	}
 10719  	return c.header_
 10720  }
 10721  
 10722  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall) doRequest(alt string) (*http.Response, error) {
 10723  	reqHeaders := make(http.Header)
 10724  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 10725  	for k, v := range c.header_ {
 10726  		reqHeaders[k] = v
 10727  	}
 10728  	reqHeaders.Set("User-Agent", c.s.userAgent())
 10729  	if c.ifNoneMatch_ != "" {
 10730  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10731  	}
 10732  	var body io.Reader = nil
 10733  	c.urlParams_.Set("alt", alt)
 10734  	c.urlParams_.Set("prettyPrint", "false")
 10735  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
 10736  	urls += "?" + c.urlParams_.Encode()
 10737  	req, err := http.NewRequest("GET", urls, body)
 10738  	if err != nil {
 10739  		return nil, err
 10740  	}
 10741  	req.Header = reqHeaders
 10742  	googleapi.Expand(req.URL, map[string]string{
 10743  		"parent":       c.parent,
 10744  		"dicomWebPath": c.dicomWebPath,
 10745  	})
 10746  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10747  }
 10748  
 10749  // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.searchForSeries" call.
 10750  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 10751  	gensupport.SetOptions(c.urlParams_, opts...)
 10752  	return c.doRequest("")
 10753  	// {
 10754  	//   "description": "SearchForSeries returns a list of matching series. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6.",
 10755  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series",
 10756  	//   "httpMethod": "GET",
 10757  	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.searchForSeries",
 10758  	//   "parameterOrder": [
 10759  	//     "parent",
 10760  	//     "dicomWebPath"
 10761  	//   ],
 10762  	//   "parameters": {
 10763  	//     "dicomWebPath": {
 10764  	//       "description": "The path of the SearchForSeries DICOMweb request(e.g., `series` or\n`studies/{study_uid}/series`).",
 10765  	//       "location": "path",
 10766  	//       "pattern": "^studies/[^/]+/series$",
 10767  	//       "required": true,
 10768  	//       "type": "string"
 10769  	//     },
 10770  	//     "parent": {
 10771  	//       "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).",
 10772  	//       "location": "path",
 10773  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
 10774  	//       "required": true,
 10775  	//       "type": "string"
 10776  	//     }
 10777  	//   },
 10778  	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
 10779  	//   "response": {
 10780  	//     "$ref": "HttpBody"
 10781  	//   },
 10782  	//   "scopes": [
 10783  	//     "https://www.googleapis.com/auth/cloud-platform"
 10784  	//   ]
 10785  	// }
 10786  
 10787  }
 10788  
 10789  // method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.storeInstances":
 10790  
 10791  type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall struct {
 10792  	s            *Service
 10793  	parent       string
 10794  	dicomWebPath string
 10795  	body_        io.Reader
 10796  	urlParams_   gensupport.URLParams
 10797  	ctx_         context.Context
 10798  	header_      http.Header
 10799  }
 10800  
 10801  // StoreInstances: StoreInstances stores DICOM instances associated with
 10802  // study instance unique
 10803  // identifiers (SUID).
 10804  // See
 10805  // http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
 10806  // l#sect_10.5.
 10807  func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) StoreInstances(parent string, dicomWebPath string, body_ io.Reader) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall {
 10808  	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10809  	c.parent = parent
 10810  	c.dicomWebPath = dicomWebPath
 10811  	c.body_ = body_
 10812  	return c
 10813  }
 10814  
 10815  // Fields allows partial responses to be retrieved. See
 10816  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 10817  // for more information.
 10818  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall {
 10819  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10820  	return c
 10821  }
 10822  
 10823  // Context sets the context to be used in this call's Do method. Any
 10824  // pending HTTP request will be aborted if the provided context is
 10825  // canceled.
 10826  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall {
 10827  	c.ctx_ = ctx
 10828  	return c
 10829  }
 10830  
 10831  // Header returns an http.Header that can be modified by the caller to
 10832  // add HTTP headers to the request.
 10833  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall) Header() http.Header {
 10834  	if c.header_ == nil {
 10835  		c.header_ = make(http.Header)
 10836  	}
 10837  	return c.header_
 10838  }
 10839  
 10840  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall) doRequest(alt string) (*http.Response, error) {
 10841  	reqHeaders := make(http.Header)
 10842  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 10843  	for k, v := range c.header_ {
 10844  		reqHeaders[k] = v
 10845  	}
 10846  	reqHeaders.Set("User-Agent", c.s.userAgent())
 10847  	var body io.Reader = nil
 10848  	body = c.body_
 10849  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
 10850  	urls += "?" + c.urlParams_.Encode()
 10851  	req, err := http.NewRequest("POST", urls, body)
 10852  	if err != nil {
 10853  		return nil, err
 10854  	}
 10855  	req.Header = reqHeaders
 10856  	googleapi.Expand(req.URL, map[string]string{
 10857  		"parent":       c.parent,
 10858  		"dicomWebPath": c.dicomWebPath,
 10859  	})
 10860  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10861  }
 10862  
 10863  // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.storeInstances" call.
 10864  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 10865  	gensupport.SetOptions(c.urlParams_, opts...)
 10866  	return c.doRequest("")
 10867  	// {
 10868  	//   "description": "StoreInstances stores DICOM instances associated with study instance unique\nidentifiers (SUID). See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.5.",
 10869  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}",
 10870  	//   "httpMethod": "POST",
 10871  	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.storeInstances",
 10872  	//   "parameterOrder": [
 10873  	//     "parent",
 10874  	//     "dicomWebPath"
 10875  	//   ],
 10876  	//   "parameters": {
 10877  	//     "dicomWebPath": {
 10878  	//       "description": "The path of the StoreInstances DICOMweb request (e.g.,\n`studies/[{study_id}]`). Note that the `study_uid` is optional.",
 10879  	//       "location": "path",
 10880  	//       "pattern": "^studies/[^/]+$",
 10881  	//       "required": true,
 10882  	//       "type": "string"
 10883  	//     },
 10884  	//     "parent": {
 10885  	//       "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).",
 10886  	//       "location": "path",
 10887  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
 10888  	//       "required": true,
 10889  	//       "type": "string"
 10890  	//     }
 10891  	//   },
 10892  	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
 10893  	//   "request": {
 10894  	//     "$ref": "HttpBody"
 10895  	//   },
 10896  	//   "response": {
 10897  	//     "$ref": "HttpBody"
 10898  	//   },
 10899  	//   "scopes": [
 10900  	//     "https://www.googleapis.com/auth/cloud-platform"
 10901  	//   ]
 10902  	// }
 10903  
 10904  }
 10905  
 10906  // method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.delete":
 10907  
 10908  type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall struct {
 10909  	s            *Service
 10910  	parent       string
 10911  	dicomWebPath string
 10912  	urlParams_   gensupport.URLParams
 10913  	ctx_         context.Context
 10914  	header_      http.Header
 10915  }
 10916  
 10917  // Delete: DeleteSeries deletes all instances within the given study and
 10918  // series.
 10919  // Delete requests are equivalent to the GET requests specified in the
 10920  // WADO-RS
 10921  // standard.
 10922  func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService) Delete(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall {
 10923  	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10924  	c.parent = parent
 10925  	c.dicomWebPath = dicomWebPath
 10926  	return c
 10927  }
 10928  
 10929  // Fields allows partial responses to be retrieved. See
 10930  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 10931  // for more information.
 10932  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall {
 10933  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10934  	return c
 10935  }
 10936  
 10937  // Context sets the context to be used in this call's Do method. Any
 10938  // pending HTTP request will be aborted if the provided context is
 10939  // canceled.
 10940  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall {
 10941  	c.ctx_ = ctx
 10942  	return c
 10943  }
 10944  
 10945  // Header returns an http.Header that can be modified by the caller to
 10946  // add HTTP headers to the request.
 10947  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall) Header() http.Header {
 10948  	if c.header_ == nil {
 10949  		c.header_ = make(http.Header)
 10950  	}
 10951  	return c.header_
 10952  }
 10953  
 10954  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall) doRequest(alt string) (*http.Response, error) {
 10955  	reqHeaders := make(http.Header)
 10956  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 10957  	for k, v := range c.header_ {
 10958  		reqHeaders[k] = v
 10959  	}
 10960  	reqHeaders.Set("User-Agent", c.s.userAgent())
 10961  	var body io.Reader = nil
 10962  	c.urlParams_.Set("alt", alt)
 10963  	c.urlParams_.Set("prettyPrint", "false")
 10964  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
 10965  	urls += "?" + c.urlParams_.Encode()
 10966  	req, err := http.NewRequest("DELETE", urls, body)
 10967  	if err != nil {
 10968  		return nil, err
 10969  	}
 10970  	req.Header = reqHeaders
 10971  	googleapi.Expand(req.URL, map[string]string{
 10972  		"parent":       c.parent,
 10973  		"dicomWebPath": c.dicomWebPath,
 10974  	})
 10975  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10976  }
 10977  
 10978  // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.delete" call.
 10979  // Exactly one of *Empty or error will be non-nil. Any non-2xx status
 10980  // code is an error. Response headers are in either
 10981  // *Empty.ServerResponse.Header or (if a response was returned at all)
 10982  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 10983  // check whether the returned error was because http.StatusNotModified
 10984  // was returned.
 10985  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 10986  	gensupport.SetOptions(c.urlParams_, opts...)
 10987  	res, err := c.doRequest("json")
 10988  	if res != nil && res.StatusCode == http.StatusNotModified {
 10989  		if res.Body != nil {
 10990  			res.Body.Close()
 10991  		}
 10992  		return nil, &googleapi.Error{
 10993  			Code:   res.StatusCode,
 10994  			Header: res.Header,
 10995  		}
 10996  	}
 10997  	if err != nil {
 10998  		return nil, err
 10999  	}
 11000  	defer googleapi.CloseBody(res)
 11001  	if err := googleapi.CheckResponse(res); err != nil {
 11002  		return nil, err
 11003  	}
 11004  	ret := &Empty{
 11005  		ServerResponse: googleapi.ServerResponse{
 11006  			Header:         res.Header,
 11007  			HTTPStatusCode: res.StatusCode,
 11008  		},
 11009  	}
 11010  	target := &ret
 11011  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11012  		return nil, err
 11013  	}
 11014  	return ret, nil
 11015  	// {
 11016  	//   "description": "DeleteSeries deletes all instances within the given study and series.\nDelete requests are equivalent to the GET requests specified in the WADO-RS\nstandard.",
 11017  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}",
 11018  	//   "httpMethod": "DELETE",
 11019  	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.delete",
 11020  	//   "parameterOrder": [
 11021  	//     "parent",
 11022  	//     "dicomWebPath"
 11023  	//   ],
 11024  	//   "parameters": {
 11025  	//     "dicomWebPath": {
 11026  	//       "description": "The path of the DeleteSeries request (e.g.,\n`studies/{study_id}/series/{series_id}`).",
 11027  	//       "location": "path",
 11028  	//       "pattern": "^studies/[^/]+/series/[^/]+$",
 11029  	//       "required": true,
 11030  	//       "type": "string"
 11031  	//     },
 11032  	//     "parent": {
 11033  	//       "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).",
 11034  	//       "location": "path",
 11035  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
 11036  	//       "required": true,
 11037  	//       "type": "string"
 11038  	//     }
 11039  	//   },
 11040  	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
 11041  	//   "response": {
 11042  	//     "$ref": "Empty"
 11043  	//   },
 11044  	//   "scopes": [
 11045  	//     "https://www.googleapis.com/auth/cloud-platform"
 11046  	//   ]
 11047  	// }
 11048  
 11049  }
 11050  
 11051  // method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.metadata":
 11052  
 11053  type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall struct {
 11054  	s            *Service
 11055  	parent       string
 11056  	dicomWebPath string
 11057  	urlParams_   gensupport.URLParams
 11058  	ifNoneMatch_ string
 11059  	ctx_         context.Context
 11060  	header_      http.Header
 11061  }
 11062  
 11063  // Metadata: RetrieveSeriesMetadata returns instance associated with the
 11064  // given study and
 11065  // series, presented as metadata with the bulk data removed.
 11066  // See
 11067  // http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
 11068  // l#sect_10.4.
 11069  func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService) Metadata(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall {
 11070  	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11071  	c.parent = parent
 11072  	c.dicomWebPath = dicomWebPath
 11073  	return c
 11074  }
 11075  
 11076  // Fields allows partial responses to be retrieved. See
 11077  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 11078  // for more information.
 11079  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall {
 11080  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11081  	return c
 11082  }
 11083  
 11084  // IfNoneMatch sets the optional parameter which makes the operation
 11085  // fail if the object's ETag matches the given value. This is useful for
 11086  // getting updates only after the object has changed since the last
 11087  // request. Use googleapi.IsNotModified to check whether the response
 11088  // error from Do is the result of In-None-Match.
 11089  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall {
 11090  	c.ifNoneMatch_ = entityTag
 11091  	return c
 11092  }
 11093  
 11094  // Context sets the context to be used in this call's Do method. Any
 11095  // pending HTTP request will be aborted if the provided context is
 11096  // canceled.
 11097  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall {
 11098  	c.ctx_ = ctx
 11099  	return c
 11100  }
 11101  
 11102  // Header returns an http.Header that can be modified by the caller to
 11103  // add HTTP headers to the request.
 11104  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall) Header() http.Header {
 11105  	if c.header_ == nil {
 11106  		c.header_ = make(http.Header)
 11107  	}
 11108  	return c.header_
 11109  }
 11110  
 11111  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall) doRequest(alt string) (*http.Response, error) {
 11112  	reqHeaders := make(http.Header)
 11113  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 11114  	for k, v := range c.header_ {
 11115  		reqHeaders[k] = v
 11116  	}
 11117  	reqHeaders.Set("User-Agent", c.s.userAgent())
 11118  	if c.ifNoneMatch_ != "" {
 11119  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11120  	}
 11121  	var body io.Reader = nil
 11122  	c.urlParams_.Set("alt", alt)
 11123  	c.urlParams_.Set("prettyPrint", "false")
 11124  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
 11125  	urls += "?" + c.urlParams_.Encode()
 11126  	req, err := http.NewRequest("GET", urls, body)
 11127  	if err != nil {
 11128  		return nil, err
 11129  	}
 11130  	req.Header = reqHeaders
 11131  	googleapi.Expand(req.URL, map[string]string{
 11132  		"parent":       c.parent,
 11133  		"dicomWebPath": c.dicomWebPath,
 11134  	})
 11135  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11136  }
 11137  
 11138  // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.metadata" call.
 11139  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 11140  	gensupport.SetOptions(c.urlParams_, opts...)
 11141  	return c.doRequest("")
 11142  	// {
 11143  	//   "description": "RetrieveSeriesMetadata returns instance associated with the given study and\nseries, presented as metadata with the bulk data removed. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.",
 11144  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}/metadata",
 11145  	//   "httpMethod": "GET",
 11146  	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.metadata",
 11147  	//   "parameterOrder": [
 11148  	//     "parent",
 11149  	//     "dicomWebPath"
 11150  	//   ],
 11151  	//   "parameters": {
 11152  	//     "dicomWebPath": {
 11153  	//       "description": "The path of the RetrieveSeriesMetadata DICOMweb request (e.g.,\n`studies/{study_id}/series/{series_id}/metadata`).",
 11154  	//       "location": "path",
 11155  	//       "pattern": "^studies/[^/]+/series/[^/]+/metadata$",
 11156  	//       "required": true,
 11157  	//       "type": "string"
 11158  	//     },
 11159  	//     "parent": {
 11160  	//       "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).",
 11161  	//       "location": "path",
 11162  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
 11163  	//       "required": true,
 11164  	//       "type": "string"
 11165  	//     }
 11166  	//   },
 11167  	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
 11168  	//   "response": {
 11169  	//     "$ref": "HttpBody"
 11170  	//   },
 11171  	//   "scopes": [
 11172  	//     "https://www.googleapis.com/auth/cloud-platform"
 11173  	//   ]
 11174  	// }
 11175  
 11176  }
 11177  
 11178  // method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.retrieveSeries":
 11179  
 11180  type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall struct {
 11181  	s            *Service
 11182  	parent       string
 11183  	dicomWebPath string
 11184  	urlParams_   gensupport.URLParams
 11185  	ifNoneMatch_ string
 11186  	ctx_         context.Context
 11187  	header_      http.Header
 11188  }
 11189  
 11190  // RetrieveSeries: RetrieveSeries returns all instances within the given
 11191  // study and series.
 11192  // See
 11193  // http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
 11194  // l#sect_10.4.
 11195  func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService) RetrieveSeries(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall {
 11196  	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11197  	c.parent = parent
 11198  	c.dicomWebPath = dicomWebPath
 11199  	return c
 11200  }
 11201  
 11202  // Fields allows partial responses to be retrieved. See
 11203  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 11204  // for more information.
 11205  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall {
 11206  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11207  	return c
 11208  }
 11209  
 11210  // IfNoneMatch sets the optional parameter which makes the operation
 11211  // fail if the object's ETag matches the given value. This is useful for
 11212  // getting updates only after the object has changed since the last
 11213  // request. Use googleapi.IsNotModified to check whether the response
 11214  // error from Do is the result of In-None-Match.
 11215  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall {
 11216  	c.ifNoneMatch_ = entityTag
 11217  	return c
 11218  }
 11219  
 11220  // Context sets the context to be used in this call's Do method. Any
 11221  // pending HTTP request will be aborted if the provided context is
 11222  // canceled.
 11223  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall {
 11224  	c.ctx_ = ctx
 11225  	return c
 11226  }
 11227  
 11228  // Header returns an http.Header that can be modified by the caller to
 11229  // add HTTP headers to the request.
 11230  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall) Header() http.Header {
 11231  	if c.header_ == nil {
 11232  		c.header_ = make(http.Header)
 11233  	}
 11234  	return c.header_
 11235  }
 11236  
 11237  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall) doRequest(alt string) (*http.Response, error) {
 11238  	reqHeaders := make(http.Header)
 11239  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 11240  	for k, v := range c.header_ {
 11241  		reqHeaders[k] = v
 11242  	}
 11243  	reqHeaders.Set("User-Agent", c.s.userAgent())
 11244  	if c.ifNoneMatch_ != "" {
 11245  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11246  	}
 11247  	var body io.Reader = nil
 11248  	c.urlParams_.Set("alt", alt)
 11249  	c.urlParams_.Set("prettyPrint", "false")
 11250  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
 11251  	urls += "?" + c.urlParams_.Encode()
 11252  	req, err := http.NewRequest("GET", urls, body)
 11253  	if err != nil {
 11254  		return nil, err
 11255  	}
 11256  	req.Header = reqHeaders
 11257  	googleapi.Expand(req.URL, map[string]string{
 11258  		"parent":       c.parent,
 11259  		"dicomWebPath": c.dicomWebPath,
 11260  	})
 11261  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11262  }
 11263  
 11264  // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.retrieveSeries" call.
 11265  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 11266  	gensupport.SetOptions(c.urlParams_, opts...)
 11267  	return c.doRequest("")
 11268  	// {
 11269  	//   "description": "RetrieveSeries returns all instances within the given study and series. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.",
 11270  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}",
 11271  	//   "httpMethod": "GET",
 11272  	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.retrieveSeries",
 11273  	//   "parameterOrder": [
 11274  	//     "parent",
 11275  	//     "dicomWebPath"
 11276  	//   ],
 11277  	//   "parameters": {
 11278  	//     "dicomWebPath": {
 11279  	//       "description": "The path of the RetrieveSeries DICOMweb request (e.g.,\n`studies/{study_id}/series/{series_id}`).",
 11280  	//       "location": "path",
 11281  	//       "pattern": "^studies/[^/]+/series/[^/]+$",
 11282  	//       "required": true,
 11283  	//       "type": "string"
 11284  	//     },
 11285  	//     "parent": {
 11286  	//       "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).",
 11287  	//       "location": "path",
 11288  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
 11289  	//       "required": true,
 11290  	//       "type": "string"
 11291  	//     }
 11292  	//   },
 11293  	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
 11294  	//   "response": {
 11295  	//     "$ref": "HttpBody"
 11296  	//   },
 11297  	//   "scopes": [
 11298  	//     "https://www.googleapis.com/auth/cloud-platform"
 11299  	//   ]
 11300  	// }
 11301  
 11302  }
 11303  
 11304  // method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.searchForInstances":
 11305  
 11306  type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall struct {
 11307  	s            *Service
 11308  	parent       string
 11309  	dicomWebPath string
 11310  	urlParams_   gensupport.URLParams
 11311  	ifNoneMatch_ string
 11312  	ctx_         context.Context
 11313  	header_      http.Header
 11314  }
 11315  
 11316  // SearchForInstances: SearchForInstances returns a list of matching
 11317  // instances.
 11318  // See
 11319  // http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
 11320  // l#sect_10.6.
 11321  func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService) SearchForInstances(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall {
 11322  	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11323  	c.parent = parent
 11324  	c.dicomWebPath = dicomWebPath
 11325  	return c
 11326  }
 11327  
 11328  // Fields allows partial responses to be retrieved. See
 11329  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 11330  // for more information.
 11331  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall {
 11332  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11333  	return c
 11334  }
 11335  
 11336  // IfNoneMatch sets the optional parameter which makes the operation
 11337  // fail if the object's ETag matches the given value. This is useful for
 11338  // getting updates only after the object has changed since the last
 11339  // request. Use googleapi.IsNotModified to check whether the response
 11340  // error from Do is the result of In-None-Match.
 11341  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall {
 11342  	c.ifNoneMatch_ = entityTag
 11343  	return c
 11344  }
 11345  
 11346  // Context sets the context to be used in this call's Do method. Any
 11347  // pending HTTP request will be aborted if the provided context is
 11348  // canceled.
 11349  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall {
 11350  	c.ctx_ = ctx
 11351  	return c
 11352  }
 11353  
 11354  // Header returns an http.Header that can be modified by the caller to
 11355  // add HTTP headers to the request.
 11356  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall) Header() http.Header {
 11357  	if c.header_ == nil {
 11358  		c.header_ = make(http.Header)
 11359  	}
 11360  	return c.header_
 11361  }
 11362  
 11363  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall) doRequest(alt string) (*http.Response, error) {
 11364  	reqHeaders := make(http.Header)
 11365  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 11366  	for k, v := range c.header_ {
 11367  		reqHeaders[k] = v
 11368  	}
 11369  	reqHeaders.Set("User-Agent", c.s.userAgent())
 11370  	if c.ifNoneMatch_ != "" {
 11371  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11372  	}
 11373  	var body io.Reader = nil
 11374  	c.urlParams_.Set("alt", alt)
 11375  	c.urlParams_.Set("prettyPrint", "false")
 11376  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
 11377  	urls += "?" + c.urlParams_.Encode()
 11378  	req, err := http.NewRequest("GET", urls, body)
 11379  	if err != nil {
 11380  		return nil, err
 11381  	}
 11382  	req.Header = reqHeaders
 11383  	googleapi.Expand(req.URL, map[string]string{
 11384  		"parent":       c.parent,
 11385  		"dicomWebPath": c.dicomWebPath,
 11386  	})
 11387  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11388  }
 11389  
 11390  // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.searchForInstances" call.
 11391  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 11392  	gensupport.SetOptions(c.urlParams_, opts...)
 11393  	return c.doRequest("")
 11394  	// {
 11395  	//   "description": "SearchForInstances returns a list of matching instances. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6.",
 11396  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}/instances",
 11397  	//   "httpMethod": "GET",
 11398  	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.searchForInstances",
 11399  	//   "parameterOrder": [
 11400  	//     "parent",
 11401  	//     "dicomWebPath"
 11402  	//   ],
 11403  	//   "parameters": {
 11404  	//     "dicomWebPath": {
 11405  	//       "description": "The path of the SearchForInstancesRequest DICOMweb request (e.g.,\n`instances` or `series/{series_uid}/instances` or\n`studies/{study_uid}/instances`).",
 11406  	//       "location": "path",
 11407  	//       "pattern": "^studies/[^/]+/series/[^/]+/instances$",
 11408  	//       "required": true,
 11409  	//       "type": "string"
 11410  	//     },
 11411  	//     "parent": {
 11412  	//       "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).",
 11413  	//       "location": "path",
 11414  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
 11415  	//       "required": true,
 11416  	//       "type": "string"
 11417  	//     }
 11418  	//   },
 11419  	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
 11420  	//   "response": {
 11421  	//     "$ref": "HttpBody"
 11422  	//   },
 11423  	//   "scopes": [
 11424  	//     "https://www.googleapis.com/auth/cloud-platform"
 11425  	//   ]
 11426  	// }
 11427  
 11428  }
 11429  
 11430  // method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.delete":
 11431  
 11432  type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall struct {
 11433  	s            *Service
 11434  	parent       string
 11435  	dicomWebPath string
 11436  	urlParams_   gensupport.URLParams
 11437  	ctx_         context.Context
 11438  	header_      http.Header
 11439  }
 11440  
 11441  // Delete: DeleteInstance deletes an instance associated with the given
 11442  // study, series,
 11443  // and SOP Instance UID. Delete requests are equivalent to the GET
 11444  // requests
 11445  // specified in the WADO-RS standard.
 11446  func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService) Delete(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall {
 11447  	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11448  	c.parent = parent
 11449  	c.dicomWebPath = dicomWebPath
 11450  	return c
 11451  }
 11452  
 11453  // Fields allows partial responses to be retrieved. See
 11454  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 11455  // for more information.
 11456  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall {
 11457  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11458  	return c
 11459  }
 11460  
 11461  // Context sets the context to be used in this call's Do method. Any
 11462  // pending HTTP request will be aborted if the provided context is
 11463  // canceled.
 11464  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall {
 11465  	c.ctx_ = ctx
 11466  	return c
 11467  }
 11468  
 11469  // Header returns an http.Header that can be modified by the caller to
 11470  // add HTTP headers to the request.
 11471  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall) Header() http.Header {
 11472  	if c.header_ == nil {
 11473  		c.header_ = make(http.Header)
 11474  	}
 11475  	return c.header_
 11476  }
 11477  
 11478  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall) doRequest(alt string) (*http.Response, error) {
 11479  	reqHeaders := make(http.Header)
 11480  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 11481  	for k, v := range c.header_ {
 11482  		reqHeaders[k] = v
 11483  	}
 11484  	reqHeaders.Set("User-Agent", c.s.userAgent())
 11485  	var body io.Reader = nil
 11486  	c.urlParams_.Set("alt", alt)
 11487  	c.urlParams_.Set("prettyPrint", "false")
 11488  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
 11489  	urls += "?" + c.urlParams_.Encode()
 11490  	req, err := http.NewRequest("DELETE", urls, body)
 11491  	if err != nil {
 11492  		return nil, err
 11493  	}
 11494  	req.Header = reqHeaders
 11495  	googleapi.Expand(req.URL, map[string]string{
 11496  		"parent":       c.parent,
 11497  		"dicomWebPath": c.dicomWebPath,
 11498  	})
 11499  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11500  }
 11501  
 11502  // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.delete" call.
 11503  // Exactly one of *Empty or error will be non-nil. Any non-2xx status
 11504  // code is an error. Response headers are in either
 11505  // *Empty.ServerResponse.Header or (if a response was returned at all)
 11506  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 11507  // check whether the returned error was because http.StatusNotModified
 11508  // was returned.
 11509  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 11510  	gensupport.SetOptions(c.urlParams_, opts...)
 11511  	res, err := c.doRequest("json")
 11512  	if res != nil && res.StatusCode == http.StatusNotModified {
 11513  		if res.Body != nil {
 11514  			res.Body.Close()
 11515  		}
 11516  		return nil, &googleapi.Error{
 11517  			Code:   res.StatusCode,
 11518  			Header: res.Header,
 11519  		}
 11520  	}
 11521  	if err != nil {
 11522  		return nil, err
 11523  	}
 11524  	defer googleapi.CloseBody(res)
 11525  	if err := googleapi.CheckResponse(res); err != nil {
 11526  		return nil, err
 11527  	}
 11528  	ret := &Empty{
 11529  		ServerResponse: googleapi.ServerResponse{
 11530  			Header:         res.Header,
 11531  			HTTPStatusCode: res.StatusCode,
 11532  		},
 11533  	}
 11534  	target := &ret
 11535  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11536  		return nil, err
 11537  	}
 11538  	return ret, nil
 11539  	// {
 11540  	//   "description": "DeleteInstance deletes an instance associated with the given study, series,\nand SOP Instance UID. Delete requests are equivalent to the GET requests\nspecified in the WADO-RS standard.",
 11541  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}/instances/{instancesId}",
 11542  	//   "httpMethod": "DELETE",
 11543  	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.delete",
 11544  	//   "parameterOrder": [
 11545  	//     "parent",
 11546  	//     "dicomWebPath"
 11547  	//   ],
 11548  	//   "parameters": {
 11549  	//     "dicomWebPath": {
 11550  	//       "description": "The path of the DeleteInstance request (e.g.,\n`studies/{study_id}/series/{series_id}/instances/{instance_id}`).",
 11551  	//       "location": "path",
 11552  	//       "pattern": "^studies/[^/]+/series/[^/]+/instances/[^/]+$",
 11553  	//       "required": true,
 11554  	//       "type": "string"
 11555  	//     },
 11556  	//     "parent": {
 11557  	//       "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).",
 11558  	//       "location": "path",
 11559  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
 11560  	//       "required": true,
 11561  	//       "type": "string"
 11562  	//     }
 11563  	//   },
 11564  	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
 11565  	//   "response": {
 11566  	//     "$ref": "Empty"
 11567  	//   },
 11568  	//   "scopes": [
 11569  	//     "https://www.googleapis.com/auth/cloud-platform"
 11570  	//   ]
 11571  	// }
 11572  
 11573  }
 11574  
 11575  // method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.metadata":
 11576  
 11577  type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall struct {
 11578  	s            *Service
 11579  	parent       string
 11580  	dicomWebPath string
 11581  	urlParams_   gensupport.URLParams
 11582  	ifNoneMatch_ string
 11583  	ctx_         context.Context
 11584  	header_      http.Header
 11585  }
 11586  
 11587  // Metadata: RetrieveInstanceMetadata returns instance associated with
 11588  // the given study,
 11589  // series, and SOP Instance UID presented as metadata with the bulk
 11590  // data
 11591  // removed.
 11592  // See
 11593  // http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
 11594  // l#sect_10.4.
 11595  func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService) Metadata(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall {
 11596  	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11597  	c.parent = parent
 11598  	c.dicomWebPath = dicomWebPath
 11599  	return c
 11600  }
 11601  
 11602  // Fields allows partial responses to be retrieved. See
 11603  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 11604  // for more information.
 11605  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall {
 11606  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11607  	return c
 11608  }
 11609  
 11610  // IfNoneMatch sets the optional parameter which makes the operation
 11611  // fail if the object's ETag matches the given value. This is useful for
 11612  // getting updates only after the object has changed since the last
 11613  // request. Use googleapi.IsNotModified to check whether the response
 11614  // error from Do is the result of In-None-Match.
 11615  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall {
 11616  	c.ifNoneMatch_ = entityTag
 11617  	return c
 11618  }
 11619  
 11620  // Context sets the context to be used in this call's Do method. Any
 11621  // pending HTTP request will be aborted if the provided context is
 11622  // canceled.
 11623  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall {
 11624  	c.ctx_ = ctx
 11625  	return c
 11626  }
 11627  
 11628  // Header returns an http.Header that can be modified by the caller to
 11629  // add HTTP headers to the request.
 11630  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall) Header() http.Header {
 11631  	if c.header_ == nil {
 11632  		c.header_ = make(http.Header)
 11633  	}
 11634  	return c.header_
 11635  }
 11636  
 11637  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall) doRequest(alt string) (*http.Response, error) {
 11638  	reqHeaders := make(http.Header)
 11639  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 11640  	for k, v := range c.header_ {
 11641  		reqHeaders[k] = v
 11642  	}
 11643  	reqHeaders.Set("User-Agent", c.s.userAgent())
 11644  	if c.ifNoneMatch_ != "" {
 11645  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11646  	}
 11647  	var body io.Reader = nil
 11648  	c.urlParams_.Set("alt", alt)
 11649  	c.urlParams_.Set("prettyPrint", "false")
 11650  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
 11651  	urls += "?" + c.urlParams_.Encode()
 11652  	req, err := http.NewRequest("GET", urls, body)
 11653  	if err != nil {
 11654  		return nil, err
 11655  	}
 11656  	req.Header = reqHeaders
 11657  	googleapi.Expand(req.URL, map[string]string{
 11658  		"parent":       c.parent,
 11659  		"dicomWebPath": c.dicomWebPath,
 11660  	})
 11661  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11662  }
 11663  
 11664  // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.metadata" call.
 11665  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 11666  	gensupport.SetOptions(c.urlParams_, opts...)
 11667  	return c.doRequest("")
 11668  	// {
 11669  	//   "description": "RetrieveInstanceMetadata returns instance associated with the given study,\nseries, and SOP Instance UID presented as metadata with the bulk data\nremoved. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.",
 11670  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}/instances/{instancesId}/metadata",
 11671  	//   "httpMethod": "GET",
 11672  	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.metadata",
 11673  	//   "parameterOrder": [
 11674  	//     "parent",
 11675  	//     "dicomWebPath"
 11676  	//   ],
 11677  	//   "parameters": {
 11678  	//     "dicomWebPath": {
 11679  	//       "description": "The path of the RetrieveInstanceMetadata DICOMweb request (e.g.,\n`studies/{study_id}/series/{series_id}/instances/{instance_id}/metadata`).",
 11680  	//       "location": "path",
 11681  	//       "pattern": "^studies/[^/]+/series/[^/]+/instances/[^/]+/metadata$",
 11682  	//       "required": true,
 11683  	//       "type": "string"
 11684  	//     },
 11685  	//     "parent": {
 11686  	//       "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).",
 11687  	//       "location": "path",
 11688  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
 11689  	//       "required": true,
 11690  	//       "type": "string"
 11691  	//     }
 11692  	//   },
 11693  	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
 11694  	//   "response": {
 11695  	//     "$ref": "HttpBody"
 11696  	//   },
 11697  	//   "scopes": [
 11698  	//     "https://www.googleapis.com/auth/cloud-platform"
 11699  	//   ]
 11700  	// }
 11701  
 11702  }
 11703  
 11704  // method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.rendered":
 11705  
 11706  type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall struct {
 11707  	s            *Service
 11708  	parent       string
 11709  	dicomWebPath string
 11710  	urlParams_   gensupport.URLParams
 11711  	ifNoneMatch_ string
 11712  	ctx_         context.Context
 11713  	header_      http.Header
 11714  }
 11715  
 11716  // Rendered: RetrieveRenderedInstance returns instance associated with
 11717  // the given study,
 11718  // series, and SOP Instance UID in an acceptable Rendered Media Type.
 11719  // See
 11720  // http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
 11721  // l#sect_10.4.
 11722  func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService) Rendered(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall {
 11723  	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11724  	c.parent = parent
 11725  	c.dicomWebPath = dicomWebPath
 11726  	return c
 11727  }
 11728  
 11729  // Fields allows partial responses to be retrieved. See
 11730  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 11731  // for more information.
 11732  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall {
 11733  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11734  	return c
 11735  }
 11736  
 11737  // IfNoneMatch sets the optional parameter which makes the operation
 11738  // fail if the object's ETag matches the given value. This is useful for
 11739  // getting updates only after the object has changed since the last
 11740  // request. Use googleapi.IsNotModified to check whether the response
 11741  // error from Do is the result of In-None-Match.
 11742  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall {
 11743  	c.ifNoneMatch_ = entityTag
 11744  	return c
 11745  }
 11746  
 11747  // Context sets the context to be used in this call's Do method. Any
 11748  // pending HTTP request will be aborted if the provided context is
 11749  // canceled.
 11750  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall {
 11751  	c.ctx_ = ctx
 11752  	return c
 11753  }
 11754  
 11755  // Header returns an http.Header that can be modified by the caller to
 11756  // add HTTP headers to the request.
 11757  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall) Header() http.Header {
 11758  	if c.header_ == nil {
 11759  		c.header_ = make(http.Header)
 11760  	}
 11761  	return c.header_
 11762  }
 11763  
 11764  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall) doRequest(alt string) (*http.Response, error) {
 11765  	reqHeaders := make(http.Header)
 11766  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 11767  	for k, v := range c.header_ {
 11768  		reqHeaders[k] = v
 11769  	}
 11770  	reqHeaders.Set("User-Agent", c.s.userAgent())
 11771  	if c.ifNoneMatch_ != "" {
 11772  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11773  	}
 11774  	var body io.Reader = nil
 11775  	c.urlParams_.Set("alt", alt)
 11776  	c.urlParams_.Set("prettyPrint", "false")
 11777  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
 11778  	urls += "?" + c.urlParams_.Encode()
 11779  	req, err := http.NewRequest("GET", urls, body)
 11780  	if err != nil {
 11781  		return nil, err
 11782  	}
 11783  	req.Header = reqHeaders
 11784  	googleapi.Expand(req.URL, map[string]string{
 11785  		"parent":       c.parent,
 11786  		"dicomWebPath": c.dicomWebPath,
 11787  	})
 11788  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11789  }
 11790  
 11791  // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.rendered" call.
 11792  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 11793  	gensupport.SetOptions(c.urlParams_, opts...)
 11794  	return c.doRequest("")
 11795  	// {
 11796  	//   "description": "RetrieveRenderedInstance returns instance associated with the given study,\nseries, and SOP Instance UID in an acceptable Rendered Media Type. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.",
 11797  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}/instances/{instancesId}/rendered",
 11798  	//   "httpMethod": "GET",
 11799  	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.rendered",
 11800  	//   "parameterOrder": [
 11801  	//     "parent",
 11802  	//     "dicomWebPath"
 11803  	//   ],
 11804  	//   "parameters": {
 11805  	//     "dicomWebPath": {
 11806  	//       "description": "The path of the RetrieveRenderedInstance DICOMweb request (e.g.,\n`studies/{study_id}/series/{series_id}/instances/{instance_id}/rendered`).",
 11807  	//       "location": "path",
 11808  	//       "pattern": "^studies/[^/]+/series/[^/]+/instances/[^/]+/rendered$",
 11809  	//       "required": true,
 11810  	//       "type": "string"
 11811  	//     },
 11812  	//     "parent": {
 11813  	//       "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).",
 11814  	//       "location": "path",
 11815  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
 11816  	//       "required": true,
 11817  	//       "type": "string"
 11818  	//     }
 11819  	//   },
 11820  	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
 11821  	//   "response": {
 11822  	//     "$ref": "HttpBody"
 11823  	//   },
 11824  	//   "scopes": [
 11825  	//     "https://www.googleapis.com/auth/cloud-platform"
 11826  	//   ]
 11827  	// }
 11828  
 11829  }
 11830  
 11831  // method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.retrieveInstance":
 11832  
 11833  type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall struct {
 11834  	s            *Service
 11835  	parent       string
 11836  	dicomWebPath string
 11837  	urlParams_   gensupport.URLParams
 11838  	ifNoneMatch_ string
 11839  	ctx_         context.Context
 11840  	header_      http.Header
 11841  }
 11842  
 11843  // RetrieveInstance: RetrieveInstance returns instance associated with
 11844  // the given study, series,
 11845  // and SOP Instance UID.
 11846  // See
 11847  // http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
 11848  // l#sect_10.4.
 11849  func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService) RetrieveInstance(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall {
 11850  	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11851  	c.parent = parent
 11852  	c.dicomWebPath = dicomWebPath
 11853  	return c
 11854  }
 11855  
 11856  // Fields allows partial responses to be retrieved. See
 11857  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 11858  // for more information.
 11859  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall {
 11860  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11861  	return c
 11862  }
 11863  
 11864  // IfNoneMatch sets the optional parameter which makes the operation
 11865  // fail if the object's ETag matches the given value. This is useful for
 11866  // getting updates only after the object has changed since the last
 11867  // request. Use googleapi.IsNotModified to check whether the response
 11868  // error from Do is the result of In-None-Match.
 11869  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall {
 11870  	c.ifNoneMatch_ = entityTag
 11871  	return c
 11872  }
 11873  
 11874  // Context sets the context to be used in this call's Do method. Any
 11875  // pending HTTP request will be aborted if the provided context is
 11876  // canceled.
 11877  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall {
 11878  	c.ctx_ = ctx
 11879  	return c
 11880  }
 11881  
 11882  // Header returns an http.Header that can be modified by the caller to
 11883  // add HTTP headers to the request.
 11884  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall) Header() http.Header {
 11885  	if c.header_ == nil {
 11886  		c.header_ = make(http.Header)
 11887  	}
 11888  	return c.header_
 11889  }
 11890  
 11891  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall) doRequest(alt string) (*http.Response, error) {
 11892  	reqHeaders := make(http.Header)
 11893  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 11894  	for k, v := range c.header_ {
 11895  		reqHeaders[k] = v
 11896  	}
 11897  	reqHeaders.Set("User-Agent", c.s.userAgent())
 11898  	if c.ifNoneMatch_ != "" {
 11899  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11900  	}
 11901  	var body io.Reader = nil
 11902  	c.urlParams_.Set("alt", alt)
 11903  	c.urlParams_.Set("prettyPrint", "false")
 11904  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
 11905  	urls += "?" + c.urlParams_.Encode()
 11906  	req, err := http.NewRequest("GET", urls, body)
 11907  	if err != nil {
 11908  		return nil, err
 11909  	}
 11910  	req.Header = reqHeaders
 11911  	googleapi.Expand(req.URL, map[string]string{
 11912  		"parent":       c.parent,
 11913  		"dicomWebPath": c.dicomWebPath,
 11914  	})
 11915  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11916  }
 11917  
 11918  // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.retrieveInstance" call.
 11919  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 11920  	gensupport.SetOptions(c.urlParams_, opts...)
 11921  	return c.doRequest("")
 11922  	// {
 11923  	//   "description": "RetrieveInstance returns instance associated with the given study, series,\nand SOP Instance UID. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.",
 11924  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}/instances/{instancesId}",
 11925  	//   "httpMethod": "GET",
 11926  	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.retrieveInstance",
 11927  	//   "parameterOrder": [
 11928  	//     "parent",
 11929  	//     "dicomWebPath"
 11930  	//   ],
 11931  	//   "parameters": {
 11932  	//     "dicomWebPath": {
 11933  	//       "description": "The path of the RetrieveInstance DICOMweb request (e.g.,\n`studies/{study_id}/series/{series_id}/instances/{instance_id}`).",
 11934  	//       "location": "path",
 11935  	//       "pattern": "^studies/[^/]+/series/[^/]+/instances/[^/]+$",
 11936  	//       "required": true,
 11937  	//       "type": "string"
 11938  	//     },
 11939  	//     "parent": {
 11940  	//       "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).",
 11941  	//       "location": "path",
 11942  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
 11943  	//       "required": true,
 11944  	//       "type": "string"
 11945  	//     }
 11946  	//   },
 11947  	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
 11948  	//   "response": {
 11949  	//     "$ref": "HttpBody"
 11950  	//   },
 11951  	//   "scopes": [
 11952  	//     "https://www.googleapis.com/auth/cloud-platform"
 11953  	//   ]
 11954  	// }
 11955  
 11956  }
 11957  
 11958  // method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.frames.rendered":
 11959  
 11960  type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall struct {
 11961  	s            *Service
 11962  	parent       string
 11963  	dicomWebPath string
 11964  	urlParams_   gensupport.URLParams
 11965  	ifNoneMatch_ string
 11966  	ctx_         context.Context
 11967  	header_      http.Header
 11968  }
 11969  
 11970  // Rendered: RetrieveRenderedFrames returns instances associated with
 11971  // the given study,
 11972  // series, SOP Instance UID and frame numbers in an acceptable Rendered
 11973  // Media
 11974  // Type.
 11975  // See
 11976  // http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
 11977  // l#sect_10.4.
 11978  func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesService) Rendered(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall {
 11979  	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11980  	c.parent = parent
 11981  	c.dicomWebPath = dicomWebPath
 11982  	return c
 11983  }
 11984  
 11985  // Fields allows partial responses to be retrieved. See
 11986  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 11987  // for more information.
 11988  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall {
 11989  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11990  	return c
 11991  }
 11992  
 11993  // IfNoneMatch sets the optional parameter which makes the operation
 11994  // fail if the object's ETag matches the given value. This is useful for
 11995  // getting updates only after the object has changed since the last
 11996  // request. Use googleapi.IsNotModified to check whether the response
 11997  // error from Do is the result of In-None-Match.
 11998  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall {
 11999  	c.ifNoneMatch_ = entityTag
 12000  	return c
 12001  }
 12002  
 12003  // Context sets the context to be used in this call's Do method. Any
 12004  // pending HTTP request will be aborted if the provided context is
 12005  // canceled.
 12006  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall {
 12007  	c.ctx_ = ctx
 12008  	return c
 12009  }
 12010  
 12011  // Header returns an http.Header that can be modified by the caller to
 12012  // add HTTP headers to the request.
 12013  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall) Header() http.Header {
 12014  	if c.header_ == nil {
 12015  		c.header_ = make(http.Header)
 12016  	}
 12017  	return c.header_
 12018  }
 12019  
 12020  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall) doRequest(alt string) (*http.Response, error) {
 12021  	reqHeaders := make(http.Header)
 12022  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 12023  	for k, v := range c.header_ {
 12024  		reqHeaders[k] = v
 12025  	}
 12026  	reqHeaders.Set("User-Agent", c.s.userAgent())
 12027  	if c.ifNoneMatch_ != "" {
 12028  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12029  	}
 12030  	var body io.Reader = nil
 12031  	c.urlParams_.Set("alt", alt)
 12032  	c.urlParams_.Set("prettyPrint", "false")
 12033  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
 12034  	urls += "?" + c.urlParams_.Encode()
 12035  	req, err := http.NewRequest("GET", urls, body)
 12036  	if err != nil {
 12037  		return nil, err
 12038  	}
 12039  	req.Header = reqHeaders
 12040  	googleapi.Expand(req.URL, map[string]string{
 12041  		"parent":       c.parent,
 12042  		"dicomWebPath": c.dicomWebPath,
 12043  	})
 12044  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12045  }
 12046  
 12047  // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.frames.rendered" call.
 12048  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 12049  	gensupport.SetOptions(c.urlParams_, opts...)
 12050  	return c.doRequest("")
 12051  	// {
 12052  	//   "description": "RetrieveRenderedFrames returns instances associated with the given study,\nseries, SOP Instance UID and frame numbers in an acceptable Rendered Media\nType. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.",
 12053  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}/instances/{instancesId}/frames/{framesId}/rendered",
 12054  	//   "httpMethod": "GET",
 12055  	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.frames.rendered",
 12056  	//   "parameterOrder": [
 12057  	//     "parent",
 12058  	//     "dicomWebPath"
 12059  	//   ],
 12060  	//   "parameters": {
 12061  	//     "dicomWebPath": {
 12062  	//       "description": "The path of the RetrieveRenderedFrames DICOMweb request (e.g.,\n`studies/{study_id}/series/{series_id}/instances/{instance_id}/frames/{frame_list}/rendered`).",
 12063  	//       "location": "path",
 12064  	//       "pattern": "^studies/[^/]+/series/[^/]+/instances/[^/]+/frames/[^/]+/rendered$",
 12065  	//       "required": true,
 12066  	//       "type": "string"
 12067  	//     },
 12068  	//     "parent": {
 12069  	//       "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).",
 12070  	//       "location": "path",
 12071  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
 12072  	//       "required": true,
 12073  	//       "type": "string"
 12074  	//     }
 12075  	//   },
 12076  	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
 12077  	//   "response": {
 12078  	//     "$ref": "HttpBody"
 12079  	//   },
 12080  	//   "scopes": [
 12081  	//     "https://www.googleapis.com/auth/cloud-platform"
 12082  	//   ]
 12083  	// }
 12084  
 12085  }
 12086  
 12087  // method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.frames.retrieveFrames":
 12088  
 12089  type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall struct {
 12090  	s            *Service
 12091  	parent       string
 12092  	dicomWebPath string
 12093  	urlParams_   gensupport.URLParams
 12094  	ifNoneMatch_ string
 12095  	ctx_         context.Context
 12096  	header_      http.Header
 12097  }
 12098  
 12099  // RetrieveFrames: RetrieveFrames returns instances associated with the
 12100  // given study, series,
 12101  // SOP Instance UID and frame numbers.
 12102  // See
 12103  // http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
 12104  // l#sect_10.4.
 12105  func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesService) RetrieveFrames(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall {
 12106  	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12107  	c.parent = parent
 12108  	c.dicomWebPath = dicomWebPath
 12109  	return c
 12110  }
 12111  
 12112  // Fields allows partial responses to be retrieved. See
 12113  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 12114  // for more information.
 12115  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall {
 12116  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12117  	return c
 12118  }
 12119  
 12120  // IfNoneMatch sets the optional parameter which makes the operation
 12121  // fail if the object's ETag matches the given value. This is useful for
 12122  // getting updates only after the object has changed since the last
 12123  // request. Use googleapi.IsNotModified to check whether the response
 12124  // error from Do is the result of In-None-Match.
 12125  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall {
 12126  	c.ifNoneMatch_ = entityTag
 12127  	return c
 12128  }
 12129  
 12130  // Context sets the context to be used in this call's Do method. Any
 12131  // pending HTTP request will be aborted if the provided context is
 12132  // canceled.
 12133  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall {
 12134  	c.ctx_ = ctx
 12135  	return c
 12136  }
 12137  
 12138  // Header returns an http.Header that can be modified by the caller to
 12139  // add HTTP headers to the request.
 12140  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall) Header() http.Header {
 12141  	if c.header_ == nil {
 12142  		c.header_ = make(http.Header)
 12143  	}
 12144  	return c.header_
 12145  }
 12146  
 12147  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall) doRequest(alt string) (*http.Response, error) {
 12148  	reqHeaders := make(http.Header)
 12149  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 12150  	for k, v := range c.header_ {
 12151  		reqHeaders[k] = v
 12152  	}
 12153  	reqHeaders.Set("User-Agent", c.s.userAgent())
 12154  	if c.ifNoneMatch_ != "" {
 12155  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12156  	}
 12157  	var body io.Reader = nil
 12158  	c.urlParams_.Set("alt", alt)
 12159  	c.urlParams_.Set("prettyPrint", "false")
 12160  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
 12161  	urls += "?" + c.urlParams_.Encode()
 12162  	req, err := http.NewRequest("GET", urls, body)
 12163  	if err != nil {
 12164  		return nil, err
 12165  	}
 12166  	req.Header = reqHeaders
 12167  	googleapi.Expand(req.URL, map[string]string{
 12168  		"parent":       c.parent,
 12169  		"dicomWebPath": c.dicomWebPath,
 12170  	})
 12171  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12172  }
 12173  
 12174  // Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.frames.retrieveFrames" call.
 12175  func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 12176  	gensupport.SetOptions(c.urlParams_, opts...)
 12177  	return c.doRequest("")
 12178  	// {
 12179  	//   "description": "RetrieveFrames returns instances associated with the given study, series,\nSOP Instance UID and frame numbers. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.",
 12180  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}/instances/{instancesId}/frames/{framesId}",
 12181  	//   "httpMethod": "GET",
 12182  	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.frames.retrieveFrames",
 12183  	//   "parameterOrder": [
 12184  	//     "parent",
 12185  	//     "dicomWebPath"
 12186  	//   ],
 12187  	//   "parameters": {
 12188  	//     "dicomWebPath": {
 12189  	//       "description": "The path of the RetrieveFrames DICOMweb request (e.g.,\n`studies/{study_id}/series/{series_id}/instances/{instance_id}/frames/{frame_list}`).",
 12190  	//       "location": "path",
 12191  	//       "pattern": "^studies/[^/]+/series/[^/]+/instances/[^/]+/frames/[^/]+$",
 12192  	//       "required": true,
 12193  	//       "type": "string"
 12194  	//     },
 12195  	//     "parent": {
 12196  	//       "description": "The name of the DICOM store that is being accessed (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`).",
 12197  	//       "location": "path",
 12198  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
 12199  	//       "required": true,
 12200  	//       "type": "string"
 12201  	//     }
 12202  	//   },
 12203  	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
 12204  	//   "response": {
 12205  	//     "$ref": "HttpBody"
 12206  	//   },
 12207  	//   "scopes": [
 12208  	//     "https://www.googleapis.com/auth/cloud-platform"
 12209  	//   ]
 12210  	// }
 12211  
 12212  }
 12213  
 12214  // method id "healthcare.projects.locations.datasets.fhirStores.capabilities":
 12215  
 12216  type ProjectsLocationsDatasetsFhirStoresCapabilitiesCall struct {
 12217  	s            *Service
 12218  	name         string
 12219  	urlParams_   gensupport.URLParams
 12220  	ifNoneMatch_ string
 12221  	ctx_         context.Context
 12222  	header_      http.Header
 12223  }
 12224  
 12225  // Capabilities: Gets the FHIR capability
 12226  // statement
 12227  // ([STU3](http://hl7.org/implement/standards/fhir/STU3/capabil
 12228  // itystatement.html)),
 12229  // or the
 12230  // [conformance
 12231  // statement](http://hl7.org/implement/standards/fhir/DSTU2/
 12232  // conformance.html)
 12233  // in the DSTU2 case for the store, which contains a description
 12234  // of
 12235  // functionality supported by the server.
 12236  //
 12237  // Implements the FHIR standard capabilities
 12238  // interaction
 12239  // ([STU3](http://hl7.org/implement/standards/fhir/STU3/http.
 12240  // html#capabilities)),
 12241  // or the
 12242  // [conformance
 12243  // interaction](http://hl7.org/implement/standards/fhir/DSTU
 12244  // 2/http.html#conformance)
 12245  // in the DSTU2 case.
 12246  //
 12247  // On success, the response body will contain a JSON-encoded
 12248  // representation
 12249  // of a `CapabilityStatement` resource.
 12250  func (r *ProjectsLocationsDatasetsFhirStoresService) Capabilities(name string) *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall {
 12251  	c := &ProjectsLocationsDatasetsFhirStoresCapabilitiesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12252  	c.name = name
 12253  	return c
 12254  }
 12255  
 12256  // Fields allows partial responses to be retrieved. See
 12257  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 12258  // for more information.
 12259  func (c *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall {
 12260  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12261  	return c
 12262  }
 12263  
 12264  // IfNoneMatch sets the optional parameter which makes the operation
 12265  // fail if the object's ETag matches the given value. This is useful for
 12266  // getting updates only after the object has changed since the last
 12267  // request. Use googleapi.IsNotModified to check whether the response
 12268  // error from Do is the result of In-None-Match.
 12269  func (c *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall {
 12270  	c.ifNoneMatch_ = entityTag
 12271  	return c
 12272  }
 12273  
 12274  // Context sets the context to be used in this call's Do method. Any
 12275  // pending HTTP request will be aborted if the provided context is
 12276  // canceled.
 12277  func (c *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall {
 12278  	c.ctx_ = ctx
 12279  	return c
 12280  }
 12281  
 12282  // Header returns an http.Header that can be modified by the caller to
 12283  // add HTTP headers to the request.
 12284  func (c *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall) Header() http.Header {
 12285  	if c.header_ == nil {
 12286  		c.header_ = make(http.Header)
 12287  	}
 12288  	return c.header_
 12289  }
 12290  
 12291  func (c *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall) doRequest(alt string) (*http.Response, error) {
 12292  	reqHeaders := make(http.Header)
 12293  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 12294  	for k, v := range c.header_ {
 12295  		reqHeaders[k] = v
 12296  	}
 12297  	reqHeaders.Set("User-Agent", c.s.userAgent())
 12298  	if c.ifNoneMatch_ != "" {
 12299  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12300  	}
 12301  	var body io.Reader = nil
 12302  	c.urlParams_.Set("alt", alt)
 12303  	c.urlParams_.Set("prettyPrint", "false")
 12304  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}/metadata")
 12305  	urls += "?" + c.urlParams_.Encode()
 12306  	req, err := http.NewRequest("GET", urls, body)
 12307  	if err != nil {
 12308  		return nil, err
 12309  	}
 12310  	req.Header = reqHeaders
 12311  	googleapi.Expand(req.URL, map[string]string{
 12312  		"name": c.name,
 12313  	})
 12314  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12315  }
 12316  
 12317  // Do executes the "healthcare.projects.locations.datasets.fhirStores.capabilities" call.
 12318  func (c *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 12319  	gensupport.SetOptions(c.urlParams_, opts...)
 12320  	return c.doRequest("")
 12321  	// {
 12322  	//   "description": "Gets the FHIR capability statement\n([STU3](http://hl7.org/implement/standards/fhir/STU3/capabilitystatement.html)),\nor the [conformance\nstatement](http://hl7.org/implement/standards/fhir/DSTU2/conformance.html)\nin the DSTU2 case for the store, which contains a description of\nfunctionality supported by the server.\n\nImplements the FHIR standard capabilities interaction\n([STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#capabilities)),\nor the [conformance\ninteraction](http://hl7.org/implement/standards/fhir/DSTU2/http.html#conformance)\nin the DSTU2 case.\n\nOn success, the response body will contain a JSON-encoded representation\nof a `CapabilityStatement` resource.",
 12323  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/metadata",
 12324  	//   "httpMethod": "GET",
 12325  	//   "id": "healthcare.projects.locations.datasets.fhirStores.capabilities",
 12326  	//   "parameterOrder": [
 12327  	//     "name"
 12328  	//   ],
 12329  	//   "parameters": {
 12330  	//     "name": {
 12331  	//       "description": "Name of the FHIR store to retrieve the capabilities for.",
 12332  	//       "location": "path",
 12333  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
 12334  	//       "required": true,
 12335  	//       "type": "string"
 12336  	//     }
 12337  	//   },
 12338  	//   "path": "v1alpha2/{+name}/metadata",
 12339  	//   "response": {
 12340  	//     "$ref": "HttpBody"
 12341  	//   },
 12342  	//   "scopes": [
 12343  	//     "https://www.googleapis.com/auth/cloud-platform"
 12344  	//   ]
 12345  	// }
 12346  
 12347  }
 12348  
 12349  // method id "healthcare.projects.locations.datasets.fhirStores.create":
 12350  
 12351  type ProjectsLocationsDatasetsFhirStoresCreateCall struct {
 12352  	s          *Service
 12353  	parent     string
 12354  	fhirstore  *FhirStore
 12355  	urlParams_ gensupport.URLParams
 12356  	ctx_       context.Context
 12357  	header_    http.Header
 12358  }
 12359  
 12360  // Create: Creates a new FHIR store within the parent dataset.
 12361  func (r *ProjectsLocationsDatasetsFhirStoresService) Create(parent string, fhirstore *FhirStore) *ProjectsLocationsDatasetsFhirStoresCreateCall {
 12362  	c := &ProjectsLocationsDatasetsFhirStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12363  	c.parent = parent
 12364  	c.fhirstore = fhirstore
 12365  	return c
 12366  }
 12367  
 12368  // FhirStoreId sets the optional parameter "fhirStoreId": The ID of the
 12369  // FHIR store that is being created.
 12370  // The string must match the following regex:
 12371  // `[\p{L}\p{N}_\-\.]{1,256}`.
 12372  func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) FhirStoreId(fhirStoreId string) *ProjectsLocationsDatasetsFhirStoresCreateCall {
 12373  	c.urlParams_.Set("fhirStoreId", fhirStoreId)
 12374  	return c
 12375  }
 12376  
 12377  // Fields allows partial responses to be retrieved. See
 12378  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 12379  // for more information.
 12380  func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresCreateCall {
 12381  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12382  	return c
 12383  }
 12384  
 12385  // Context sets the context to be used in this call's Do method. Any
 12386  // pending HTTP request will be aborted if the provided context is
 12387  // canceled.
 12388  func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresCreateCall {
 12389  	c.ctx_ = ctx
 12390  	return c
 12391  }
 12392  
 12393  // Header returns an http.Header that can be modified by the caller to
 12394  // add HTTP headers to the request.
 12395  func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) Header() http.Header {
 12396  	if c.header_ == nil {
 12397  		c.header_ = make(http.Header)
 12398  	}
 12399  	return c.header_
 12400  }
 12401  
 12402  func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) doRequest(alt string) (*http.Response, error) {
 12403  	reqHeaders := make(http.Header)
 12404  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 12405  	for k, v := range c.header_ {
 12406  		reqHeaders[k] = v
 12407  	}
 12408  	reqHeaders.Set("User-Agent", c.s.userAgent())
 12409  	var body io.Reader = nil
 12410  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.fhirstore)
 12411  	if err != nil {
 12412  		return nil, err
 12413  	}
 12414  	reqHeaders.Set("Content-Type", "application/json")
 12415  	c.urlParams_.Set("alt", alt)
 12416  	c.urlParams_.Set("prettyPrint", "false")
 12417  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhirStores")
 12418  	urls += "?" + c.urlParams_.Encode()
 12419  	req, err := http.NewRequest("POST", urls, body)
 12420  	if err != nil {
 12421  		return nil, err
 12422  	}
 12423  	req.Header = reqHeaders
 12424  	googleapi.Expand(req.URL, map[string]string{
 12425  		"parent": c.parent,
 12426  	})
 12427  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12428  }
 12429  
 12430  // Do executes the "healthcare.projects.locations.datasets.fhirStores.create" call.
 12431  // Exactly one of *FhirStore or error will be non-nil. Any non-2xx
 12432  // status code is an error. Response headers are in either
 12433  // *FhirStore.ServerResponse.Header or (if a response was returned at
 12434  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
 12435  // to check whether the returned error was because
 12436  // http.StatusNotModified was returned.
 12437  func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) Do(opts ...googleapi.CallOption) (*FhirStore, error) {
 12438  	gensupport.SetOptions(c.urlParams_, opts...)
 12439  	res, err := c.doRequest("json")
 12440  	if res != nil && res.StatusCode == http.StatusNotModified {
 12441  		if res.Body != nil {
 12442  			res.Body.Close()
 12443  		}
 12444  		return nil, &googleapi.Error{
 12445  			Code:   res.StatusCode,
 12446  			Header: res.Header,
 12447  		}
 12448  	}
 12449  	if err != nil {
 12450  		return nil, err
 12451  	}
 12452  	defer googleapi.CloseBody(res)
 12453  	if err := googleapi.CheckResponse(res); err != nil {
 12454  		return nil, err
 12455  	}
 12456  	ret := &FhirStore{
 12457  		ServerResponse: googleapi.ServerResponse{
 12458  			Header:         res.Header,
 12459  			HTTPStatusCode: res.StatusCode,
 12460  		},
 12461  	}
 12462  	target := &ret
 12463  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12464  		return nil, err
 12465  	}
 12466  	return ret, nil
 12467  	// {
 12468  	//   "description": "Creates a new FHIR store within the parent dataset.",
 12469  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores",
 12470  	//   "httpMethod": "POST",
 12471  	//   "id": "healthcare.projects.locations.datasets.fhirStores.create",
 12472  	//   "parameterOrder": [
 12473  	//     "parent"
 12474  	//   ],
 12475  	//   "parameters": {
 12476  	//     "fhirStoreId": {
 12477  	//       "description": "The ID of the FHIR store that is being created.\nThe string must match the following regex: `[\\p{L}\\p{N}_\\-\\.]{1,256}`.",
 12478  	//       "location": "query",
 12479  	//       "type": "string"
 12480  	//     },
 12481  	//     "parent": {
 12482  	//       "description": "The name of the dataset this FHIR store belongs to.",
 12483  	//       "location": "path",
 12484  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
 12485  	//       "required": true,
 12486  	//       "type": "string"
 12487  	//     }
 12488  	//   },
 12489  	//   "path": "v1alpha2/{+parent}/fhirStores",
 12490  	//   "request": {
 12491  	//     "$ref": "FhirStore"
 12492  	//   },
 12493  	//   "response": {
 12494  	//     "$ref": "FhirStore"
 12495  	//   },
 12496  	//   "scopes": [
 12497  	//     "https://www.googleapis.com/auth/cloud-platform"
 12498  	//   ]
 12499  	// }
 12500  
 12501  }
 12502  
 12503  // method id "healthcare.projects.locations.datasets.fhirStores.delete":
 12504  
 12505  type ProjectsLocationsDatasetsFhirStoresDeleteCall struct {
 12506  	s          *Service
 12507  	name       string
 12508  	urlParams_ gensupport.URLParams
 12509  	ctx_       context.Context
 12510  	header_    http.Header
 12511  }
 12512  
 12513  // Delete: Deletes the specified FHIR store and removes all resources
 12514  // within it.
 12515  func (r *ProjectsLocationsDatasetsFhirStoresService) Delete(name string) *ProjectsLocationsDatasetsFhirStoresDeleteCall {
 12516  	c := &ProjectsLocationsDatasetsFhirStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12517  	c.name = name
 12518  	return c
 12519  }
 12520  
 12521  // Fields allows partial responses to be retrieved. See
 12522  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 12523  // for more information.
 12524  func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresDeleteCall {
 12525  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12526  	return c
 12527  }
 12528  
 12529  // Context sets the context to be used in this call's Do method. Any
 12530  // pending HTTP request will be aborted if the provided context is
 12531  // canceled.
 12532  func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresDeleteCall {
 12533  	c.ctx_ = ctx
 12534  	return c
 12535  }
 12536  
 12537  // Header returns an http.Header that can be modified by the caller to
 12538  // add HTTP headers to the request.
 12539  func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) Header() http.Header {
 12540  	if c.header_ == nil {
 12541  		c.header_ = make(http.Header)
 12542  	}
 12543  	return c.header_
 12544  }
 12545  
 12546  func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) doRequest(alt string) (*http.Response, error) {
 12547  	reqHeaders := make(http.Header)
 12548  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 12549  	for k, v := range c.header_ {
 12550  		reqHeaders[k] = v
 12551  	}
 12552  	reqHeaders.Set("User-Agent", c.s.userAgent())
 12553  	var body io.Reader = nil
 12554  	c.urlParams_.Set("alt", alt)
 12555  	c.urlParams_.Set("prettyPrint", "false")
 12556  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
 12557  	urls += "?" + c.urlParams_.Encode()
 12558  	req, err := http.NewRequest("DELETE", urls, body)
 12559  	if err != nil {
 12560  		return nil, err
 12561  	}
 12562  	req.Header = reqHeaders
 12563  	googleapi.Expand(req.URL, map[string]string{
 12564  		"name": c.name,
 12565  	})
 12566  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12567  }
 12568  
 12569  // Do executes the "healthcare.projects.locations.datasets.fhirStores.delete" call.
 12570  // Exactly one of *Empty or error will be non-nil. Any non-2xx status
 12571  // code is an error. Response headers are in either
 12572  // *Empty.ServerResponse.Header or (if a response was returned at all)
 12573  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 12574  // check whether the returned error was because http.StatusNotModified
 12575  // was returned.
 12576  func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 12577  	gensupport.SetOptions(c.urlParams_, opts...)
 12578  	res, err := c.doRequest("json")
 12579  	if res != nil && res.StatusCode == http.StatusNotModified {
 12580  		if res.Body != nil {
 12581  			res.Body.Close()
 12582  		}
 12583  		return nil, &googleapi.Error{
 12584  			Code:   res.StatusCode,
 12585  			Header: res.Header,
 12586  		}
 12587  	}
 12588  	if err != nil {
 12589  		return nil, err
 12590  	}
 12591  	defer googleapi.CloseBody(res)
 12592  	if err := googleapi.CheckResponse(res); err != nil {
 12593  		return nil, err
 12594  	}
 12595  	ret := &Empty{
 12596  		ServerResponse: googleapi.ServerResponse{
 12597  			Header:         res.Header,
 12598  			HTTPStatusCode: res.StatusCode,
 12599  		},
 12600  	}
 12601  	target := &ret
 12602  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12603  		return nil, err
 12604  	}
 12605  	return ret, nil
 12606  	// {
 12607  	//   "description": "Deletes the specified FHIR store and removes all resources within it.",
 12608  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}",
 12609  	//   "httpMethod": "DELETE",
 12610  	//   "id": "healthcare.projects.locations.datasets.fhirStores.delete",
 12611  	//   "parameterOrder": [
 12612  	//     "name"
 12613  	//   ],
 12614  	//   "parameters": {
 12615  	//     "name": {
 12616  	//       "description": "The resource name of the FHIR store to delete.",
 12617  	//       "location": "path",
 12618  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
 12619  	//       "required": true,
 12620  	//       "type": "string"
 12621  	//     }
 12622  	//   },
 12623  	//   "path": "v1alpha2/{+name}",
 12624  	//   "response": {
 12625  	//     "$ref": "Empty"
 12626  	//   },
 12627  	//   "scopes": [
 12628  	//     "https://www.googleapis.com/auth/cloud-platform"
 12629  	//   ]
 12630  	// }
 12631  
 12632  }
 12633  
 12634  // method id "healthcare.projects.locations.datasets.fhirStores.export":
 12635  
 12636  type ProjectsLocationsDatasetsFhirStoresExportCall struct {
 12637  	s                      *Service
 12638  	name                   string
 12639  	exportresourcesrequest *ExportResourcesRequest
 12640  	urlParams_             gensupport.URLParams
 12641  	ctx_                   context.Context
 12642  	header_                http.Header
 12643  }
 12644  
 12645  // Export: Export resources from the FHIR store to the specified
 12646  // destination.
 12647  //
 12648  // This method returns an Operation that can
 12649  // be used to track the status of the export by
 12650  // calling
 12651  // GetOperation.
 12652  //
 12653  // Immediate fatal errors appear in the
 12654  // error field, errors are also logged
 12655  // to Stackdriver (see
 12656  // [Viewing
 12657  // logs](/healthcare/docs/how-tos/stackdriver-logging)).
 12658  // Otherwi
 12659  // se, when the operation finishes, a detailed response of
 12660  // type
 12661  // ExportResourcesResponse is returned in the
 12662  // response field.
 12663  // The metadata field type for this
 12664  // operation is OperationMetadata.
 12665  func (r *ProjectsLocationsDatasetsFhirStoresService) Export(name string, exportresourcesrequest *ExportResourcesRequest) *ProjectsLocationsDatasetsFhirStoresExportCall {
 12666  	c := &ProjectsLocationsDatasetsFhirStoresExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12667  	c.name = name
 12668  	c.exportresourcesrequest = exportresourcesrequest
 12669  	return c
 12670  }
 12671  
 12672  // Fields allows partial responses to be retrieved. See
 12673  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 12674  // for more information.
 12675  func (c *ProjectsLocationsDatasetsFhirStoresExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresExportCall {
 12676  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12677  	return c
 12678  }
 12679  
 12680  // Context sets the context to be used in this call's Do method. Any
 12681  // pending HTTP request will be aborted if the provided context is
 12682  // canceled.
 12683  func (c *ProjectsLocationsDatasetsFhirStoresExportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresExportCall {
 12684  	c.ctx_ = ctx
 12685  	return c
 12686  }
 12687  
 12688  // Header returns an http.Header that can be modified by the caller to
 12689  // add HTTP headers to the request.
 12690  func (c *ProjectsLocationsDatasetsFhirStoresExportCall) Header() http.Header {
 12691  	if c.header_ == nil {
 12692  		c.header_ = make(http.Header)
 12693  	}
 12694  	return c.header_
 12695  }
 12696  
 12697  func (c *ProjectsLocationsDatasetsFhirStoresExportCall) doRequest(alt string) (*http.Response, error) {
 12698  	reqHeaders := make(http.Header)
 12699  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 12700  	for k, v := range c.header_ {
 12701  		reqHeaders[k] = v
 12702  	}
 12703  	reqHeaders.Set("User-Agent", c.s.userAgent())
 12704  	var body io.Reader = nil
 12705  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.exportresourcesrequest)
 12706  	if err != nil {
 12707  		return nil, err
 12708  	}
 12709  	reqHeaders.Set("Content-Type", "application/json")
 12710  	c.urlParams_.Set("alt", alt)
 12711  	c.urlParams_.Set("prettyPrint", "false")
 12712  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}:export")
 12713  	urls += "?" + c.urlParams_.Encode()
 12714  	req, err := http.NewRequest("POST", urls, body)
 12715  	if err != nil {
 12716  		return nil, err
 12717  	}
 12718  	req.Header = reqHeaders
 12719  	googleapi.Expand(req.URL, map[string]string{
 12720  		"name": c.name,
 12721  	})
 12722  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12723  }
 12724  
 12725  // Do executes the "healthcare.projects.locations.datasets.fhirStores.export" call.
 12726  // Exactly one of *Operation or error will be non-nil. Any non-2xx
 12727  // status code is an error. Response headers are in either
 12728  // *Operation.ServerResponse.Header or (if a response was returned at
 12729  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
 12730  // to check whether the returned error was because
 12731  // http.StatusNotModified was returned.
 12732  func (c *ProjectsLocationsDatasetsFhirStoresExportCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 12733  	gensupport.SetOptions(c.urlParams_, opts...)
 12734  	res, err := c.doRequest("json")
 12735  	if res != nil && res.StatusCode == http.StatusNotModified {
 12736  		if res.Body != nil {
 12737  			res.Body.Close()
 12738  		}
 12739  		return nil, &googleapi.Error{
 12740  			Code:   res.StatusCode,
 12741  			Header: res.Header,
 12742  		}
 12743  	}
 12744  	if err != nil {
 12745  		return nil, err
 12746  	}
 12747  	defer googleapi.CloseBody(res)
 12748  	if err := googleapi.CheckResponse(res); err != nil {
 12749  		return nil, err
 12750  	}
 12751  	ret := &Operation{
 12752  		ServerResponse: googleapi.ServerResponse{
 12753  			Header:         res.Header,
 12754  			HTTPStatusCode: res.StatusCode,
 12755  		},
 12756  	}
 12757  	target := &ret
 12758  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12759  		return nil, err
 12760  	}
 12761  	return ret, nil
 12762  	// {
 12763  	//   "description": "Export resources from the FHIR store to the specified destination.\n\nThis method returns an Operation that can\nbe used to track the status of the export by calling\nGetOperation.\n\nImmediate fatal errors appear in the\nerror field, errors are also logged\nto Stackdriver (see [Viewing\nlogs](/healthcare/docs/how-tos/stackdriver-logging)).\nOtherwise, when the operation finishes, a detailed response of type\nExportResourcesResponse is returned in the\nresponse field.\nThe metadata field type for this\noperation is OperationMetadata.",
 12764  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}:export",
 12765  	//   "httpMethod": "POST",
 12766  	//   "id": "healthcare.projects.locations.datasets.fhirStores.export",
 12767  	//   "parameterOrder": [
 12768  	//     "name"
 12769  	//   ],
 12770  	//   "parameters": {
 12771  	//     "name": {
 12772  	//       "description": "The name of the FHIR store to export resource from. The name should be in\nthe format of\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}`.",
 12773  	//       "location": "path",
 12774  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
 12775  	//       "required": true,
 12776  	//       "type": "string"
 12777  	//     }
 12778  	//   },
 12779  	//   "path": "v1alpha2/{+name}:export",
 12780  	//   "request": {
 12781  	//     "$ref": "ExportResourcesRequest"
 12782  	//   },
 12783  	//   "response": {
 12784  	//     "$ref": "Operation"
 12785  	//   },
 12786  	//   "scopes": [
 12787  	//     "https://www.googleapis.com/auth/cloud-platform"
 12788  	//   ]
 12789  	// }
 12790  
 12791  }
 12792  
 12793  // method id "healthcare.projects.locations.datasets.fhirStores.get":
 12794  
 12795  type ProjectsLocationsDatasetsFhirStoresGetCall struct {
 12796  	s            *Service
 12797  	name         string
 12798  	urlParams_   gensupport.URLParams
 12799  	ifNoneMatch_ string
 12800  	ctx_         context.Context
 12801  	header_      http.Header
 12802  }
 12803  
 12804  // Get: Gets the configuration of the specified FHIR store.
 12805  func (r *ProjectsLocationsDatasetsFhirStoresService) Get(name string) *ProjectsLocationsDatasetsFhirStoresGetCall {
 12806  	c := &ProjectsLocationsDatasetsFhirStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12807  	c.name = name
 12808  	return c
 12809  }
 12810  
 12811  // Fields allows partial responses to be retrieved. See
 12812  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 12813  // for more information.
 12814  func (c *ProjectsLocationsDatasetsFhirStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresGetCall {
 12815  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12816  	return c
 12817  }
 12818  
 12819  // IfNoneMatch sets the optional parameter which makes the operation
 12820  // fail if the object's ETag matches the given value. This is useful for
 12821  // getting updates only after the object has changed since the last
 12822  // request. Use googleapi.IsNotModified to check whether the response
 12823  // error from Do is the result of In-None-Match.
 12824  func (c *ProjectsLocationsDatasetsFhirStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresGetCall {
 12825  	c.ifNoneMatch_ = entityTag
 12826  	return c
 12827  }
 12828  
 12829  // Context sets the context to be used in this call's Do method. Any
 12830  // pending HTTP request will be aborted if the provided context is
 12831  // canceled.
 12832  func (c *ProjectsLocationsDatasetsFhirStoresGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresGetCall {
 12833  	c.ctx_ = ctx
 12834  	return c
 12835  }
 12836  
 12837  // Header returns an http.Header that can be modified by the caller to
 12838  // add HTTP headers to the request.
 12839  func (c *ProjectsLocationsDatasetsFhirStoresGetCall) Header() http.Header {
 12840  	if c.header_ == nil {
 12841  		c.header_ = make(http.Header)
 12842  	}
 12843  	return c.header_
 12844  }
 12845  
 12846  func (c *ProjectsLocationsDatasetsFhirStoresGetCall) doRequest(alt string) (*http.Response, error) {
 12847  	reqHeaders := make(http.Header)
 12848  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 12849  	for k, v := range c.header_ {
 12850  		reqHeaders[k] = v
 12851  	}
 12852  	reqHeaders.Set("User-Agent", c.s.userAgent())
 12853  	if c.ifNoneMatch_ != "" {
 12854  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12855  	}
 12856  	var body io.Reader = nil
 12857  	c.urlParams_.Set("alt", alt)
 12858  	c.urlParams_.Set("prettyPrint", "false")
 12859  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
 12860  	urls += "?" + c.urlParams_.Encode()
 12861  	req, err := http.NewRequest("GET", urls, body)
 12862  	if err != nil {
 12863  		return nil, err
 12864  	}
 12865  	req.Header = reqHeaders
 12866  	googleapi.Expand(req.URL, map[string]string{
 12867  		"name": c.name,
 12868  	})
 12869  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12870  }
 12871  
 12872  // Do executes the "healthcare.projects.locations.datasets.fhirStores.get" call.
 12873  // Exactly one of *FhirStore or error will be non-nil. Any non-2xx
 12874  // status code is an error. Response headers are in either
 12875  // *FhirStore.ServerResponse.Header or (if a response was returned at
 12876  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
 12877  // to check whether the returned error was because
 12878  // http.StatusNotModified was returned.
 12879  func (c *ProjectsLocationsDatasetsFhirStoresGetCall) Do(opts ...googleapi.CallOption) (*FhirStore, error) {
 12880  	gensupport.SetOptions(c.urlParams_, opts...)
 12881  	res, err := c.doRequest("json")
 12882  	if res != nil && res.StatusCode == http.StatusNotModified {
 12883  		if res.Body != nil {
 12884  			res.Body.Close()
 12885  		}
 12886  		return nil, &googleapi.Error{
 12887  			Code:   res.StatusCode,
 12888  			Header: res.Header,
 12889  		}
 12890  	}
 12891  	if err != nil {
 12892  		return nil, err
 12893  	}
 12894  	defer googleapi.CloseBody(res)
 12895  	if err := googleapi.CheckResponse(res); err != nil {
 12896  		return nil, err
 12897  	}
 12898  	ret := &FhirStore{
 12899  		ServerResponse: googleapi.ServerResponse{
 12900  			Header:         res.Header,
 12901  			HTTPStatusCode: res.StatusCode,
 12902  		},
 12903  	}
 12904  	target := &ret
 12905  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12906  		return nil, err
 12907  	}
 12908  	return ret, nil
 12909  	// {
 12910  	//   "description": "Gets the configuration of the specified FHIR store.",
 12911  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}",
 12912  	//   "httpMethod": "GET",
 12913  	//   "id": "healthcare.projects.locations.datasets.fhirStores.get",
 12914  	//   "parameterOrder": [
 12915  	//     "name"
 12916  	//   ],
 12917  	//   "parameters": {
 12918  	//     "name": {
 12919  	//       "description": "The resource name of the FHIR store to get.",
 12920  	//       "location": "path",
 12921  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
 12922  	//       "required": true,
 12923  	//       "type": "string"
 12924  	//     }
 12925  	//   },
 12926  	//   "path": "v1alpha2/{+name}",
 12927  	//   "response": {
 12928  	//     "$ref": "FhirStore"
 12929  	//   },
 12930  	//   "scopes": [
 12931  	//     "https://www.googleapis.com/auth/cloud-platform"
 12932  	//   ]
 12933  	// }
 12934  
 12935  }
 12936  
 12937  // method id "healthcare.projects.locations.datasets.fhirStores.getIamPolicy":
 12938  
 12939  type ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall struct {
 12940  	s            *Service
 12941  	resource     string
 12942  	urlParams_   gensupport.URLParams
 12943  	ifNoneMatch_ string
 12944  	ctx_         context.Context
 12945  	header_      http.Header
 12946  }
 12947  
 12948  // GetIamPolicy: Gets the access control policy for a resource.
 12949  // Returns an empty policy if the resource exists and does not have a
 12950  // policy
 12951  // set.
 12952  func (r *ProjectsLocationsDatasetsFhirStoresService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall {
 12953  	c := &ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12954  	c.resource = resource
 12955  	return c
 12956  }
 12957  
 12958  // OptionsRequestedPolicyVersion sets the optional parameter
 12959  // "options.requestedPolicyVersion": The policy format version to be
 12960  // returned.
 12961  // Acceptable values are 0, 1, and 3.
 12962  // If the value is 0, or the field is omitted, policy format version 1
 12963  // will be
 12964  // returned.
 12965  func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall {
 12966  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
 12967  	return c
 12968  }
 12969  
 12970  // Fields allows partial responses to be retrieved. See
 12971  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 12972  // for more information.
 12973  func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall {
 12974  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12975  	return c
 12976  }
 12977  
 12978  // IfNoneMatch sets the optional parameter which makes the operation
 12979  // fail if the object's ETag matches the given value. This is useful for
 12980  // getting updates only after the object has changed since the last
 12981  // request. Use googleapi.IsNotModified to check whether the response
 12982  // error from Do is the result of In-None-Match.
 12983  func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall {
 12984  	c.ifNoneMatch_ = entityTag
 12985  	return c
 12986  }
 12987  
 12988  // Context sets the context to be used in this call's Do method. Any
 12989  // pending HTTP request will be aborted if the provided context is
 12990  // canceled.
 12991  func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall {
 12992  	c.ctx_ = ctx
 12993  	return c
 12994  }
 12995  
 12996  // Header returns an http.Header that can be modified by the caller to
 12997  // add HTTP headers to the request.
 12998  func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) Header() http.Header {
 12999  	if c.header_ == nil {
 13000  		c.header_ = make(http.Header)
 13001  	}
 13002  	return c.header_
 13003  }
 13004  
 13005  func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 13006  	reqHeaders := make(http.Header)
 13007  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 13008  	for k, v := range c.header_ {
 13009  		reqHeaders[k] = v
 13010  	}
 13011  	reqHeaders.Set("User-Agent", c.s.userAgent())
 13012  	if c.ifNoneMatch_ != "" {
 13013  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13014  	}
 13015  	var body io.Reader = nil
 13016  	c.urlParams_.Set("alt", alt)
 13017  	c.urlParams_.Set("prettyPrint", "false")
 13018  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:getIamPolicy")
 13019  	urls += "?" + c.urlParams_.Encode()
 13020  	req, err := http.NewRequest("GET", urls, body)
 13021  	if err != nil {
 13022  		return nil, err
 13023  	}
 13024  	req.Header = reqHeaders
 13025  	googleapi.Expand(req.URL, map[string]string{
 13026  		"resource": c.resource,
 13027  	})
 13028  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13029  }
 13030  
 13031  // Do executes the "healthcare.projects.locations.datasets.fhirStores.getIamPolicy" call.
 13032  // Exactly one of *Policy or error will be non-nil. Any non-2xx status
 13033  // code is an error. Response headers are in either
 13034  // *Policy.ServerResponse.Header or (if a response was returned at all)
 13035  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 13036  // check whether the returned error was because http.StatusNotModified
 13037  // was returned.
 13038  func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
 13039  	gensupport.SetOptions(c.urlParams_, opts...)
 13040  	res, err := c.doRequest("json")
 13041  	if res != nil && res.StatusCode == http.StatusNotModified {
 13042  		if res.Body != nil {
 13043  			res.Body.Close()
 13044  		}
 13045  		return nil, &googleapi.Error{
 13046  			Code:   res.StatusCode,
 13047  			Header: res.Header,
 13048  		}
 13049  	}
 13050  	if err != nil {
 13051  		return nil, err
 13052  	}
 13053  	defer googleapi.CloseBody(res)
 13054  	if err := googleapi.CheckResponse(res); err != nil {
 13055  		return nil, err
 13056  	}
 13057  	ret := &Policy{
 13058  		ServerResponse: googleapi.ServerResponse{
 13059  			Header:         res.Header,
 13060  			HTTPStatusCode: res.StatusCode,
 13061  		},
 13062  	}
 13063  	target := &ret
 13064  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13065  		return nil, err
 13066  	}
 13067  	return ret, nil
 13068  	// {
 13069  	//   "description": "Gets the access control policy for a resource.\nReturns an empty policy if the resource exists and does not have a policy\nset.",
 13070  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}:getIamPolicy",
 13071  	//   "httpMethod": "GET",
 13072  	//   "id": "healthcare.projects.locations.datasets.fhirStores.getIamPolicy",
 13073  	//   "parameterOrder": [
 13074  	//     "resource"
 13075  	//   ],
 13076  	//   "parameters": {
 13077  	//     "options.requestedPolicyVersion": {
 13078  	//       "description": "Optional. The policy format version to be returned.\nAcceptable values are 0, 1, and 3.\nIf the value is 0, or the field is omitted, policy format version 1 will be\nreturned.",
 13079  	//       "format": "int32",
 13080  	//       "location": "query",
 13081  	//       "type": "integer"
 13082  	//     },
 13083  	//     "resource": {
 13084  	//       "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.",
 13085  	//       "location": "path",
 13086  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
 13087  	//       "required": true,
 13088  	//       "type": "string"
 13089  	//     }
 13090  	//   },
 13091  	//   "path": "v1alpha2/{+resource}:getIamPolicy",
 13092  	//   "response": {
 13093  	//     "$ref": "Policy"
 13094  	//   },
 13095  	//   "scopes": [
 13096  	//     "https://www.googleapis.com/auth/cloud-platform"
 13097  	//   ]
 13098  	// }
 13099  
 13100  }
 13101  
 13102  // method id "healthcare.projects.locations.datasets.fhirStores.import":
 13103  
 13104  type ProjectsLocationsDatasetsFhirStoresImportCall struct {
 13105  	s                      *Service
 13106  	name                   string
 13107  	importresourcesrequest *ImportResourcesRequest
 13108  	urlParams_             gensupport.URLParams
 13109  	ctx_                   context.Context
 13110  	header_                http.Header
 13111  }
 13112  
 13113  // Import: Import resources to the FHIR store by loading data from the
 13114  // specified
 13115  // sources. This method is optimized to load large quantities of data
 13116  // using
 13117  // import semantics that ignore some FHIR store configuration options
 13118  // and are
 13119  // not suitable for all use cases. It is primarily intended to load data
 13120  // into
 13121  // an empty FHIR store that is not being used by other clients. In
 13122  // cases
 13123  // where this method is not appropriate, consider using ExecuteBundle
 13124  // to
 13125  // load data.
 13126  //
 13127  // Every resource in the input must contain a client-supplied ID, and
 13128  // will be
 13129  // stored using that ID regardless of the
 13130  // enable_update_create setting on the FHIR
 13131  // store.
 13132  //
 13133  // The import process does not enforce referential integrity, regardless
 13134  // of
 13135  // the
 13136  // disable_referential_integrity
 13137  // setting on the FHIR store. This allows the import of resources
 13138  // with
 13139  // arbitrary interdependencies without considering grouping or ordering,
 13140  // but
 13141  // if the input data contains invalid references or if some resources
 13142  // fail to
 13143  // be imported, the FHIR store might be left in a state that
 13144  // violates
 13145  // referential integrity.
 13146  //
 13147  // If a resource with the specified ID already exists, the most
 13148  // recent
 13149  // version of the resource is overwritten without creating a new
 13150  // historical
 13151  // version, regardless of the
 13152  // disable_resource_versioning
 13153  // setting on the FHIR store. If transient failures occur during the
 13154  // import,
 13155  // it is possible that successfully imported resources will be
 13156  // overwritten
 13157  // more than once.
 13158  //
 13159  // The import operation is idempotent unless the input data contains
 13160  // multiple
 13161  // valid resources with the same ID but different contents. In that
 13162  // case,
 13163  // after the import completes, the store will contain exactly one
 13164  // resource
 13165  // with that ID but there is no ordering guarantee on which version of
 13166  // the
 13167  // contents it will have. The operation result counters do not
 13168  // count
 13169  // duplicate IDs as an error and will count one success for each
 13170  // resource in
 13171  // the input, which might result in a success count larger than the
 13172  // number
 13173  // of resources in the FHIR store. This often occurs when importing
 13174  // data
 13175  // organized in bundles produced by Patient-everything
 13176  // where each bundle contains its own copy of a resource such as
 13177  // Practitioner
 13178  // that might be referred to by many patients.
 13179  //
 13180  // If some resources fail to import, for example due to parsing
 13181  // errors,
 13182  // successfully imported resources are not rolled back.
 13183  //
 13184  // The location and format of the input data is specified by the
 13185  // parameters
 13186  // below. Note that if no format is specified, this method assumes
 13187  // the
 13188  // `BUNDLE` format. When using the `BUNDLE` format this method ignores
 13189  // the
 13190  // `Bundle.type` field, except for the special case of `history`, and
 13191  // does
 13192  // not apply any of the bundle processing semantics for batch or
 13193  // transaction
 13194  // bundles. Unlike in ExecuteBundle, transaction bundles are not
 13195  // executed
 13196  // as a single transaction and bundle-internal references are not
 13197  // rewritten.
 13198  // The bundle is treated as a collection of resources to be written
 13199  // as
 13200  // provided in `Bundle.entry.resource`, ignoring `Bundle.entry.request`.
 13201  // As
 13202  // an example, this allows the import of `searchset` bundles produced by
 13203  // a
 13204  // FHIR search or
 13205  // Patient-everything operation.
 13206  //
 13207  // If history imports are enabled by setting
 13208  // enable_history_import in the FHIR
 13209  // store's configuration, this method can import historical versions
 13210  // of a resource by supplying a bundle of type `history` and using
 13211  // the
 13212  // `BUNDLE` format. The historical versions in the bundle must
 13213  // have
 13214  // `lastUpdated` timestamps, and the resulting resource history on the
 13215  // server
 13216  // will appear as if the versions had been created at those timestamps.
 13217  // If a
 13218  // current or historical version with the supplied resource ID
 13219  // already
 13220  // exists, the bundle is rejected to avoid creating an inconsistent
 13221  // sequence
 13222  // of resource versions.
 13223  //
 13224  // This method returns an Operation that can
 13225  // be used to track the status of the import by
 13226  // calling
 13227  // GetOperation.
 13228  //
 13229  // Immediate fatal errors appear in the
 13230  // error field, errors are also logged
 13231  // to Stackdriver (see
 13232  // [Viewing
 13233  // logs](/healthcare/docs/how-tos/stackdriver-logging)). Otherwise, when
 13234  // the
 13235  // operation finishes, a detailed response of type
 13236  // ImportResourcesResponse
 13237  // is returned in the response field.
 13238  // The metadata field type for this
 13239  // operation is OperationMetadata.
 13240  func (r *ProjectsLocationsDatasetsFhirStoresService) Import(name string, importresourcesrequest *ImportResourcesRequest) *ProjectsLocationsDatasetsFhirStoresImportCall {
 13241  	c := &ProjectsLocationsDatasetsFhirStoresImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13242  	c.name = name
 13243  	c.importresourcesrequest = importresourcesrequest
 13244  	return c
 13245  }
 13246  
 13247  // Fields allows partial responses to be retrieved. See
 13248  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 13249  // for more information.
 13250  func (c *ProjectsLocationsDatasetsFhirStoresImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresImportCall {
 13251  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13252  	return c
 13253  }
 13254  
 13255  // Context sets the context to be used in this call's Do method. Any
 13256  // pending HTTP request will be aborted if the provided context is
 13257  // canceled.
 13258  func (c *ProjectsLocationsDatasetsFhirStoresImportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresImportCall {
 13259  	c.ctx_ = ctx
 13260  	return c
 13261  }
 13262  
 13263  // Header returns an http.Header that can be modified by the caller to
 13264  // add HTTP headers to the request.
 13265  func (c *ProjectsLocationsDatasetsFhirStoresImportCall) Header() http.Header {
 13266  	if c.header_ == nil {
 13267  		c.header_ = make(http.Header)
 13268  	}
 13269  	return c.header_
 13270  }
 13271  
 13272  func (c *ProjectsLocationsDatasetsFhirStoresImportCall) doRequest(alt string) (*http.Response, error) {
 13273  	reqHeaders := make(http.Header)
 13274  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 13275  	for k, v := range c.header_ {
 13276  		reqHeaders[k] = v
 13277  	}
 13278  	reqHeaders.Set("User-Agent", c.s.userAgent())
 13279  	var body io.Reader = nil
 13280  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.importresourcesrequest)
 13281  	if err != nil {
 13282  		return nil, err
 13283  	}
 13284  	reqHeaders.Set("Content-Type", "application/json")
 13285  	c.urlParams_.Set("alt", alt)
 13286  	c.urlParams_.Set("prettyPrint", "false")
 13287  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}:import")
 13288  	urls += "?" + c.urlParams_.Encode()
 13289  	req, err := http.NewRequest("POST", urls, body)
 13290  	if err != nil {
 13291  		return nil, err
 13292  	}
 13293  	req.Header = reqHeaders
 13294  	googleapi.Expand(req.URL, map[string]string{
 13295  		"name": c.name,
 13296  	})
 13297  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13298  }
 13299  
 13300  // Do executes the "healthcare.projects.locations.datasets.fhirStores.import" call.
 13301  // Exactly one of *Operation or error will be non-nil. Any non-2xx
 13302  // status code is an error. Response headers are in either
 13303  // *Operation.ServerResponse.Header or (if a response was returned at
 13304  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
 13305  // to check whether the returned error was because
 13306  // http.StatusNotModified was returned.
 13307  func (c *ProjectsLocationsDatasetsFhirStoresImportCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 13308  	gensupport.SetOptions(c.urlParams_, opts...)
 13309  	res, err := c.doRequest("json")
 13310  	if res != nil && res.StatusCode == http.StatusNotModified {
 13311  		if res.Body != nil {
 13312  			res.Body.Close()
 13313  		}
 13314  		return nil, &googleapi.Error{
 13315  			Code:   res.StatusCode,
 13316  			Header: res.Header,
 13317  		}
 13318  	}
 13319  	if err != nil {
 13320  		return nil, err
 13321  	}
 13322  	defer googleapi.CloseBody(res)
 13323  	if err := googleapi.CheckResponse(res); err != nil {
 13324  		return nil, err
 13325  	}
 13326  	ret := &Operation{
 13327  		ServerResponse: googleapi.ServerResponse{
 13328  			Header:         res.Header,
 13329  			HTTPStatusCode: res.StatusCode,
 13330  		},
 13331  	}
 13332  	target := &ret
 13333  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13334  		return nil, err
 13335  	}
 13336  	return ret, nil
 13337  	// {
 13338  	//   "description": "Import resources to the FHIR store by loading data from the specified\nsources. This method is optimized to load large quantities of data using\nimport semantics that ignore some FHIR store configuration options and are\nnot suitable for all use cases. It is primarily intended to load data into\nan empty FHIR store that is not being used by other clients. In cases\nwhere this method is not appropriate, consider using ExecuteBundle to\nload data.\n\nEvery resource in the input must contain a client-supplied ID, and will be\nstored using that ID regardless of the\nenable_update_create setting on the FHIR\nstore.\n\nThe import process does not enforce referential integrity, regardless of\nthe\ndisable_referential_integrity\nsetting on the FHIR store. This allows the import of resources with\narbitrary interdependencies without considering grouping or ordering, but\nif the input data contains invalid references or if some resources fail to\nbe imported, the FHIR store might be left in a state that violates\nreferential integrity.\n\nIf a resource with the specified ID already exists, the most recent\nversion of the resource is overwritten without creating a new historical\nversion, regardless of the\ndisable_resource_versioning\nsetting on the FHIR store. If transient failures occur during the import,\nit is possible that successfully imported resources will be overwritten\nmore than once.\n\nThe import operation is idempotent unless the input data contains multiple\nvalid resources with the same ID but different contents. In that case,\nafter the import completes, the store will contain exactly one resource\nwith that ID but there is no ordering guarantee on which version of the\ncontents it will have. The operation result counters do not count\nduplicate IDs as an error and will count one success for each resource in\nthe input, which might result in a success count larger than the number\nof resources in the FHIR store. This often occurs when importing data\norganized in bundles produced by Patient-everything\nwhere each bundle contains its own copy of a resource such as Practitioner\nthat might be referred to by many patients.\n\nIf some resources fail to import, for example due to parsing errors,\nsuccessfully imported resources are not rolled back.\n\nThe location and format of the input data is specified by the parameters\nbelow. Note that if no format is specified, this method assumes the\n`BUNDLE` format. When using the `BUNDLE` format this method ignores the\n`Bundle.type` field, except for the special case of `history`, and does\nnot apply any of the bundle processing semantics for batch or transaction\nbundles. Unlike in ExecuteBundle, transaction bundles are not executed\nas a single transaction and bundle-internal references are not rewritten.\nThe bundle is treated as a collection of resources to be written as\nprovided in `Bundle.entry.resource`, ignoring `Bundle.entry.request`. As\nan example, this allows the import of `searchset` bundles produced by a\nFHIR search or\nPatient-everything operation.\n\nIf history imports are enabled by setting\nenable_history_import in the FHIR\nstore's configuration, this method can import historical versions\nof a resource by supplying a bundle of type `history` and using the\n`BUNDLE` format. The historical versions in the bundle must have\n`lastUpdated` timestamps, and the resulting resource history on the server\nwill appear as if the versions had been created at those timestamps. If a\ncurrent or historical version with the supplied resource ID already\nexists, the bundle is rejected to avoid creating an inconsistent sequence\nof resource versions.\n\nThis method returns an Operation that can\nbe used to track the status of the import by calling\nGetOperation.\n\nImmediate fatal errors appear in the\nerror field, errors are also logged\nto Stackdriver (see [Viewing\nlogs](/healthcare/docs/how-tos/stackdriver-logging)). Otherwise, when the\noperation finishes, a detailed response of type ImportResourcesResponse\nis returned in the response field.\nThe metadata field type for this\noperation is OperationMetadata.",
 13339  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}:import",
 13340  	//   "httpMethod": "POST",
 13341  	//   "id": "healthcare.projects.locations.datasets.fhirStores.import",
 13342  	//   "parameterOrder": [
 13343  	//     "name"
 13344  	//   ],
 13345  	//   "parameters": {
 13346  	//     "name": {
 13347  	//       "description": "The name of the FHIR store to import FHIR resources to. The name should be\nin the format of\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}`.",
 13348  	//       "location": "path",
 13349  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
 13350  	//       "required": true,
 13351  	//       "type": "string"
 13352  	//     }
 13353  	//   },
 13354  	//   "path": "v1alpha2/{+name}:import",
 13355  	//   "request": {
 13356  	//     "$ref": "ImportResourcesRequest"
 13357  	//   },
 13358  	//   "response": {
 13359  	//     "$ref": "Operation"
 13360  	//   },
 13361  	//   "scopes": [
 13362  	//     "https://www.googleapis.com/auth/cloud-platform"
 13363  	//   ]
 13364  	// }
 13365  
 13366  }
 13367  
 13368  // method id "healthcare.projects.locations.datasets.fhirStores.list":
 13369  
 13370  type ProjectsLocationsDatasetsFhirStoresListCall struct {
 13371  	s            *Service
 13372  	parent       string
 13373  	urlParams_   gensupport.URLParams
 13374  	ifNoneMatch_ string
 13375  	ctx_         context.Context
 13376  	header_      http.Header
 13377  }
 13378  
 13379  // List: Lists the FHIR stores in the given dataset.
 13380  func (r *ProjectsLocationsDatasetsFhirStoresService) List(parent string) *ProjectsLocationsDatasetsFhirStoresListCall {
 13381  	c := &ProjectsLocationsDatasetsFhirStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13382  	c.parent = parent
 13383  	return c
 13384  }
 13385  
 13386  // Filter sets the optional parameter "filter": Restricts stores
 13387  // returned to those matching a filter.
 13388  // Syntax:
 13389  // https://cloud.google.com/appengine/docs/standard/python/search
 13390  // /query_strings
 13391  // Only filtering on labels is supported, for example
 13392  // `labels.key=value`.
 13393  func (c *ProjectsLocationsDatasetsFhirStoresListCall) Filter(filter string) *ProjectsLocationsDatasetsFhirStoresListCall {
 13394  	c.urlParams_.Set("filter", filter)
 13395  	return c
 13396  }
 13397  
 13398  // PageSize sets the optional parameter "pageSize": Limit on the number
 13399  // of FHIR stores to return in a single response.  If zero
 13400  // the default page size of 100 is used.
 13401  func (c *ProjectsLocationsDatasetsFhirStoresListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsFhirStoresListCall {
 13402  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 13403  	return c
 13404  }
 13405  
 13406  // PageToken sets the optional parameter "pageToken": The
 13407  // next_page_token value returned from the previous List request, if
 13408  // any.
 13409  func (c *ProjectsLocationsDatasetsFhirStoresListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsFhirStoresListCall {
 13410  	c.urlParams_.Set("pageToken", pageToken)
 13411  	return c
 13412  }
 13413  
 13414  // Fields allows partial responses to be retrieved. See
 13415  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 13416  // for more information.
 13417  func (c *ProjectsLocationsDatasetsFhirStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresListCall {
 13418  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13419  	return c
 13420  }
 13421  
 13422  // IfNoneMatch sets the optional parameter which makes the operation
 13423  // fail if the object's ETag matches the given value. This is useful for
 13424  // getting updates only after the object has changed since the last
 13425  // request. Use googleapi.IsNotModified to check whether the response
 13426  // error from Do is the result of In-None-Match.
 13427  func (c *ProjectsLocationsDatasetsFhirStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresListCall {
 13428  	c.ifNoneMatch_ = entityTag
 13429  	return c
 13430  }
 13431  
 13432  // Context sets the context to be used in this call's Do method. Any
 13433  // pending HTTP request will be aborted if the provided context is
 13434  // canceled.
 13435  func (c *ProjectsLocationsDatasetsFhirStoresListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresListCall {
 13436  	c.ctx_ = ctx
 13437  	return c
 13438  }
 13439  
 13440  // Header returns an http.Header that can be modified by the caller to
 13441  // add HTTP headers to the request.
 13442  func (c *ProjectsLocationsDatasetsFhirStoresListCall) Header() http.Header {
 13443  	if c.header_ == nil {
 13444  		c.header_ = make(http.Header)
 13445  	}
 13446  	return c.header_
 13447  }
 13448  
 13449  func (c *ProjectsLocationsDatasetsFhirStoresListCall) doRequest(alt string) (*http.Response, error) {
 13450  	reqHeaders := make(http.Header)
 13451  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 13452  	for k, v := range c.header_ {
 13453  		reqHeaders[k] = v
 13454  	}
 13455  	reqHeaders.Set("User-Agent", c.s.userAgent())
 13456  	if c.ifNoneMatch_ != "" {
 13457  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13458  	}
 13459  	var body io.Reader = nil
 13460  	c.urlParams_.Set("alt", alt)
 13461  	c.urlParams_.Set("prettyPrint", "false")
 13462  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhirStores")
 13463  	urls += "?" + c.urlParams_.Encode()
 13464  	req, err := http.NewRequest("GET", urls, body)
 13465  	if err != nil {
 13466  		return nil, err
 13467  	}
 13468  	req.Header = reqHeaders
 13469  	googleapi.Expand(req.URL, map[string]string{
 13470  		"parent": c.parent,
 13471  	})
 13472  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13473  }
 13474  
 13475  // Do executes the "healthcare.projects.locations.datasets.fhirStores.list" call.
 13476  // Exactly one of *ListFhirStoresResponse or error will be non-nil. Any
 13477  // non-2xx status code is an error. Response headers are in either
 13478  // *ListFhirStoresResponse.ServerResponse.Header or (if a response was
 13479  // returned at all) in error.(*googleapi.Error).Header. Use
 13480  // googleapi.IsNotModified to check whether the returned error was
 13481  // because http.StatusNotModified was returned.
 13482  func (c *ProjectsLocationsDatasetsFhirStoresListCall) Do(opts ...googleapi.CallOption) (*ListFhirStoresResponse, error) {
 13483  	gensupport.SetOptions(c.urlParams_, opts...)
 13484  	res, err := c.doRequest("json")
 13485  	if res != nil && res.StatusCode == http.StatusNotModified {
 13486  		if res.Body != nil {
 13487  			res.Body.Close()
 13488  		}
 13489  		return nil, &googleapi.Error{
 13490  			Code:   res.StatusCode,
 13491  			Header: res.Header,
 13492  		}
 13493  	}
 13494  	if err != nil {
 13495  		return nil, err
 13496  	}
 13497  	defer googleapi.CloseBody(res)
 13498  	if err := googleapi.CheckResponse(res); err != nil {
 13499  		return nil, err
 13500  	}
 13501  	ret := &ListFhirStoresResponse{
 13502  		ServerResponse: googleapi.ServerResponse{
 13503  			Header:         res.Header,
 13504  			HTTPStatusCode: res.StatusCode,
 13505  		},
 13506  	}
 13507  	target := &ret
 13508  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13509  		return nil, err
 13510  	}
 13511  	return ret, nil
 13512  	// {
 13513  	//   "description": "Lists the FHIR stores in the given dataset.",
 13514  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores",
 13515  	//   "httpMethod": "GET",
 13516  	//   "id": "healthcare.projects.locations.datasets.fhirStores.list",
 13517  	//   "parameterOrder": [
 13518  	//     "parent"
 13519  	//   ],
 13520  	//   "parameters": {
 13521  	//     "filter": {
 13522  	//       "description": "Restricts stores returned to those matching a filter. Syntax:\nhttps://cloud.google.com/appengine/docs/standard/python/search/query_strings\nOnly filtering on labels is supported, for example `labels.key=value`.",
 13523  	//       "location": "query",
 13524  	//       "type": "string"
 13525  	//     },
 13526  	//     "pageSize": {
 13527  	//       "description": "Limit on the number of FHIR stores to return in a single response.  If zero\nthe default page size of 100 is used.",
 13528  	//       "format": "int32",
 13529  	//       "location": "query",
 13530  	//       "type": "integer"
 13531  	//     },
 13532  	//     "pageToken": {
 13533  	//       "description": "The next_page_token value returned from the previous List request, if any.",
 13534  	//       "location": "query",
 13535  	//       "type": "string"
 13536  	//     },
 13537  	//     "parent": {
 13538  	//       "description": "Name of the dataset.",
 13539  	//       "location": "path",
 13540  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
 13541  	//       "required": true,
 13542  	//       "type": "string"
 13543  	//     }
 13544  	//   },
 13545  	//   "path": "v1alpha2/{+parent}/fhirStores",
 13546  	//   "response": {
 13547  	//     "$ref": "ListFhirStoresResponse"
 13548  	//   },
 13549  	//   "scopes": [
 13550  	//     "https://www.googleapis.com/auth/cloud-platform"
 13551  	//   ]
 13552  	// }
 13553  
 13554  }
 13555  
 13556  // Pages invokes f for each page of results.
 13557  // A non-nil error returned from f will halt the iteration.
 13558  // The provided context supersedes any context provided to the Context method.
 13559  func (c *ProjectsLocationsDatasetsFhirStoresListCall) Pages(ctx context.Context, f func(*ListFhirStoresResponse) error) error {
 13560  	c.ctx_ = ctx
 13561  	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
 13562  	for {
 13563  		x, err := c.Do()
 13564  		if err != nil {
 13565  			return err
 13566  		}
 13567  		if err := f(x); err != nil {
 13568  			return err
 13569  		}
 13570  		if x.NextPageToken == "" {
 13571  			return nil
 13572  		}
 13573  		c.PageToken(x.NextPageToken)
 13574  	}
 13575  }
 13576  
 13577  // method id "healthcare.projects.locations.datasets.fhirStores.patch":
 13578  
 13579  type ProjectsLocationsDatasetsFhirStoresPatchCall struct {
 13580  	s          *Service
 13581  	name       string
 13582  	fhirstore  *FhirStore
 13583  	urlParams_ gensupport.URLParams
 13584  	ctx_       context.Context
 13585  	header_    http.Header
 13586  }
 13587  
 13588  // Patch: Updates the configuration of the specified FHIR store.
 13589  func (r *ProjectsLocationsDatasetsFhirStoresService) Patch(name string, fhirstore *FhirStore) *ProjectsLocationsDatasetsFhirStoresPatchCall {
 13590  	c := &ProjectsLocationsDatasetsFhirStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13591  	c.name = name
 13592  	c.fhirstore = fhirstore
 13593  	return c
 13594  }
 13595  
 13596  // UpdateMask sets the optional parameter "updateMask": The update mask
 13597  // applies to the resource. For the `FieldMask`
 13598  // definition,
 13599  // see
 13600  // https://developers.google.com/protocol-buffers/docs/re
 13601  // ference/google.protobuf#fieldmask
 13602  func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsFhirStoresPatchCall {
 13603  	c.urlParams_.Set("updateMask", updateMask)
 13604  	return c
 13605  }
 13606  
 13607  // Fields allows partial responses to be retrieved. See
 13608  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 13609  // for more information.
 13610  func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresPatchCall {
 13611  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13612  	return c
 13613  }
 13614  
 13615  // Context sets the context to be used in this call's Do method. Any
 13616  // pending HTTP request will be aborted if the provided context is
 13617  // canceled.
 13618  func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresPatchCall {
 13619  	c.ctx_ = ctx
 13620  	return c
 13621  }
 13622  
 13623  // Header returns an http.Header that can be modified by the caller to
 13624  // add HTTP headers to the request.
 13625  func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) Header() http.Header {
 13626  	if c.header_ == nil {
 13627  		c.header_ = make(http.Header)
 13628  	}
 13629  	return c.header_
 13630  }
 13631  
 13632  func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) doRequest(alt string) (*http.Response, error) {
 13633  	reqHeaders := make(http.Header)
 13634  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 13635  	for k, v := range c.header_ {
 13636  		reqHeaders[k] = v
 13637  	}
 13638  	reqHeaders.Set("User-Agent", c.s.userAgent())
 13639  	var body io.Reader = nil
 13640  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.fhirstore)
 13641  	if err != nil {
 13642  		return nil, err
 13643  	}
 13644  	reqHeaders.Set("Content-Type", "application/json")
 13645  	c.urlParams_.Set("alt", alt)
 13646  	c.urlParams_.Set("prettyPrint", "false")
 13647  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
 13648  	urls += "?" + c.urlParams_.Encode()
 13649  	req, err := http.NewRequest("PATCH", urls, body)
 13650  	if err != nil {
 13651  		return nil, err
 13652  	}
 13653  	req.Header = reqHeaders
 13654  	googleapi.Expand(req.URL, map[string]string{
 13655  		"name": c.name,
 13656  	})
 13657  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13658  }
 13659  
 13660  // Do executes the "healthcare.projects.locations.datasets.fhirStores.patch" call.
 13661  // Exactly one of *FhirStore or error will be non-nil. Any non-2xx
 13662  // status code is an error. Response headers are in either
 13663  // *FhirStore.ServerResponse.Header or (if a response was returned at
 13664  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
 13665  // to check whether the returned error was because
 13666  // http.StatusNotModified was returned.
 13667  func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) Do(opts ...googleapi.CallOption) (*FhirStore, error) {
 13668  	gensupport.SetOptions(c.urlParams_, opts...)
 13669  	res, err := c.doRequest("json")
 13670  	if res != nil && res.StatusCode == http.StatusNotModified {
 13671  		if res.Body != nil {
 13672  			res.Body.Close()
 13673  		}
 13674  		return nil, &googleapi.Error{
 13675  			Code:   res.StatusCode,
 13676  			Header: res.Header,
 13677  		}
 13678  	}
 13679  	if err != nil {
 13680  		return nil, err
 13681  	}
 13682  	defer googleapi.CloseBody(res)
 13683  	if err := googleapi.CheckResponse(res); err != nil {
 13684  		return nil, err
 13685  	}
 13686  	ret := &FhirStore{
 13687  		ServerResponse: googleapi.ServerResponse{
 13688  			Header:         res.Header,
 13689  			HTTPStatusCode: res.StatusCode,
 13690  		},
 13691  	}
 13692  	target := &ret
 13693  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13694  		return nil, err
 13695  	}
 13696  	return ret, nil
 13697  	// {
 13698  	//   "description": "Updates the configuration of the specified FHIR store.",
 13699  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}",
 13700  	//   "httpMethod": "PATCH",
 13701  	//   "id": "healthcare.projects.locations.datasets.fhirStores.patch",
 13702  	//   "parameterOrder": [
 13703  	//     "name"
 13704  	//   ],
 13705  	//   "parameters": {
 13706  	//     "name": {
 13707  	//       "description": "Output only. Resource name of the FHIR store, of the form\n`projects/{project_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}`.",
 13708  	//       "location": "path",
 13709  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
 13710  	//       "required": true,
 13711  	//       "type": "string"
 13712  	//     },
 13713  	//     "updateMask": {
 13714  	//       "description": "The update mask applies to the resource. For the `FieldMask` definition,\nsee\nhttps://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask",
 13715  	//       "format": "google-fieldmask",
 13716  	//       "location": "query",
 13717  	//       "type": "string"
 13718  	//     }
 13719  	//   },
 13720  	//   "path": "v1alpha2/{+name}",
 13721  	//   "request": {
 13722  	//     "$ref": "FhirStore"
 13723  	//   },
 13724  	//   "response": {
 13725  	//     "$ref": "FhirStore"
 13726  	//   },
 13727  	//   "scopes": [
 13728  	//     "https://www.googleapis.com/auth/cloud-platform"
 13729  	//   ]
 13730  	// }
 13731  
 13732  }
 13733  
 13734  // method id "healthcare.projects.locations.datasets.fhirStores.setIamPolicy":
 13735  
 13736  type ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall struct {
 13737  	s                   *Service
 13738  	resource            string
 13739  	setiampolicyrequest *SetIamPolicyRequest
 13740  	urlParams_          gensupport.URLParams
 13741  	ctx_                context.Context
 13742  	header_             http.Header
 13743  }
 13744  
 13745  // SetIamPolicy: Sets the access control policy on the specified
 13746  // resource. Replaces any
 13747  // existing policy.
 13748  func (r *ProjectsLocationsDatasetsFhirStoresService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall {
 13749  	c := &ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13750  	c.resource = resource
 13751  	c.setiampolicyrequest = setiampolicyrequest
 13752  	return c
 13753  }
 13754  
 13755  // Fields allows partial responses to be retrieved. See
 13756  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 13757  // for more information.
 13758  func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall {
 13759  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13760  	return c
 13761  }
 13762  
 13763  // Context sets the context to be used in this call's Do method. Any
 13764  // pending HTTP request will be aborted if the provided context is
 13765  // canceled.
 13766  func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall {
 13767  	c.ctx_ = ctx
 13768  	return c
 13769  }
 13770  
 13771  // Header returns an http.Header that can be modified by the caller to
 13772  // add HTTP headers to the request.
 13773  func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) Header() http.Header {
 13774  	if c.header_ == nil {
 13775  		c.header_ = make(http.Header)
 13776  	}
 13777  	return c.header_
 13778  }
 13779  
 13780  func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 13781  	reqHeaders := make(http.Header)
 13782  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 13783  	for k, v := range c.header_ {
 13784  		reqHeaders[k] = v
 13785  	}
 13786  	reqHeaders.Set("User-Agent", c.s.userAgent())
 13787  	var body io.Reader = nil
 13788  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
 13789  	if err != nil {
 13790  		return nil, err
 13791  	}
 13792  	reqHeaders.Set("Content-Type", "application/json")
 13793  	c.urlParams_.Set("alt", alt)
 13794  	c.urlParams_.Set("prettyPrint", "false")
 13795  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:setIamPolicy")
 13796  	urls += "?" + c.urlParams_.Encode()
 13797  	req, err := http.NewRequest("POST", urls, body)
 13798  	if err != nil {
 13799  		return nil, err
 13800  	}
 13801  	req.Header = reqHeaders
 13802  	googleapi.Expand(req.URL, map[string]string{
 13803  		"resource": c.resource,
 13804  	})
 13805  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13806  }
 13807  
 13808  // Do executes the "healthcare.projects.locations.datasets.fhirStores.setIamPolicy" call.
 13809  // Exactly one of *Policy or error will be non-nil. Any non-2xx status
 13810  // code is an error. Response headers are in either
 13811  // *Policy.ServerResponse.Header or (if a response was returned at all)
 13812  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 13813  // check whether the returned error was because http.StatusNotModified
 13814  // was returned.
 13815  func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
 13816  	gensupport.SetOptions(c.urlParams_, opts...)
 13817  	res, err := c.doRequest("json")
 13818  	if res != nil && res.StatusCode == http.StatusNotModified {
 13819  		if res.Body != nil {
 13820  			res.Body.Close()
 13821  		}
 13822  		return nil, &googleapi.Error{
 13823  			Code:   res.StatusCode,
 13824  			Header: res.Header,
 13825  		}
 13826  	}
 13827  	if err != nil {
 13828  		return nil, err
 13829  	}
 13830  	defer googleapi.CloseBody(res)
 13831  	if err := googleapi.CheckResponse(res); err != nil {
 13832  		return nil, err
 13833  	}
 13834  	ret := &Policy{
 13835  		ServerResponse: googleapi.ServerResponse{
 13836  			Header:         res.Header,
 13837  			HTTPStatusCode: res.StatusCode,
 13838  		},
 13839  	}
 13840  	target := &ret
 13841  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13842  		return nil, err
 13843  	}
 13844  	return ret, nil
 13845  	// {
 13846  	//   "description": "Sets the access control policy on the specified resource. Replaces any\nexisting policy.",
 13847  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}:setIamPolicy",
 13848  	//   "httpMethod": "POST",
 13849  	//   "id": "healthcare.projects.locations.datasets.fhirStores.setIamPolicy",
 13850  	//   "parameterOrder": [
 13851  	//     "resource"
 13852  	//   ],
 13853  	//   "parameters": {
 13854  	//     "resource": {
 13855  	//       "description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.",
 13856  	//       "location": "path",
 13857  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
 13858  	//       "required": true,
 13859  	//       "type": "string"
 13860  	//     }
 13861  	//   },
 13862  	//   "path": "v1alpha2/{+resource}:setIamPolicy",
 13863  	//   "request": {
 13864  	//     "$ref": "SetIamPolicyRequest"
 13865  	//   },
 13866  	//   "response": {
 13867  	//     "$ref": "Policy"
 13868  	//   },
 13869  	//   "scopes": [
 13870  	//     "https://www.googleapis.com/auth/cloud-platform"
 13871  	//   ]
 13872  	// }
 13873  
 13874  }
 13875  
 13876  // method id "healthcare.projects.locations.datasets.fhirStores.testIamPermissions":
 13877  
 13878  type ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall struct {
 13879  	s                         *Service
 13880  	resource                  string
 13881  	testiampermissionsrequest *TestIamPermissionsRequest
 13882  	urlParams_                gensupport.URLParams
 13883  	ctx_                      context.Context
 13884  	header_                   http.Header
 13885  }
 13886  
 13887  // TestIamPermissions: Returns permissions that a caller has on the
 13888  // specified resource.
 13889  // If the resource does not exist, this will return an empty set
 13890  // of
 13891  // permissions, not a NOT_FOUND error.
 13892  //
 13893  // Note: This operation is designed to be used for building
 13894  // permission-aware
 13895  // UIs and command-line tools, not for authorization checking. This
 13896  // operation
 13897  // may "fail open" without warning.
 13898  func (r *ProjectsLocationsDatasetsFhirStoresService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall {
 13899  	c := &ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13900  	c.resource = resource
 13901  	c.testiampermissionsrequest = testiampermissionsrequest
 13902  	return c
 13903  }
 13904  
 13905  // Fields allows partial responses to be retrieved. See
 13906  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 13907  // for more information.
 13908  func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall {
 13909  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13910  	return c
 13911  }
 13912  
 13913  // Context sets the context to be used in this call's Do method. Any
 13914  // pending HTTP request will be aborted if the provided context is
 13915  // canceled.
 13916  func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall {
 13917  	c.ctx_ = ctx
 13918  	return c
 13919  }
 13920  
 13921  // Header returns an http.Header that can be modified by the caller to
 13922  // add HTTP headers to the request.
 13923  func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) Header() http.Header {
 13924  	if c.header_ == nil {
 13925  		c.header_ = make(http.Header)
 13926  	}
 13927  	return c.header_
 13928  }
 13929  
 13930  func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
 13931  	reqHeaders := make(http.Header)
 13932  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 13933  	for k, v := range c.header_ {
 13934  		reqHeaders[k] = v
 13935  	}
 13936  	reqHeaders.Set("User-Agent", c.s.userAgent())
 13937  	var body io.Reader = nil
 13938  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
 13939  	if err != nil {
 13940  		return nil, err
 13941  	}
 13942  	reqHeaders.Set("Content-Type", "application/json")
 13943  	c.urlParams_.Set("alt", alt)
 13944  	c.urlParams_.Set("prettyPrint", "false")
 13945  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:testIamPermissions")
 13946  	urls += "?" + c.urlParams_.Encode()
 13947  	req, err := http.NewRequest("POST", urls, body)
 13948  	if err != nil {
 13949  		return nil, err
 13950  	}
 13951  	req.Header = reqHeaders
 13952  	googleapi.Expand(req.URL, map[string]string{
 13953  		"resource": c.resource,
 13954  	})
 13955  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13956  }
 13957  
 13958  // Do executes the "healthcare.projects.locations.datasets.fhirStores.testIamPermissions" call.
 13959  // Exactly one of *TestIamPermissionsResponse or error will be non-nil.
 13960  // Any non-2xx status code is an error. Response headers are in either
 13961  // *TestIamPermissionsResponse.ServerResponse.Header or (if a response
 13962  // was returned at all) in error.(*googleapi.Error).Header. Use
 13963  // googleapi.IsNotModified to check whether the returned error was
 13964  // because http.StatusNotModified was returned.
 13965  func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
 13966  	gensupport.SetOptions(c.urlParams_, opts...)
 13967  	res, err := c.doRequest("json")
 13968  	if res != nil && res.StatusCode == http.StatusNotModified {
 13969  		if res.Body != nil {
 13970  			res.Body.Close()
 13971  		}
 13972  		return nil, &googleapi.Error{
 13973  			Code:   res.StatusCode,
 13974  			Header: res.Header,
 13975  		}
 13976  	}
 13977  	if err != nil {
 13978  		return nil, err
 13979  	}
 13980  	defer googleapi.CloseBody(res)
 13981  	if err := googleapi.CheckResponse(res); err != nil {
 13982  		return nil, err
 13983  	}
 13984  	ret := &TestIamPermissionsResponse{
 13985  		ServerResponse: googleapi.ServerResponse{
 13986  			Header:         res.Header,
 13987  			HTTPStatusCode: res.StatusCode,
 13988  		},
 13989  	}
 13990  	target := &ret
 13991  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13992  		return nil, err
 13993  	}
 13994  	return ret, nil
 13995  	// {
 13996  	//   "description": "Returns permissions that a caller has on the specified resource.\nIf the resource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building permission-aware\nUIs and command-line tools, not for authorization checking. This operation\nmay \"fail open\" without warning.",
 13997  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}:testIamPermissions",
 13998  	//   "httpMethod": "POST",
 13999  	//   "id": "healthcare.projects.locations.datasets.fhirStores.testIamPermissions",
 14000  	//   "parameterOrder": [
 14001  	//     "resource"
 14002  	//   ],
 14003  	//   "parameters": {
 14004  	//     "resource": {
 14005  	//       "description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.",
 14006  	//       "location": "path",
 14007  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
 14008  	//       "required": true,
 14009  	//       "type": "string"
 14010  	//     }
 14011  	//   },
 14012  	//   "path": "v1alpha2/{+resource}:testIamPermissions",
 14013  	//   "request": {
 14014  	//     "$ref": "TestIamPermissionsRequest"
 14015  	//   },
 14016  	//   "response": {
 14017  	//     "$ref": "TestIamPermissionsResponse"
 14018  	//   },
 14019  	//   "scopes": [
 14020  	//     "https://www.googleapis.com/auth/cloud-platform"
 14021  	//   ]
 14022  	// }
 14023  
 14024  }
 14025  
 14026  // method id "healthcare.projects.locations.datasets.fhirStores.fhir.Observation-lastn":
 14027  
 14028  type ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall struct {
 14029  	s            *Service
 14030  	parent       string
 14031  	urlParams_   gensupport.URLParams
 14032  	ifNoneMatch_ string
 14033  	ctx_         context.Context
 14034  	header_      http.Header
 14035  }
 14036  
 14037  // ObservationLastn: Retrieves the N most recent `Observation` resources
 14038  // for a subject matching
 14039  // search criteria specified as query parameters, grouped
 14040  // by
 14041  // `Observation.code`, sorted from most recent to oldest.
 14042  //
 14043  // Implements the FHIR extended operation
 14044  // Observation-lastn
 14045  // ([STU3](http://hl7.org/implement/standards/fhir/STU3
 14046  // /observation-operations.html#lastn)).
 14047  //
 14048  // DSTU2 doesn't define the Observation-lastn method, but the server
 14049  // supports
 14050  // it the same way it supports STU3.
 14051  //
 14052  // Search terms are provided as query parameters following the same
 14053  // pattern as
 14054  // the search method. This operation accepts an additional
 14055  // query parameter `max`, which specifies N, the maximum number
 14056  // of
 14057  // Observations to return from each group, with a default of 1.
 14058  //
 14059  // On success, the response body will contain a JSON-encoded
 14060  // representation
 14061  // of a `Bundle` resource of type `searchset`, containing the results of
 14062  // the
 14063  // operation.
 14064  // Errors generated by the FHIR store will contain a
 14065  // JSON-encoded
 14066  // `OperationOutcome` resource describing the reason for the error. If
 14067  // the
 14068  // request cannot be mapped to a valid API method on a FHIR store, a
 14069  // generic
 14070  // GCP error might be returned instead.
 14071  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ObservationLastn(parent string) *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall {
 14072  	c := &ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14073  	c.parent = parent
 14074  	return c
 14075  }
 14076  
 14077  // Fields allows partial responses to be retrieved. See
 14078  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 14079  // for more information.
 14080  func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall {
 14081  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14082  	return c
 14083  }
 14084  
 14085  // IfNoneMatch sets the optional parameter which makes the operation
 14086  // fail if the object's ETag matches the given value. This is useful for
 14087  // getting updates only after the object has changed since the last
 14088  // request. Use googleapi.IsNotModified to check whether the response
 14089  // error from Do is the result of In-None-Match.
 14090  func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall {
 14091  	c.ifNoneMatch_ = entityTag
 14092  	return c
 14093  }
 14094  
 14095  // Context sets the context to be used in this call's Do method. Any
 14096  // pending HTTP request will be aborted if the provided context is
 14097  // canceled.
 14098  func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall {
 14099  	c.ctx_ = ctx
 14100  	return c
 14101  }
 14102  
 14103  // Header returns an http.Header that can be modified by the caller to
 14104  // add HTTP headers to the request.
 14105  func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) Header() http.Header {
 14106  	if c.header_ == nil {
 14107  		c.header_ = make(http.Header)
 14108  	}
 14109  	return c.header_
 14110  }
 14111  
 14112  func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) doRequest(alt string) (*http.Response, error) {
 14113  	reqHeaders := make(http.Header)
 14114  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 14115  	for k, v := range c.header_ {
 14116  		reqHeaders[k] = v
 14117  	}
 14118  	reqHeaders.Set("User-Agent", c.s.userAgent())
 14119  	if c.ifNoneMatch_ != "" {
 14120  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14121  	}
 14122  	var body io.Reader = nil
 14123  	c.urlParams_.Set("alt", alt)
 14124  	c.urlParams_.Set("prettyPrint", "false")
 14125  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhir/Observation/$lastn")
 14126  	urls += "?" + c.urlParams_.Encode()
 14127  	req, err := http.NewRequest("GET", urls, body)
 14128  	if err != nil {
 14129  		return nil, err
 14130  	}
 14131  	req.Header = reqHeaders
 14132  	googleapi.Expand(req.URL, map[string]string{
 14133  		"parent": c.parent,
 14134  	})
 14135  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14136  }
 14137  
 14138  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Observation-lastn" call.
 14139  func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 14140  	gensupport.SetOptions(c.urlParams_, opts...)
 14141  	return c.doRequest("")
 14142  	// {
 14143  	//   "description": "Retrieves the N most recent `Observation` resources for a subject matching\nsearch criteria specified as query parameters, grouped by\n`Observation.code`, sorted from most recent to oldest.\n\nImplements the FHIR extended operation Observation-lastn\n([STU3](http://hl7.org/implement/standards/fhir/STU3/observation-operations.html#lastn)).\n\nDSTU2 doesn't define the Observation-lastn method, but the server supports\nit the same way it supports STU3.\n\nSearch terms are provided as query parameters following the same pattern as\nthe search method. This operation accepts an additional\nquery parameter `max`, which specifies N, the maximum number of\nObservations to return from each group, with a default of 1.\n\nOn success, the response body will contain a JSON-encoded representation\nof a `Bundle` resource of type `searchset`, containing the results of the\noperation.\nErrors generated by the FHIR store will contain a JSON-encoded\n`OperationOutcome` resource describing the reason for the error. If the\nrequest cannot be mapped to a valid API method on a FHIR store, a generic\nGCP error might be returned instead.",
 14144  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/Observation/$lastn",
 14145  	//   "httpMethod": "GET",
 14146  	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.Observation-lastn",
 14147  	//   "parameterOrder": [
 14148  	//     "parent"
 14149  	//   ],
 14150  	//   "parameters": {
 14151  	//     "parent": {
 14152  	//       "description": "Name of the FHIR store to retrieve resources from.",
 14153  	//       "location": "path",
 14154  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
 14155  	//       "required": true,
 14156  	//       "type": "string"
 14157  	//     }
 14158  	//   },
 14159  	//   "path": "v1alpha2/{+parent}/fhir/Observation/$lastn",
 14160  	//   "response": {
 14161  	//     "$ref": "HttpBody"
 14162  	//   },
 14163  	//   "scopes": [
 14164  	//     "https://www.googleapis.com/auth/cloud-platform"
 14165  	//   ]
 14166  	// }
 14167  
 14168  }
 14169  
 14170  // method id "healthcare.projects.locations.datasets.fhirStores.fhir.Patient-everything":
 14171  
 14172  type ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall struct {
 14173  	s            *Service
 14174  	name         string
 14175  	urlParams_   gensupport.URLParams
 14176  	ifNoneMatch_ string
 14177  	ctx_         context.Context
 14178  	header_      http.Header
 14179  }
 14180  
 14181  // PatientEverything: Retrieves all the resources directly referenced by
 14182  // a patient, as well as
 14183  // all of the resources in the patient compartment.
 14184  //
 14185  // Implements the FHIR extended operation
 14186  // Patient-everything
 14187  // ([DSTU2](http://hl7.org/implement/standards/fhir/DS
 14188  // TU2/patient-operations.html#everything),
 14189  // [STU3](http://hl7.org/impleme
 14190  // nt/standards/fhir/STU3/patient-operations.html#everything)).
 14191  //
 14192  // On success, the response body will contain a JSON-encoded
 14193  // representation
 14194  // of a `Bundle` resource of type `searchset`, containing the results of
 14195  // the
 14196  // operation.
 14197  // Errors generated by the FHIR store will contain a
 14198  // JSON-encoded
 14199  // `OperationOutcome` resource describing the reason for the error. If
 14200  // the
 14201  // request cannot be mapped to a valid API method on a FHIR store, a
 14202  // generic
 14203  // GCP error might be returned instead.
 14204  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) PatientEverything(name string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
 14205  	c := &ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14206  	c.name = name
 14207  	return c
 14208  }
 14209  
 14210  // Count sets the optional parameter "_count": Maximum number of
 14211  // resources in a page. Defaults to 100.
 14212  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Count(Count int64) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
 14213  	c.urlParams_.Set("_count", fmt.Sprint(Count))
 14214  	return c
 14215  }
 14216  
 14217  // End sets the optional parameter "end": The response includes records
 14218  // prior to the end date. If no end date is
 14219  // provided, all records subsequent to the start date are in scope.
 14220  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) End(end string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
 14221  	c.urlParams_.Set("end", end)
 14222  	return c
 14223  }
 14224  
 14225  // PageToken sets the optional parameter "pageToken": Used to retrieve
 14226  // the next or previous page of results
 14227  // when using pagination. Value should be set to the value of page_token
 14228  // set
 14229  // in next or previous page links' url. Next and previous page are
 14230  // returned
 14231  // in the response bundle's links field, where `link.relation` is
 14232  // "previous"
 14233  // or "next".
 14234  //
 14235  // Omit `page_token` if no previous request has been made.
 14236  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) PageToken(pageToken string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
 14237  	c.urlParams_.Set("pageToken", pageToken)
 14238  	return c
 14239  }
 14240  
 14241  // Start sets the optional parameter "start": The response includes
 14242  // records subsequent to the start date. If no start
 14243  // date is provided, all records prior to the end date are in scope.
 14244  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Start(start string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
 14245  	c.urlParams_.Set("start", start)
 14246  	return c
 14247  }
 14248  
 14249  // Fields allows partial responses to be retrieved. See
 14250  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 14251  // for more information.
 14252  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
 14253  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14254  	return c
 14255  }
 14256  
 14257  // IfNoneMatch sets the optional parameter which makes the operation
 14258  // fail if the object's ETag matches the given value. This is useful for
 14259  // getting updates only after the object has changed since the last
 14260  // request. Use googleapi.IsNotModified to check whether the response
 14261  // error from Do is the result of In-None-Match.
 14262  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
 14263  	c.ifNoneMatch_ = entityTag
 14264  	return c
 14265  }
 14266  
 14267  // Context sets the context to be used in this call's Do method. Any
 14268  // pending HTTP request will be aborted if the provided context is
 14269  // canceled.
 14270  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
 14271  	c.ctx_ = ctx
 14272  	return c
 14273  }
 14274  
 14275  // Header returns an http.Header that can be modified by the caller to
 14276  // add HTTP headers to the request.
 14277  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Header() http.Header {
 14278  	if c.header_ == nil {
 14279  		c.header_ = make(http.Header)
 14280  	}
 14281  	return c.header_
 14282  }
 14283  
 14284  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) doRequest(alt string) (*http.Response, error) {
 14285  	reqHeaders := make(http.Header)
 14286  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 14287  	for k, v := range c.header_ {
 14288  		reqHeaders[k] = v
 14289  	}
 14290  	reqHeaders.Set("User-Agent", c.s.userAgent())
 14291  	if c.ifNoneMatch_ != "" {
 14292  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14293  	}
 14294  	var body io.Reader = nil
 14295  	c.urlParams_.Set("alt", alt)
 14296  	c.urlParams_.Set("prettyPrint", "false")
 14297  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}/$everything")
 14298  	urls += "?" + c.urlParams_.Encode()
 14299  	req, err := http.NewRequest("GET", urls, body)
 14300  	if err != nil {
 14301  		return nil, err
 14302  	}
 14303  	req.Header = reqHeaders
 14304  	googleapi.Expand(req.URL, map[string]string{
 14305  		"name": c.name,
 14306  	})
 14307  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14308  }
 14309  
 14310  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Patient-everything" call.
 14311  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 14312  	gensupport.SetOptions(c.urlParams_, opts...)
 14313  	return c.doRequest("")
 14314  	// {
 14315  	//   "description": "Retrieves all the resources directly referenced by a patient, as well as\nall of the resources in the patient compartment.\n\nImplements the FHIR extended operation Patient-everything\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/patient-operations.html#everything),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/patient-operations.html#everything)).\n\nOn success, the response body will contain a JSON-encoded representation\nof a `Bundle` resource of type `searchset`, containing the results of the\noperation.\nErrors generated by the FHIR store will contain a JSON-encoded\n`OperationOutcome` resource describing the reason for the error. If the\nrequest cannot be mapped to a valid API method on a FHIR store, a generic\nGCP error might be returned instead.",
 14316  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/Patient/{PatientId}/$everything",
 14317  	//   "httpMethod": "GET",
 14318  	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.Patient-everything",
 14319  	//   "parameterOrder": [
 14320  	//     "name"
 14321  	//   ],
 14322  	//   "parameters": {
 14323  	//     "_count": {
 14324  	//       "description": "Maximum number of resources in a page. Defaults to 100.",
 14325  	//       "format": "int32",
 14326  	//       "location": "query",
 14327  	//       "type": "integer"
 14328  	//     },
 14329  	//     "end": {
 14330  	//       "description": "The response includes records prior to the end date. If no end date is\nprovided, all records subsequent to the start date are in scope.",
 14331  	//       "location": "query",
 14332  	//       "type": "string"
 14333  	//     },
 14334  	//     "name": {
 14335  	//       "description": "Name of the `Patient` resource for which the information is required.",
 14336  	//       "location": "path",
 14337  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+/fhir/Patient/[^/]+$",
 14338  	//       "required": true,
 14339  	//       "type": "string"
 14340  	//     },
 14341  	//     "pageToken": {
 14342  	//       "description": "Used to retrieve the next or previous page of results\nwhen using pagination. Value should be set to the value of page_token set\nin next or previous page links' url. Next and previous page are returned\nin the response bundle's links field, where `link.relation` is \"previous\"\nor \"next\".\n\nOmit `page_token` if no previous request has been made.",
 14343  	//       "location": "query",
 14344  	//       "type": "string"
 14345  	//     },
 14346  	//     "start": {
 14347  	//       "description": "The response includes records subsequent to the start date. If no start\ndate is provided, all records prior to the end date are in scope.",
 14348  	//       "location": "query",
 14349  	//       "type": "string"
 14350  	//     }
 14351  	//   },
 14352  	//   "path": "v1alpha2/{+name}/$everything",
 14353  	//   "response": {
 14354  	//     "$ref": "HttpBody"
 14355  	//   },
 14356  	//   "scopes": [
 14357  	//     "https://www.googleapis.com/auth/cloud-platform"
 14358  	//   ]
 14359  	// }
 14360  
 14361  }
 14362  
 14363  // method id "healthcare.projects.locations.datasets.fhirStores.fhir.Resource-purge":
 14364  
 14365  type ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall struct {
 14366  	s          *Service
 14367  	name       string
 14368  	urlParams_ gensupport.URLParams
 14369  	ctx_       context.Context
 14370  	header_    http.Header
 14371  }
 14372  
 14373  // ResourcePurge: Deletes all the historical versions of a resource
 14374  // (excluding the current
 14375  // version) from the FHIR store. To remove all versions of a resource,
 14376  // first
 14377  // delete the current version and then call this method.
 14378  //
 14379  // This is not a FHIR standard operation.
 14380  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ResourcePurge(name string) *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall {
 14381  	c := &ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14382  	c.name = name
 14383  	return c
 14384  }
 14385  
 14386  // Fields allows partial responses to be retrieved. See
 14387  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 14388  // for more information.
 14389  func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall {
 14390  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14391  	return c
 14392  }
 14393  
 14394  // Context sets the context to be used in this call's Do method. Any
 14395  // pending HTTP request will be aborted if the provided context is
 14396  // canceled.
 14397  func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall {
 14398  	c.ctx_ = ctx
 14399  	return c
 14400  }
 14401  
 14402  // Header returns an http.Header that can be modified by the caller to
 14403  // add HTTP headers to the request.
 14404  func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) Header() http.Header {
 14405  	if c.header_ == nil {
 14406  		c.header_ = make(http.Header)
 14407  	}
 14408  	return c.header_
 14409  }
 14410  
 14411  func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) doRequest(alt string) (*http.Response, error) {
 14412  	reqHeaders := make(http.Header)
 14413  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 14414  	for k, v := range c.header_ {
 14415  		reqHeaders[k] = v
 14416  	}
 14417  	reqHeaders.Set("User-Agent", c.s.userAgent())
 14418  	var body io.Reader = nil
 14419  	c.urlParams_.Set("alt", alt)
 14420  	c.urlParams_.Set("prettyPrint", "false")
 14421  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}/$purge")
 14422  	urls += "?" + c.urlParams_.Encode()
 14423  	req, err := http.NewRequest("DELETE", urls, body)
 14424  	if err != nil {
 14425  		return nil, err
 14426  	}
 14427  	req.Header = reqHeaders
 14428  	googleapi.Expand(req.URL, map[string]string{
 14429  		"name": c.name,
 14430  	})
 14431  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14432  }
 14433  
 14434  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Resource-purge" call.
 14435  // Exactly one of *Empty or error will be non-nil. Any non-2xx status
 14436  // code is an error. Response headers are in either
 14437  // *Empty.ServerResponse.Header or (if a response was returned at all)
 14438  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 14439  // check whether the returned error was because http.StatusNotModified
 14440  // was returned.
 14441  func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 14442  	gensupport.SetOptions(c.urlParams_, opts...)
 14443  	res, err := c.doRequest("json")
 14444  	if res != nil && res.StatusCode == http.StatusNotModified {
 14445  		if res.Body != nil {
 14446  			res.Body.Close()
 14447  		}
 14448  		return nil, &googleapi.Error{
 14449  			Code:   res.StatusCode,
 14450  			Header: res.Header,
 14451  		}
 14452  	}
 14453  	if err != nil {
 14454  		return nil, err
 14455  	}
 14456  	defer googleapi.CloseBody(res)
 14457  	if err := googleapi.CheckResponse(res); err != nil {
 14458  		return nil, err
 14459  	}
 14460  	ret := &Empty{
 14461  		ServerResponse: googleapi.ServerResponse{
 14462  			Header:         res.Header,
 14463  			HTTPStatusCode: res.StatusCode,
 14464  		},
 14465  	}
 14466  	target := &ret
 14467  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14468  		return nil, err
 14469  	}
 14470  	return ret, nil
 14471  	// {
 14472  	//   "description": "Deletes all the historical versions of a resource (excluding the current\nversion) from the FHIR store. To remove all versions of a resource, first\ndelete the current version and then call this method.\n\nThis is not a FHIR standard operation.",
 14473  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}/$purge",
 14474  	//   "httpMethod": "DELETE",
 14475  	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.Resource-purge",
 14476  	//   "parameterOrder": [
 14477  	//     "name"
 14478  	//   ],
 14479  	//   "parameters": {
 14480  	//     "name": {
 14481  	//       "description": "The name of the resource to purge.",
 14482  	//       "location": "path",
 14483  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+/fhir/[^/]+/[^/]+$",
 14484  	//       "required": true,
 14485  	//       "type": "string"
 14486  	//     }
 14487  	//   },
 14488  	//   "path": "v1alpha2/{+name}/$purge",
 14489  	//   "response": {
 14490  	//     "$ref": "Empty"
 14491  	//   },
 14492  	//   "scopes": [
 14493  	//     "https://www.googleapis.com/auth/cloud-platform"
 14494  	//   ]
 14495  	// }
 14496  
 14497  }
 14498  
 14499  // method id "healthcare.projects.locations.datasets.fhirStores.fhir.capabilities":
 14500  
 14501  type ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall struct {
 14502  	s            *Service
 14503  	name         string
 14504  	urlParams_   gensupport.URLParams
 14505  	ifNoneMatch_ string
 14506  	ctx_         context.Context
 14507  	header_      http.Header
 14508  }
 14509  
 14510  // Capabilities: Gets the FHIR capability
 14511  // statement
 14512  // ([STU3](http://hl7.org/implement/standards/fhir/STU3/capabil
 14513  // itystatement.html)),
 14514  // or the
 14515  // [conformance
 14516  // statement](http://hl7.org/implement/standards/fhir/DSTU2/
 14517  // conformance.html)
 14518  // in the DSTU2 case for the store, which contains a description
 14519  // of
 14520  // functionality supported by the server.
 14521  //
 14522  // Implements the FHIR standard capabilities
 14523  // interaction
 14524  // ([STU3](http://hl7.org/implement/standards/fhir/STU3/http.
 14525  // html#capabilities)),
 14526  // or the
 14527  // [conformance
 14528  // interaction](http://hl7.org/implement/standards/fhir/DSTU
 14529  // 2/http.html#conformance)
 14530  // in the DSTU2 case.
 14531  //
 14532  // On success, the response body will contain a JSON-encoded
 14533  // representation
 14534  // of a `CapabilityStatement` resource.
 14535  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Capabilities(name string) *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall {
 14536  	c := &ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14537  	c.name = name
 14538  	return c
 14539  }
 14540  
 14541  // Fields allows partial responses to be retrieved. See
 14542  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 14543  // for more information.
 14544  func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall {
 14545  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14546  	return c
 14547  }
 14548  
 14549  // IfNoneMatch sets the optional parameter which makes the operation
 14550  // fail if the object's ETag matches the given value. This is useful for
 14551  // getting updates only after the object has changed since the last
 14552  // request. Use googleapi.IsNotModified to check whether the response
 14553  // error from Do is the result of In-None-Match.
 14554  func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall {
 14555  	c.ifNoneMatch_ = entityTag
 14556  	return c
 14557  }
 14558  
 14559  // Context sets the context to be used in this call's Do method. Any
 14560  // pending HTTP request will be aborted if the provided context is
 14561  // canceled.
 14562  func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall {
 14563  	c.ctx_ = ctx
 14564  	return c
 14565  }
 14566  
 14567  // Header returns an http.Header that can be modified by the caller to
 14568  // add HTTP headers to the request.
 14569  func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) Header() http.Header {
 14570  	if c.header_ == nil {
 14571  		c.header_ = make(http.Header)
 14572  	}
 14573  	return c.header_
 14574  }
 14575  
 14576  func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) doRequest(alt string) (*http.Response, error) {
 14577  	reqHeaders := make(http.Header)
 14578  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 14579  	for k, v := range c.header_ {
 14580  		reqHeaders[k] = v
 14581  	}
 14582  	reqHeaders.Set("User-Agent", c.s.userAgent())
 14583  	if c.ifNoneMatch_ != "" {
 14584  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14585  	}
 14586  	var body io.Reader = nil
 14587  	c.urlParams_.Set("alt", alt)
 14588  	c.urlParams_.Set("prettyPrint", "false")
 14589  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}/fhir/metadata")
 14590  	urls += "?" + c.urlParams_.Encode()
 14591  	req, err := http.NewRequest("GET", urls, body)
 14592  	if err != nil {
 14593  		return nil, err
 14594  	}
 14595  	req.Header = reqHeaders
 14596  	googleapi.Expand(req.URL, map[string]string{
 14597  		"name": c.name,
 14598  	})
 14599  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14600  }
 14601  
 14602  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.capabilities" call.
 14603  func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 14604  	gensupport.SetOptions(c.urlParams_, opts...)
 14605  	return c.doRequest("")
 14606  	// {
 14607  	//   "description": "Gets the FHIR capability statement\n([STU3](http://hl7.org/implement/standards/fhir/STU3/capabilitystatement.html)),\nor the [conformance\nstatement](http://hl7.org/implement/standards/fhir/DSTU2/conformance.html)\nin the DSTU2 case for the store, which contains a description of\nfunctionality supported by the server.\n\nImplements the FHIR standard capabilities interaction\n([STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#capabilities)),\nor the [conformance\ninteraction](http://hl7.org/implement/standards/fhir/DSTU2/http.html#conformance)\nin the DSTU2 case.\n\nOn success, the response body will contain a JSON-encoded representation\nof a `CapabilityStatement` resource.",
 14608  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/metadata",
 14609  	//   "httpMethod": "GET",
 14610  	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.capabilities",
 14611  	//   "parameterOrder": [
 14612  	//     "name"
 14613  	//   ],
 14614  	//   "parameters": {
 14615  	//     "name": {
 14616  	//       "description": "Name of the FHIR store to retrieve the capabilities for.",
 14617  	//       "location": "path",
 14618  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
 14619  	//       "required": true,
 14620  	//       "type": "string"
 14621  	//     }
 14622  	//   },
 14623  	//   "path": "v1alpha2/{+name}/fhir/metadata",
 14624  	//   "response": {
 14625  	//     "$ref": "HttpBody"
 14626  	//   },
 14627  	//   "scopes": [
 14628  	//     "https://www.googleapis.com/auth/cloud-platform"
 14629  	//   ]
 14630  	// }
 14631  
 14632  }
 14633  
 14634  // method id "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalDelete":
 14635  
 14636  type ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall struct {
 14637  	s          *Service
 14638  	parent     string
 14639  	type_      string
 14640  	urlParams_ gensupport.URLParams
 14641  	ctx_       context.Context
 14642  	header_    http.Header
 14643  }
 14644  
 14645  // ConditionalDelete: Deletes FHIR resources that match a search
 14646  // query.
 14647  //
 14648  // Implements the FHIR standard conditional delete
 14649  // interaction
 14650  // ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt
 14651  // p.html#2.1.0.12.1),
 14652  // [STU3](http://hl7.org/implement/standards/fhir/STU
 14653  // 3/http.html#2.21.0.13.1)).
 14654  // If multiple resources match, all of them will be deleted.
 14655  //
 14656  // Search terms are provided as query parameters following the same
 14657  // pattern as
 14658  // the search method.
 14659  //
 14660  // Note: Unless resource versioning is disabled by setting
 14661  // the
 14662  // disable_resource_versioning flag
 14663  // on the FHIR store, the deleted resources will be moved to a
 14664  // history
 14665  // repository that can still be retrieved through vread
 14666  // and related methods, unless they are removed by the
 14667  // purge method.
 14668  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConditionalDelete(parent string, type_ string) *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall {
 14669  	c := &ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14670  	c.parent = parent
 14671  	c.type_ = type_
 14672  	return c
 14673  }
 14674  
 14675  // Fields allows partial responses to be retrieved. See
 14676  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 14677  // for more information.
 14678  func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall {
 14679  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14680  	return c
 14681  }
 14682  
 14683  // Context sets the context to be used in this call's Do method. Any
 14684  // pending HTTP request will be aborted if the provided context is
 14685  // canceled.
 14686  func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall {
 14687  	c.ctx_ = ctx
 14688  	return c
 14689  }
 14690  
 14691  // Header returns an http.Header that can be modified by the caller to
 14692  // add HTTP headers to the request.
 14693  func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) Header() http.Header {
 14694  	if c.header_ == nil {
 14695  		c.header_ = make(http.Header)
 14696  	}
 14697  	return c.header_
 14698  }
 14699  
 14700  func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) doRequest(alt string) (*http.Response, error) {
 14701  	reqHeaders := make(http.Header)
 14702  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 14703  	for k, v := range c.header_ {
 14704  		reqHeaders[k] = v
 14705  	}
 14706  	reqHeaders.Set("User-Agent", c.s.userAgent())
 14707  	var body io.Reader = nil
 14708  	c.urlParams_.Set("alt", alt)
 14709  	c.urlParams_.Set("prettyPrint", "false")
 14710  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhir/{+type}")
 14711  	urls += "?" + c.urlParams_.Encode()
 14712  	req, err := http.NewRequest("DELETE", urls, body)
 14713  	if err != nil {
 14714  		return nil, err
 14715  	}
 14716  	req.Header = reqHeaders
 14717  	googleapi.Expand(req.URL, map[string]string{
 14718  		"parent": c.parent,
 14719  		"type":   c.type_,
 14720  	})
 14721  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14722  }
 14723  
 14724  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalDelete" call.
 14725  // Exactly one of *Empty or error will be non-nil. Any non-2xx status
 14726  // code is an error. Response headers are in either
 14727  // *Empty.ServerResponse.Header or (if a response was returned at all)
 14728  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 14729  // check whether the returned error was because http.StatusNotModified
 14730  // was returned.
 14731  func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 14732  	gensupport.SetOptions(c.urlParams_, opts...)
 14733  	res, err := c.doRequest("json")
 14734  	if res != nil && res.StatusCode == http.StatusNotModified {
 14735  		if res.Body != nil {
 14736  			res.Body.Close()
 14737  		}
 14738  		return nil, &googleapi.Error{
 14739  			Code:   res.StatusCode,
 14740  			Header: res.Header,
 14741  		}
 14742  	}
 14743  	if err != nil {
 14744  		return nil, err
 14745  	}
 14746  	defer googleapi.CloseBody(res)
 14747  	if err := googleapi.CheckResponse(res); err != nil {
 14748  		return nil, err
 14749  	}
 14750  	ret := &Empty{
 14751  		ServerResponse: googleapi.ServerResponse{
 14752  			Header:         res.Header,
 14753  			HTTPStatusCode: res.StatusCode,
 14754  		},
 14755  	}
 14756  	target := &ret
 14757  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14758  		return nil, err
 14759  	}
 14760  	return ret, nil
 14761  	// {
 14762  	//   "description": "Deletes FHIR resources that match a search query.\n\nImplements the FHIR standard conditional delete interaction\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.12.1),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.13.1)).\nIf multiple resources match, all of them will be deleted.\n\nSearch terms are provided as query parameters following the same pattern as\nthe search method.\n\nNote: Unless resource versioning is disabled by setting the\ndisable_resource_versioning flag\non the FHIR store, the deleted resources will be moved to a history\nrepository that can still be retrieved through vread\nand related methods, unless they are removed by the\npurge method.",
 14763  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}",
 14764  	//   "httpMethod": "DELETE",
 14765  	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalDelete",
 14766  	//   "parameterOrder": [
 14767  	//     "parent",
 14768  	//     "type"
 14769  	//   ],
 14770  	//   "parameters": {
 14771  	//     "parent": {
 14772  	//       "description": "The name of the FHIR store this resource belongs to.",
 14773  	//       "location": "path",
 14774  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
 14775  	//       "required": true,
 14776  	//       "type": "string"
 14777  	//     },
 14778  	//     "type": {
 14779  	//       "description": "The FHIR resource type to delete, such as Patient or Observation. For a\ncomplete list, see the FHIR Resource Index\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)).",
 14780  	//       "location": "path",
 14781  	//       "pattern": "^[^/]+$",
 14782  	//       "required": true,
 14783  	//       "type": "string"
 14784  	//     }
 14785  	//   },
 14786  	//   "path": "v1alpha2/{+parent}/fhir/{+type}",
 14787  	//   "response": {
 14788  	//     "$ref": "Empty"
 14789  	//   },
 14790  	//   "scopes": [
 14791  	//     "https://www.googleapis.com/auth/cloud-platform"
 14792  	//   ]
 14793  	// }
 14794  
 14795  }
 14796  
 14797  // method id "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalPatch":
 14798  
 14799  type ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall struct {
 14800  	s          *Service
 14801  	parent     string
 14802  	type_      string
 14803  	body_      io.Reader
 14804  	urlParams_ gensupport.URLParams
 14805  	ctx_       context.Context
 14806  	header_    http.Header
 14807  }
 14808  
 14809  // ConditionalPatch: If a resource is found based on the search criteria
 14810  // specified in the query
 14811  // parameters, updates part of that resource by applying the
 14812  // operations
 14813  // specified in a [JSON Patch](http://jsonpatch.com/)
 14814  // document.
 14815  //
 14816  // Implements the FHIR standard conditional patch
 14817  // interaction
 14818  // ([STU3](http://hl7.org/implement/standards/fhir/STU3/http.
 14819  // html#patch)).
 14820  //
 14821  // DSTU2 doesn't define a conditional patch method, but the server
 14822  // supports it
 14823  // in the same way it supports STU3.
 14824  //
 14825  // Search terms are provided as query parameters following the same
 14826  // pattern as
 14827  // the search method.
 14828  //
 14829  // If the search criteria identify more than one match, the request
 14830  // will
 14831  // return a `412 Precondition Failed` error.
 14832  //
 14833  // The request body must contain a JSON Patch document, and the
 14834  // request
 14835  // headers must contain `Content-Type: application/json-patch+json`.
 14836  //
 14837  // On success, the response body will contain a JSON-encoded
 14838  // representation
 14839  // of the updated resource, including the server-assigned version
 14840  // ID.
 14841  // Errors generated by the FHIR store will contain a
 14842  // JSON-encoded
 14843  // `OperationOutcome` resource describing the reason for the error. If
 14844  // the
 14845  // request cannot be mapped to a valid API method on a FHIR store, a
 14846  // generic
 14847  // GCP error might be returned instead.
 14848  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConditionalPatch(parent string, type_ string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall {
 14849  	c := &ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14850  	c.parent = parent
 14851  	c.type_ = type_
 14852  	c.body_ = body_
 14853  	return c
 14854  }
 14855  
 14856  // Fields allows partial responses to be retrieved. See
 14857  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 14858  // for more information.
 14859  func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall {
 14860  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14861  	return c
 14862  }
 14863  
 14864  // Context sets the context to be used in this call's Do method. Any
 14865  // pending HTTP request will be aborted if the provided context is
 14866  // canceled.
 14867  func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall {
 14868  	c.ctx_ = ctx
 14869  	return c
 14870  }
 14871  
 14872  // Header returns an http.Header that can be modified by the caller to
 14873  // add HTTP headers to the request.
 14874  func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) Header() http.Header {
 14875  	if c.header_ == nil {
 14876  		c.header_ = make(http.Header)
 14877  	}
 14878  	return c.header_
 14879  }
 14880  
 14881  func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) doRequest(alt string) (*http.Response, error) {
 14882  	reqHeaders := make(http.Header)
 14883  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 14884  	for k, v := range c.header_ {
 14885  		reqHeaders[k] = v
 14886  	}
 14887  	reqHeaders.Set("User-Agent", c.s.userAgent())
 14888  	var body io.Reader = nil
 14889  	body = c.body_
 14890  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhir/{+type}")
 14891  	urls += "?" + c.urlParams_.Encode()
 14892  	req, err := http.NewRequest("PATCH", urls, body)
 14893  	if err != nil {
 14894  		return nil, err
 14895  	}
 14896  	req.Header = reqHeaders
 14897  	googleapi.Expand(req.URL, map[string]string{
 14898  		"parent": c.parent,
 14899  		"type":   c.type_,
 14900  	})
 14901  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14902  }
 14903  
 14904  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalPatch" call.
 14905  func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 14906  	gensupport.SetOptions(c.urlParams_, opts...)
 14907  	return c.doRequest("")
 14908  	// {
 14909  	//   "description": "If a resource is found based on the search criteria specified in the query\nparameters, updates part of that resource by applying the operations\nspecified in a [JSON Patch](http://jsonpatch.com/) document.\n\nImplements the FHIR standard conditional patch interaction\n([STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#patch)).\n\nDSTU2 doesn't define a conditional patch method, but the server supports it\nin the same way it supports STU3.\n\nSearch terms are provided as query parameters following the same pattern as\nthe search method.\n\nIf the search criteria identify more than one match, the request will\nreturn a `412 Precondition Failed` error.\n\nThe request body must contain a JSON Patch document, and the request\nheaders must contain `Content-Type: application/json-patch+json`.\n\nOn success, the response body will contain a JSON-encoded representation\nof the updated resource, including the server-assigned version ID.\nErrors generated by the FHIR store will contain a JSON-encoded\n`OperationOutcome` resource describing the reason for the error. If the\nrequest cannot be mapped to a valid API method on a FHIR store, a generic\nGCP error might be returned instead.",
 14910  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}",
 14911  	//   "httpMethod": "PATCH",
 14912  	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalPatch",
 14913  	//   "parameterOrder": [
 14914  	//     "parent",
 14915  	//     "type"
 14916  	//   ],
 14917  	//   "parameters": {
 14918  	//     "parent": {
 14919  	//       "description": "The name of the FHIR store this resource belongs to.",
 14920  	//       "location": "path",
 14921  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
 14922  	//       "required": true,
 14923  	//       "type": "string"
 14924  	//     },
 14925  	//     "type": {
 14926  	//       "description": "The FHIR resource type to update, such as Patient or Observation. For a\ncomplete list, see the FHIR Resource Index\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)).",
 14927  	//       "location": "path",
 14928  	//       "pattern": "^[^/]+$",
 14929  	//       "required": true,
 14930  	//       "type": "string"
 14931  	//     }
 14932  	//   },
 14933  	//   "path": "v1alpha2/{+parent}/fhir/{+type}",
 14934  	//   "request": {
 14935  	//     "$ref": "HttpBody"
 14936  	//   },
 14937  	//   "response": {
 14938  	//     "$ref": "HttpBody"
 14939  	//   },
 14940  	//   "scopes": [
 14941  	//     "https://www.googleapis.com/auth/cloud-platform"
 14942  	//   ]
 14943  	// }
 14944  
 14945  }
 14946  
 14947  // method id "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalUpdate":
 14948  
 14949  type ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall struct {
 14950  	s          *Service
 14951  	parent     string
 14952  	type_      string
 14953  	body_      io.Reader
 14954  	urlParams_ gensupport.URLParams
 14955  	ctx_       context.Context
 14956  	header_    http.Header
 14957  }
 14958  
 14959  // ConditionalUpdate: If a resource is found based on the search
 14960  // criteria specified in the query
 14961  // parameters, updates the entire contents of that resource.
 14962  //
 14963  // Implements the FHIR standard conditional update
 14964  // interaction
 14965  // ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt
 14966  // p.html#2.1.0.10.2),
 14967  // [STU3](http://hl7.org/implement/standards/fhir/STU
 14968  // 3/http.html#cond-update)).
 14969  //
 14970  // Search terms are provided as query parameters following the same
 14971  // pattern as
 14972  // the search method.
 14973  //
 14974  // If the search criteria identify more than one match, the request
 14975  // will
 14976  // return a `412 Precondition Failed` error.
 14977  // If the search criteria identify zero matches, and the supplied
 14978  // resource
 14979  // body contains an `id`, and the FHIR store has
 14980  // enable_update_create set, creates the
 14981  // resource with the client-specified ID. If the search criteria
 14982  // identify zero
 14983  // matches, and the supplied resource body does not contain an `id`,
 14984  // the
 14985  // resource will be created with a server-assigned ID as per the
 14986  // create method.
 14987  //
 14988  // The request body must contain a JSON-encoded FHIR resource, and the
 14989  // request
 14990  // headers must contain `Content-Type: application/fhir+json`.
 14991  //
 14992  // On success, the response body will contain a JSON-encoded
 14993  // representation
 14994  // of the updated resource, including the server-assigned version
 14995  // ID.
 14996  // Errors generated by the FHIR store will contain a
 14997  // JSON-encoded
 14998  // `OperationOutcome` resource describing the reason for the error. If
 14999  // the
 15000  // request cannot be mapped to a valid API method on a FHIR store, a
 15001  // generic
 15002  // GCP error might be returned instead.
 15003  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConditionalUpdate(parent string, type_ string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall {
 15004  	c := &ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15005  	c.parent = parent
 15006  	c.type_ = type_
 15007  	c.body_ = body_
 15008  	return c
 15009  }
 15010  
 15011  // Fields allows partial responses to be retrieved. See
 15012  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 15013  // for more information.
 15014  func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall {
 15015  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15016  	return c
 15017  }
 15018  
 15019  // Context sets the context to be used in this call's Do method. Any
 15020  // pending HTTP request will be aborted if the provided context is
 15021  // canceled.
 15022  func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall {
 15023  	c.ctx_ = ctx
 15024  	return c
 15025  }
 15026  
 15027  // Header returns an http.Header that can be modified by the caller to
 15028  // add HTTP headers to the request.
 15029  func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) Header() http.Header {
 15030  	if c.header_ == nil {
 15031  		c.header_ = make(http.Header)
 15032  	}
 15033  	return c.header_
 15034  }
 15035  
 15036  func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) doRequest(alt string) (*http.Response, error) {
 15037  	reqHeaders := make(http.Header)
 15038  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 15039  	for k, v := range c.header_ {
 15040  		reqHeaders[k] = v
 15041  	}
 15042  	reqHeaders.Set("User-Agent", c.s.userAgent())
 15043  	var body io.Reader = nil
 15044  	body = c.body_
 15045  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhir/{+type}")
 15046  	urls += "?" + c.urlParams_.Encode()
 15047  	req, err := http.NewRequest("PUT", urls, body)
 15048  	if err != nil {
 15049  		return nil, err
 15050  	}
 15051  	req.Header = reqHeaders
 15052  	googleapi.Expand(req.URL, map[string]string{
 15053  		"parent": c.parent,
 15054  		"type":   c.type_,
 15055  	})
 15056  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15057  }
 15058  
 15059  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalUpdate" call.
 15060  func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 15061  	gensupport.SetOptions(c.urlParams_, opts...)
 15062  	return c.doRequest("")
 15063  	// {
 15064  	//   "description": "If a resource is found based on the search criteria specified in the query\nparameters, updates the entire contents of that resource.\n\nImplements the FHIR standard conditional update interaction\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.10.2),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#cond-update)).\n\nSearch terms are provided as query parameters following the same pattern as\nthe search method.\n\nIf the search criteria identify more than one match, the request will\nreturn a `412 Precondition Failed` error.\nIf the search criteria identify zero matches, and the supplied resource\nbody contains an `id`, and the FHIR store has\nenable_update_create set, creates the\nresource with the client-specified ID. If the search criteria identify zero\nmatches, and the supplied resource body does not contain an `id`, the\nresource will be created with a server-assigned ID as per the\ncreate method.\n\nThe request body must contain a JSON-encoded FHIR resource, and the request\nheaders must contain `Content-Type: application/fhir+json`.\n\nOn success, the response body will contain a JSON-encoded representation\nof the updated resource, including the server-assigned version ID.\nErrors generated by the FHIR store will contain a JSON-encoded\n`OperationOutcome` resource describing the reason for the error. If the\nrequest cannot be mapped to a valid API method on a FHIR store, a generic\nGCP error might be returned instead.",
 15065  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}",
 15066  	//   "httpMethod": "PUT",
 15067  	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalUpdate",
 15068  	//   "parameterOrder": [
 15069  	//     "parent",
 15070  	//     "type"
 15071  	//   ],
 15072  	//   "parameters": {
 15073  	//     "parent": {
 15074  	//       "description": "The name of the FHIR store this resource belongs to.",
 15075  	//       "location": "path",
 15076  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
 15077  	//       "required": true,
 15078  	//       "type": "string"
 15079  	//     },
 15080  	//     "type": {
 15081  	//       "description": "The FHIR resource type to update, such as Patient or Observation. For a\ncomplete list, see the FHIR Resource Index\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)).\nMust match the resource type in the provided content.",
 15082  	//       "location": "path",
 15083  	//       "pattern": "^[^/]+$",
 15084  	//       "required": true,
 15085  	//       "type": "string"
 15086  	//     }
 15087  	//   },
 15088  	//   "path": "v1alpha2/{+parent}/fhir/{+type}",
 15089  	//   "request": {
 15090  	//     "$ref": "HttpBody"
 15091  	//   },
 15092  	//   "response": {
 15093  	//     "$ref": "HttpBody"
 15094  	//   },
 15095  	//   "scopes": [
 15096  	//     "https://www.googleapis.com/auth/cloud-platform"
 15097  	//   ]
 15098  	// }
 15099  
 15100  }
 15101  
 15102  // method id "healthcare.projects.locations.datasets.fhirStores.fhir.create":
 15103  
 15104  type ProjectsLocationsDatasetsFhirStoresFhirCreateCall struct {
 15105  	s          *Service
 15106  	parent     string
 15107  	type_      string
 15108  	body_      io.Reader
 15109  	urlParams_ gensupport.URLParams
 15110  	ctx_       context.Context
 15111  	header_    http.Header
 15112  }
 15113  
 15114  // Create: Creates a FHIR resource.
 15115  //
 15116  // Implements the FHIR standard create
 15117  // interaction
 15118  // ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt
 15119  // p.html#create),
 15120  // [STU3](http://hl7.org/implement/standards/fhir/STU3/ht
 15121  // tp.html#create)),
 15122  // which creates a new resource with a server-assigned resource
 15123  // ID.
 15124  //
 15125  // Also supports the FHIR standard conditional create
 15126  // interaction
 15127  // ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt
 15128  // p.html#ccreate),
 15129  // [STU3](http://hl7.org/implement/standards/fhir/STU3/h
 15130  // ttp.html#ccreate)),
 15131  // specified by supplying an `If-None-Exist` header containing a FHIR
 15132  // search
 15133  // query. If no resources match this search query, the server processes
 15134  // the
 15135  // create operation as normal.
 15136  //
 15137  // The request body must contain a JSON-encoded FHIR resource, and the
 15138  // request
 15139  // headers must contain `Content-Type: application/fhir+json`.
 15140  //
 15141  // On success, the response body will contain a JSON-encoded
 15142  // representation
 15143  // of the resource as it was created on the server, including
 15144  // the
 15145  // server-assigned resource ID and version ID.
 15146  // Errors generated by the FHIR store will contain a
 15147  // JSON-encoded
 15148  // `OperationOutcome` resource describing the reason for the error. If
 15149  // the
 15150  // request cannot be mapped to a valid API method on a FHIR store, a
 15151  // generic
 15152  // GCP error might be returned instead.
 15153  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Create(parent string, type_ string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirCreateCall {
 15154  	c := &ProjectsLocationsDatasetsFhirStoresFhirCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15155  	c.parent = parent
 15156  	c.type_ = type_
 15157  	c.body_ = body_
 15158  	return c
 15159  }
 15160  
 15161  // Fields allows partial responses to be retrieved. See
 15162  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 15163  // for more information.
 15164  func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirCreateCall {
 15165  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15166  	return c
 15167  }
 15168  
 15169  // Context sets the context to be used in this call's Do method. Any
 15170  // pending HTTP request will be aborted if the provided context is
 15171  // canceled.
 15172  func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirCreateCall {
 15173  	c.ctx_ = ctx
 15174  	return c
 15175  }
 15176  
 15177  // Header returns an http.Header that can be modified by the caller to
 15178  // add HTTP headers to the request.
 15179  func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) Header() http.Header {
 15180  	if c.header_ == nil {
 15181  		c.header_ = make(http.Header)
 15182  	}
 15183  	return c.header_
 15184  }
 15185  
 15186  func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) doRequest(alt string) (*http.Response, error) {
 15187  	reqHeaders := make(http.Header)
 15188  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 15189  	for k, v := range c.header_ {
 15190  		reqHeaders[k] = v
 15191  	}
 15192  	reqHeaders.Set("User-Agent", c.s.userAgent())
 15193  	var body io.Reader = nil
 15194  	body = c.body_
 15195  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhir/{+type}")
 15196  	urls += "?" + c.urlParams_.Encode()
 15197  	req, err := http.NewRequest("POST", urls, body)
 15198  	if err != nil {
 15199  		return nil, err
 15200  	}
 15201  	req.Header = reqHeaders
 15202  	googleapi.Expand(req.URL, map[string]string{
 15203  		"parent": c.parent,
 15204  		"type":   c.type_,
 15205  	})
 15206  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15207  }
 15208  
 15209  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.create" call.
 15210  func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 15211  	gensupport.SetOptions(c.urlParams_, opts...)
 15212  	return c.doRequest("")
 15213  	// {
 15214  	//   "description": "Creates a FHIR resource.\n\nImplements the FHIR standard create interaction\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#create),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#create)),\nwhich creates a new resource with a server-assigned resource ID.\n\nAlso supports the FHIR standard conditional create interaction\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#ccreate),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#ccreate)),\nspecified by supplying an `If-None-Exist` header containing a FHIR search\nquery. If no resources match this search query, the server processes the\ncreate operation as normal.\n\nThe request body must contain a JSON-encoded FHIR resource, and the request\nheaders must contain `Content-Type: application/fhir+json`.\n\nOn success, the response body will contain a JSON-encoded representation\nof the resource as it was created on the server, including the\nserver-assigned resource ID and version ID.\nErrors generated by the FHIR store will contain a JSON-encoded\n`OperationOutcome` resource describing the reason for the error. If the\nrequest cannot be mapped to a valid API method on a FHIR store, a generic\nGCP error might be returned instead.",
 15215  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}",
 15216  	//   "httpMethod": "POST",
 15217  	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.create",
 15218  	//   "parameterOrder": [
 15219  	//     "parent",
 15220  	//     "type"
 15221  	//   ],
 15222  	//   "parameters": {
 15223  	//     "parent": {
 15224  	//       "description": "The name of the FHIR store this resource belongs to.",
 15225  	//       "location": "path",
 15226  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
 15227  	//       "required": true,
 15228  	//       "type": "string"
 15229  	//     },
 15230  	//     "type": {
 15231  	//       "description": "The FHIR resource type to create, such as Patient or Observation. For a\ncomplete list, see the FHIR Resource Index\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)).\nMust match the resource type in the provided content.",
 15232  	//       "location": "path",
 15233  	//       "pattern": "^[^/]+$",
 15234  	//       "required": true,
 15235  	//       "type": "string"
 15236  	//     }
 15237  	//   },
 15238  	//   "path": "v1alpha2/{+parent}/fhir/{+type}",
 15239  	//   "request": {
 15240  	//     "$ref": "HttpBody"
 15241  	//   },
 15242  	//   "response": {
 15243  	//     "$ref": "HttpBody"
 15244  	//   },
 15245  	//   "scopes": [
 15246  	//     "https://www.googleapis.com/auth/cloud-platform"
 15247  	//   ]
 15248  	// }
 15249  
 15250  }
 15251  
 15252  // method id "healthcare.projects.locations.datasets.fhirStores.fhir.delete":
 15253  
 15254  type ProjectsLocationsDatasetsFhirStoresFhirDeleteCall struct {
 15255  	s          *Service
 15256  	name       string
 15257  	urlParams_ gensupport.URLParams
 15258  	ctx_       context.Context
 15259  	header_    http.Header
 15260  }
 15261  
 15262  // Delete: Deletes a FHIR resource.
 15263  //
 15264  // Implements the FHIR standard delete
 15265  // interaction
 15266  // ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt
 15267  // p.html#delete),
 15268  // [STU3](http://hl7.org/implement/standards/fhir/STU3/ht
 15269  // tp.html#delete)).
 15270  //
 15271  // Note: Unless resource versioning is disabled by setting
 15272  // the
 15273  // disable_resource_versioning flag
 15274  // on the FHIR store, the deleted resources will be moved to a
 15275  // history
 15276  // repository that can still be retrieved through vread
 15277  // and related methods, unless they are removed by the
 15278  // purge method.
 15279  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Delete(name string) *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall {
 15280  	c := &ProjectsLocationsDatasetsFhirStoresFhirDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15281  	c.name = name
 15282  	return c
 15283  }
 15284  
 15285  // Fields allows partial responses to be retrieved. See
 15286  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 15287  // for more information.
 15288  func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall {
 15289  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15290  	return c
 15291  }
 15292  
 15293  // Context sets the context to be used in this call's Do method. Any
 15294  // pending HTTP request will be aborted if the provided context is
 15295  // canceled.
 15296  func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall {
 15297  	c.ctx_ = ctx
 15298  	return c
 15299  }
 15300  
 15301  // Header returns an http.Header that can be modified by the caller to
 15302  // add HTTP headers to the request.
 15303  func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) Header() http.Header {
 15304  	if c.header_ == nil {
 15305  		c.header_ = make(http.Header)
 15306  	}
 15307  	return c.header_
 15308  }
 15309  
 15310  func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) doRequest(alt string) (*http.Response, error) {
 15311  	reqHeaders := make(http.Header)
 15312  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 15313  	for k, v := range c.header_ {
 15314  		reqHeaders[k] = v
 15315  	}
 15316  	reqHeaders.Set("User-Agent", c.s.userAgent())
 15317  	var body io.Reader = nil
 15318  	c.urlParams_.Set("alt", alt)
 15319  	c.urlParams_.Set("prettyPrint", "false")
 15320  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
 15321  	urls += "?" + c.urlParams_.Encode()
 15322  	req, err := http.NewRequest("DELETE", urls, body)
 15323  	if err != nil {
 15324  		return nil, err
 15325  	}
 15326  	req.Header = reqHeaders
 15327  	googleapi.Expand(req.URL, map[string]string{
 15328  		"name": c.name,
 15329  	})
 15330  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15331  }
 15332  
 15333  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.delete" call.
 15334  func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 15335  	gensupport.SetOptions(c.urlParams_, opts...)
 15336  	return c.doRequest("")
 15337  	// {
 15338  	//   "description": "Deletes a FHIR resource.\n\nImplements the FHIR standard delete interaction\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#delete),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#delete)).\n\nNote: Unless resource versioning is disabled by setting the\ndisable_resource_versioning flag\non the FHIR store, the deleted resources will be moved to a history\nrepository that can still be retrieved through vread\nand related methods, unless they are removed by the\npurge method.",
 15339  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}",
 15340  	//   "httpMethod": "DELETE",
 15341  	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.delete",
 15342  	//   "parameterOrder": [
 15343  	//     "name"
 15344  	//   ],
 15345  	//   "parameters": {
 15346  	//     "name": {
 15347  	//       "description": "The name of the resource to delete.",
 15348  	//       "location": "path",
 15349  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+/fhir/[^/]+/[^/]+$",
 15350  	//       "required": true,
 15351  	//       "type": "string"
 15352  	//     }
 15353  	//   },
 15354  	//   "path": "v1alpha2/{+name}",
 15355  	//   "response": {
 15356  	//     "$ref": "HttpBody"
 15357  	//   },
 15358  	//   "scopes": [
 15359  	//     "https://www.googleapis.com/auth/cloud-platform"
 15360  	//   ]
 15361  	// }
 15362  
 15363  }
 15364  
 15365  // method id "healthcare.projects.locations.datasets.fhirStores.fhir.executeBundle":
 15366  
 15367  type ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall struct {
 15368  	s          *Service
 15369  	parent     string
 15370  	body_      io.Reader
 15371  	urlParams_ gensupport.URLParams
 15372  	ctx_       context.Context
 15373  	header_    http.Header
 15374  }
 15375  
 15376  // ExecuteBundle: Executes all the requests in the given
 15377  // Bundle.
 15378  //
 15379  // Implements the FHIR standard batch/transaction
 15380  // interaction
 15381  // ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt
 15382  // p.html#transaction),
 15383  // [STU3](http://hl7.org/implement/standards/fhir/ST
 15384  // U3/http.html#transaction)).
 15385  //
 15386  // Supports all interactions within a bundle, except search. This
 15387  // method
 15388  // accepts Bundles of type `batch` and `transaction`, processing
 15389  // them
 15390  // according to the batch processing
 15391  // rules
 15392  // ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html
 15393  // #2.1.0.16.1),
 15394  // [STU3](http://hl7.org/implement/standards/fhir/STU3/http
 15395  // .html#2.21.0.17.1))
 15396  // and transaction processing
 15397  // rules
 15398  // ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html
 15399  // #2.1.0.16.2),
 15400  // [STU3](http://hl7.org/implement/standards/fhir/STU3/http
 15401  // .html#2.21.0.17.2)).
 15402  //
 15403  // The request body must contain a JSON-encoded FHIR `Bundle` resource,
 15404  // and
 15405  // the request headers must contain `Content-Type:
 15406  // application/fhir+json`.
 15407  //
 15408  // For a batch bundle or a successful transaction the response body
 15409  // will
 15410  // contain a JSON-encoded representation of a `Bundle` resource of
 15411  // type
 15412  // `batch-response` or `transaction-response` containing one entry for
 15413  // each
 15414  // entry in the request, with the outcome of processing the entry. In
 15415  // the
 15416  // case of an error for a transaction bundle, the response body will
 15417  // contain
 15418  // a JSON-encoded `OperationOutcome` resource describing the reason for
 15419  // the
 15420  // error. If the request cannot be mapped to a valid API method on a
 15421  // FHIR
 15422  // store, a generic GCP error might be returned instead.
 15423  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ExecuteBundle(parent string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall {
 15424  	c := &ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15425  	c.parent = parent
 15426  	c.body_ = body_
 15427  	return c
 15428  }
 15429  
 15430  // Fields allows partial responses to be retrieved. See
 15431  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 15432  // for more information.
 15433  func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall {
 15434  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15435  	return c
 15436  }
 15437  
 15438  // Context sets the context to be used in this call's Do method. Any
 15439  // pending HTTP request will be aborted if the provided context is
 15440  // canceled.
 15441  func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall {
 15442  	c.ctx_ = ctx
 15443  	return c
 15444  }
 15445  
 15446  // Header returns an http.Header that can be modified by the caller to
 15447  // add HTTP headers to the request.
 15448  func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) Header() http.Header {
 15449  	if c.header_ == nil {
 15450  		c.header_ = make(http.Header)
 15451  	}
 15452  	return c.header_
 15453  }
 15454  
 15455  func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) doRequest(alt string) (*http.Response, error) {
 15456  	reqHeaders := make(http.Header)
 15457  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 15458  	for k, v := range c.header_ {
 15459  		reqHeaders[k] = v
 15460  	}
 15461  	reqHeaders.Set("User-Agent", c.s.userAgent())
 15462  	var body io.Reader = nil
 15463  	body = c.body_
 15464  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhir")
 15465  	urls += "?" + c.urlParams_.Encode()
 15466  	req, err := http.NewRequest("POST", urls, body)
 15467  	if err != nil {
 15468  		return nil, err
 15469  	}
 15470  	req.Header = reqHeaders
 15471  	googleapi.Expand(req.URL, map[string]string{
 15472  		"parent": c.parent,
 15473  	})
 15474  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15475  }
 15476  
 15477  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.executeBundle" call.
 15478  func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 15479  	gensupport.SetOptions(c.urlParams_, opts...)
 15480  	return c.doRequest("")
 15481  	// {
 15482  	//   "description": "Executes all the requests in the given Bundle.\n\nImplements the FHIR standard batch/transaction interaction\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#transaction),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#transaction)).\n\nSupports all interactions within a bundle, except search. This method\naccepts Bundles of type `batch` and `transaction`, processing them\naccording to the batch processing rules\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.16.1),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.1))\nand transaction processing rules\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.16.2),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.2)).\n\nThe request body must contain a JSON-encoded FHIR `Bundle` resource, and\nthe request headers must contain `Content-Type: application/fhir+json`.\n\nFor a batch bundle or a successful transaction the response body will\ncontain a JSON-encoded representation of a `Bundle` resource of type\n`batch-response` or `transaction-response` containing one entry for each\nentry in the request, with the outcome of processing the entry. In the\ncase of an error for a transaction bundle, the response body will contain\na JSON-encoded `OperationOutcome` resource describing the reason for the\nerror. If the request cannot be mapped to a valid API method on a FHIR\nstore, a generic GCP error might be returned instead.",
 15483  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir",
 15484  	//   "httpMethod": "POST",
 15485  	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.executeBundle",
 15486  	//   "parameterOrder": [
 15487  	//     "parent"
 15488  	//   ],
 15489  	//   "parameters": {
 15490  	//     "parent": {
 15491  	//       "description": "Name of the FHIR store in which this bundle will be executed.",
 15492  	//       "location": "path",
 15493  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
 15494  	//       "required": true,
 15495  	//       "type": "string"
 15496  	//     }
 15497  	//   },
 15498  	//   "path": "v1alpha2/{+parent}/fhir",
 15499  	//   "request": {
 15500  	//     "$ref": "HttpBody"
 15501  	//   },
 15502  	//   "response": {
 15503  	//     "$ref": "HttpBody"
 15504  	//   },
 15505  	//   "scopes": [
 15506  	//     "https://www.googleapis.com/auth/cloud-platform"
 15507  	//   ]
 15508  	// }
 15509  
 15510  }
 15511  
 15512  // method id "healthcare.projects.locations.datasets.fhirStores.fhir.history":
 15513  
 15514  type ProjectsLocationsDatasetsFhirStoresFhirHistoryCall struct {
 15515  	s            *Service
 15516  	name         string
 15517  	urlParams_   gensupport.URLParams
 15518  	ifNoneMatch_ string
 15519  	ctx_         context.Context
 15520  	header_      http.Header
 15521  }
 15522  
 15523  // History: Lists all the versions of a resource (including the current
 15524  // version and
 15525  // deleted versions) from the FHIR store.
 15526  //
 15527  // Implements the per-resource form of the FHIR standard history
 15528  // interaction
 15529  // ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt
 15530  // p.html#history),
 15531  // [STU3](http://hl7.org/implement/standards/fhir/STU3/h
 15532  // ttp.html#history)).
 15533  //
 15534  // On success, the response body will contain a JSON-encoded
 15535  // representation
 15536  // of a `Bundle` resource of type `history`, containing the version
 15537  // history
 15538  // sorted from most recent to oldest versions.
 15539  // Errors generated by the FHIR store will contain a
 15540  // JSON-encoded
 15541  // `OperationOutcome` resource describing the reason for the error. If
 15542  // the
 15543  // request cannot be mapped to a valid API method on a FHIR store, a
 15544  // generic
 15545  // GCP error might be returned instead.
 15546  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) History(name string) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
 15547  	c := &ProjectsLocationsDatasetsFhirStoresFhirHistoryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15548  	c.name = name
 15549  	return c
 15550  }
 15551  
 15552  // At sets the optional parameter "at": Only include resource versions
 15553  // that were current at some point during the
 15554  // time period specified in the date time value. The date parameter
 15555  // format is
 15556  // yyyy-mm-ddThh:mm:ss[Z|(+|-)hh:mm]
 15557  //
 15558  // Clients may specify any of the following:
 15559  //
 15560  // *  An entire year: `_at=2019`
 15561  // *  An entire month: `_at=2019-01`
 15562  // *  A specific day: `_at=2019-01-20`
 15563  // *  A specific second: `_at=2018-12-31T23:59:58Z`
 15564  func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) At(at string) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
 15565  	c.urlParams_.Set("at", at)
 15566  	return c
 15567  }
 15568  
 15569  // Count sets the optional parameter "count": The maximum number of
 15570  // search results on a page. Defaults to 1000.
 15571  func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Count(count int64) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
 15572  	c.urlParams_.Set("count", fmt.Sprint(count))
 15573  	return c
 15574  }
 15575  
 15576  // Page sets the optional parameter "page": Used to retrieve the first,
 15577  // previous, next, or last page of resource
 15578  // versions when using pagination. Value should be set to the value of
 15579  // the
 15580  // `link.url` field returned in the response to the previous request,
 15581  // where
 15582  // `link.relation` is "first", "previous", "next" or "last".
 15583  //
 15584  // Omit `page` if no previous request has been made.
 15585  func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Page(page string) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
 15586  	c.urlParams_.Set("page", page)
 15587  	return c
 15588  }
 15589  
 15590  // Since sets the optional parameter "since": Only include resource
 15591  // versions that were created at or after the given
 15592  // instant in time. The instant in time uses the
 15593  // format
 15594  // YYYY-MM-DDThh:mm:ss.sss+zz:zz (for example
 15595  // 2015-02-07T13:28:17.239+02:00 or
 15596  // 2017-01-01T00:00:00Z). The time must be specified to the second
 15597  // and
 15598  // include a time zone.
 15599  func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Since(since string) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
 15600  	c.urlParams_.Set("since", since)
 15601  	return c
 15602  }
 15603  
 15604  // Fields allows partial responses to be retrieved. See
 15605  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 15606  // for more information.
 15607  func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
 15608  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15609  	return c
 15610  }
 15611  
 15612  // IfNoneMatch sets the optional parameter which makes the operation
 15613  // fail if the object's ETag matches the given value. This is useful for
 15614  // getting updates only after the object has changed since the last
 15615  // request. Use googleapi.IsNotModified to check whether the response
 15616  // error from Do is the result of In-None-Match.
 15617  func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
 15618  	c.ifNoneMatch_ = entityTag
 15619  	return c
 15620  }
 15621  
 15622  // Context sets the context to be used in this call's Do method. Any
 15623  // pending HTTP request will be aborted if the provided context is
 15624  // canceled.
 15625  func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
 15626  	c.ctx_ = ctx
 15627  	return c
 15628  }
 15629  
 15630  // Header returns an http.Header that can be modified by the caller to
 15631  // add HTTP headers to the request.
 15632  func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Header() http.Header {
 15633  	if c.header_ == nil {
 15634  		c.header_ = make(http.Header)
 15635  	}
 15636  	return c.header_
 15637  }
 15638  
 15639  func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) doRequest(alt string) (*http.Response, error) {
 15640  	reqHeaders := make(http.Header)
 15641  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 15642  	for k, v := range c.header_ {
 15643  		reqHeaders[k] = v
 15644  	}
 15645  	reqHeaders.Set("User-Agent", c.s.userAgent())
 15646  	if c.ifNoneMatch_ != "" {
 15647  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15648  	}
 15649  	var body io.Reader = nil
 15650  	c.urlParams_.Set("alt", alt)
 15651  	c.urlParams_.Set("prettyPrint", "false")
 15652  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}/_history")
 15653  	urls += "?" + c.urlParams_.Encode()
 15654  	req, err := http.NewRequest("GET", urls, body)
 15655  	if err != nil {
 15656  		return nil, err
 15657  	}
 15658  	req.Header = reqHeaders
 15659  	googleapi.Expand(req.URL, map[string]string{
 15660  		"name": c.name,
 15661  	})
 15662  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15663  }
 15664  
 15665  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.history" call.
 15666  func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 15667  	gensupport.SetOptions(c.urlParams_, opts...)
 15668  	return c.doRequest("")
 15669  	// {
 15670  	//   "description": "Lists all the versions of a resource (including the current version and\ndeleted versions) from the FHIR store.\n\nImplements the per-resource form of the FHIR standard history interaction\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#history),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#history)).\n\nOn success, the response body will contain a JSON-encoded representation\nof a `Bundle` resource of type `history`, containing the version history\nsorted from most recent to oldest versions.\nErrors generated by the FHIR store will contain a JSON-encoded\n`OperationOutcome` resource describing the reason for the error. If the\nrequest cannot be mapped to a valid API method on a FHIR store, a generic\nGCP error might be returned instead.",
 15671  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}/_history",
 15672  	//   "httpMethod": "GET",
 15673  	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.history",
 15674  	//   "parameterOrder": [
 15675  	//     "name"
 15676  	//   ],
 15677  	//   "parameters": {
 15678  	//     "at": {
 15679  	//       "description": "Only include resource versions that were current at some point during the\ntime period specified in the date time value. The date parameter format is\nyyyy-mm-ddThh:mm:ss[Z|(+|-)hh:mm]\n\nClients may specify any of the following:\n\n*  An entire year: `_at=2019`\n*  An entire month: `_at=2019-01`\n*  A specific day: `_at=2019-01-20`\n*  A specific second: `_at=2018-12-31T23:59:58Z`",
 15680  	//       "location": "query",
 15681  	//       "type": "string"
 15682  	//     },
 15683  	//     "count": {
 15684  	//       "description": "The maximum number of search results on a page. Defaults to 1000.",
 15685  	//       "format": "int32",
 15686  	//       "location": "query",
 15687  	//       "type": "integer"
 15688  	//     },
 15689  	//     "name": {
 15690  	//       "description": "The name of the resource to retrieve.",
 15691  	//       "location": "path",
 15692  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+/fhir/[^/]+/[^/]+$",
 15693  	//       "required": true,
 15694  	//       "type": "string"
 15695  	//     },
 15696  	//     "page": {
 15697  	//       "description": "Used to retrieve the first, previous, next, or last page of resource\nversions when using pagination. Value should be set to the value of the\n`link.url` field returned in the response to the previous request, where\n`link.relation` is \"first\", \"previous\", \"next\" or \"last\".\n\nOmit `page` if no previous request has been made.",
 15698  	//       "location": "query",
 15699  	//       "type": "string"
 15700  	//     },
 15701  	//     "since": {
 15702  	//       "description": "Only include resource versions that were created at or after the given\ninstant in time. The instant in time uses the format\nYYYY-MM-DDThh:mm:ss.sss+zz:zz (for example 2015-02-07T13:28:17.239+02:00 or\n2017-01-01T00:00:00Z). The time must be specified to the second and\ninclude a time zone.",
 15703  	//       "location": "query",
 15704  	//       "type": "string"
 15705  	//     }
 15706  	//   },
 15707  	//   "path": "v1alpha2/{+name}/_history",
 15708  	//   "response": {
 15709  	//     "$ref": "HttpBody"
 15710  	//   },
 15711  	//   "scopes": [
 15712  	//     "https://www.googleapis.com/auth/cloud-platform"
 15713  	//   ]
 15714  	// }
 15715  
 15716  }
 15717  
 15718  // method id "healthcare.projects.locations.datasets.fhirStores.fhir.patch":
 15719  
 15720  type ProjectsLocationsDatasetsFhirStoresFhirPatchCall struct {
 15721  	s          *Service
 15722  	name       string
 15723  	body_      io.Reader
 15724  	urlParams_ gensupport.URLParams
 15725  	ctx_       context.Context
 15726  	header_    http.Header
 15727  }
 15728  
 15729  // Patch: Updates part of an existing resource by applying the
 15730  // operations specified
 15731  // in a [JSON Patch](http://jsonpatch.com/) document.
 15732  //
 15733  // Implements the FHIR standard patch
 15734  // interaction
 15735  // ([STU3](http://hl7.org/implement/standards/fhir/STU3/http.
 15736  // html#patch)).
 15737  //
 15738  // DSTU2 doesn't define a patch method, but the server supports it in
 15739  // the same
 15740  // way it supports STU3.
 15741  //
 15742  // The request body must contain a JSON Patch document, and the
 15743  // request
 15744  // headers must contain `Content-Type: application/json-patch+json`.
 15745  //
 15746  // On success, the response body will contain a JSON-encoded
 15747  // representation
 15748  // of the updated resource, including the server-assigned version
 15749  // ID.
 15750  // Errors generated by the FHIR store will contain a
 15751  // JSON-encoded
 15752  // `OperationOutcome` resource describing the reason for the error. If
 15753  // the
 15754  // request cannot be mapped to a valid API method on a FHIR store, a
 15755  // generic
 15756  // GCP error might be returned instead.
 15757  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Patch(name string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirPatchCall {
 15758  	c := &ProjectsLocationsDatasetsFhirStoresFhirPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15759  	c.name = name
 15760  	c.body_ = body_
 15761  	return c
 15762  }
 15763  
 15764  // Fields allows partial responses to be retrieved. See
 15765  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 15766  // for more information.
 15767  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirPatchCall {
 15768  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15769  	return c
 15770  }
 15771  
 15772  // Context sets the context to be used in this call's Do method. Any
 15773  // pending HTTP request will be aborted if the provided context is
 15774  // canceled.
 15775  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirPatchCall {
 15776  	c.ctx_ = ctx
 15777  	return c
 15778  }
 15779  
 15780  // Header returns an http.Header that can be modified by the caller to
 15781  // add HTTP headers to the request.
 15782  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) Header() http.Header {
 15783  	if c.header_ == nil {
 15784  		c.header_ = make(http.Header)
 15785  	}
 15786  	return c.header_
 15787  }
 15788  
 15789  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) doRequest(alt string) (*http.Response, error) {
 15790  	reqHeaders := make(http.Header)
 15791  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 15792  	for k, v := range c.header_ {
 15793  		reqHeaders[k] = v
 15794  	}
 15795  	reqHeaders.Set("User-Agent", c.s.userAgent())
 15796  	var body io.Reader = nil
 15797  	body = c.body_
 15798  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
 15799  	urls += "?" + c.urlParams_.Encode()
 15800  	req, err := http.NewRequest("PATCH", urls, body)
 15801  	if err != nil {
 15802  		return nil, err
 15803  	}
 15804  	req.Header = reqHeaders
 15805  	googleapi.Expand(req.URL, map[string]string{
 15806  		"name": c.name,
 15807  	})
 15808  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15809  }
 15810  
 15811  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.patch" call.
 15812  func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 15813  	gensupport.SetOptions(c.urlParams_, opts...)
 15814  	return c.doRequest("")
 15815  	// {
 15816  	//   "description": "Updates part of an existing resource by applying the operations specified\nin a [JSON Patch](http://jsonpatch.com/) document.\n\nImplements the FHIR standard patch interaction\n([STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#patch)).\n\nDSTU2 doesn't define a patch method, but the server supports it in the same\nway it supports STU3.\n\nThe request body must contain a JSON Patch document, and the request\nheaders must contain `Content-Type: application/json-patch+json`.\n\nOn success, the response body will contain a JSON-encoded representation\nof the updated resource, including the server-assigned version ID.\nErrors generated by the FHIR store will contain a JSON-encoded\n`OperationOutcome` resource describing the reason for the error. If the\nrequest cannot be mapped to a valid API method on a FHIR store, a generic\nGCP error might be returned instead.",
 15817  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}",
 15818  	//   "httpMethod": "PATCH",
 15819  	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.patch",
 15820  	//   "parameterOrder": [
 15821  	//     "name"
 15822  	//   ],
 15823  	//   "parameters": {
 15824  	//     "name": {
 15825  	//       "description": "The name of the resource to update.",
 15826  	//       "location": "path",
 15827  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+/fhir/[^/]+/[^/]+$",
 15828  	//       "required": true,
 15829  	//       "type": "string"
 15830  	//     }
 15831  	//   },
 15832  	//   "path": "v1alpha2/{+name}",
 15833  	//   "request": {
 15834  	//     "$ref": "HttpBody"
 15835  	//   },
 15836  	//   "response": {
 15837  	//     "$ref": "HttpBody"
 15838  	//   },
 15839  	//   "scopes": [
 15840  	//     "https://www.googleapis.com/auth/cloud-platform"
 15841  	//   ]
 15842  	// }
 15843  
 15844  }
 15845  
 15846  // method id "healthcare.projects.locations.datasets.fhirStores.fhir.read":
 15847  
 15848  type ProjectsLocationsDatasetsFhirStoresFhirReadCall struct {
 15849  	s            *Service
 15850  	name         string
 15851  	urlParams_   gensupport.URLParams
 15852  	ifNoneMatch_ string
 15853  	ctx_         context.Context
 15854  	header_      http.Header
 15855  }
 15856  
 15857  // Read: Gets the contents of a FHIR resource.
 15858  //
 15859  // Implements the FHIR standard read
 15860  // interaction
 15861  // ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt
 15862  // p.html#read),
 15863  // [STU3](http://hl7.org/implement/standards/fhir/STU3/http
 15864  // .html#read)).
 15865  //
 15866  // Also supports the FHIR standard conditional read
 15867  // interaction
 15868  // ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt
 15869  // p.html#cread),
 15870  // [STU3](http://hl7.org/implement/standards/fhir/STU3/htt
 15871  // p.html#cread))
 15872  // specified by supplying an `If-Modified-Since` header with a date/time
 15873  // value
 15874  // or an `If-None-Match` header with an ETag value.
 15875  //
 15876  // On success, the response body will contain a JSON-encoded
 15877  // representation
 15878  // of the resource.
 15879  // Errors generated by the FHIR store will contain a
 15880  // JSON-encoded
 15881  // `OperationOutcome` resource describing the reason for the error. If
 15882  // the
 15883  // request cannot be mapped to a valid API method on a FHIR store, a
 15884  // generic
 15885  // GCP error might be returned instead.
 15886  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Read(name string) *ProjectsLocationsDatasetsFhirStoresFhirReadCall {
 15887  	c := &ProjectsLocationsDatasetsFhirStoresFhirReadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15888  	c.name = name
 15889  	return c
 15890  }
 15891  
 15892  // Fields allows partial responses to be retrieved. See
 15893  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 15894  // for more information.
 15895  func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirReadCall {
 15896  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15897  	return c
 15898  }
 15899  
 15900  // IfNoneMatch sets the optional parameter which makes the operation
 15901  // fail if the object's ETag matches the given value. This is useful for
 15902  // getting updates only after the object has changed since the last
 15903  // request. Use googleapi.IsNotModified to check whether the response
 15904  // error from Do is the result of In-None-Match.
 15905  func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirReadCall {
 15906  	c.ifNoneMatch_ = entityTag
 15907  	return c
 15908  }
 15909  
 15910  // Context sets the context to be used in this call's Do method. Any
 15911  // pending HTTP request will be aborted if the provided context is
 15912  // canceled.
 15913  func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirReadCall {
 15914  	c.ctx_ = ctx
 15915  	return c
 15916  }
 15917  
 15918  // Header returns an http.Header that can be modified by the caller to
 15919  // add HTTP headers to the request.
 15920  func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) Header() http.Header {
 15921  	if c.header_ == nil {
 15922  		c.header_ = make(http.Header)
 15923  	}
 15924  	return c.header_
 15925  }
 15926  
 15927  func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) doRequest(alt string) (*http.Response, error) {
 15928  	reqHeaders := make(http.Header)
 15929  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 15930  	for k, v := range c.header_ {
 15931  		reqHeaders[k] = v
 15932  	}
 15933  	reqHeaders.Set("User-Agent", c.s.userAgent())
 15934  	if c.ifNoneMatch_ != "" {
 15935  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15936  	}
 15937  	var body io.Reader = nil
 15938  	c.urlParams_.Set("alt", alt)
 15939  	c.urlParams_.Set("prettyPrint", "false")
 15940  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
 15941  	urls += "?" + c.urlParams_.Encode()
 15942  	req, err := http.NewRequest("GET", urls, body)
 15943  	if err != nil {
 15944  		return nil, err
 15945  	}
 15946  	req.Header = reqHeaders
 15947  	googleapi.Expand(req.URL, map[string]string{
 15948  		"name": c.name,
 15949  	})
 15950  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15951  }
 15952  
 15953  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.read" call.
 15954  func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 15955  	gensupport.SetOptions(c.urlParams_, opts...)
 15956  	return c.doRequest("")
 15957  	// {
 15958  	//   "description": "Gets the contents of a FHIR resource.\n\nImplements the FHIR standard read interaction\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#read),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#read)).\n\nAlso supports the FHIR standard conditional read interaction\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#cread),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#cread))\nspecified by supplying an `If-Modified-Since` header with a date/time value\nor an `If-None-Match` header with an ETag value.\n\nOn success, the response body will contain a JSON-encoded representation\nof the resource.\nErrors generated by the FHIR store will contain a JSON-encoded\n`OperationOutcome` resource describing the reason for the error. If the\nrequest cannot be mapped to a valid API method on a FHIR store, a generic\nGCP error might be returned instead.",
 15959  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}",
 15960  	//   "httpMethod": "GET",
 15961  	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.read",
 15962  	//   "parameterOrder": [
 15963  	//     "name"
 15964  	//   ],
 15965  	//   "parameters": {
 15966  	//     "name": {
 15967  	//       "description": "The name of the resource to retrieve.",
 15968  	//       "location": "path",
 15969  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+/fhir/[^/]+/[^/]+$",
 15970  	//       "required": true,
 15971  	//       "type": "string"
 15972  	//     }
 15973  	//   },
 15974  	//   "path": "v1alpha2/{+name}",
 15975  	//   "response": {
 15976  	//     "$ref": "HttpBody"
 15977  	//   },
 15978  	//   "scopes": [
 15979  	//     "https://www.googleapis.com/auth/cloud-platform"
 15980  	//   ]
 15981  	// }
 15982  
 15983  }
 15984  
 15985  // method id "healthcare.projects.locations.datasets.fhirStores.fhir.search":
 15986  
 15987  type ProjectsLocationsDatasetsFhirStoresFhirSearchCall struct {
 15988  	s                      *Service
 15989  	parent                 string
 15990  	searchresourcesrequest *SearchResourcesRequest
 15991  	urlParams_             gensupport.URLParams
 15992  	ctx_                   context.Context
 15993  	header_                http.Header
 15994  }
 15995  
 15996  // Search: Searches for resources in the given FHIR store according to
 15997  // criteria
 15998  // specified as query parameters.
 15999  //
 16000  // Implements the FHIR standard search
 16001  // interaction
 16002  // ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt
 16003  // p.html#search),
 16004  // [STU3](http://hl7.org/implement/standards/fhir/STU3/ht
 16005  // tp.html#search))
 16006  // using the search semantics described in the FHIR Search
 16007  // specification
 16008  // ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/s
 16009  // earch.html),
 16010  // [STU3](http://hl7.org/implement/standards/fhir/STU3/searc
 16011  // h.html)).
 16012  //
 16013  // Supports three methods of search defined by the specification:
 16014  //
 16015  // *  `GET [base]?[parameters]` to search across all resources.
 16016  // *  `GET [base]/[type]?[parameters]` to search resources of a
 16017  // specified
 16018  // type.
 16019  // *  `POST [base]/[type]/_search?[parameters]` as an alternate form
 16020  // having
 16021  // the same semantics as the `GET` method.
 16022  //
 16023  // The `GET` methods do not support compartment searches. The `POST`
 16024  // method
 16025  // does not support `application/x-www-form-urlencoded` search
 16026  // parameters.
 16027  //
 16028  // On success, the response body will contain a JSON-encoded
 16029  // representation
 16030  // of a `Bundle` resource of type `searchset`, containing the results of
 16031  // the
 16032  // search.
 16033  // Errors generated by the FHIR store will contain a
 16034  // JSON-encoded
 16035  // `OperationOutcome` resource describing the reason for the error. If
 16036  // the
 16037  // request cannot be mapped to a valid API method on a FHIR store, a
 16038  // generic
 16039  // GCP error might be returned instead.
 16040  //
 16041  // The server's capability statement, retrieved through
 16042  // capabilities, indicates what search parameters
 16043  // are supported on each FHIR resource. A list of all search
 16044  // parameters
 16045  // defined by the specification can be found in the FHIR Search
 16046  // Parameter
 16047  // Registry
 16048  // ([STU3](http://hl7.org/implement/standards/fhir/STU
 16049  // 3/searchparameter-registry.html)).
 16050  // FHIR search parameters for DSTU2 can be found on each resource's
 16051  // definition
 16052  // page.
 16053  //
 16054  // Supported search modifiers: `:missing`, `:exact`, `:contains`,
 16055  // `:text`,
 16056  // `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and
 16057  // `:recurse`.
 16058  //
 16059  // Supported search result parameters: `_sort`, `_count`,
 16060  // `_include`,
 16061  // `_revinclude`, `_summary=text`, `_summary=data`, and
 16062  // `_elements`.
 16063  //
 16064  // The maximum number of search results returned defaults to 100, which
 16065  // can
 16066  // be overridden by the `_count` parameter up to a maximum limit of
 16067  // 1000. If
 16068  // there are additional results, the returned `Bundle` will
 16069  // contain
 16070  // pagination links.
 16071  //
 16072  // Resources with a total size larger than 5MB or a field count larger
 16073  // than
 16074  // 50,000 might not be fully searchable as the server might trim its
 16075  // generated
 16076  // search index in those cases.
 16077  //
 16078  // Note: FHIR resources are indexed asynchronously, so there might be a
 16079  // slight
 16080  // delay between the time a resource is created or changes and when the
 16081  // change
 16082  // is reflected in search results.
 16083  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Search(parent string, searchresourcesrequest *SearchResourcesRequest) *ProjectsLocationsDatasetsFhirStoresFhirSearchCall {
 16084  	c := &ProjectsLocationsDatasetsFhirStoresFhirSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16085  	c.parent = parent
 16086  	c.searchresourcesrequest = searchresourcesrequest
 16087  	return c
 16088  }
 16089  
 16090  // Fields allows partial responses to be retrieved. See
 16091  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 16092  // for more information.
 16093  func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirSearchCall {
 16094  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16095  	return c
 16096  }
 16097  
 16098  // Context sets the context to be used in this call's Do method. Any
 16099  // pending HTTP request will be aborted if the provided context is
 16100  // canceled.
 16101  func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirSearchCall {
 16102  	c.ctx_ = ctx
 16103  	return c
 16104  }
 16105  
 16106  // Header returns an http.Header that can be modified by the caller to
 16107  // add HTTP headers to the request.
 16108  func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) Header() http.Header {
 16109  	if c.header_ == nil {
 16110  		c.header_ = make(http.Header)
 16111  	}
 16112  	return c.header_
 16113  }
 16114  
 16115  func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) doRequest(alt string) (*http.Response, error) {
 16116  	reqHeaders := make(http.Header)
 16117  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 16118  	for k, v := range c.header_ {
 16119  		reqHeaders[k] = v
 16120  	}
 16121  	reqHeaders.Set("User-Agent", c.s.userAgent())
 16122  	var body io.Reader = nil
 16123  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchresourcesrequest)
 16124  	if err != nil {
 16125  		return nil, err
 16126  	}
 16127  	reqHeaders.Set("Content-Type", "application/json")
 16128  	c.urlParams_.Set("alt", alt)
 16129  	c.urlParams_.Set("prettyPrint", "false")
 16130  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhir/_search")
 16131  	urls += "?" + c.urlParams_.Encode()
 16132  	req, err := http.NewRequest("POST", urls, body)
 16133  	if err != nil {
 16134  		return nil, err
 16135  	}
 16136  	req.Header = reqHeaders
 16137  	googleapi.Expand(req.URL, map[string]string{
 16138  		"parent": c.parent,
 16139  	})
 16140  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16141  }
 16142  
 16143  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.search" call.
 16144  func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 16145  	gensupport.SetOptions(c.urlParams_, opts...)
 16146  	return c.doRequest("")
 16147  	// {
 16148  	//   "description": "Searches for resources in the given FHIR store according to criteria\nspecified as query parameters.\n\nImplements the FHIR standard search interaction\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#search),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#search))\nusing the search semantics described in the FHIR Search specification\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/search.html),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/search.html)).\n\nSupports three methods of search defined by the specification:\n\n*  `GET [base]?[parameters]` to search across all resources.\n*  `GET [base]/[type]?[parameters]` to search resources of a specified\ntype.\n*  `POST [base]/[type]/_search?[parameters]` as an alternate form having\nthe same semantics as the `GET` method.\n\nThe `GET` methods do not support compartment searches. The `POST` method\ndoes not support `application/x-www-form-urlencoded` search parameters.\n\nOn success, the response body will contain a JSON-encoded representation\nof a `Bundle` resource of type `searchset`, containing the results of the\nsearch.\nErrors generated by the FHIR store will contain a JSON-encoded\n`OperationOutcome` resource describing the reason for the error. If the\nrequest cannot be mapped to a valid API method on a FHIR store, a generic\nGCP error might be returned instead.\n\nThe server's capability statement, retrieved through\ncapabilities, indicates what search parameters\nare supported on each FHIR resource. A list of all search parameters\ndefined by the specification can be found in the FHIR Search Parameter\nRegistry\n([STU3](http://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.html)).\nFHIR search parameters for DSTU2 can be found on each resource's definition\npage.\n\nSupported search modifiers: `:missing`, `:exact`, `:contains`, `:text`,\n`:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `:recurse`.\n\nSupported search result parameters: `_sort`, `_count`, `_include`,\n`_revinclude`, `_summary=text`, `_summary=data`, and `_elements`.\n\nThe maximum number of search results returned defaults to 100, which can\nbe overridden by the `_count` parameter up to a maximum limit of 1000. If\nthere are additional results, the returned `Bundle` will contain\npagination links.\n\nResources with a total size larger than 5MB or a field count larger than\n50,000 might not be fully searchable as the server might trim its generated\nsearch index in those cases.\n\nNote: FHIR resources are indexed asynchronously, so there might be a slight\ndelay between the time a resource is created or changes and when the change\nis reflected in search results.",
 16149  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/_search",
 16150  	//   "httpMethod": "POST",
 16151  	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.search",
 16152  	//   "parameterOrder": [
 16153  	//     "parent"
 16154  	//   ],
 16155  	//   "parameters": {
 16156  	//     "parent": {
 16157  	//       "description": "Name of the FHIR store to retrieve resources from.",
 16158  	//       "location": "path",
 16159  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
 16160  	//       "required": true,
 16161  	//       "type": "string"
 16162  	//     }
 16163  	//   },
 16164  	//   "path": "v1alpha2/{+parent}/fhir/_search",
 16165  	//   "request": {
 16166  	//     "$ref": "SearchResourcesRequest"
 16167  	//   },
 16168  	//   "response": {
 16169  	//     "$ref": "HttpBody"
 16170  	//   },
 16171  	//   "scopes": [
 16172  	//     "https://www.googleapis.com/auth/cloud-platform"
 16173  	//   ]
 16174  	// }
 16175  
 16176  }
 16177  
 16178  // method id "healthcare.projects.locations.datasets.fhirStores.fhir.update":
 16179  
 16180  type ProjectsLocationsDatasetsFhirStoresFhirUpdateCall struct {
 16181  	s          *Service
 16182  	name       string
 16183  	body_      io.Reader
 16184  	urlParams_ gensupport.URLParams
 16185  	ctx_       context.Context
 16186  	header_    http.Header
 16187  }
 16188  
 16189  // Update: Updates the entire contents of a resource.
 16190  //
 16191  // Implements the FHIR standard update
 16192  // interaction
 16193  // ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt
 16194  // p.html#update),
 16195  // [STU3](http://hl7.org/implement/standards/fhir/STU3/ht
 16196  // tp.html#update)).
 16197  //
 16198  // If the specified resource does
 16199  // not exist and the FHIR store has
 16200  // enable_update_create set, creates the
 16201  // resource with the client-specified ID.
 16202  //
 16203  // The request body must contain a JSON-encoded FHIR resource, and the
 16204  // request
 16205  // headers must contain `Content-Type: application/fhir+json`. The
 16206  // resource
 16207  // must contain an `id` element having an identical value to the ID in
 16208  // the
 16209  // REST path of the request.
 16210  //
 16211  // On success, the response body will contain a JSON-encoded
 16212  // representation
 16213  // of the updated resource, including the server-assigned version
 16214  // ID.
 16215  // Errors generated by the FHIR store will contain a
 16216  // JSON-encoded
 16217  // `OperationOutcome` resource describing the reason for the error. If
 16218  // the
 16219  // request cannot be mapped to a valid API method on a FHIR store, a
 16220  // generic
 16221  // GCP error might be returned instead.
 16222  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Update(name string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall {
 16223  	c := &ProjectsLocationsDatasetsFhirStoresFhirUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16224  	c.name = name
 16225  	c.body_ = body_
 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
 16231  // for more information.
 16232  func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall {
 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. Any
 16238  // pending HTTP request will be aborted if the provided context is
 16239  // canceled.
 16240  func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall {
 16241  	c.ctx_ = ctx
 16242  	return c
 16243  }
 16244  
 16245  // Header returns an http.Header that can be modified by the caller to
 16246  // add HTTP headers to the request.
 16247  func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) Header() http.Header {
 16248  	if c.header_ == nil {
 16249  		c.header_ = make(http.Header)
 16250  	}
 16251  	return c.header_
 16252  }
 16253  
 16254  func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) doRequest(alt string) (*http.Response, error) {
 16255  	reqHeaders := make(http.Header)
 16256  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 16257  	for k, v := range c.header_ {
 16258  		reqHeaders[k] = v
 16259  	}
 16260  	reqHeaders.Set("User-Agent", c.s.userAgent())
 16261  	var body io.Reader = nil
 16262  	body = c.body_
 16263  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
 16264  	urls += "?" + c.urlParams_.Encode()
 16265  	req, err := http.NewRequest("PUT", urls, body)
 16266  	if err != nil {
 16267  		return nil, err
 16268  	}
 16269  	req.Header = reqHeaders
 16270  	googleapi.Expand(req.URL, map[string]string{
 16271  		"name": c.name,
 16272  	})
 16273  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16274  }
 16275  
 16276  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.update" call.
 16277  func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 16278  	gensupport.SetOptions(c.urlParams_, opts...)
 16279  	return c.doRequest("")
 16280  	// {
 16281  	//   "description": "Updates the entire contents of a resource.\n\nImplements the FHIR standard update interaction\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#update),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#update)).\n\nIf the specified resource does\nnot exist and the FHIR store has\nenable_update_create set, creates the\nresource with the client-specified ID.\n\nThe request body must contain a JSON-encoded FHIR resource, and the request\nheaders must contain `Content-Type: application/fhir+json`. The resource\nmust contain an `id` element having an identical value to the ID in the\nREST path of the request.\n\nOn success, the response body will contain a JSON-encoded representation\nof the updated resource, including the server-assigned version ID.\nErrors generated by the FHIR store will contain a JSON-encoded\n`OperationOutcome` resource describing the reason for the error. If the\nrequest cannot be mapped to a valid API method on a FHIR store, a generic\nGCP error might be returned instead.",
 16282  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}",
 16283  	//   "httpMethod": "PUT",
 16284  	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.update",
 16285  	//   "parameterOrder": [
 16286  	//     "name"
 16287  	//   ],
 16288  	//   "parameters": {
 16289  	//     "name": {
 16290  	//       "description": "The name of the resource to update.",
 16291  	//       "location": "path",
 16292  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+/fhir/[^/]+/[^/]+$",
 16293  	//       "required": true,
 16294  	//       "type": "string"
 16295  	//     }
 16296  	//   },
 16297  	//   "path": "v1alpha2/{+name}",
 16298  	//   "request": {
 16299  	//     "$ref": "HttpBody"
 16300  	//   },
 16301  	//   "response": {
 16302  	//     "$ref": "HttpBody"
 16303  	//   },
 16304  	//   "scopes": [
 16305  	//     "https://www.googleapis.com/auth/cloud-platform"
 16306  	//   ]
 16307  	// }
 16308  
 16309  }
 16310  
 16311  // method id "healthcare.projects.locations.datasets.fhirStores.fhir.vread":
 16312  
 16313  type ProjectsLocationsDatasetsFhirStoresFhirVreadCall struct {
 16314  	s            *Service
 16315  	name         string
 16316  	urlParams_   gensupport.URLParams
 16317  	ifNoneMatch_ string
 16318  	ctx_         context.Context
 16319  	header_      http.Header
 16320  }
 16321  
 16322  // Vread: Gets the contents of a version (current or historical) of a
 16323  // FHIR resource
 16324  // by version ID.
 16325  //
 16326  // Implements the FHIR standard vread
 16327  // interaction
 16328  // ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt
 16329  // p.html#vread),
 16330  // [STU3](http://hl7.org/implement/standards/fhir/STU3/htt
 16331  // p.html#vread).
 16332  //
 16333  // On success, the response body will contain a JSON-encoded
 16334  // representation
 16335  // of the resource.
 16336  // Errors generated by the FHIR store will contain a
 16337  // JSON-encoded
 16338  // `OperationOutcome` resource describing the reason for the error. If
 16339  // the
 16340  // request cannot be mapped to a valid API method on a FHIR store, a
 16341  // generic
 16342  // GCP error might be returned instead.
 16343  func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Vread(name string) *ProjectsLocationsDatasetsFhirStoresFhirVreadCall {
 16344  	c := &ProjectsLocationsDatasetsFhirStoresFhirVreadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16345  	c.name = name
 16346  	return c
 16347  }
 16348  
 16349  // Fields allows partial responses to be retrieved. See
 16350  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 16351  // for more information.
 16352  func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirVreadCall {
 16353  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16354  	return c
 16355  }
 16356  
 16357  // IfNoneMatch sets the optional parameter which makes the operation
 16358  // fail if the object's ETag matches the given value. This is useful for
 16359  // getting updates only after the object has changed since the last
 16360  // request. Use googleapi.IsNotModified to check whether the response
 16361  // error from Do is the result of In-None-Match.
 16362  func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirVreadCall {
 16363  	c.ifNoneMatch_ = entityTag
 16364  	return c
 16365  }
 16366  
 16367  // Context sets the context to be used in this call's Do method. Any
 16368  // pending HTTP request will be aborted if the provided context is
 16369  // canceled.
 16370  func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirVreadCall {
 16371  	c.ctx_ = ctx
 16372  	return c
 16373  }
 16374  
 16375  // Header returns an http.Header that can be modified by the caller to
 16376  // add HTTP headers to the request.
 16377  func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) Header() http.Header {
 16378  	if c.header_ == nil {
 16379  		c.header_ = make(http.Header)
 16380  	}
 16381  	return c.header_
 16382  }
 16383  
 16384  func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) doRequest(alt string) (*http.Response, error) {
 16385  	reqHeaders := make(http.Header)
 16386  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 16387  	for k, v := range c.header_ {
 16388  		reqHeaders[k] = v
 16389  	}
 16390  	reqHeaders.Set("User-Agent", c.s.userAgent())
 16391  	if c.ifNoneMatch_ != "" {
 16392  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16393  	}
 16394  	var body io.Reader = nil
 16395  	c.urlParams_.Set("alt", alt)
 16396  	c.urlParams_.Set("prettyPrint", "false")
 16397  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
 16398  	urls += "?" + c.urlParams_.Encode()
 16399  	req, err := http.NewRequest("GET", urls, body)
 16400  	if err != nil {
 16401  		return nil, err
 16402  	}
 16403  	req.Header = reqHeaders
 16404  	googleapi.Expand(req.URL, map[string]string{
 16405  		"name": c.name,
 16406  	})
 16407  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16408  }
 16409  
 16410  // Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.vread" call.
 16411  func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
 16412  	gensupport.SetOptions(c.urlParams_, opts...)
 16413  	return c.doRequest("")
 16414  	// {
 16415  	//   "description": "Gets the contents of a version (current or historical) of a FHIR resource\nby version ID.\n\nImplements the FHIR standard vread interaction\n([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#vread),\n[STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#vread).\n\nOn success, the response body will contain a JSON-encoded representation\nof the resource.\nErrors generated by the FHIR store will contain a JSON-encoded\n`OperationOutcome` resource describing the reason for the error. If the\nrequest cannot be mapped to a valid API method on a FHIR store, a generic\nGCP error might be returned instead.",
 16416  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}/_history/{_historyId}",
 16417  	//   "httpMethod": "GET",
 16418  	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.vread",
 16419  	//   "parameterOrder": [
 16420  	//     "name"
 16421  	//   ],
 16422  	//   "parameters": {
 16423  	//     "name": {
 16424  	//       "description": "The name of the resource version to retrieve.",
 16425  	//       "location": "path",
 16426  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+/fhir/[^/]+/[^/]+/_history/[^/]+$",
 16427  	//       "required": true,
 16428  	//       "type": "string"
 16429  	//     }
 16430  	//   },
 16431  	//   "path": "v1alpha2/{+name}",
 16432  	//   "response": {
 16433  	//     "$ref": "HttpBody"
 16434  	//   },
 16435  	//   "scopes": [
 16436  	//     "https://www.googleapis.com/auth/cloud-platform"
 16437  	//   ]
 16438  	// }
 16439  
 16440  }
 16441  
 16442  // method id "healthcare.projects.locations.datasets.hl7V2Stores.create":
 16443  
 16444  type ProjectsLocationsDatasetsHl7V2StoresCreateCall struct {
 16445  	s          *Service
 16446  	parent     string
 16447  	hl7v2store *Hl7V2Store
 16448  	urlParams_ gensupport.URLParams
 16449  	ctx_       context.Context
 16450  	header_    http.Header
 16451  }
 16452  
 16453  // Create: Creates a new HL7v2 store within the parent dataset.
 16454  func (r *ProjectsLocationsDatasetsHl7V2StoresService) Create(parent string, hl7v2store *Hl7V2Store) *ProjectsLocationsDatasetsHl7V2StoresCreateCall {
 16455  	c := &ProjectsLocationsDatasetsHl7V2StoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16456  	c.parent = parent
 16457  	c.hl7v2store = hl7v2store
 16458  	return c
 16459  }
 16460  
 16461  // Hl7V2StoreId sets the optional parameter "hl7V2StoreId": The ID of
 16462  // the HL7v2 store that is being created.
 16463  // The string must match the following regex:
 16464  // `[\p{L}\p{N}_\-\.]{1,256}`.
 16465  func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Hl7V2StoreId(hl7V2StoreId string) *ProjectsLocationsDatasetsHl7V2StoresCreateCall {
 16466  	c.urlParams_.Set("hl7V2StoreId", hl7V2StoreId)
 16467  	return c
 16468  }
 16469  
 16470  // Fields allows partial responses to be retrieved. See
 16471  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 16472  // for more information.
 16473  func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresCreateCall {
 16474  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16475  	return c
 16476  }
 16477  
 16478  // Context sets the context to be used in this call's Do method. Any
 16479  // pending HTTP request will be aborted if the provided context is
 16480  // canceled.
 16481  func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresCreateCall {
 16482  	c.ctx_ = ctx
 16483  	return c
 16484  }
 16485  
 16486  // Header returns an http.Header that can be modified by the caller to
 16487  // add HTTP headers to the request.
 16488  func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Header() http.Header {
 16489  	if c.header_ == nil {
 16490  		c.header_ = make(http.Header)
 16491  	}
 16492  	return c.header_
 16493  }
 16494  
 16495  func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) doRequest(alt string) (*http.Response, error) {
 16496  	reqHeaders := make(http.Header)
 16497  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 16498  	for k, v := range c.header_ {
 16499  		reqHeaders[k] = v
 16500  	}
 16501  	reqHeaders.Set("User-Agent", c.s.userAgent())
 16502  	var body io.Reader = nil
 16503  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.hl7v2store)
 16504  	if err != nil {
 16505  		return nil, err
 16506  	}
 16507  	reqHeaders.Set("Content-Type", "application/json")
 16508  	c.urlParams_.Set("alt", alt)
 16509  	c.urlParams_.Set("prettyPrint", "false")
 16510  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/hl7V2Stores")
 16511  	urls += "?" + c.urlParams_.Encode()
 16512  	req, err := http.NewRequest("POST", urls, body)
 16513  	if err != nil {
 16514  		return nil, err
 16515  	}
 16516  	req.Header = reqHeaders
 16517  	googleapi.Expand(req.URL, map[string]string{
 16518  		"parent": c.parent,
 16519  	})
 16520  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16521  }
 16522  
 16523  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.create" call.
 16524  // Exactly one of *Hl7V2Store or error will be non-nil. Any non-2xx
 16525  // status code is an error. Response headers are in either
 16526  // *Hl7V2Store.ServerResponse.Header or (if a response was returned at
 16527  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
 16528  // to check whether the returned error was because
 16529  // http.StatusNotModified was returned.
 16530  func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Do(opts ...googleapi.CallOption) (*Hl7V2Store, error) {
 16531  	gensupport.SetOptions(c.urlParams_, opts...)
 16532  	res, err := c.doRequest("json")
 16533  	if res != nil && res.StatusCode == http.StatusNotModified {
 16534  		if res.Body != nil {
 16535  			res.Body.Close()
 16536  		}
 16537  		return nil, &googleapi.Error{
 16538  			Code:   res.StatusCode,
 16539  			Header: res.Header,
 16540  		}
 16541  	}
 16542  	if err != nil {
 16543  		return nil, err
 16544  	}
 16545  	defer googleapi.CloseBody(res)
 16546  	if err := googleapi.CheckResponse(res); err != nil {
 16547  		return nil, err
 16548  	}
 16549  	ret := &Hl7V2Store{
 16550  		ServerResponse: googleapi.ServerResponse{
 16551  			Header:         res.Header,
 16552  			HTTPStatusCode: res.StatusCode,
 16553  		},
 16554  	}
 16555  	target := &ret
 16556  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16557  		return nil, err
 16558  	}
 16559  	return ret, nil
 16560  	// {
 16561  	//   "description": "Creates a new HL7v2 store within the parent dataset.",
 16562  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores",
 16563  	//   "httpMethod": "POST",
 16564  	//   "id": "healthcare.projects.locations.datasets.hl7V2Stores.create",
 16565  	//   "parameterOrder": [
 16566  	//     "parent"
 16567  	//   ],
 16568  	//   "parameters": {
 16569  	//     "hl7V2StoreId": {
 16570  	//       "description": "The ID of the HL7v2 store that is being created.\nThe string must match the following regex: `[\\p{L}\\p{N}_\\-\\.]{1,256}`.",
 16571  	//       "location": "query",
 16572  	//       "type": "string"
 16573  	//     },
 16574  	//     "parent": {
 16575  	//       "description": "The name of the dataset this HL7v2 store belongs to.",
 16576  	//       "location": "path",
 16577  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
 16578  	//       "required": true,
 16579  	//       "type": "string"
 16580  	//     }
 16581  	//   },
 16582  	//   "path": "v1alpha2/{+parent}/hl7V2Stores",
 16583  	//   "request": {
 16584  	//     "$ref": "Hl7V2Store"
 16585  	//   },
 16586  	//   "response": {
 16587  	//     "$ref": "Hl7V2Store"
 16588  	//   },
 16589  	//   "scopes": [
 16590  	//     "https://www.googleapis.com/auth/cloud-platform"
 16591  	//   ]
 16592  	// }
 16593  
 16594  }
 16595  
 16596  // method id "healthcare.projects.locations.datasets.hl7V2Stores.delete":
 16597  
 16598  type ProjectsLocationsDatasetsHl7V2StoresDeleteCall struct {
 16599  	s          *Service
 16600  	name       string
 16601  	urlParams_ gensupport.URLParams
 16602  	ctx_       context.Context
 16603  	header_    http.Header
 16604  }
 16605  
 16606  // Delete: Deletes the specified HL7v2 store and removes all messages
 16607  // that are
 16608  // contained within it.
 16609  func (r *ProjectsLocationsDatasetsHl7V2StoresService) Delete(name string) *ProjectsLocationsDatasetsHl7V2StoresDeleteCall {
 16610  	c := &ProjectsLocationsDatasetsHl7V2StoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16611  	c.name = name
 16612  	return c
 16613  }
 16614  
 16615  // Fields allows partial responses to be retrieved. See
 16616  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 16617  // for more information.
 16618  func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresDeleteCall {
 16619  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16620  	return c
 16621  }
 16622  
 16623  // Context sets the context to be used in this call's Do method. Any
 16624  // pending HTTP request will be aborted if the provided context is
 16625  // canceled.
 16626  func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresDeleteCall {
 16627  	c.ctx_ = ctx
 16628  	return c
 16629  }
 16630  
 16631  // Header returns an http.Header that can be modified by the caller to
 16632  // add HTTP headers to the request.
 16633  func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) Header() http.Header {
 16634  	if c.header_ == nil {
 16635  		c.header_ = make(http.Header)
 16636  	}
 16637  	return c.header_
 16638  }
 16639  
 16640  func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) doRequest(alt string) (*http.Response, error) {
 16641  	reqHeaders := make(http.Header)
 16642  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 16643  	for k, v := range c.header_ {
 16644  		reqHeaders[k] = v
 16645  	}
 16646  	reqHeaders.Set("User-Agent", c.s.userAgent())
 16647  	var body io.Reader = nil
 16648  	c.urlParams_.Set("alt", alt)
 16649  	c.urlParams_.Set("prettyPrint", "false")
 16650  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
 16651  	urls += "?" + c.urlParams_.Encode()
 16652  	req, err := http.NewRequest("DELETE", urls, body)
 16653  	if err != nil {
 16654  		return nil, err
 16655  	}
 16656  	req.Header = reqHeaders
 16657  	googleapi.Expand(req.URL, map[string]string{
 16658  		"name": c.name,
 16659  	})
 16660  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16661  }
 16662  
 16663  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.delete" call.
 16664  // Exactly one of *Empty or error will be non-nil. Any non-2xx status
 16665  // code is an error. Response headers are in either
 16666  // *Empty.ServerResponse.Header or (if a response was returned at all)
 16667  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 16668  // check whether the returned error was because http.StatusNotModified
 16669  // was returned.
 16670  func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 16671  	gensupport.SetOptions(c.urlParams_, opts...)
 16672  	res, err := c.doRequest("json")
 16673  	if res != nil && res.StatusCode == http.StatusNotModified {
 16674  		if res.Body != nil {
 16675  			res.Body.Close()
 16676  		}
 16677  		return nil, &googleapi.Error{
 16678  			Code:   res.StatusCode,
 16679  			Header: res.Header,
 16680  		}
 16681  	}
 16682  	if err != nil {
 16683  		return nil, err
 16684  	}
 16685  	defer googleapi.CloseBody(res)
 16686  	if err := googleapi.CheckResponse(res); err != nil {
 16687  		return nil, err
 16688  	}
 16689  	ret := &Empty{
 16690  		ServerResponse: googleapi.ServerResponse{
 16691  			Header:         res.Header,
 16692  			HTTPStatusCode: res.StatusCode,
 16693  		},
 16694  	}
 16695  	target := &ret
 16696  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16697  		return nil, err
 16698  	}
 16699  	return ret, nil
 16700  	// {
 16701  	//   "description": "Deletes the specified HL7v2 store and removes all messages that are\ncontained within it.",
 16702  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}",
 16703  	//   "httpMethod": "DELETE",
 16704  	//   "id": "healthcare.projects.locations.datasets.hl7V2Stores.delete",
 16705  	//   "parameterOrder": [
 16706  	//     "name"
 16707  	//   ],
 16708  	//   "parameters": {
 16709  	//     "name": {
 16710  	//       "description": "The resource name of the HL7v2 store to delete.",
 16711  	//       "location": "path",
 16712  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$",
 16713  	//       "required": true,
 16714  	//       "type": "string"
 16715  	//     }
 16716  	//   },
 16717  	//   "path": "v1alpha2/{+name}",
 16718  	//   "response": {
 16719  	//     "$ref": "Empty"
 16720  	//   },
 16721  	//   "scopes": [
 16722  	//     "https://www.googleapis.com/auth/cloud-platform"
 16723  	//   ]
 16724  	// }
 16725  
 16726  }
 16727  
 16728  // method id "healthcare.projects.locations.datasets.hl7V2Stores.get":
 16729  
 16730  type ProjectsLocationsDatasetsHl7V2StoresGetCall struct {
 16731  	s            *Service
 16732  	name         string
 16733  	urlParams_   gensupport.URLParams
 16734  	ifNoneMatch_ string
 16735  	ctx_         context.Context
 16736  	header_      http.Header
 16737  }
 16738  
 16739  // Get: Gets the specified HL7v2 store.
 16740  func (r *ProjectsLocationsDatasetsHl7V2StoresService) Get(name string) *ProjectsLocationsDatasetsHl7V2StoresGetCall {
 16741  	c := &ProjectsLocationsDatasetsHl7V2StoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16742  	c.name = name
 16743  	return c
 16744  }
 16745  
 16746  // Fields allows partial responses to be retrieved. See
 16747  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 16748  // for more information.
 16749  func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresGetCall {
 16750  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16751  	return c
 16752  }
 16753  
 16754  // IfNoneMatch sets the optional parameter which makes the operation
 16755  // fail if the object's ETag matches the given value. This is useful for
 16756  // getting updates only after the object has changed since the last
 16757  // request. Use googleapi.IsNotModified to check whether the response
 16758  // error from Do is the result of In-None-Match.
 16759  func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresGetCall {
 16760  	c.ifNoneMatch_ = entityTag
 16761  	return c
 16762  }
 16763  
 16764  // Context sets the context to be used in this call's Do method. Any
 16765  // pending HTTP request will be aborted if the provided context is
 16766  // canceled.
 16767  func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresGetCall {
 16768  	c.ctx_ = ctx
 16769  	return c
 16770  }
 16771  
 16772  // Header returns an http.Header that can be modified by the caller to
 16773  // add HTTP headers to the request.
 16774  func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) Header() http.Header {
 16775  	if c.header_ == nil {
 16776  		c.header_ = make(http.Header)
 16777  	}
 16778  	return c.header_
 16779  }
 16780  
 16781  func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) doRequest(alt string) (*http.Response, error) {
 16782  	reqHeaders := make(http.Header)
 16783  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 16784  	for k, v := range c.header_ {
 16785  		reqHeaders[k] = v
 16786  	}
 16787  	reqHeaders.Set("User-Agent", c.s.userAgent())
 16788  	if c.ifNoneMatch_ != "" {
 16789  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16790  	}
 16791  	var body io.Reader = nil
 16792  	c.urlParams_.Set("alt", alt)
 16793  	c.urlParams_.Set("prettyPrint", "false")
 16794  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
 16795  	urls += "?" + c.urlParams_.Encode()
 16796  	req, err := http.NewRequest("GET", urls, body)
 16797  	if err != nil {
 16798  		return nil, err
 16799  	}
 16800  	req.Header = reqHeaders
 16801  	googleapi.Expand(req.URL, map[string]string{
 16802  		"name": c.name,
 16803  	})
 16804  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16805  }
 16806  
 16807  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.get" call.
 16808  // Exactly one of *Hl7V2Store or error will be non-nil. Any non-2xx
 16809  // status code is an error. Response headers are in either
 16810  // *Hl7V2Store.ServerResponse.Header or (if a response was returned at
 16811  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
 16812  // to check whether the returned error was because
 16813  // http.StatusNotModified was returned.
 16814  func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) Do(opts ...googleapi.CallOption) (*Hl7V2Store, error) {
 16815  	gensupport.SetOptions(c.urlParams_, opts...)
 16816  	res, err := c.doRequest("json")
 16817  	if res != nil && res.StatusCode == http.StatusNotModified {
 16818  		if res.Body != nil {
 16819  			res.Body.Close()
 16820  		}
 16821  		return nil, &googleapi.Error{
 16822  			Code:   res.StatusCode,
 16823  			Header: res.Header,
 16824  		}
 16825  	}
 16826  	if err != nil {
 16827  		return nil, err
 16828  	}
 16829  	defer googleapi.CloseBody(res)
 16830  	if err := googleapi.CheckResponse(res); err != nil {
 16831  		return nil, err
 16832  	}
 16833  	ret := &Hl7V2Store{
 16834  		ServerResponse: googleapi.ServerResponse{
 16835  			Header:         res.Header,
 16836  			HTTPStatusCode: res.StatusCode,
 16837  		},
 16838  	}
 16839  	target := &ret
 16840  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16841  		return nil, err
 16842  	}
 16843  	return ret, nil
 16844  	// {
 16845  	//   "description": "Gets the specified HL7v2 store.",
 16846  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}",
 16847  	//   "httpMethod": "GET",
 16848  	//   "id": "healthcare.projects.locations.datasets.hl7V2Stores.get",
 16849  	//   "parameterOrder": [
 16850  	//     "name"
 16851  	//   ],
 16852  	//   "parameters": {
 16853  	//     "name": {
 16854  	//       "description": "The resource name of the HL7v2 store to get.",
 16855  	//       "location": "path",
 16856  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$",
 16857  	//       "required": true,
 16858  	//       "type": "string"
 16859  	//     }
 16860  	//   },
 16861  	//   "path": "v1alpha2/{+name}",
 16862  	//   "response": {
 16863  	//     "$ref": "Hl7V2Store"
 16864  	//   },
 16865  	//   "scopes": [
 16866  	//     "https://www.googleapis.com/auth/cloud-platform"
 16867  	//   ]
 16868  	// }
 16869  
 16870  }
 16871  
 16872  // method id "healthcare.projects.locations.datasets.hl7V2Stores.getIamPolicy":
 16873  
 16874  type ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall struct {
 16875  	s            *Service
 16876  	resource     string
 16877  	urlParams_   gensupport.URLParams
 16878  	ifNoneMatch_ string
 16879  	ctx_         context.Context
 16880  	header_      http.Header
 16881  }
 16882  
 16883  // GetIamPolicy: Gets the access control policy for a resource.
 16884  // Returns an empty policy if the resource exists and does not have a
 16885  // policy
 16886  // set.
 16887  func (r *ProjectsLocationsDatasetsHl7V2StoresService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall {
 16888  	c := &ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16889  	c.resource = resource
 16890  	return c
 16891  }
 16892  
 16893  // OptionsRequestedPolicyVersion sets the optional parameter
 16894  // "options.requestedPolicyVersion": The policy format version to be
 16895  // returned.
 16896  // Acceptable values are 0, 1, and 3.
 16897  // If the value is 0, or the field is omitted, policy format version 1
 16898  // will be
 16899  // returned.
 16900  func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall {
 16901  	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
 16902  	return c
 16903  }
 16904  
 16905  // Fields allows partial responses to be retrieved. See
 16906  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 16907  // for more information.
 16908  func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall {
 16909  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16910  	return c
 16911  }
 16912  
 16913  // IfNoneMatch sets the optional parameter which makes the operation
 16914  // fail if the object's ETag matches the given value. This is useful for
 16915  // getting updates only after the object has changed since the last
 16916  // request. Use googleapi.IsNotModified to check whether the response
 16917  // error from Do is the result of In-None-Match.
 16918  func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall {
 16919  	c.ifNoneMatch_ = entityTag
 16920  	return c
 16921  }
 16922  
 16923  // Context sets the context to be used in this call's Do method. Any
 16924  // pending HTTP request will be aborted if the provided context is
 16925  // canceled.
 16926  func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall {
 16927  	c.ctx_ = ctx
 16928  	return c
 16929  }
 16930  
 16931  // Header returns an http.Header that can be modified by the caller to
 16932  // add HTTP headers to the request.
 16933  func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Header() http.Header {
 16934  	if c.header_ == nil {
 16935  		c.header_ = make(http.Header)
 16936  	}
 16937  	return c.header_
 16938  }
 16939  
 16940  func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 16941  	reqHeaders := make(http.Header)
 16942  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 16943  	for k, v := range c.header_ {
 16944  		reqHeaders[k] = v
 16945  	}
 16946  	reqHeaders.Set("User-Agent", c.s.userAgent())
 16947  	if c.ifNoneMatch_ != "" {
 16948  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16949  	}
 16950  	var body io.Reader = nil
 16951  	c.urlParams_.Set("alt", alt)
 16952  	c.urlParams_.Set("prettyPrint", "false")
 16953  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:getIamPolicy")
 16954  	urls += "?" + c.urlParams_.Encode()
 16955  	req, err := http.NewRequest("GET", urls, body)
 16956  	if err != nil {
 16957  		return nil, err
 16958  	}
 16959  	req.Header = reqHeaders
 16960  	googleapi.Expand(req.URL, map[string]string{
 16961  		"resource": c.resource,
 16962  	})
 16963  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16964  }
 16965  
 16966  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.getIamPolicy" call.
 16967  // Exactly one of *Policy or error will be non-nil. Any non-2xx status
 16968  // code is an error. Response headers are in either
 16969  // *Policy.ServerResponse.Header or (if a response was returned at all)
 16970  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 16971  // check whether the returned error was because http.StatusNotModified
 16972  // was returned.
 16973  func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
 16974  	gensupport.SetOptions(c.urlParams_, opts...)
 16975  	res, err := c.doRequest("json")
 16976  	if res != nil && res.StatusCode == http.StatusNotModified {
 16977  		if res.Body != nil {
 16978  			res.Body.Close()
 16979  		}
 16980  		return nil, &googleapi.Error{
 16981  			Code:   res.StatusCode,
 16982  			Header: res.Header,
 16983  		}
 16984  	}
 16985  	if err != nil {
 16986  		return nil, err
 16987  	}
 16988  	defer googleapi.CloseBody(res)
 16989  	if err := googleapi.CheckResponse(res); err != nil {
 16990  		return nil, err
 16991  	}
 16992  	ret := &Policy{
 16993  		ServerResponse: googleapi.ServerResponse{
 16994  			Header:         res.Header,
 16995  			HTTPStatusCode: res.StatusCode,
 16996  		},
 16997  	}
 16998  	target := &ret
 16999  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17000  		return nil, err
 17001  	}
 17002  	return ret, nil
 17003  	// {
 17004  	//   "description": "Gets the access control policy for a resource.\nReturns an empty policy if the resource exists and does not have a policy\nset.",
 17005  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}:getIamPolicy",
 17006  	//   "httpMethod": "GET",
 17007  	//   "id": "healthcare.projects.locations.datasets.hl7V2Stores.getIamPolicy",
 17008  	//   "parameterOrder": [
 17009  	//     "resource"
 17010  	//   ],
 17011  	//   "parameters": {
 17012  	//     "options.requestedPolicyVersion": {
 17013  	//       "description": "Optional. The policy format version to be returned.\nAcceptable values are 0, 1, and 3.\nIf the value is 0, or the field is omitted, policy format version 1 will be\nreturned.",
 17014  	//       "format": "int32",
 17015  	//       "location": "query",
 17016  	//       "type": "integer"
 17017  	//     },
 17018  	//     "resource": {
 17019  	//       "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.",
 17020  	//       "location": "path",
 17021  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$",
 17022  	//       "required": true,
 17023  	//       "type": "string"
 17024  	//     }
 17025  	//   },
 17026  	//   "path": "v1alpha2/{+resource}:getIamPolicy",
 17027  	//   "response": {
 17028  	//     "$ref": "Policy"
 17029  	//   },
 17030  	//   "scopes": [
 17031  	//     "https://www.googleapis.com/auth/cloud-platform"
 17032  	//   ]
 17033  	// }
 17034  
 17035  }
 17036  
 17037  // method id "healthcare.projects.locations.datasets.hl7V2Stores.list":
 17038  
 17039  type ProjectsLocationsDatasetsHl7V2StoresListCall struct {
 17040  	s            *Service
 17041  	parent       string
 17042  	urlParams_   gensupport.URLParams
 17043  	ifNoneMatch_ string
 17044  	ctx_         context.Context
 17045  	header_      http.Header
 17046  }
 17047  
 17048  // List: Lists the HL7v2 stores in the given dataset.
 17049  func (r *ProjectsLocationsDatasetsHl7V2StoresService) List(parent string) *ProjectsLocationsDatasetsHl7V2StoresListCall {
 17050  	c := &ProjectsLocationsDatasetsHl7V2StoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17051  	c.parent = parent
 17052  	return c
 17053  }
 17054  
 17055  // Filter sets the optional parameter "filter": Restricts stores
 17056  // returned to those matching a filter.
 17057  // Syntax:
 17058  // https://cloud.google.com/appengine/docs/standard/python/search
 17059  // /query_strings
 17060  // Only filtering on labels is supported, for example
 17061  // `labels.key=value`.
 17062  func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Filter(filter string) *ProjectsLocationsDatasetsHl7V2StoresListCall {
 17063  	c.urlParams_.Set("filter", filter)
 17064  	return c
 17065  }
 17066  
 17067  // PageSize sets the optional parameter "pageSize": Limit on the number
 17068  // of HL7v2 stores to return in a single response.
 17069  // If zero the default page size of 100 is used.
 17070  func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsHl7V2StoresListCall {
 17071  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 17072  	return c
 17073  }
 17074  
 17075  // PageToken sets the optional parameter "pageToken": The
 17076  // next_page_token value returned from the previous List request, if
 17077  // any.
 17078  func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsHl7V2StoresListCall {
 17079  	c.urlParams_.Set("pageToken", pageToken)
 17080  	return c
 17081  }
 17082  
 17083  // Fields allows partial responses to be retrieved. See
 17084  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 17085  // for more information.
 17086  func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresListCall {
 17087  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17088  	return c
 17089  }
 17090  
 17091  // IfNoneMatch sets the optional parameter which makes the operation
 17092  // fail if the object's ETag matches the given value. This is useful for
 17093  // getting updates only after the object has changed since the last
 17094  // request. Use googleapi.IsNotModified to check whether the response
 17095  // error from Do is the result of In-None-Match.
 17096  func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresListCall {
 17097  	c.ifNoneMatch_ = entityTag
 17098  	return c
 17099  }
 17100  
 17101  // Context sets the context to be used in this call's Do method. Any
 17102  // pending HTTP request will be aborted if the provided context is
 17103  // canceled.
 17104  func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresListCall {
 17105  	c.ctx_ = ctx
 17106  	return c
 17107  }
 17108  
 17109  // Header returns an http.Header that can be modified by the caller to
 17110  // add HTTP headers to the request.
 17111  func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Header() http.Header {
 17112  	if c.header_ == nil {
 17113  		c.header_ = make(http.Header)
 17114  	}
 17115  	return c.header_
 17116  }
 17117  
 17118  func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) doRequest(alt string) (*http.Response, error) {
 17119  	reqHeaders := make(http.Header)
 17120  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 17121  	for k, v := range c.header_ {
 17122  		reqHeaders[k] = v
 17123  	}
 17124  	reqHeaders.Set("User-Agent", c.s.userAgent())
 17125  	if c.ifNoneMatch_ != "" {
 17126  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17127  	}
 17128  	var body io.Reader = nil
 17129  	c.urlParams_.Set("alt", alt)
 17130  	c.urlParams_.Set("prettyPrint", "false")
 17131  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/hl7V2Stores")
 17132  	urls += "?" + c.urlParams_.Encode()
 17133  	req, err := http.NewRequest("GET", urls, body)
 17134  	if err != nil {
 17135  		return nil, err
 17136  	}
 17137  	req.Header = reqHeaders
 17138  	googleapi.Expand(req.URL, map[string]string{
 17139  		"parent": c.parent,
 17140  	})
 17141  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17142  }
 17143  
 17144  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.list" call.
 17145  // Exactly one of *ListHl7V2StoresResponse or error will be non-nil. Any
 17146  // non-2xx status code is an error. Response headers are in either
 17147  // *ListHl7V2StoresResponse.ServerResponse.Header or (if a response was
 17148  // returned at all) in error.(*googleapi.Error).Header. Use
 17149  // googleapi.IsNotModified to check whether the returned error was
 17150  // because http.StatusNotModified was returned.
 17151  func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Do(opts ...googleapi.CallOption) (*ListHl7V2StoresResponse, error) {
 17152  	gensupport.SetOptions(c.urlParams_, opts...)
 17153  	res, err := c.doRequest("json")
 17154  	if res != nil && res.StatusCode == http.StatusNotModified {
 17155  		if res.Body != nil {
 17156  			res.Body.Close()
 17157  		}
 17158  		return nil, &googleapi.Error{
 17159  			Code:   res.StatusCode,
 17160  			Header: res.Header,
 17161  		}
 17162  	}
 17163  	if err != nil {
 17164  		return nil, err
 17165  	}
 17166  	defer googleapi.CloseBody(res)
 17167  	if err := googleapi.CheckResponse(res); err != nil {
 17168  		return nil, err
 17169  	}
 17170  	ret := &ListHl7V2StoresResponse{
 17171  		ServerResponse: googleapi.ServerResponse{
 17172  			Header:         res.Header,
 17173  			HTTPStatusCode: res.StatusCode,
 17174  		},
 17175  	}
 17176  	target := &ret
 17177  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17178  		return nil, err
 17179  	}
 17180  	return ret, nil
 17181  	// {
 17182  	//   "description": "Lists the HL7v2 stores in the given dataset.",
 17183  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores",
 17184  	//   "httpMethod": "GET",
 17185  	//   "id": "healthcare.projects.locations.datasets.hl7V2Stores.list",
 17186  	//   "parameterOrder": [
 17187  	//     "parent"
 17188  	//   ],
 17189  	//   "parameters": {
 17190  	//     "filter": {
 17191  	//       "description": "Restricts stores returned to those matching a filter. Syntax:\nhttps://cloud.google.com/appengine/docs/standard/python/search/query_strings\nOnly filtering on labels is supported, for example `labels.key=value`.",
 17192  	//       "location": "query",
 17193  	//       "type": "string"
 17194  	//     },
 17195  	//     "pageSize": {
 17196  	//       "description": "Limit on the number of HL7v2 stores to return in a single response.\nIf zero the default page size of 100 is used.",
 17197  	//       "format": "int32",
 17198  	//       "location": "query",
 17199  	//       "type": "integer"
 17200  	//     },
 17201  	//     "pageToken": {
 17202  	//       "description": "The next_page_token value returned from the previous List request, if any.",
 17203  	//       "location": "query",
 17204  	//       "type": "string"
 17205  	//     },
 17206  	//     "parent": {
 17207  	//       "description": "Name of the dataset.",
 17208  	//       "location": "path",
 17209  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
 17210  	//       "required": true,
 17211  	//       "type": "string"
 17212  	//     }
 17213  	//   },
 17214  	//   "path": "v1alpha2/{+parent}/hl7V2Stores",
 17215  	//   "response": {
 17216  	//     "$ref": "ListHl7V2StoresResponse"
 17217  	//   },
 17218  	//   "scopes": [
 17219  	//     "https://www.googleapis.com/auth/cloud-platform"
 17220  	//   ]
 17221  	// }
 17222  
 17223  }
 17224  
 17225  // Pages invokes f for each page of results.
 17226  // A non-nil error returned from f will halt the iteration.
 17227  // The provided context supersedes any context provided to the Context method.
 17228  func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Pages(ctx context.Context, f func(*ListHl7V2StoresResponse) error) error {
 17229  	c.ctx_ = ctx
 17230  	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
 17231  	for {
 17232  		x, err := c.Do()
 17233  		if err != nil {
 17234  			return err
 17235  		}
 17236  		if err := f(x); err != nil {
 17237  			return err
 17238  		}
 17239  		if x.NextPageToken == "" {
 17240  			return nil
 17241  		}
 17242  		c.PageToken(x.NextPageToken)
 17243  	}
 17244  }
 17245  
 17246  // method id "healthcare.projects.locations.datasets.hl7V2Stores.patch":
 17247  
 17248  type ProjectsLocationsDatasetsHl7V2StoresPatchCall struct {
 17249  	s          *Service
 17250  	name       string
 17251  	hl7v2store *Hl7V2Store
 17252  	urlParams_ gensupport.URLParams
 17253  	ctx_       context.Context
 17254  	header_    http.Header
 17255  }
 17256  
 17257  // Patch: Updates the HL7v2 store.
 17258  func (r *ProjectsLocationsDatasetsHl7V2StoresService) Patch(name string, hl7v2store *Hl7V2Store) *ProjectsLocationsDatasetsHl7V2StoresPatchCall {
 17259  	c := &ProjectsLocationsDatasetsHl7V2StoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17260  	c.name = name
 17261  	c.hl7v2store = hl7v2store
 17262  	return c
 17263  }
 17264  
 17265  // UpdateMask sets the optional parameter "updateMask": The update mask
 17266  // applies to the resource. For the `FieldMask`
 17267  // definition,
 17268  // see
 17269  // https://developers.google.com/protocol-buffers/docs/re
 17270  // ference/google.protobuf#fieldmask
 17271  func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsHl7V2StoresPatchCall {
 17272  	c.urlParams_.Set("updateMask", updateMask)
 17273  	return c
 17274  }
 17275  
 17276  // Fields allows partial responses to be retrieved. See
 17277  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 17278  // for more information.
 17279  func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresPatchCall {
 17280  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17281  	return c
 17282  }
 17283  
 17284  // Context sets the context to be used in this call's Do method. Any
 17285  // pending HTTP request will be aborted if the provided context is
 17286  // canceled.
 17287  func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresPatchCall {
 17288  	c.ctx_ = ctx
 17289  	return c
 17290  }
 17291  
 17292  // Header returns an http.Header that can be modified by the caller to
 17293  // add HTTP headers to the request.
 17294  func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) Header() http.Header {
 17295  	if c.header_ == nil {
 17296  		c.header_ = make(http.Header)
 17297  	}
 17298  	return c.header_
 17299  }
 17300  
 17301  func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) doRequest(alt string) (*http.Response, error) {
 17302  	reqHeaders := make(http.Header)
 17303  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 17304  	for k, v := range c.header_ {
 17305  		reqHeaders[k] = v
 17306  	}
 17307  	reqHeaders.Set("User-Agent", c.s.userAgent())
 17308  	var body io.Reader = nil
 17309  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.hl7v2store)
 17310  	if err != nil {
 17311  		return nil, err
 17312  	}
 17313  	reqHeaders.Set("Content-Type", "application/json")
 17314  	c.urlParams_.Set("alt", alt)
 17315  	c.urlParams_.Set("prettyPrint", "false")
 17316  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
 17317  	urls += "?" + c.urlParams_.Encode()
 17318  	req, err := http.NewRequest("PATCH", urls, body)
 17319  	if err != nil {
 17320  		return nil, err
 17321  	}
 17322  	req.Header = reqHeaders
 17323  	googleapi.Expand(req.URL, map[string]string{
 17324  		"name": c.name,
 17325  	})
 17326  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17327  }
 17328  
 17329  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.patch" call.
 17330  // Exactly one of *Hl7V2Store or error will be non-nil. Any non-2xx
 17331  // status code is an error. Response headers are in either
 17332  // *Hl7V2Store.ServerResponse.Header or (if a response was returned at
 17333  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
 17334  // to check whether the returned error was because
 17335  // http.StatusNotModified was returned.
 17336  func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) Do(opts ...googleapi.CallOption) (*Hl7V2Store, error) {
 17337  	gensupport.SetOptions(c.urlParams_, opts...)
 17338  	res, err := c.doRequest("json")
 17339  	if res != nil && res.StatusCode == http.StatusNotModified {
 17340  		if res.Body != nil {
 17341  			res.Body.Close()
 17342  		}
 17343  		return nil, &googleapi.Error{
 17344  			Code:   res.StatusCode,
 17345  			Header: res.Header,
 17346  		}
 17347  	}
 17348  	if err != nil {
 17349  		return nil, err
 17350  	}
 17351  	defer googleapi.CloseBody(res)
 17352  	if err := googleapi.CheckResponse(res); err != nil {
 17353  		return nil, err
 17354  	}
 17355  	ret := &Hl7V2Store{
 17356  		ServerResponse: googleapi.ServerResponse{
 17357  			Header:         res.Header,
 17358  			HTTPStatusCode: res.StatusCode,
 17359  		},
 17360  	}
 17361  	target := &ret
 17362  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17363  		return nil, err
 17364  	}
 17365  	return ret, nil
 17366  	// {
 17367  	//   "description": "Updates the HL7v2 store.",
 17368  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}",
 17369  	//   "httpMethod": "PATCH",
 17370  	//   "id": "healthcare.projects.locations.datasets.hl7V2Stores.patch",
 17371  	//   "parameterOrder": [
 17372  	//     "name"
 17373  	//   ],
 17374  	//   "parameters": {
 17375  	//     "name": {
 17376  	//       "description": "Output only. Resource name of the HL7v2 store, of the form\n`projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7v2_store_id}`.",
 17377  	//       "location": "path",
 17378  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$",
 17379  	//       "required": true,
 17380  	//       "type": "string"
 17381  	//     },
 17382  	//     "updateMask": {
 17383  	//       "description": "The update mask applies to the resource. For the `FieldMask` definition,\nsee\nhttps://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask",
 17384  	//       "format": "google-fieldmask",
 17385  	//       "location": "query",
 17386  	//       "type": "string"
 17387  	//     }
 17388  	//   },
 17389  	//   "path": "v1alpha2/{+name}",
 17390  	//   "request": {
 17391  	//     "$ref": "Hl7V2Store"
 17392  	//   },
 17393  	//   "response": {
 17394  	//     "$ref": "Hl7V2Store"
 17395  	//   },
 17396  	//   "scopes": [
 17397  	//     "https://www.googleapis.com/auth/cloud-platform"
 17398  	//   ]
 17399  	// }
 17400  
 17401  }
 17402  
 17403  // method id "healthcare.projects.locations.datasets.hl7V2Stores.setIamPolicy":
 17404  
 17405  type ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall struct {
 17406  	s                   *Service
 17407  	resource            string
 17408  	setiampolicyrequest *SetIamPolicyRequest
 17409  	urlParams_          gensupport.URLParams
 17410  	ctx_                context.Context
 17411  	header_             http.Header
 17412  }
 17413  
 17414  // SetIamPolicy: Sets the access control policy on the specified
 17415  // resource. Replaces any
 17416  // existing policy.
 17417  func (r *ProjectsLocationsDatasetsHl7V2StoresService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall {
 17418  	c := &ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17419  	c.resource = resource
 17420  	c.setiampolicyrequest = setiampolicyrequest
 17421  	return c
 17422  }
 17423  
 17424  // Fields allows partial responses to be retrieved. See
 17425  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 17426  // for more information.
 17427  func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall {
 17428  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17429  	return c
 17430  }
 17431  
 17432  // Context sets the context to be used in this call's Do method. Any
 17433  // pending HTTP request will be aborted if the provided context is
 17434  // canceled.
 17435  func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall {
 17436  	c.ctx_ = ctx
 17437  	return c
 17438  }
 17439  
 17440  // Header returns an http.Header that can be modified by the caller to
 17441  // add HTTP headers to the request.
 17442  func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Header() http.Header {
 17443  	if c.header_ == nil {
 17444  		c.header_ = make(http.Header)
 17445  	}
 17446  	return c.header_
 17447  }
 17448  
 17449  func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
 17450  	reqHeaders := make(http.Header)
 17451  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 17452  	for k, v := range c.header_ {
 17453  		reqHeaders[k] = v
 17454  	}
 17455  	reqHeaders.Set("User-Agent", c.s.userAgent())
 17456  	var body io.Reader = nil
 17457  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
 17458  	if err != nil {
 17459  		return nil, err
 17460  	}
 17461  	reqHeaders.Set("Content-Type", "application/json")
 17462  	c.urlParams_.Set("alt", alt)
 17463  	c.urlParams_.Set("prettyPrint", "false")
 17464  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:setIamPolicy")
 17465  	urls += "?" + c.urlParams_.Encode()
 17466  	req, err := http.NewRequest("POST", urls, body)
 17467  	if err != nil {
 17468  		return nil, err
 17469  	}
 17470  	req.Header = reqHeaders
 17471  	googleapi.Expand(req.URL, map[string]string{
 17472  		"resource": c.resource,
 17473  	})
 17474  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17475  }
 17476  
 17477  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.setIamPolicy" call.
 17478  // Exactly one of *Policy or error will be non-nil. Any non-2xx status
 17479  // code is an error. Response headers are in either
 17480  // *Policy.ServerResponse.Header or (if a response was returned at all)
 17481  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 17482  // check whether the returned error was because http.StatusNotModified
 17483  // was returned.
 17484  func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
 17485  	gensupport.SetOptions(c.urlParams_, opts...)
 17486  	res, err := c.doRequest("json")
 17487  	if res != nil && res.StatusCode == http.StatusNotModified {
 17488  		if res.Body != nil {
 17489  			res.Body.Close()
 17490  		}
 17491  		return nil, &googleapi.Error{
 17492  			Code:   res.StatusCode,
 17493  			Header: res.Header,
 17494  		}
 17495  	}
 17496  	if err != nil {
 17497  		return nil, err
 17498  	}
 17499  	defer googleapi.CloseBody(res)
 17500  	if err := googleapi.CheckResponse(res); err != nil {
 17501  		return nil, err
 17502  	}
 17503  	ret := &Policy{
 17504  		ServerResponse: googleapi.ServerResponse{
 17505  			Header:         res.Header,
 17506  			HTTPStatusCode: res.StatusCode,
 17507  		},
 17508  	}
 17509  	target := &ret
 17510  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17511  		return nil, err
 17512  	}
 17513  	return ret, nil
 17514  	// {
 17515  	//   "description": "Sets the access control policy on the specified resource. Replaces any\nexisting policy.",
 17516  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}:setIamPolicy",
 17517  	//   "httpMethod": "POST",
 17518  	//   "id": "healthcare.projects.locations.datasets.hl7V2Stores.setIamPolicy",
 17519  	//   "parameterOrder": [
 17520  	//     "resource"
 17521  	//   ],
 17522  	//   "parameters": {
 17523  	//     "resource": {
 17524  	//       "description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.",
 17525  	//       "location": "path",
 17526  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$",
 17527  	//       "required": true,
 17528  	//       "type": "string"
 17529  	//     }
 17530  	//   },
 17531  	//   "path": "v1alpha2/{+resource}:setIamPolicy",
 17532  	//   "request": {
 17533  	//     "$ref": "SetIamPolicyRequest"
 17534  	//   },
 17535  	//   "response": {
 17536  	//     "$ref": "Policy"
 17537  	//   },
 17538  	//   "scopes": [
 17539  	//     "https://www.googleapis.com/auth/cloud-platform"
 17540  	//   ]
 17541  	// }
 17542  
 17543  }
 17544  
 17545  // method id "healthcare.projects.locations.datasets.hl7V2Stores.testIamPermissions":
 17546  
 17547  type ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall struct {
 17548  	s                         *Service
 17549  	resource                  string
 17550  	testiampermissionsrequest *TestIamPermissionsRequest
 17551  	urlParams_                gensupport.URLParams
 17552  	ctx_                      context.Context
 17553  	header_                   http.Header
 17554  }
 17555  
 17556  // TestIamPermissions: Returns permissions that a caller has on the
 17557  // specified resource.
 17558  // If the resource does not exist, this will return an empty set
 17559  // of
 17560  // permissions, not a NOT_FOUND error.
 17561  //
 17562  // Note: This operation is designed to be used for building
 17563  // permission-aware
 17564  // UIs and command-line tools, not for authorization checking. This
 17565  // operation
 17566  // may "fail open" without warning.
 17567  func (r *ProjectsLocationsDatasetsHl7V2StoresService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall {
 17568  	c := &ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17569  	c.resource = resource
 17570  	c.testiampermissionsrequest = testiampermissionsrequest
 17571  	return c
 17572  }
 17573  
 17574  // Fields allows partial responses to be retrieved. See
 17575  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 17576  // for more information.
 17577  func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall {
 17578  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17579  	return c
 17580  }
 17581  
 17582  // Context sets the context to be used in this call's Do method. Any
 17583  // pending HTTP request will be aborted if the provided context is
 17584  // canceled.
 17585  func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall {
 17586  	c.ctx_ = ctx
 17587  	return c
 17588  }
 17589  
 17590  // Header returns an http.Header that can be modified by the caller to
 17591  // add HTTP headers to the request.
 17592  func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Header() http.Header {
 17593  	if c.header_ == nil {
 17594  		c.header_ = make(http.Header)
 17595  	}
 17596  	return c.header_
 17597  }
 17598  
 17599  func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
 17600  	reqHeaders := make(http.Header)
 17601  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 17602  	for k, v := range c.header_ {
 17603  		reqHeaders[k] = v
 17604  	}
 17605  	reqHeaders.Set("User-Agent", c.s.userAgent())
 17606  	var body io.Reader = nil
 17607  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
 17608  	if err != nil {
 17609  		return nil, err
 17610  	}
 17611  	reqHeaders.Set("Content-Type", "application/json")
 17612  	c.urlParams_.Set("alt", alt)
 17613  	c.urlParams_.Set("prettyPrint", "false")
 17614  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:testIamPermissions")
 17615  	urls += "?" + c.urlParams_.Encode()
 17616  	req, err := http.NewRequest("POST", urls, body)
 17617  	if err != nil {
 17618  		return nil, err
 17619  	}
 17620  	req.Header = reqHeaders
 17621  	googleapi.Expand(req.URL, map[string]string{
 17622  		"resource": c.resource,
 17623  	})
 17624  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17625  }
 17626  
 17627  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.testIamPermissions" call.
 17628  // Exactly one of *TestIamPermissionsResponse or error will be non-nil.
 17629  // Any non-2xx status code is an error. Response headers are in either
 17630  // *TestIamPermissionsResponse.ServerResponse.Header or (if a response
 17631  // was returned at all) in error.(*googleapi.Error).Header. Use
 17632  // googleapi.IsNotModified to check whether the returned error was
 17633  // because http.StatusNotModified was returned.
 17634  func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
 17635  	gensupport.SetOptions(c.urlParams_, opts...)
 17636  	res, err := c.doRequest("json")
 17637  	if res != nil && res.StatusCode == http.StatusNotModified {
 17638  		if res.Body != nil {
 17639  			res.Body.Close()
 17640  		}
 17641  		return nil, &googleapi.Error{
 17642  			Code:   res.StatusCode,
 17643  			Header: res.Header,
 17644  		}
 17645  	}
 17646  	if err != nil {
 17647  		return nil, err
 17648  	}
 17649  	defer googleapi.CloseBody(res)
 17650  	if err := googleapi.CheckResponse(res); err != nil {
 17651  		return nil, err
 17652  	}
 17653  	ret := &TestIamPermissionsResponse{
 17654  		ServerResponse: googleapi.ServerResponse{
 17655  			Header:         res.Header,
 17656  			HTTPStatusCode: res.StatusCode,
 17657  		},
 17658  	}
 17659  	target := &ret
 17660  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17661  		return nil, err
 17662  	}
 17663  	return ret, nil
 17664  	// {
 17665  	//   "description": "Returns permissions that a caller has on the specified resource.\nIf the resource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building permission-aware\nUIs and command-line tools, not for authorization checking. This operation\nmay \"fail open\" without warning.",
 17666  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}:testIamPermissions",
 17667  	//   "httpMethod": "POST",
 17668  	//   "id": "healthcare.projects.locations.datasets.hl7V2Stores.testIamPermissions",
 17669  	//   "parameterOrder": [
 17670  	//     "resource"
 17671  	//   ],
 17672  	//   "parameters": {
 17673  	//     "resource": {
 17674  	//       "description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.",
 17675  	//       "location": "path",
 17676  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$",
 17677  	//       "required": true,
 17678  	//       "type": "string"
 17679  	//     }
 17680  	//   },
 17681  	//   "path": "v1alpha2/{+resource}:testIamPermissions",
 17682  	//   "request": {
 17683  	//     "$ref": "TestIamPermissionsRequest"
 17684  	//   },
 17685  	//   "response": {
 17686  	//     "$ref": "TestIamPermissionsResponse"
 17687  	//   },
 17688  	//   "scopes": [
 17689  	//     "https://www.googleapis.com/auth/cloud-platform"
 17690  	//   ]
 17691  	// }
 17692  
 17693  }
 17694  
 17695  // method id "healthcare.projects.locations.datasets.hl7V2Stores.messages.create":
 17696  
 17697  type ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall struct {
 17698  	s                    *Service
 17699  	parent               string
 17700  	createmessagerequest *CreateMessageRequest
 17701  	urlParams_           gensupport.URLParams
 17702  	ctx_                 context.Context
 17703  	header_              http.Header
 17704  }
 17705  
 17706  // Create: Creates a message and sends a notification to the Cloud
 17707  // Pub/Sub topic. If
 17708  // configured, the MLLP adapter listens to messages created by this
 17709  // method and
 17710  // sends those back to the hospital. A successful response indicates
 17711  // the
 17712  // message has been persisted to storage and a Cloud Pub/Sub
 17713  // notification has
 17714  // been sent. Sending to the hospital by the MLLP adapter
 17715  // happens
 17716  // asynchronously.
 17717  func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Create(parent string, createmessagerequest *CreateMessageRequest) *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall {
 17718  	c := &ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17719  	c.parent = parent
 17720  	c.createmessagerequest = createmessagerequest
 17721  	return c
 17722  }
 17723  
 17724  // Fields allows partial responses to be retrieved. See
 17725  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 17726  // for more information.
 17727  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall {
 17728  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17729  	return c
 17730  }
 17731  
 17732  // Context sets the context to be used in this call's Do method. Any
 17733  // pending HTTP request will be aborted if the provided context is
 17734  // canceled.
 17735  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall {
 17736  	c.ctx_ = ctx
 17737  	return c
 17738  }
 17739  
 17740  // Header returns an http.Header that can be modified by the caller to
 17741  // add HTTP headers to the request.
 17742  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) Header() http.Header {
 17743  	if c.header_ == nil {
 17744  		c.header_ = make(http.Header)
 17745  	}
 17746  	return c.header_
 17747  }
 17748  
 17749  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) doRequest(alt string) (*http.Response, error) {
 17750  	reqHeaders := make(http.Header)
 17751  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 17752  	for k, v := range c.header_ {
 17753  		reqHeaders[k] = v
 17754  	}
 17755  	reqHeaders.Set("User-Agent", c.s.userAgent())
 17756  	var body io.Reader = nil
 17757  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.createmessagerequest)
 17758  	if err != nil {
 17759  		return nil, err
 17760  	}
 17761  	reqHeaders.Set("Content-Type", "application/json")
 17762  	c.urlParams_.Set("alt", alt)
 17763  	c.urlParams_.Set("prettyPrint", "false")
 17764  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/messages")
 17765  	urls += "?" + c.urlParams_.Encode()
 17766  	req, err := http.NewRequest("POST", urls, body)
 17767  	if err != nil {
 17768  		return nil, err
 17769  	}
 17770  	req.Header = reqHeaders
 17771  	googleapi.Expand(req.URL, map[string]string{
 17772  		"parent": c.parent,
 17773  	})
 17774  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17775  }
 17776  
 17777  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.create" call.
 17778  // Exactly one of *Message or error will be non-nil. Any non-2xx status
 17779  // code is an error. Response headers are in either
 17780  // *Message.ServerResponse.Header or (if a response was returned at all)
 17781  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 17782  // check whether the returned error was because http.StatusNotModified
 17783  // was returned.
 17784  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) Do(opts ...googleapi.CallOption) (*Message, error) {
 17785  	gensupport.SetOptions(c.urlParams_, opts...)
 17786  	res, err := c.doRequest("json")
 17787  	if res != nil && res.StatusCode == http.StatusNotModified {
 17788  		if res.Body != nil {
 17789  			res.Body.Close()
 17790  		}
 17791  		return nil, &googleapi.Error{
 17792  			Code:   res.StatusCode,
 17793  			Header: res.Header,
 17794  		}
 17795  	}
 17796  	if err != nil {
 17797  		return nil, err
 17798  	}
 17799  	defer googleapi.CloseBody(res)
 17800  	if err := googleapi.CheckResponse(res); err != nil {
 17801  		return nil, err
 17802  	}
 17803  	ret := &Message{
 17804  		ServerResponse: googleapi.ServerResponse{
 17805  			Header:         res.Header,
 17806  			HTTPStatusCode: res.StatusCode,
 17807  		},
 17808  	}
 17809  	target := &ret
 17810  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17811  		return nil, err
 17812  	}
 17813  	return ret, nil
 17814  	// {
 17815  	//   "description": "Creates a message and sends a notification to the Cloud Pub/Sub topic. If\nconfigured, the MLLP adapter listens to messages created by this method and\nsends those back to the hospital. A successful response indicates the\nmessage has been persisted to storage and a Cloud Pub/Sub notification has\nbeen sent. Sending to the hospital by the MLLP adapter happens\nasynchronously.",
 17816  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}/messages",
 17817  	//   "httpMethod": "POST",
 17818  	//   "id": "healthcare.projects.locations.datasets.hl7V2Stores.messages.create",
 17819  	//   "parameterOrder": [
 17820  	//     "parent"
 17821  	//   ],
 17822  	//   "parameters": {
 17823  	//     "parent": {
 17824  	//       "description": "The name of the dataset this message belongs to.",
 17825  	//       "location": "path",
 17826  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$",
 17827  	//       "required": true,
 17828  	//       "type": "string"
 17829  	//     }
 17830  	//   },
 17831  	//   "path": "v1alpha2/{+parent}/messages",
 17832  	//   "request": {
 17833  	//     "$ref": "CreateMessageRequest"
 17834  	//   },
 17835  	//   "response": {
 17836  	//     "$ref": "Message"
 17837  	//   },
 17838  	//   "scopes": [
 17839  	//     "https://www.googleapis.com/auth/cloud-platform"
 17840  	//   ]
 17841  	// }
 17842  
 17843  }
 17844  
 17845  // method id "healthcare.projects.locations.datasets.hl7V2Stores.messages.delete":
 17846  
 17847  type ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall struct {
 17848  	s          *Service
 17849  	name       string
 17850  	urlParams_ gensupport.URLParams
 17851  	ctx_       context.Context
 17852  	header_    http.Header
 17853  }
 17854  
 17855  // Delete: Deletes an HL7v2 message.
 17856  func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Delete(name string) *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall {
 17857  	c := &ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17858  	c.name = name
 17859  	return c
 17860  }
 17861  
 17862  // Fields allows partial responses to be retrieved. See
 17863  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 17864  // for more information.
 17865  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall {
 17866  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17867  	return c
 17868  }
 17869  
 17870  // Context sets the context to be used in this call's Do method. Any
 17871  // pending HTTP request will be aborted if the provided context is
 17872  // canceled.
 17873  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall {
 17874  	c.ctx_ = ctx
 17875  	return c
 17876  }
 17877  
 17878  // Header returns an http.Header that can be modified by the caller to
 17879  // add HTTP headers to the request.
 17880  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) Header() http.Header {
 17881  	if c.header_ == nil {
 17882  		c.header_ = make(http.Header)
 17883  	}
 17884  	return c.header_
 17885  }
 17886  
 17887  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) doRequest(alt string) (*http.Response, error) {
 17888  	reqHeaders := make(http.Header)
 17889  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 17890  	for k, v := range c.header_ {
 17891  		reqHeaders[k] = v
 17892  	}
 17893  	reqHeaders.Set("User-Agent", c.s.userAgent())
 17894  	var body io.Reader = nil
 17895  	c.urlParams_.Set("alt", alt)
 17896  	c.urlParams_.Set("prettyPrint", "false")
 17897  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
 17898  	urls += "?" + c.urlParams_.Encode()
 17899  	req, err := http.NewRequest("DELETE", urls, body)
 17900  	if err != nil {
 17901  		return nil, err
 17902  	}
 17903  	req.Header = reqHeaders
 17904  	googleapi.Expand(req.URL, map[string]string{
 17905  		"name": c.name,
 17906  	})
 17907  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17908  }
 17909  
 17910  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.delete" call.
 17911  // Exactly one of *Empty or error will be non-nil. Any non-2xx status
 17912  // code is an error. Response headers are in either
 17913  // *Empty.ServerResponse.Header or (if a response was returned at all)
 17914  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 17915  // check whether the returned error was because http.StatusNotModified
 17916  // was returned.
 17917  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
 17918  	gensupport.SetOptions(c.urlParams_, opts...)
 17919  	res, err := c.doRequest("json")
 17920  	if res != nil && res.StatusCode == http.StatusNotModified {
 17921  		if res.Body != nil {
 17922  			res.Body.Close()
 17923  		}
 17924  		return nil, &googleapi.Error{
 17925  			Code:   res.StatusCode,
 17926  			Header: res.Header,
 17927  		}
 17928  	}
 17929  	if err != nil {
 17930  		return nil, err
 17931  	}
 17932  	defer googleapi.CloseBody(res)
 17933  	if err := googleapi.CheckResponse(res); err != nil {
 17934  		return nil, err
 17935  	}
 17936  	ret := &Empty{
 17937  		ServerResponse: googleapi.ServerResponse{
 17938  			Header:         res.Header,
 17939  			HTTPStatusCode: res.StatusCode,
 17940  		},
 17941  	}
 17942  	target := &ret
 17943  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17944  		return nil, err
 17945  	}
 17946  	return ret, nil
 17947  	// {
 17948  	//   "description": "Deletes an HL7v2 message.",
 17949  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}/messages/{messagesId}",
 17950  	//   "httpMethod": "DELETE",
 17951  	//   "id": "healthcare.projects.locations.datasets.hl7V2Stores.messages.delete",
 17952  	//   "parameterOrder": [
 17953  	//     "name"
 17954  	//   ],
 17955  	//   "parameters": {
 17956  	//     "name": {
 17957  	//       "description": "The resource name of the HL7v2 message to delete.",
 17958  	//       "location": "path",
 17959  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+/messages/[^/]+$",
 17960  	//       "required": true,
 17961  	//       "type": "string"
 17962  	//     }
 17963  	//   },
 17964  	//   "path": "v1alpha2/{+name}",
 17965  	//   "response": {
 17966  	//     "$ref": "Empty"
 17967  	//   },
 17968  	//   "scopes": [
 17969  	//     "https://www.googleapis.com/auth/cloud-platform"
 17970  	//   ]
 17971  	// }
 17972  
 17973  }
 17974  
 17975  // method id "healthcare.projects.locations.datasets.hl7V2Stores.messages.get":
 17976  
 17977  type ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall struct {
 17978  	s            *Service
 17979  	name         string
 17980  	urlParams_   gensupport.URLParams
 17981  	ifNoneMatch_ string
 17982  	ctx_         context.Context
 17983  	header_      http.Header
 17984  }
 17985  
 17986  // Get: Gets an HL7v2 message.
 17987  func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Get(name string) *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall {
 17988  	c := &ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17989  	c.name = name
 17990  	return c
 17991  }
 17992  
 17993  // View sets the optional parameter "view": Specifies which parts of the
 17994  // Message resource should be returned
 17995  // in the response.
 17996  //
 17997  // Possible values:
 17998  //
 17999  //	"MESSAGE_VIEW_UNSPECIFIED"
 18000  //	"RAW_ONLY"
 18001  //	"PARSED_ONLY"
 18002  //	"FULL"
 18003  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) View(view string) *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall {
 18004  	c.urlParams_.Set("view", view)
 18005  	return c
 18006  }
 18007  
 18008  // Fields allows partial responses to be retrieved. See
 18009  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 18010  // for more information.
 18011  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall {
 18012  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18013  	return c
 18014  }
 18015  
 18016  // IfNoneMatch sets the optional parameter which makes the operation
 18017  // fail if the object's ETag matches the given value. This is useful for
 18018  // getting updates only after the object has changed since the last
 18019  // request. Use googleapi.IsNotModified to check whether the response
 18020  // error from Do is the result of In-None-Match.
 18021  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall {
 18022  	c.ifNoneMatch_ = entityTag
 18023  	return c
 18024  }
 18025  
 18026  // Context sets the context to be used in this call's Do method. Any
 18027  // pending HTTP request will be aborted if the provided context is
 18028  // canceled.
 18029  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall {
 18030  	c.ctx_ = ctx
 18031  	return c
 18032  }
 18033  
 18034  // Header returns an http.Header that can be modified by the caller to
 18035  // add HTTP headers to the request.
 18036  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) Header() http.Header {
 18037  	if c.header_ == nil {
 18038  		c.header_ = make(http.Header)
 18039  	}
 18040  	return c.header_
 18041  }
 18042  
 18043  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) doRequest(alt string) (*http.Response, error) {
 18044  	reqHeaders := make(http.Header)
 18045  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 18046  	for k, v := range c.header_ {
 18047  		reqHeaders[k] = v
 18048  	}
 18049  	reqHeaders.Set("User-Agent", c.s.userAgent())
 18050  	if c.ifNoneMatch_ != "" {
 18051  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18052  	}
 18053  	var body io.Reader = nil
 18054  	c.urlParams_.Set("alt", alt)
 18055  	c.urlParams_.Set("prettyPrint", "false")
 18056  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
 18057  	urls += "?" + c.urlParams_.Encode()
 18058  	req, err := http.NewRequest("GET", urls, body)
 18059  	if err != nil {
 18060  		return nil, err
 18061  	}
 18062  	req.Header = reqHeaders
 18063  	googleapi.Expand(req.URL, map[string]string{
 18064  		"name": c.name,
 18065  	})
 18066  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18067  }
 18068  
 18069  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.get" call.
 18070  // Exactly one of *Message or error will be non-nil. Any non-2xx status
 18071  // code is an error. Response headers are in either
 18072  // *Message.ServerResponse.Header or (if a response was returned at all)
 18073  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 18074  // check whether the returned error was because http.StatusNotModified
 18075  // was returned.
 18076  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) Do(opts ...googleapi.CallOption) (*Message, error) {
 18077  	gensupport.SetOptions(c.urlParams_, opts...)
 18078  	res, err := c.doRequest("json")
 18079  	if res != nil && res.StatusCode == http.StatusNotModified {
 18080  		if res.Body != nil {
 18081  			res.Body.Close()
 18082  		}
 18083  		return nil, &googleapi.Error{
 18084  			Code:   res.StatusCode,
 18085  			Header: res.Header,
 18086  		}
 18087  	}
 18088  	if err != nil {
 18089  		return nil, err
 18090  	}
 18091  	defer googleapi.CloseBody(res)
 18092  	if err := googleapi.CheckResponse(res); err != nil {
 18093  		return nil, err
 18094  	}
 18095  	ret := &Message{
 18096  		ServerResponse: googleapi.ServerResponse{
 18097  			Header:         res.Header,
 18098  			HTTPStatusCode: res.StatusCode,
 18099  		},
 18100  	}
 18101  	target := &ret
 18102  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18103  		return nil, err
 18104  	}
 18105  	return ret, nil
 18106  	// {
 18107  	//   "description": "Gets an HL7v2 message.",
 18108  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}/messages/{messagesId}",
 18109  	//   "httpMethod": "GET",
 18110  	//   "id": "healthcare.projects.locations.datasets.hl7V2Stores.messages.get",
 18111  	//   "parameterOrder": [
 18112  	//     "name"
 18113  	//   ],
 18114  	//   "parameters": {
 18115  	//     "name": {
 18116  	//       "description": "The resource name of the HL7v2 message to retrieve.",
 18117  	//       "location": "path",
 18118  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+/messages/[^/]+$",
 18119  	//       "required": true,
 18120  	//       "type": "string"
 18121  	//     },
 18122  	//     "view": {
 18123  	//       "description": "Specifies which parts of the Message resource should be returned\nin the response.",
 18124  	//       "enum": [
 18125  	//         "MESSAGE_VIEW_UNSPECIFIED",
 18126  	//         "RAW_ONLY",
 18127  	//         "PARSED_ONLY",
 18128  	//         "FULL"
 18129  	//       ],
 18130  	//       "location": "query",
 18131  	//       "type": "string"
 18132  	//     }
 18133  	//   },
 18134  	//   "path": "v1alpha2/{+name}",
 18135  	//   "response": {
 18136  	//     "$ref": "Message"
 18137  	//   },
 18138  	//   "scopes": [
 18139  	//     "https://www.googleapis.com/auth/cloud-platform"
 18140  	//   ]
 18141  	// }
 18142  
 18143  }
 18144  
 18145  // method id "healthcare.projects.locations.datasets.hl7V2Stores.messages.ingest":
 18146  
 18147  type ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall struct {
 18148  	s                    *Service
 18149  	parent               string
 18150  	ingestmessagerequest *IngestMessageRequest
 18151  	urlParams_           gensupport.URLParams
 18152  	ctx_                 context.Context
 18153  	header_              http.Header
 18154  }
 18155  
 18156  // Ingest: Ingests a new HL7v2 message from the hospital and sends a
 18157  // notification to
 18158  // the Cloud Pub/Sub topic. Return is an HL7v2 ACK message if the
 18159  // message was
 18160  // successfully stored. Otherwise an error is returned.  If an
 18161  // identical
 18162  // HL7v2 message is created twice only one resource is created on the
 18163  // server
 18164  // and no error is reported.
 18165  func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Ingest(parent string, ingestmessagerequest *IngestMessageRequest) *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall {
 18166  	c := &ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18167  	c.parent = parent
 18168  	c.ingestmessagerequest = ingestmessagerequest
 18169  	return c
 18170  }
 18171  
 18172  // Fields allows partial responses to be retrieved. See
 18173  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 18174  // for more information.
 18175  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall {
 18176  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18177  	return c
 18178  }
 18179  
 18180  // Context sets the context to be used in this call's Do method. Any
 18181  // pending HTTP request will be aborted if the provided context is
 18182  // canceled.
 18183  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall {
 18184  	c.ctx_ = ctx
 18185  	return c
 18186  }
 18187  
 18188  // Header returns an http.Header that can be modified by the caller to
 18189  // add HTTP headers to the request.
 18190  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) Header() http.Header {
 18191  	if c.header_ == nil {
 18192  		c.header_ = make(http.Header)
 18193  	}
 18194  	return c.header_
 18195  }
 18196  
 18197  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) doRequest(alt string) (*http.Response, error) {
 18198  	reqHeaders := make(http.Header)
 18199  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 18200  	for k, v := range c.header_ {
 18201  		reqHeaders[k] = v
 18202  	}
 18203  	reqHeaders.Set("User-Agent", c.s.userAgent())
 18204  	var body io.Reader = nil
 18205  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.ingestmessagerequest)
 18206  	if err != nil {
 18207  		return nil, err
 18208  	}
 18209  	reqHeaders.Set("Content-Type", "application/json")
 18210  	c.urlParams_.Set("alt", alt)
 18211  	c.urlParams_.Set("prettyPrint", "false")
 18212  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/messages:ingest")
 18213  	urls += "?" + c.urlParams_.Encode()
 18214  	req, err := http.NewRequest("POST", urls, body)
 18215  	if err != nil {
 18216  		return nil, err
 18217  	}
 18218  	req.Header = reqHeaders
 18219  	googleapi.Expand(req.URL, map[string]string{
 18220  		"parent": c.parent,
 18221  	})
 18222  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18223  }
 18224  
 18225  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.ingest" call.
 18226  // Exactly one of *IngestMessageResponse or error will be non-nil. Any
 18227  // non-2xx status code is an error. Response headers are in either
 18228  // *IngestMessageResponse.ServerResponse.Header or (if a response was
 18229  // returned at all) in error.(*googleapi.Error).Header. Use
 18230  // googleapi.IsNotModified to check whether the returned error was
 18231  // because http.StatusNotModified was returned.
 18232  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) Do(opts ...googleapi.CallOption) (*IngestMessageResponse, error) {
 18233  	gensupport.SetOptions(c.urlParams_, opts...)
 18234  	res, err := c.doRequest("json")
 18235  	if res != nil && res.StatusCode == http.StatusNotModified {
 18236  		if res.Body != nil {
 18237  			res.Body.Close()
 18238  		}
 18239  		return nil, &googleapi.Error{
 18240  			Code:   res.StatusCode,
 18241  			Header: res.Header,
 18242  		}
 18243  	}
 18244  	if err != nil {
 18245  		return nil, err
 18246  	}
 18247  	defer googleapi.CloseBody(res)
 18248  	if err := googleapi.CheckResponse(res); err != nil {
 18249  		return nil, err
 18250  	}
 18251  	ret := &IngestMessageResponse{
 18252  		ServerResponse: googleapi.ServerResponse{
 18253  			Header:         res.Header,
 18254  			HTTPStatusCode: res.StatusCode,
 18255  		},
 18256  	}
 18257  	target := &ret
 18258  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18259  		return nil, err
 18260  	}
 18261  	return ret, nil
 18262  	// {
 18263  	//   "description": "Ingests a new HL7v2 message from the hospital and sends a notification to\nthe Cloud Pub/Sub topic. Return is an HL7v2 ACK message if the message was\nsuccessfully stored. Otherwise an error is returned.  If an identical\nHL7v2 message is created twice only one resource is created on the server\nand no error is reported.",
 18264  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}/messages:ingest",
 18265  	//   "httpMethod": "POST",
 18266  	//   "id": "healthcare.projects.locations.datasets.hl7V2Stores.messages.ingest",
 18267  	//   "parameterOrder": [
 18268  	//     "parent"
 18269  	//   ],
 18270  	//   "parameters": {
 18271  	//     "parent": {
 18272  	//       "description": "The name of the HL7v2 store this message belongs to.",
 18273  	//       "location": "path",
 18274  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$",
 18275  	//       "required": true,
 18276  	//       "type": "string"
 18277  	//     }
 18278  	//   },
 18279  	//   "path": "v1alpha2/{+parent}/messages:ingest",
 18280  	//   "request": {
 18281  	//     "$ref": "IngestMessageRequest"
 18282  	//   },
 18283  	//   "response": {
 18284  	//     "$ref": "IngestMessageResponse"
 18285  	//   },
 18286  	//   "scopes": [
 18287  	//     "https://www.googleapis.com/auth/cloud-platform"
 18288  	//   ]
 18289  	// }
 18290  
 18291  }
 18292  
 18293  // method id "healthcare.projects.locations.datasets.hl7V2Stores.messages.list":
 18294  
 18295  type ProjectsLocationsDatasetsHl7V2StoresMessagesListCall struct {
 18296  	s            *Service
 18297  	parent       string
 18298  	urlParams_   gensupport.URLParams
 18299  	ifNoneMatch_ string
 18300  	ctx_         context.Context
 18301  	header_      http.Header
 18302  }
 18303  
 18304  // List: Lists all the messages in the given HL7v2 store with support
 18305  // for filtering.
 18306  //
 18307  // Note: HL7v2 messages are indexed asynchronously, so there might be a
 18308  // slight
 18309  // delay between the time a message is created and when it can be
 18310  // found
 18311  // through a filter.
 18312  func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) List(parent string) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
 18313  	c := &ProjectsLocationsDatasetsHl7V2StoresMessagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18314  	c.parent = parent
 18315  	return c
 18316  }
 18317  
 18318  // Filter sets the optional parameter "filter": Restricts messages
 18319  // returned to those matching a filter.
 18320  // Syntax:
 18321  // https://cloud.google.com/appengine/docs/standard/python/search
 18322  // /query_strings
 18323  //
 18324  // Fields/functions available for filtering are:
 18325  //
 18326  // *  `message_type`, from the MSH-9 segment; for example
 18327  // `NOT message_type = "ADT"
 18328  // *  `send_date` or `sendDate`, the YYYY-MM-DD date the message was
 18329  // sent in
 18330  // the dataset's time_zone, from the MSH-7 segment; for
 18331  // example
 18332  // `send_date < "2017-01-02"
 18333  // *  `send_time`, the timestamp when the message was sent, using
 18334  // the
 18335  // RFC3339 time format for comparisons, from the MSH-7 segment; for
 18336  // example
 18337  // `send_time < "2017-01-02T00:00:00-05:00"
 18338  // *  `send_facility`, the care center that the message came from, from
 18339  // the
 18340  // MSH-4 segment; for example `send_facility = "ABC"
 18341  // *  `HL7RegExp(expr)`, which does regular expression matching of
 18342  // `expr`
 18343  // against the message payload using re2
 18344  // (http://code.google.com/p/re2/)
 18345  // syntax; for example `HL7RegExp("^.*\|.*\|EMERG")`
 18346  // *  `PatientId(value, type)`, which matches if the message lists a
 18347  // patient
 18348  // having an ID of the given value and type in the PID-2, PID-3, or
 18349  // PID-4
 18350  // segments; for example `PatientId("123456", "MRN")`
 18351  // *  `labels.x`, a string value of the label with key `x` as set using
 18352  // the
 18353  // Message.labels
 18354  // map, for example `labels."priority"="high". The operator `:*` can be
 18355  // used
 18356  // to assert the existence of a label, for example
 18357  // `labels."priority":*`.
 18358  //
 18359  // Limitations on conjunctions:
 18360  //
 18361  // *  Negation on the patient ID function or the labels field is
 18362  // not
 18363  // supported, for example these queries are invalid:
 18364  // `NOT PatientId("123456", "MRN")`, `NOT labels."tag1":*`,
 18365  // `NOT labels."tag2"="val2".
 18366  // *  Conjunction of multiple patient ID functions is not supported,
 18367  // for
 18368  // example this query is invalid:
 18369  // `PatientId("123456", "MRN") AND PatientId("456789", "MRN")`.
 18370  // *  Conjunction of multiple labels fields is also not supported,
 18371  // for
 18372  // example this query is invalid: `labels."tag1":* AND
 18373  // labels."tag2"="val2".
 18374  // *  Conjunction of one patient ID function, one labels field and
 18375  // conditions
 18376  // on other fields is supported, for example this query is
 18377  // valid:
 18378  // `PatientId("123456", "MRN") AND labels."tag1":* AND message_type =
 18379  // "ADT".
 18380  //
 18381  // The HasLabel(x) and Label(x) syntax from previous API versions
 18382  // are
 18383  // deprecated; replaced by the `labels.x` syntax.
 18384  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Filter(filter string) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
 18385  	c.urlParams_.Set("filter", filter)
 18386  	return c
 18387  }
 18388  
 18389  // OrderBy sets the optional parameter "orderBy": Orders messages
 18390  // returned by the specified order_by clause.
 18391  // Syntax:
 18392  // https://cloud.google.com/apis/design/design_patterns#sorting_order
 18393  //
 18394  // Fi
 18395  // elds available for ordering are:
 18396  //
 18397  // *  `send_time`
 18398  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) OrderBy(orderBy string) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
 18399  	c.urlParams_.Set("orderBy", orderBy)
 18400  	return c
 18401  }
 18402  
 18403  // PageSize sets the optional parameter "pageSize": Limit on the number
 18404  // of messages to return in a single response.
 18405  // If zero the default page size of 100 is used.
 18406  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
 18407  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 18408  	return c
 18409  }
 18410  
 18411  // PageToken sets the optional parameter "pageToken": The
 18412  // next_page_token value returned from the previous List request, if
 18413  // any.
 18414  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
 18415  	c.urlParams_.Set("pageToken", pageToken)
 18416  	return c
 18417  }
 18418  
 18419  // Fields allows partial responses to be retrieved. See
 18420  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 18421  // for more information.
 18422  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
 18423  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18424  	return c
 18425  }
 18426  
 18427  // IfNoneMatch sets the optional parameter which makes the operation
 18428  // fail if the object's ETag matches the given value. This is useful for
 18429  // getting updates only after the object has changed since the last
 18430  // request. Use googleapi.IsNotModified to check whether the response
 18431  // error from Do is the result of In-None-Match.
 18432  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
 18433  	c.ifNoneMatch_ = entityTag
 18434  	return c
 18435  }
 18436  
 18437  // Context sets the context to be used in this call's Do method. Any
 18438  // pending HTTP request will be aborted if the provided context is
 18439  // canceled.
 18440  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
 18441  	c.ctx_ = ctx
 18442  	return c
 18443  }
 18444  
 18445  // Header returns an http.Header that can be modified by the caller to
 18446  // add HTTP headers to the request.
 18447  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Header() http.Header {
 18448  	if c.header_ == nil {
 18449  		c.header_ = make(http.Header)
 18450  	}
 18451  	return c.header_
 18452  }
 18453  
 18454  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) doRequest(alt string) (*http.Response, error) {
 18455  	reqHeaders := make(http.Header)
 18456  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 18457  	for k, v := range c.header_ {
 18458  		reqHeaders[k] = v
 18459  	}
 18460  	reqHeaders.Set("User-Agent", c.s.userAgent())
 18461  	if c.ifNoneMatch_ != "" {
 18462  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18463  	}
 18464  	var body io.Reader = nil
 18465  	c.urlParams_.Set("alt", alt)
 18466  	c.urlParams_.Set("prettyPrint", "false")
 18467  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/messages")
 18468  	urls += "?" + c.urlParams_.Encode()
 18469  	req, err := http.NewRequest("GET", urls, body)
 18470  	if err != nil {
 18471  		return nil, err
 18472  	}
 18473  	req.Header = reqHeaders
 18474  	googleapi.Expand(req.URL, map[string]string{
 18475  		"parent": c.parent,
 18476  	})
 18477  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18478  }
 18479  
 18480  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.list" call.
 18481  // Exactly one of *ListMessagesResponse or error will be non-nil. Any
 18482  // non-2xx status code is an error. Response headers are in either
 18483  // *ListMessagesResponse.ServerResponse.Header or (if a response was
 18484  // returned at all) in error.(*googleapi.Error).Header. Use
 18485  // googleapi.IsNotModified to check whether the returned error was
 18486  // because http.StatusNotModified was returned.
 18487  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Do(opts ...googleapi.CallOption) (*ListMessagesResponse, error) {
 18488  	gensupport.SetOptions(c.urlParams_, opts...)
 18489  	res, err := c.doRequest("json")
 18490  	if res != nil && res.StatusCode == http.StatusNotModified {
 18491  		if res.Body != nil {
 18492  			res.Body.Close()
 18493  		}
 18494  		return nil, &googleapi.Error{
 18495  			Code:   res.StatusCode,
 18496  			Header: res.Header,
 18497  		}
 18498  	}
 18499  	if err != nil {
 18500  		return nil, err
 18501  	}
 18502  	defer googleapi.CloseBody(res)
 18503  	if err := googleapi.CheckResponse(res); err != nil {
 18504  		return nil, err
 18505  	}
 18506  	ret := &ListMessagesResponse{
 18507  		ServerResponse: googleapi.ServerResponse{
 18508  			Header:         res.Header,
 18509  			HTTPStatusCode: res.StatusCode,
 18510  		},
 18511  	}
 18512  	target := &ret
 18513  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18514  		return nil, err
 18515  	}
 18516  	return ret, nil
 18517  	// {
 18518  	//   "description": "Lists all the messages in the given HL7v2 store with support for filtering.\n\nNote: HL7v2 messages are indexed asynchronously, so there might be a slight\ndelay between the time a message is created and when it can be found\nthrough a filter.",
 18519  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}/messages",
 18520  	//   "httpMethod": "GET",
 18521  	//   "id": "healthcare.projects.locations.datasets.hl7V2Stores.messages.list",
 18522  	//   "parameterOrder": [
 18523  	//     "parent"
 18524  	//   ],
 18525  	//   "parameters": {
 18526  	//     "filter": {
 18527  	//       "description": "Restricts messages returned to those matching a filter. Syntax:\nhttps://cloud.google.com/appengine/docs/standard/python/search/query_strings\n\nFields/functions available for filtering are:\n\n*  `message_type`, from the MSH-9 segment; for example\n`NOT message_type = \"ADT\"`\n*  `send_date` or `sendDate`, the YYYY-MM-DD date the message was sent in\nthe dataset's time_zone, from the MSH-7 segment; for example\n`send_date \u003c \"2017-01-02\"`\n*  `send_time`, the timestamp when the message was sent, using the\nRFC3339 time format for comparisons, from the MSH-7 segment; for example\n`send_time \u003c \"2017-01-02T00:00:00-05:00\"`\n*  `send_facility`, the care center that the message came from, from the\nMSH-4 segment; for example `send_facility = \"ABC\"`\n*  `HL7RegExp(expr)`, which does regular expression matching of `expr`\nagainst the message payload using re2 (http://code.google.com/p/re2/)\nsyntax; for example `HL7RegExp(\"^.*\\|.*\\|EMERG\")`\n*  `PatientId(value, type)`, which matches if the message lists a patient\nhaving an ID of the given value and type in the PID-2, PID-3, or PID-4\nsegments; for example `PatientId(\"123456\", \"MRN\")`\n*  `labels.x`, a string value of the label with key `x` as set using the\nMessage.labels\nmap, for example `labels.\"priority\"=\"high\"`. The operator `:*` can be used\nto assert the existence of a label, for example `labels.\"priority\":*`.\n\nLimitations on conjunctions:\n\n*  Negation on the patient ID function or the labels field is not\nsupported, for example these queries are invalid:\n`NOT PatientId(\"123456\", \"MRN\")`, `NOT labels.\"tag1\":*`,\n`NOT labels.\"tag2\"=\"val2\"`.\n*  Conjunction of multiple patient ID functions is not supported, for\nexample this query is invalid:\n`PatientId(\"123456\", \"MRN\") AND PatientId(\"456789\", \"MRN\")`.\n*  Conjunction of multiple labels fields is also not supported, for\nexample this query is invalid: `labels.\"tag1\":* AND labels.\"tag2\"=\"val2\"`.\n*  Conjunction of one patient ID function, one labels field and conditions\non other fields is supported, for example this query is valid:\n`PatientId(\"123456\", \"MRN\") AND labels.\"tag1\":* AND message_type = \"ADT\"`.\n\nThe HasLabel(x) and Label(x) syntax from previous API versions are\ndeprecated; replaced by the `labels.x` syntax.",
 18528  	//       "location": "query",
 18529  	//       "type": "string"
 18530  	//     },
 18531  	//     "orderBy": {
 18532  	//       "description": "Orders messages returned by the specified order_by clause.\nSyntax: https://cloud.google.com/apis/design/design_patterns#sorting_order\n\nFields available for ordering are:\n\n*  `send_time`",
 18533  	//       "location": "query",
 18534  	//       "type": "string"
 18535  	//     },
 18536  	//     "pageSize": {
 18537  	//       "description": "Limit on the number of messages to return in a single response.\nIf zero the default page size of 100 is used.",
 18538  	//       "format": "int32",
 18539  	//       "location": "query",
 18540  	//       "type": "integer"
 18541  	//     },
 18542  	//     "pageToken": {
 18543  	//       "description": "The next_page_token value returned from the previous List request, if any.",
 18544  	//       "location": "query",
 18545  	//       "type": "string"
 18546  	//     },
 18547  	//     "parent": {
 18548  	//       "description": "Name of the HL7v2 store to retrieve messages from.",
 18549  	//       "location": "path",
 18550  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$",
 18551  	//       "required": true,
 18552  	//       "type": "string"
 18553  	//     }
 18554  	//   },
 18555  	//   "path": "v1alpha2/{+parent}/messages",
 18556  	//   "response": {
 18557  	//     "$ref": "ListMessagesResponse"
 18558  	//   },
 18559  	//   "scopes": [
 18560  	//     "https://www.googleapis.com/auth/cloud-platform"
 18561  	//   ]
 18562  	// }
 18563  
 18564  }
 18565  
 18566  // Pages invokes f for each page of results.
 18567  // A non-nil error returned from f will halt the iteration.
 18568  // The provided context supersedes any context provided to the Context method.
 18569  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Pages(ctx context.Context, f func(*ListMessagesResponse) error) error {
 18570  	c.ctx_ = ctx
 18571  	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
 18572  	for {
 18573  		x, err := c.Do()
 18574  		if err != nil {
 18575  			return err
 18576  		}
 18577  		if err := f(x); err != nil {
 18578  			return err
 18579  		}
 18580  		if x.NextPageToken == "" {
 18581  			return nil
 18582  		}
 18583  		c.PageToken(x.NextPageToken)
 18584  	}
 18585  }
 18586  
 18587  // method id "healthcare.projects.locations.datasets.hl7V2Stores.messages.patch":
 18588  
 18589  type ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall struct {
 18590  	s          *Service
 18591  	name       string
 18592  	message    *Message
 18593  	urlParams_ gensupport.URLParams
 18594  	ctx_       context.Context
 18595  	header_    http.Header
 18596  }
 18597  
 18598  // Patch: Update the message.
 18599  func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Patch(name string, message *Message) *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall {
 18600  	c := &ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18601  	c.name = name
 18602  	c.message = message
 18603  	return c
 18604  }
 18605  
 18606  // UpdateMask sets the optional parameter "updateMask": The update mask
 18607  // applies to the resource. For the `FieldMask`
 18608  // definition,
 18609  // see
 18610  // https://developers.google.com/protocol-buffers/docs/re
 18611  // ference/google.protobuf#fieldmask
 18612  // Only the `labels` field is allowed to be updated.
 18613  // The labels in the request will be merged with the existing set of
 18614  // labels.
 18615  // Existing labels with the same keys will be updated.
 18616  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall {
 18617  	c.urlParams_.Set("updateMask", updateMask)
 18618  	return c
 18619  }
 18620  
 18621  // Fields allows partial responses to be retrieved. See
 18622  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 18623  // for more information.
 18624  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall {
 18625  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18626  	return c
 18627  }
 18628  
 18629  // Context sets the context to be used in this call's Do method. Any
 18630  // pending HTTP request will be aborted if the provided context is
 18631  // canceled.
 18632  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall {
 18633  	c.ctx_ = ctx
 18634  	return c
 18635  }
 18636  
 18637  // Header returns an http.Header that can be modified by the caller to
 18638  // add HTTP headers to the request.
 18639  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) Header() http.Header {
 18640  	if c.header_ == nil {
 18641  		c.header_ = make(http.Header)
 18642  	}
 18643  	return c.header_
 18644  }
 18645  
 18646  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) doRequest(alt string) (*http.Response, error) {
 18647  	reqHeaders := make(http.Header)
 18648  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 18649  	for k, v := range c.header_ {
 18650  		reqHeaders[k] = v
 18651  	}
 18652  	reqHeaders.Set("User-Agent", c.s.userAgent())
 18653  	var body io.Reader = nil
 18654  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.message)
 18655  	if err != nil {
 18656  		return nil, err
 18657  	}
 18658  	reqHeaders.Set("Content-Type", "application/json")
 18659  	c.urlParams_.Set("alt", alt)
 18660  	c.urlParams_.Set("prettyPrint", "false")
 18661  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
 18662  	urls += "?" + c.urlParams_.Encode()
 18663  	req, err := http.NewRequest("PATCH", urls, body)
 18664  	if err != nil {
 18665  		return nil, err
 18666  	}
 18667  	req.Header = reqHeaders
 18668  	googleapi.Expand(req.URL, map[string]string{
 18669  		"name": c.name,
 18670  	})
 18671  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18672  }
 18673  
 18674  // Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.patch" call.
 18675  // Exactly one of *Message or error will be non-nil. Any non-2xx status
 18676  // code is an error. Response headers are in either
 18677  // *Message.ServerResponse.Header or (if a response was returned at all)
 18678  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 18679  // check whether the returned error was because http.StatusNotModified
 18680  // was returned.
 18681  func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) Do(opts ...googleapi.CallOption) (*Message, error) {
 18682  	gensupport.SetOptions(c.urlParams_, opts...)
 18683  	res, err := c.doRequest("json")
 18684  	if res != nil && res.StatusCode == http.StatusNotModified {
 18685  		if res.Body != nil {
 18686  			res.Body.Close()
 18687  		}
 18688  		return nil, &googleapi.Error{
 18689  			Code:   res.StatusCode,
 18690  			Header: res.Header,
 18691  		}
 18692  	}
 18693  	if err != nil {
 18694  		return nil, err
 18695  	}
 18696  	defer googleapi.CloseBody(res)
 18697  	if err := googleapi.CheckResponse(res); err != nil {
 18698  		return nil, err
 18699  	}
 18700  	ret := &Message{
 18701  		ServerResponse: googleapi.ServerResponse{
 18702  			Header:         res.Header,
 18703  			HTTPStatusCode: res.StatusCode,
 18704  		},
 18705  	}
 18706  	target := &ret
 18707  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18708  		return nil, err
 18709  	}
 18710  	return ret, nil
 18711  	// {
 18712  	//   "description": "Update the message.",
 18713  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}/messages/{messagesId}",
 18714  	//   "httpMethod": "PATCH",
 18715  	//   "id": "healthcare.projects.locations.datasets.hl7V2Stores.messages.patch",
 18716  	//   "parameterOrder": [
 18717  	//     "name"
 18718  	//   ],
 18719  	//   "parameters": {
 18720  	//     "name": {
 18721  	//       "description": "Resource name of the Message, of the form\n`projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}`.\nAssigned by the server.",
 18722  	//       "location": "path",
 18723  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+/messages/[^/]+$",
 18724  	//       "required": true,
 18725  	//       "type": "string"
 18726  	//     },
 18727  	//     "updateMask": {
 18728  	//       "description": "The update mask applies to the resource. For the `FieldMask` definition,\nsee\nhttps://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask\nOnly the `labels` field is allowed to be updated.\nThe labels in the request will be merged with the existing set of labels.\nExisting labels with the same keys will be updated.",
 18729  	//       "format": "google-fieldmask",
 18730  	//       "location": "query",
 18731  	//       "type": "string"
 18732  	//     }
 18733  	//   },
 18734  	//   "path": "v1alpha2/{+name}",
 18735  	//   "request": {
 18736  	//     "$ref": "Message"
 18737  	//   },
 18738  	//   "response": {
 18739  	//     "$ref": "Message"
 18740  	//   },
 18741  	//   "scopes": [
 18742  	//     "https://www.googleapis.com/auth/cloud-platform"
 18743  	//   ]
 18744  	// }
 18745  
 18746  }
 18747  
 18748  // method id "healthcare.projects.locations.datasets.operations.get":
 18749  
 18750  type ProjectsLocationsDatasetsOperationsGetCall struct {
 18751  	s            *Service
 18752  	name         string
 18753  	urlParams_   gensupport.URLParams
 18754  	ifNoneMatch_ string
 18755  	ctx_         context.Context
 18756  	header_      http.Header
 18757  }
 18758  
 18759  // Get: Gets the latest state of a long-running operation.  Clients can
 18760  // use this
 18761  // method to poll the operation result at intervals as recommended by
 18762  // the API
 18763  // service.
 18764  func (r *ProjectsLocationsDatasetsOperationsService) Get(name string) *ProjectsLocationsDatasetsOperationsGetCall {
 18765  	c := &ProjectsLocationsDatasetsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18766  	c.name = name
 18767  	return c
 18768  }
 18769  
 18770  // Fields allows partial responses to be retrieved. See
 18771  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 18772  // for more information.
 18773  func (c *ProjectsLocationsDatasetsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsGetCall {
 18774  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18775  	return c
 18776  }
 18777  
 18778  // IfNoneMatch sets the optional parameter which makes the operation
 18779  // fail if the object's ETag matches the given value. This is useful for
 18780  // getting updates only after the object has changed since the last
 18781  // request. Use googleapi.IsNotModified to check whether the response
 18782  // error from Do is the result of In-None-Match.
 18783  func (c *ProjectsLocationsDatasetsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsOperationsGetCall {
 18784  	c.ifNoneMatch_ = entityTag
 18785  	return c
 18786  }
 18787  
 18788  // Context sets the context to be used in this call's Do method. Any
 18789  // pending HTTP request will be aborted if the provided context is
 18790  // canceled.
 18791  func (c *ProjectsLocationsDatasetsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsGetCall {
 18792  	c.ctx_ = ctx
 18793  	return c
 18794  }
 18795  
 18796  // Header returns an http.Header that can be modified by the caller to
 18797  // add HTTP headers to the request.
 18798  func (c *ProjectsLocationsDatasetsOperationsGetCall) Header() http.Header {
 18799  	if c.header_ == nil {
 18800  		c.header_ = make(http.Header)
 18801  	}
 18802  	return c.header_
 18803  }
 18804  
 18805  func (c *ProjectsLocationsDatasetsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 18806  	reqHeaders := make(http.Header)
 18807  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 18808  	for k, v := range c.header_ {
 18809  		reqHeaders[k] = v
 18810  	}
 18811  	reqHeaders.Set("User-Agent", c.s.userAgent())
 18812  	if c.ifNoneMatch_ != "" {
 18813  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18814  	}
 18815  	var body io.Reader = nil
 18816  	c.urlParams_.Set("alt", alt)
 18817  	c.urlParams_.Set("prettyPrint", "false")
 18818  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
 18819  	urls += "?" + c.urlParams_.Encode()
 18820  	req, err := http.NewRequest("GET", urls, body)
 18821  	if err != nil {
 18822  		return nil, err
 18823  	}
 18824  	req.Header = reqHeaders
 18825  	googleapi.Expand(req.URL, map[string]string{
 18826  		"name": c.name,
 18827  	})
 18828  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18829  }
 18830  
 18831  // Do executes the "healthcare.projects.locations.datasets.operations.get" call.
 18832  // Exactly one of *Operation or error will be non-nil. Any non-2xx
 18833  // status code is an error. Response headers are in either
 18834  // *Operation.ServerResponse.Header or (if a response was returned at
 18835  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
 18836  // to check whether the returned error was because
 18837  // http.StatusNotModified was returned.
 18838  func (c *ProjectsLocationsDatasetsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 18839  	gensupport.SetOptions(c.urlParams_, opts...)
 18840  	res, err := c.doRequest("json")
 18841  	if res != nil && res.StatusCode == http.StatusNotModified {
 18842  		if res.Body != nil {
 18843  			res.Body.Close()
 18844  		}
 18845  		return nil, &googleapi.Error{
 18846  			Code:   res.StatusCode,
 18847  			Header: res.Header,
 18848  		}
 18849  	}
 18850  	if err != nil {
 18851  		return nil, err
 18852  	}
 18853  	defer googleapi.CloseBody(res)
 18854  	if err := googleapi.CheckResponse(res); err != nil {
 18855  		return nil, err
 18856  	}
 18857  	ret := &Operation{
 18858  		ServerResponse: googleapi.ServerResponse{
 18859  			Header:         res.Header,
 18860  			HTTPStatusCode: res.StatusCode,
 18861  		},
 18862  	}
 18863  	target := &ret
 18864  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18865  		return nil, err
 18866  	}
 18867  	return ret, nil
 18868  	// {
 18869  	//   "description": "Gets the latest state of a long-running operation.  Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.",
 18870  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/operations/{operationsId}",
 18871  	//   "httpMethod": "GET",
 18872  	//   "id": "healthcare.projects.locations.datasets.operations.get",
 18873  	//   "parameterOrder": [
 18874  	//     "name"
 18875  	//   ],
 18876  	//   "parameters": {
 18877  	//     "name": {
 18878  	//       "description": "The name of the operation resource.",
 18879  	//       "location": "path",
 18880  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$",
 18881  	//       "required": true,
 18882  	//       "type": "string"
 18883  	//     }
 18884  	//   },
 18885  	//   "path": "v1alpha2/{+name}",
 18886  	//   "response": {
 18887  	//     "$ref": "Operation"
 18888  	//   },
 18889  	//   "scopes": [
 18890  	//     "https://www.googleapis.com/auth/cloud-platform"
 18891  	//   ]
 18892  	// }
 18893  
 18894  }
 18895  
 18896  // method id "healthcare.projects.locations.datasets.operations.list":
 18897  
 18898  type ProjectsLocationsDatasetsOperationsListCall struct {
 18899  	s            *Service
 18900  	name         string
 18901  	urlParams_   gensupport.URLParams
 18902  	ifNoneMatch_ string
 18903  	ctx_         context.Context
 18904  	header_      http.Header
 18905  }
 18906  
 18907  // List: Lists operations that match the specified filter in the
 18908  // request. If the
 18909  // server doesn't support this method, it returns
 18910  // `UNIMPLEMENTED`.
 18911  //
 18912  // NOTE: the `name` binding allows API services to override the
 18913  // binding
 18914  // to use different resource name schemes, such as `users/*/operations`.
 18915  // To
 18916  // override the binding, API services can add a binding such
 18917  // as
 18918  // "/v1/{name=users/*}/operations" to their service configuration.
 18919  // For backwards compatibility, the default name includes the
 18920  // operations
 18921  // collection id, however overriding users must ensure the name
 18922  // binding
 18923  // is the parent resource, without the operations collection id.
 18924  func (r *ProjectsLocationsDatasetsOperationsService) List(name string) *ProjectsLocationsDatasetsOperationsListCall {
 18925  	c := &ProjectsLocationsDatasetsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18926  	c.name = name
 18927  	return c
 18928  }
 18929  
 18930  // Filter sets the optional parameter "filter": The standard list
 18931  // filter.
 18932  func (c *ProjectsLocationsDatasetsOperationsListCall) Filter(filter string) *ProjectsLocationsDatasetsOperationsListCall {
 18933  	c.urlParams_.Set("filter", filter)
 18934  	return c
 18935  }
 18936  
 18937  // PageSize sets the optional parameter "pageSize": The standard list
 18938  // page size.
 18939  func (c *ProjectsLocationsDatasetsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsOperationsListCall {
 18940  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 18941  	return c
 18942  }
 18943  
 18944  // PageToken sets the optional parameter "pageToken": The standard list
 18945  // page token.
 18946  func (c *ProjectsLocationsDatasetsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsOperationsListCall {
 18947  	c.urlParams_.Set("pageToken", pageToken)
 18948  	return c
 18949  }
 18950  
 18951  // Fields allows partial responses to be retrieved. See
 18952  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
 18953  // for more information.
 18954  func (c *ProjectsLocationsDatasetsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsListCall {
 18955  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18956  	return c
 18957  }
 18958  
 18959  // IfNoneMatch sets the optional parameter which makes the operation
 18960  // fail if the object's ETag matches the given value. This is useful for
 18961  // getting updates only after the object has changed since the last
 18962  // request. Use googleapi.IsNotModified to check whether the response
 18963  // error from Do is the result of In-None-Match.
 18964  func (c *ProjectsLocationsDatasetsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsOperationsListCall {
 18965  	c.ifNoneMatch_ = entityTag
 18966  	return c
 18967  }
 18968  
 18969  // Context sets the context to be used in this call's Do method. Any
 18970  // pending HTTP request will be aborted if the provided context is
 18971  // canceled.
 18972  func (c *ProjectsLocationsDatasetsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsListCall {
 18973  	c.ctx_ = ctx
 18974  	return c
 18975  }
 18976  
 18977  // Header returns an http.Header that can be modified by the caller to
 18978  // add HTTP headers to the request.
 18979  func (c *ProjectsLocationsDatasetsOperationsListCall) Header() http.Header {
 18980  	if c.header_ == nil {
 18981  		c.header_ = make(http.Header)
 18982  	}
 18983  	return c.header_
 18984  }
 18985  
 18986  func (c *ProjectsLocationsDatasetsOperationsListCall) doRequest(alt string) (*http.Response, error) {
 18987  	reqHeaders := make(http.Header)
 18988  	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
 18989  	for k, v := range c.header_ {
 18990  		reqHeaders[k] = v
 18991  	}
 18992  	reqHeaders.Set("User-Agent", c.s.userAgent())
 18993  	if c.ifNoneMatch_ != "" {
 18994  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18995  	}
 18996  	var body io.Reader = nil
 18997  	c.urlParams_.Set("alt", alt)
 18998  	c.urlParams_.Set("prettyPrint", "false")
 18999  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}/operations")
 19000  	urls += "?" + c.urlParams_.Encode()
 19001  	req, err := http.NewRequest("GET", urls, body)
 19002  	if err != nil {
 19003  		return nil, err
 19004  	}
 19005  	req.Header = reqHeaders
 19006  	googleapi.Expand(req.URL, map[string]string{
 19007  		"name": c.name,
 19008  	})
 19009  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19010  }
 19011  
 19012  // Do executes the "healthcare.projects.locations.datasets.operations.list" call.
 19013  // Exactly one of *ListOperationsResponse or error will be non-nil. Any
 19014  // non-2xx status code is an error. Response headers are in either
 19015  // *ListOperationsResponse.ServerResponse.Header or (if a response was
 19016  // returned at all) in error.(*googleapi.Error).Header. Use
 19017  // googleapi.IsNotModified to check whether the returned error was
 19018  // because http.StatusNotModified was returned.
 19019  func (c *ProjectsLocationsDatasetsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) {
 19020  	gensupport.SetOptions(c.urlParams_, opts...)
 19021  	res, err := c.doRequest("json")
 19022  	if res != nil && res.StatusCode == http.StatusNotModified {
 19023  		if res.Body != nil {
 19024  			res.Body.Close()
 19025  		}
 19026  		return nil, &googleapi.Error{
 19027  			Code:   res.StatusCode,
 19028  			Header: res.Header,
 19029  		}
 19030  	}
 19031  	if err != nil {
 19032  		return nil, err
 19033  	}
 19034  	defer googleapi.CloseBody(res)
 19035  	if err := googleapi.CheckResponse(res); err != nil {
 19036  		return nil, err
 19037  	}
 19038  	ret := &ListOperationsResponse{
 19039  		ServerResponse: googleapi.ServerResponse{
 19040  			Header:         res.Header,
 19041  			HTTPStatusCode: res.StatusCode,
 19042  		},
 19043  	}
 19044  	target := &ret
 19045  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19046  		return nil, err
 19047  	}
 19048  	return ret, nil
 19049  	// {
 19050  	//   "description": "Lists operations that match the specified filter in the request. If the\nserver doesn't support this method, it returns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding allows API services to override the binding\nto use different resource name schemes, such as `users/*/operations`. To\noverride the binding, API services can add a binding such as\n`\"/v1/{name=users/*}/operations\"` to their service configuration.\nFor backwards compatibility, the default name includes the operations\ncollection id, however overriding users must ensure the name binding\nis the parent resource, without the operations collection id.",
 19051  	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/operations",
 19052  	//   "httpMethod": "GET",
 19053  	//   "id": "healthcare.projects.locations.datasets.operations.list",
 19054  	//   "parameterOrder": [
 19055  	//     "name"
 19056  	//   ],
 19057  	//   "parameters": {
 19058  	//     "filter": {
 19059  	//       "description": "The standard list filter.",
 19060  	//       "location": "query",
 19061  	//       "type": "string"
 19062  	//     },
 19063  	//     "name": {
 19064  	//       "description": "The name of the operation's parent resource.",
 19065  	//       "location": "path",
 19066  	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
 19067  	//       "required": true,
 19068  	//       "type": "string"
 19069  	//     },
 19070  	//     "pageSize": {
 19071  	//       "description": "The standard list page size.",
 19072  	//       "format": "int32",
 19073  	//       "location": "query",
 19074  	//       "type": "integer"
 19075  	//     },
 19076  	//     "pageToken": {
 19077  	//       "description": "The standard list page token.",
 19078  	//       "location": "query",
 19079  	//       "type": "string"
 19080  	//     }
 19081  	//   },
 19082  	//   "path": "v1alpha2/{+name}/operations",
 19083  	//   "response": {
 19084  	//     "$ref": "ListOperationsResponse"
 19085  	//   },
 19086  	//   "scopes": [
 19087  	//     "https://www.googleapis.com/auth/cloud-platform"
 19088  	//   ]
 19089  	// }
 19090  
 19091  }
 19092  
 19093  // Pages invokes f for each page of results.
 19094  // A non-nil error returned from f will halt the iteration.
 19095  // The provided context supersedes any context provided to the Context method.
 19096  func (c *ProjectsLocationsDatasetsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error {
 19097  	c.ctx_ = ctx
 19098  	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
 19099  	for {
 19100  		x, err := c.Do()
 19101  		if err != nil {
 19102  			return err
 19103  		}
 19104  		if err := f(x); err != nil {
 19105  			return err
 19106  		}
 19107  		if x.NextPageToken == "" {
 19108  			return nil
 19109  		}
 19110  		c.PageToken(x.NextPageToken)
 19111  	}
 19112  }
 19113  

View as plain text