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.
38package healthcare // import "google.golang.org/api/healthcare/v1alpha2"
39
40import (
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.
60var _ = bytes.NewBuffer
61var _ = strconv.Itoa
62var _ = fmt.Sprintf
63var _ = json.NewDecoder
64var _ = io.Copy
65var _ = url.Parse
66var _ = gensupport.MarshalJSON
67var _ = googleapi.Version
68var _ = errors.New
69var _ = strings.Replace
70var _ = context.Canceled
71
72const apiId = "healthcare:v1alpha2"
73const apiName = "healthcare"
74const apiVersion = "v1alpha2"
75const basePath = "https://healthcare.googleapis.com/"
76
77// OAuth2 scopes used by this API.
78const (
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.
84func 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.
109func 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
118type 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
126func (s *Service) userAgent() string {
127	if s.UserAgent == "" {
128		return googleapi.UserAgent
129	}
130	return googleapi.UserAgent + " " + s.UserAgent
131}
132
133func NewProjectsService(s *Service) *ProjectsService {
134	rs := &ProjectsService{s: s}
135	rs.Locations = NewProjectsLocationsService(s)
136	return rs
137}
138
139type ProjectsService struct {
140	s *Service
141
142	Locations *ProjectsLocationsService
143}
144
145func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
146	rs := &ProjectsLocationsService{s: s}
147	rs.Datasets = NewProjectsLocationsDatasetsService(s)
148	return rs
149}
150
151type ProjectsLocationsService struct {
152	s *Service
153
154	Datasets *ProjectsLocationsDatasetsService
155}
156
157func 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
167type 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
181func NewProjectsLocationsDatasetsAnnotationStoresService(s *Service) *ProjectsLocationsDatasetsAnnotationStoresService {
182	rs := &ProjectsLocationsDatasetsAnnotationStoresService{s: s}
183	rs.Annotations = NewProjectsLocationsDatasetsAnnotationStoresAnnotationsService(s)
184	return rs
185}
186
187type ProjectsLocationsDatasetsAnnotationStoresService struct {
188	s *Service
189
190	Annotations *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService
191}
192
193func NewProjectsLocationsDatasetsAnnotationStoresAnnotationsService(s *Service) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService {
194	rs := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsService{s: s}
195	return rs
196}
197
198type ProjectsLocationsDatasetsAnnotationStoresAnnotationsService struct {
199	s *Service
200}
201
202func NewProjectsLocationsDatasetsDicomStoresService(s *Service) *ProjectsLocationsDatasetsDicomStoresService {
203	rs := &ProjectsLocationsDatasetsDicomStoresService{s: s}
204	rs.DicomWeb = NewProjectsLocationsDatasetsDicomStoresDicomWebService(s)
205	return rs
206}
207
208type ProjectsLocationsDatasetsDicomStoresService struct {
209	s *Service
210
211	DicomWeb *ProjectsLocationsDatasetsDicomStoresDicomWebService
212}
213
214func NewProjectsLocationsDatasetsDicomStoresDicomWebService(s *Service) *ProjectsLocationsDatasetsDicomStoresDicomWebService {
215	rs := &ProjectsLocationsDatasetsDicomStoresDicomWebService{s: s}
216	rs.Studies = NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesService(s)
217	return rs
218}
219
220type ProjectsLocationsDatasetsDicomStoresDicomWebService struct {
221	s *Service
222
223	Studies *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService
224}
225
226func NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesService(s *Service) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService {
227	rs := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService{s: s}
228	rs.Series = NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService(s)
229	return rs
230}
231
232type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService struct {
233	s *Service
234
235	Series *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService
236}
237
238func NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService(s *Service) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService {
239	rs := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService{s: s}
240	rs.Instances = NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService(s)
241	return rs
242}
243
244type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService struct {
245	s *Service
246
247	Instances *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService
248}
249
250func NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService(s *Service) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService {
251	rs := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService{s: s}
252	rs.Frames = NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesService(s)
253	return rs
254}
255
256type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService struct {
257	s *Service
258
259	Frames *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesService
260}
261
262func NewProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesService(s *Service) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesService {
263	rs := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesService{s: s}
264	return rs
265}
266
267type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesService struct {
268	s *Service
269}
270
271func NewProjectsLocationsDatasetsFhirStoresService(s *Service) *ProjectsLocationsDatasetsFhirStoresService {
272	rs := &ProjectsLocationsDatasetsFhirStoresService{s: s}
273	rs.Fhir = NewProjectsLocationsDatasetsFhirStoresFhirService(s)
274	return rs
275}
276
277type ProjectsLocationsDatasetsFhirStoresService struct {
278	s *Service
279
280	Fhir *ProjectsLocationsDatasetsFhirStoresFhirService
281}
282
283func NewProjectsLocationsDatasetsFhirStoresFhirService(s *Service) *ProjectsLocationsDatasetsFhirStoresFhirService {
284	rs := &ProjectsLocationsDatasetsFhirStoresFhirService{s: s}
285	return rs
286}
287
288type ProjectsLocationsDatasetsFhirStoresFhirService struct {
289	s *Service
290}
291
292func NewProjectsLocationsDatasetsHl7V2StoresService(s *Service) *ProjectsLocationsDatasetsHl7V2StoresService {
293	rs := &ProjectsLocationsDatasetsHl7V2StoresService{s: s}
294	rs.Messages = NewProjectsLocationsDatasetsHl7V2StoresMessagesService(s)
295	return rs
296}
297
298type ProjectsLocationsDatasetsHl7V2StoresService struct {
299	s *Service
300
301	Messages *ProjectsLocationsDatasetsHl7V2StoresMessagesService
302}
303
304func NewProjectsLocationsDatasetsHl7V2StoresMessagesService(s *Service) *ProjectsLocationsDatasetsHl7V2StoresMessagesService {
305	rs := &ProjectsLocationsDatasetsHl7V2StoresMessagesService{s: s}
306	return rs
307}
308
309type ProjectsLocationsDatasetsHl7V2StoresMessagesService struct {
310	s *Service
311}
312
313func NewProjectsLocationsDatasetsOperationsService(s *Service) *ProjectsLocationsDatasetsOperationsService {
314	rs := &ProjectsLocationsDatasetsOperationsService{s: s}
315	return rs
316}
317
318type ProjectsLocationsDatasetsOperationsService struct {
319	s *Service
320}
321
322// Annotation: An annotation record.
323type 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
367func (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.
375type 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
398func (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.
407type 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
453func (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.
516type 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
546func (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.
573type 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
607func (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`.
614type 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
679func (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.
686type 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
708func (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.
716type 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
739func (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.
746type 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
767func (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.
774type 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
795func (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=`.
806type 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
831func (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.
844type 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
881func (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.
890type 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
917func (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.
930type 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
961func (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.
969type 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
1003func (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.
1011type 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
1043func (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.
1051type 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
1077func (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.
1085type 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
1105func (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.
1113type 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
1160func (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.
1167type 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
1218func (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// (google.protobuf.Empty);
1233//     }
1234//
1235// The JSON representation for `Empty` is empty JSON object `{}`.
1236type Empty struct {
1237	// ServerResponse contains the HTTP response code and headers from the
1238	// server.
1239	googleapi.ServerResponse `json:"-"`
1240}
1241
1242// ErrorDetail: Structure to describe the error encountered during batch
1243// operation on one
1244// resource. This is used both for sample errors in operation response,
1245// and
1246// for format of errors in error reports.
1247type ErrorDetail struct {
1248	// Error: The status of the error.
1249	Error *Status `json:"error,omitempty"`
1250
1251	// Resource: The identifier of the resource.
1252	Resource string `json:"resource,omitempty"`
1253
1254	// ForceSendFields is a list of field names (e.g. "Error") to
1255	// unconditionally include in API requests. By default, fields with
1256	// empty values are omitted from API requests. However, any non-pointer,
1257	// non-interface field appearing in ForceSendFields will be sent to the
1258	// server regardless of whether the field is empty or not. This may be
1259	// used to include empty fields in Patch requests.
1260	ForceSendFields []string `json:"-"`
1261
1262	// NullFields is a list of field names (e.g. "Error") to include in API
1263	// requests with the JSON null value. By default, fields with empty
1264	// values are omitted from API requests. However, any field with an
1265	// empty value appearing in NullFields will be sent to the server as
1266	// null. It is an error if a field in this list has a non-empty value.
1267	// This may be used to include null fields in Patch requests.
1268	NullFields []string `json:"-"`
1269}
1270
1271func (s *ErrorDetail) MarshalJSON() ([]byte, error) {
1272	type NoMethod ErrorDetail
1273	raw := NoMethod(*s)
1274	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1275}
1276
1277// ExportDicomDataRequest: Exports data from the specified DICOM
1278// store.
1279// If a given resource (e.g., a DICOM object with the same SOPInstance
1280// UID)
1281// already exists in the output, it is overwritten with the version
1282// in the source dataset.
1283// Exported DICOM data will persist when the DICOM store from which it
1284// was
1285// exported is deleted.
1286type ExportDicomDataRequest struct {
1287	// BigqueryDestination: The BigQuery output destination.
1288	//
1289	// You can only export to a BigQuery dataset that's in the same project
1290	// as
1291	// the DICOM store you're exporting from.
1292	//
1293	// The BigQuery location requires two IAM
1294	// roles:
1295	// `roles/bigquery.dataEditor` and `roles/bigquery.jobUser`.
1296	BigqueryDestination *GoogleCloudHealthcareV1alpha2DicomBigQueryDestination `json:"bigqueryDestination,omitempty"`
1297
1298	// GcsDestination: The Cloud Storage output destination.
1299	//
1300	// The Cloud Storage location requires the `roles/storage.objectAdmin`
1301	// Cloud
1302	// IAM role.
1303	GcsDestination *GoogleCloudHealthcareV1alpha2DicomGcsDestination `json:"gcsDestination,omitempty"`
1304
1305	// ForceSendFields is a list of field names (e.g. "BigqueryDestination")
1306	// to unconditionally include in API requests. By default, fields with
1307	// empty values are omitted from API requests. However, any non-pointer,
1308	// non-interface field appearing in ForceSendFields will be sent to the
1309	// server regardless of whether the field is empty or not. This may be
1310	// used to include empty fields in Patch requests.
1311	ForceSendFields []string `json:"-"`
1312
1313	// NullFields is a list of field names (e.g. "BigqueryDestination") to
1314	// include in API requests with the JSON null value. By default, fields
1315	// with empty values are omitted from API requests. However, any field
1316	// with an empty value appearing in NullFields will be sent to the
1317	// server as null. It is an error if a field in this list has a
1318	// non-empty value. This may be used to include null fields in Patch
1319	// requests.
1320	NullFields []string `json:"-"`
1321}
1322
1323func (s *ExportDicomDataRequest) MarshalJSON() ([]byte, error) {
1324	type NoMethod ExportDicomDataRequest
1325	raw := NoMethod(*s)
1326	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1327}
1328
1329// ExportResourcesRequest: Request to export resources.
1330type ExportResourcesRequest struct {
1331	// BigqueryDestination: The BigQuery output destination.
1332	//
1333	// The BigQuery location requires two IAM
1334	// roles:
1335	// `roles/bigquery.dataEditor` and `roles/bigquery.jobUser`.
1336	//
1337	// The output will be one BigQuery table per resource type.
1338	BigqueryDestination *GoogleCloudHealthcareV1alpha2FhirBigQueryDestination `json:"bigqueryDestination,omitempty"`
1339
1340	// GcsDestination: The Cloud Storage output destination.
1341	//
1342	// The Cloud Storage location requires the `roles/storage.objectAdmin`
1343	// Cloud
1344	// IAM role.
1345	//
1346	// The exported outputs are
1347	// organized by FHIR resource types. The server will create one object
1348	// per
1349	// resource type. Each object contains newline delimited JSON, and each
1350	// line
1351	// is a FHIR resource.
1352	GcsDestination *GoogleCloudHealthcareV1alpha2FhirRestGcsDestination `json:"gcsDestination,omitempty"`
1353
1354	// ForceSendFields is a list of field names (e.g. "BigqueryDestination")
1355	// to unconditionally include in API requests. By default, fields with
1356	// empty values are omitted from API requests. However, any non-pointer,
1357	// non-interface field appearing in ForceSendFields will be sent to the
1358	// server regardless of whether the field is empty or not. This may be
1359	// used to include empty fields in Patch requests.
1360	ForceSendFields []string `json:"-"`
1361
1362	// NullFields is a list of field names (e.g. "BigqueryDestination") to
1363	// include in API requests with the JSON null value. By default, fields
1364	// with empty values are omitted from API requests. However, any field
1365	// with an empty value appearing in NullFields will be sent to the
1366	// server as null. It is an error if a field in this list has a
1367	// non-empty value. This may be used to include null fields in Patch
1368	// requests.
1369	NullFields []string `json:"-"`
1370}
1371
1372func (s *ExportResourcesRequest) MarshalJSON() ([]byte, error) {
1373	type NoMethod ExportResourcesRequest
1374	raw := NoMethod(*s)
1375	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1376}
1377
1378// Expr: Represents an expression text. Example:
1379//
1380//     title: "User account presence"
1381//     description: "Determines whether the request has a user account"
1382//     expression: "size(request.user) > 0"
1383type Expr struct {
1384	// Description: An optional description of the expression. This is a
1385	// longer text which
1386	// describes the expression, e.g. when hovered over it in a UI.
1387	Description string `json:"description,omitempty"`
1388
1389	// Expression: Textual representation of an expression in
1390	// Common Expression Language syntax.
1391	//
1392	// The application context of the containing message determines
1393	// which
1394	// well-known feature set of CEL is supported.
1395	Expression string `json:"expression,omitempty"`
1396
1397	// Location: An optional string indicating the location of the
1398	// expression for error
1399	// reporting, e.g. a file name and a position in the file.
1400	Location string `json:"location,omitempty"`
1401
1402	// Title: An optional title for the expression, i.e. a short string
1403	// describing
1404	// its purpose. This can be used e.g. in UIs which allow to enter
1405	// the
1406	// expression.
1407	Title string `json:"title,omitempty"`
1408
1409	// ForceSendFields is a list of field names (e.g. "Description") to
1410	// unconditionally include in API requests. By default, fields with
1411	// empty values are omitted from API requests. However, any non-pointer,
1412	// non-interface field appearing in ForceSendFields will be sent to the
1413	// server regardless of whether the field is empty or not. This may be
1414	// used to include empty fields in Patch requests.
1415	ForceSendFields []string `json:"-"`
1416
1417	// NullFields is a list of field names (e.g. "Description") to include
1418	// in API requests with the JSON null value. By default, fields with
1419	// empty values are omitted from API requests. However, any field with
1420	// an empty value appearing in NullFields will be sent to the server as
1421	// null. It is an error if a field in this list has a non-empty value.
1422	// This may be used to include null fields in Patch requests.
1423	NullFields []string `json:"-"`
1424}
1425
1426func (s *Expr) MarshalJSON() ([]byte, error) {
1427	type NoMethod Expr
1428	raw := NoMethod(*s)
1429	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1430}
1431
1432// FhirConfig: Specifies how to handle the de-identification of a FHIR
1433// store.
1434type FhirConfig struct {
1435	// FieldMetadataList: Specifies FHIR paths to match and how to transform
1436	// them. Any field that
1437	// is not matched by a FieldMetadata is passed through to the
1438	// output
1439	// dataset unmodified. All extensions are removed in the output.
1440	FieldMetadataList []*FieldMetadata `json:"fieldMetadataList,omitempty"`
1441
1442	// ForceSendFields is a list of field names (e.g. "FieldMetadataList")
1443	// to unconditionally include in API requests. By default, fields with
1444	// empty values are omitted from API requests. However, any non-pointer,
1445	// non-interface field appearing in ForceSendFields will be sent to the
1446	// server regardless of whether the field is empty or not. This may be
1447	// used to include empty fields in Patch requests.
1448	ForceSendFields []string `json:"-"`
1449
1450	// NullFields is a list of field names (e.g. "FieldMetadataList") to
1451	// include in API requests with the JSON null value. By default, fields
1452	// with empty values are omitted from API requests. However, any field
1453	// with an empty value appearing in NullFields will be sent to the
1454	// server as null. It is an error if a field in this list has a
1455	// non-empty value. This may be used to include null fields in Patch
1456	// requests.
1457	NullFields []string `json:"-"`
1458}
1459
1460func (s *FhirConfig) MarshalJSON() ([]byte, error) {
1461	type NoMethod FhirConfig
1462	raw := NoMethod(*s)
1463	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1464}
1465
1466// FhirStore: Represents a FHIR store.
1467type FhirStore struct {
1468	// DisableReferentialIntegrity: Whether to disable referential integrity
1469	// in this FHIR store. This field is
1470	// immutable after FHIR store creation.
1471	// The default value is false, meaning that the API will enforce
1472	// referential
1473	// integrity and fail the requests that will result in inconsistent
1474	// state in
1475	// the FHIR store.
1476	// When this field is set to true, the API will skip referential
1477	// integrity
1478	// check. Consequently, operations that rely on references, such
1479	// as
1480	// GetPatientEverything, will not return all the results if broken
1481	// references
1482	// exist.
1483	DisableReferentialIntegrity bool `json:"disableReferentialIntegrity,omitempty"`
1484
1485	// DisableResourceVersioning: Whether to disable resource versioning for
1486	// this FHIR store. This field can
1487	// not be changed after the creation of FHIR store.
1488	// If set to false, which is the default behavior, all write operations
1489	// will
1490	// cause historical versions to be recorded automatically. The
1491	// historical
1492	// versions can be fetched through the history APIs, but cannot be
1493	// updated.
1494	// If set to true, no historical versions will be kept. The server will
1495	// send
1496	// back errors for attempts to read the historical versions.
1497	DisableResourceVersioning bool `json:"disableResourceVersioning,omitempty"`
1498
1499	// EnableHistoryImport: Whether to allow the bulk import API to accept
1500	// history bundles and directly
1501	// insert historical resource versions into the FHIR store. Importing
1502	// resource
1503	// histories creates resource interactions that appear to have occurred
1504	// in the
1505	// past, which clients may not want to allow. If set to false, history
1506	// bundles
1507	// within an import will fail with an error.
1508	EnableHistoryImport bool `json:"enableHistoryImport,omitempty"`
1509
1510	// EnableUpdateCreate: Whether this FHIR store has the
1511	// [updateCreate
1512	// capability](https://www.hl7.org/fhir/capabilitystatement
1513	// -definitions.html#CapabilityStatement.rest.resource.updateCreate).
1514	// Thi
1515	// s determines if the client can use an Update operation to create a
1516	// new
1517	// resource with a client-specified ID. If false, all IDs are
1518	// server-assigned
1519	// through the Create operation and attempts to Update a non-existent
1520	// resource
1521	// will return errors. Please treat the audit logs with appropriate
1522	// levels of
1523	// care if client-specified resource IDs contain sensitive data such
1524	// as
1525	// patient identifiers, those IDs will be part of the FHIR resource
1526	// path
1527	// recorded in Cloud audit logs and Cloud Pub/Sub notifications.
1528	EnableUpdateCreate bool `json:"enableUpdateCreate,omitempty"`
1529
1530	// Labels: User-supplied key-value pairs used to organize FHIR
1531	// stores.
1532	//
1533	// Label keys must be between 1 and 63 characters long, have a UTF-8
1534	// encoding
1535	// of maximum 128 bytes, and must conform to the
1536	// following PCRE regular expression:
1537	// \p{Ll}\p{Lo}{0,62}
1538	//
1539	// Label values are optional, must be between 1 and 63 characters long,
1540	// have
1541	// a UTF-8 encoding of maximum 128 bytes, and must conform to
1542	// the
1543	// following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
1544	//
1545	// No more than 64 labels can be associated with a given store.
1546	Labels map[string]string `json:"labels,omitempty"`
1547
1548	// Name: Output only. Resource name of the FHIR store, of the
1549	// form
1550	// `projects/{project_id}/datasets/{dataset_id}/fhirStores/{fhir_sto
1551	// re_id}`.
1552	Name string `json:"name,omitempty"`
1553
1554	// NotificationConfig: If non-empty, publish all resource modifications
1555	// of this FHIR store to
1556	// this destination. The Cloud Pub/Sub message attributes will contain a
1557	// map
1558	// with a string describing the action that has triggered the
1559	// notification,
1560	// e.g. "action":"CreateResource".
1561	NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"`
1562
1563	// StreamConfigs: A list of streaming configs that configure the
1564	// destinations of streaming
1565	// export for every resource mutation in this FHIR store. Each store
1566	// is
1567	// allowed to have up to 10 streaming configs.
1568	// After a new config is added, the next resource mutation will be
1569	// streamed to
1570	// the new location in addition to the existing ones.
1571	// When a location is removed from the list, the server will simply
1572	// stop
1573	// streaming to that location. Before adding a new config, you must add
1574	// the
1575	// required
1576	// [`bigquery.dataEditor`](https://cloud.google.com/bigquery
1577	// /docs/access-control#bigquery.dataEditor)
1578	// role to your project's **Cloud Healthcare Service Agent**
1579	// [service
1580	// account](https://cloud.google.com/iam/docs/service-accounts).
1581	// Some lag (typically on the order of dozens of seconds) is expected
1582	// before
1583	// the results show up in the streaming destination.
1584	StreamConfigs []*StreamConfig `json:"streamConfigs,omitempty"`
1585
1586	// SubscriptionConfig: Configuration of FHIR
1587	// Subscription:
1588	// https://www.hl7.org/fhir/subscription.html.
1589	SubscriptionConfig *SubscriptionConfig `json:"subscriptionConfig,omitempty"`
1590
1591	// ValidationConfig: Configuration for how incoming FHIR resources will
1592	// be validated against
1593	// configured profiles.
1594	ValidationConfig *ValidationConfig `json:"validationConfig,omitempty"`
1595
1596	// ServerResponse contains the HTTP response code and headers from the
1597	// server.
1598	googleapi.ServerResponse `json:"-"`
1599
1600	// ForceSendFields is a list of field names (e.g.
1601	// "DisableReferentialIntegrity") to unconditionally include in API
1602	// requests. By default, fields with empty values are omitted from API
1603	// requests. However, any non-pointer, non-interface field appearing in
1604	// ForceSendFields will be sent to the server regardless of whether the
1605	// field is empty or not. This may be used to include empty fields in
1606	// Patch requests.
1607	ForceSendFields []string `json:"-"`
1608
1609	// NullFields is a list of field names (e.g.
1610	// "DisableReferentialIntegrity") to include in API requests with the
1611	// JSON null value. By default, fields with empty values are omitted
1612	// from API requests. However, any field with an empty value appearing
1613	// in NullFields will be sent to the server as null. It is an error if a
1614	// field in this list has a non-empty value. This may be used to include
1615	// null fields in Patch requests.
1616	NullFields []string `json:"-"`
1617}
1618
1619func (s *FhirStore) MarshalJSON() ([]byte, error) {
1620	type NoMethod FhirStore
1621	raw := NoMethod(*s)
1622	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1623}
1624
1625// FieldMetadata: Specifies FHIR paths to match and how to handle the
1626// de-identification of
1627// matching fields.
1628type FieldMetadata struct {
1629	// Action: Deidentify action for one field.
1630	//
1631	// Possible values:
1632	//   "ACTION_UNSPECIFIED" - No action specified.
1633	//   "TRANSFORM" - Transform the entire field.
1634	//   "INSPECT_AND_TRANSFORM" - Inspect and transform any found PHI. When
1635	// `AnnotationConfig` is
1636	// provided, annotations of PHI are generated, except for Date and
1637	// Datetime.
1638	//   "DO_NOT_TRANSFORM" - Do not transform.
1639	Action string `json:"action,omitempty"`
1640
1641	// Paths: List of paths to FHIR fields to redact. Each path is
1642	// a
1643	// period-separated list where each component is either a field name
1644	// or
1645	// FHIR type name. For example: Patient, HumanName.
1646	// For "choice" types (those defined in the FHIR spec with the
1647	// form:
1648	// field[x]), use two separate components. For
1649	// example,
1650	// "deceasedAge.unit" is matched by "Deceased.Age.unit".
1651	// Supported types are: AdministrativeGenderCode, Code, Date,
1652	// DateTime,
1653	// Decimal, HumanName, Id, LanguageCode, Markdown, MimeTypeCode,
1654	// Oid,
1655	// String, Uri, Uuid, Xhtml.
1656	Paths []string `json:"paths,omitempty"`
1657
1658	// ForceSendFields is a list of field names (e.g. "Action") to
1659	// unconditionally include in API requests. By default, fields with
1660	// empty values are omitted from API requests. However, any non-pointer,
1661	// non-interface field appearing in ForceSendFields will be sent to the
1662	// server regardless of whether the field is empty or not. This may be
1663	// used to include empty fields in Patch requests.
1664	ForceSendFields []string `json:"-"`
1665
1666	// NullFields is a list of field names (e.g. "Action") to include in API
1667	// requests with the JSON null value. By default, fields with empty
1668	// values are omitted from API requests. However, any field with an
1669	// empty value appearing in NullFields will be sent to the server as
1670	// null. It is an error if a field in this list has a non-empty value.
1671	// This may be used to include null fields in Patch requests.
1672	NullFields []string `json:"-"`
1673}
1674
1675func (s *FieldMetadata) MarshalJSON() ([]byte, error) {
1676	type NoMethod FieldMetadata
1677	raw := NoMethod(*s)
1678	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1679}
1680
1681type Finding struct {
1682	// End: Zero-based ending index of the found text, exclusively.
1683	End int64 `json:"end,omitempty,string"`
1684
1685	// InfoType: The type of information stored in this text range (e.g.
1686	// HumanName,
1687	// BirthDate, Address, etc.)
1688	InfoType string `json:"infoType,omitempty"`
1689
1690	// Start: Zero-based starting index of the found text, inclusively.
1691	Start int64 `json:"start,omitempty,string"`
1692
1693	// ForceSendFields is a list of field names (e.g. "End") to
1694	// unconditionally include in API requests. By default, fields with
1695	// empty values are omitted from API requests. However, any non-pointer,
1696	// non-interface field appearing in ForceSendFields will be sent to the
1697	// server regardless of whether the field is empty or not. This may be
1698	// used to include empty fields in Patch requests.
1699	ForceSendFields []string `json:"-"`
1700
1701	// NullFields is a list of field names (e.g. "End") to include in API
1702	// requests with the JSON null value. By default, fields with empty
1703	// values are omitted from API requests. However, any field with an
1704	// empty value appearing in NullFields will be sent to the server as
1705	// null. It is an error if a field in this list has a non-empty value.
1706	// This may be used to include null fields in Patch requests.
1707	NullFields []string `json:"-"`
1708}
1709
1710func (s *Finding) MarshalJSON() ([]byte, error) {
1711	type NoMethod Finding
1712	raw := NoMethod(*s)
1713	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1714}
1715
1716// GetIamPolicyRequest: Request message for `GetIamPolicy` method.
1717type GetIamPolicyRequest struct {
1718	// Options: OPTIONAL: A `GetPolicyOptions` object for specifying options
1719	// to
1720	// `GetIamPolicy`. This field is only used by Cloud IAM.
1721	Options *GetPolicyOptions `json:"options,omitempty"`
1722
1723	// ForceSendFields is a list of field names (e.g. "Options") to
1724	// unconditionally include in API requests. By default, fields with
1725	// empty values are omitted from API requests. However, any non-pointer,
1726	// non-interface field appearing in ForceSendFields will be sent to the
1727	// server regardless of whether the field is empty or not. This may be
1728	// used to include empty fields in Patch requests.
1729	ForceSendFields []string `json:"-"`
1730
1731	// NullFields is a list of field names (e.g. "Options") to include in
1732	// API requests with the JSON null value. By default, fields with empty
1733	// values are omitted from API requests. However, any field with an
1734	// empty value appearing in NullFields will be sent to the server as
1735	// null. It is an error if a field in this list has a non-empty value.
1736	// This may be used to include null fields in Patch requests.
1737	NullFields []string `json:"-"`
1738}
1739
1740func (s *GetIamPolicyRequest) MarshalJSON() ([]byte, error) {
1741	type NoMethod GetIamPolicyRequest
1742	raw := NoMethod(*s)
1743	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1744}
1745
1746// GetPolicyOptions: Encapsulates settings provided to GetIamPolicy.
1747type GetPolicyOptions struct {
1748	// RequestedPolicyVersion: Optional. The policy format version to be
1749	// returned.
1750	// Acceptable values are 0, 1, and 3.
1751	// If the value is 0, or the field is omitted, policy format version 1
1752	// will be
1753	// returned.
1754	RequestedPolicyVersion int64 `json:"requestedPolicyVersion,omitempty"`
1755
1756	// ForceSendFields is a list of field names (e.g.
1757	// "RequestedPolicyVersion") to unconditionally include in API requests.
1758	// By default, fields with empty values are omitted from API requests.
1759	// However, any non-pointer, non-interface field appearing in
1760	// ForceSendFields will be sent to the server regardless of whether the
1761	// field is empty or not. This may be used to include empty fields in
1762	// Patch requests.
1763	ForceSendFields []string `json:"-"`
1764
1765	// NullFields is a list of field names (e.g. "RequestedPolicyVersion")
1766	// to include in API requests with the JSON null value. By default,
1767	// fields with empty values are omitted from API requests. However, any
1768	// field with an empty value appearing in NullFields will be sent to the
1769	// server as null. It is an error if a field in this list has a
1770	// non-empty value. This may be used to include null fields in Patch
1771	// requests.
1772	NullFields []string `json:"-"`
1773}
1774
1775func (s *GetPolicyOptions) MarshalJSON() ([]byte, error) {
1776	type NoMethod GetPolicyOptions
1777	raw := NoMethod(*s)
1778	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1779}
1780
1781// GoogleCloudHealthcareV1alpha2DicomBigQueryDestination: The BigQuery
1782// table where the output should be written.
1783type GoogleCloudHealthcareV1alpha2DicomBigQueryDestination struct {
1784	// Force: If the destination table already exists and this flag is
1785	// `TRUE`, the table
1786	// will be overwritten by the contents of the DICOM store. If the flag
1787	// is not
1788	// set and the destination table already exists, the export call returns
1789	// an
1790	// error.
1791	Force bool `json:"force,omitempty"`
1792
1793	// TableUri: BigQuery URI to a table, up to 2000 characters long, in the
1794	// format
1795	// `bq://projectId.bqDatasetId.tableId`
1796	TableUri string `json:"tableUri,omitempty"`
1797
1798	// ForceSendFields is a list of field names (e.g. "Force") to
1799	// unconditionally include in API requests. By default, fields with
1800	// empty values are omitted from API requests. However, any non-pointer,
1801	// non-interface field appearing in ForceSendFields will be sent to the
1802	// server regardless of whether the field is empty or not. This may be
1803	// used to include empty fields in Patch requests.
1804	ForceSendFields []string `json:"-"`
1805
1806	// NullFields is a list of field names (e.g. "Force") to include in API
1807	// requests with the JSON null value. By default, fields with empty
1808	// values are omitted from API requests. However, any field with an
1809	// empty value appearing in NullFields will be sent to the server as
1810	// null. It is an error if a field in this list has a non-empty value.
1811	// This may be used to include null fields in Patch requests.
1812	NullFields []string `json:"-"`
1813}
1814
1815func (s *GoogleCloudHealthcareV1alpha2DicomBigQueryDestination) MarshalJSON() ([]byte, error) {
1816	type NoMethod GoogleCloudHealthcareV1alpha2DicomBigQueryDestination
1817	raw := NoMethod(*s)
1818	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1819}
1820
1821// GoogleCloudHealthcareV1alpha2DicomGcsDestination: The Cloud Storage
1822// location where the output should be written, and the
1823// export
1824// configuration.
1825type GoogleCloudHealthcareV1alpha2DicomGcsDestination struct {
1826	// MimeType: MIME types supported by DICOM spec.
1827	// Each file will be written in the following
1828	// format:
1829	// `.../{study_id}/{series_id}/{instance_id}[/{frame_number}].{ex
1830	// tension}`
1831	// The frame_number component will exist only for multi-frame
1832	// instances.
1833	//
1834	// Refer to the DICOM conformance statement for permissible MIME
1835	// types:
1836	// https://cloud.google.com/healthcare/docs/dicom#wado-rs
1837	//
1838	// The following extensions will be used for output files:
1839	//   application/dicom -> .dcm
1840	//   image/jpeg -> .jpg
1841	//   image/png -> .png
1842	//
1843	// If unspecified, the instances will be exported in their
1844	// original
1845	// DICOM format.
1846	MimeType string `json:"mimeType,omitempty"`
1847
1848	// UriPrefix: The Cloud Storage destination to export to.
1849	//
1850	// URI for a Cloud Storage directory where result files should be
1851	// written (in
1852	// the format `gs://{bucket-id}/{path/to/destination/dir}`). If there is
1853	// no
1854	// trailing slash, the service will append one when composing the object
1855	// path.
1856	// The user is responsible for creating the Cloud Storage bucket
1857	// referenced in
1858	// `uri_prefix`.
1859	UriPrefix string `json:"uriPrefix,omitempty"`
1860
1861	// ForceSendFields is a list of field names (e.g. "MimeType") to
1862	// unconditionally include in API requests. By default, fields with
1863	// empty values are omitted from API requests. However, any non-pointer,
1864	// non-interface field appearing in ForceSendFields will be sent to the
1865	// server regardless of whether the field is empty or not. This may be
1866	// used to include empty fields in Patch requests.
1867	ForceSendFields []string `json:"-"`
1868
1869	// NullFields is a list of field names (e.g. "MimeType") to include in
1870	// API requests with the JSON null value. By default, fields with empty
1871	// values are omitted from API requests. However, any field with an
1872	// empty value appearing in NullFields will be sent to the server as
1873	// null. It is an error if a field in this list has a non-empty value.
1874	// This may be used to include null fields in Patch requests.
1875	NullFields []string `json:"-"`
1876}
1877
1878func (s *GoogleCloudHealthcareV1alpha2DicomGcsDestination) MarshalJSON() ([]byte, error) {
1879	type NoMethod GoogleCloudHealthcareV1alpha2DicomGcsDestination
1880	raw := NoMethod(*s)
1881	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1882}
1883
1884// GoogleCloudHealthcareV1alpha2DicomGcsSource: Specifies the
1885// configuration for importing data from Cloud Storage.
1886type GoogleCloudHealthcareV1alpha2DicomGcsSource struct {
1887	// Uri: Points to a Cloud Storage URI containing file(s) with
1888	// content only. The URI must be in the following
1889	// format:
1890	// `gs://{bucket_id}/{object_id}`. The URI can include wildcards
1891	// in
1892	// `object_id` and thus identify multiple files. Supported wildcards:
1893	//  '*' to match 0 or more non-separator characters
1894	//  '**' to match 0 or more characters (including separators). Must be
1895	// used at
1896	//       the end of a path and with no other wildcards in the
1897	//       path. Can also be used with a file extension (such as .dcm),
1898	// which
1899	//       imports all files with the extension in the specified directory
1900	// and
1901	//       its sub-directories. For example,
1902	//       `gs://my-bucket/my-directory/**.dcm` imports all files with
1903	// .dcm
1904	//       extensions in `my-directory/` and its sub-directories.
1905	//  '?' to match 1 character
1906	// All other URI formats are invalid.
1907	// Files matching the wildcard are expected to contain content only,
1908	// no
1909	// metadata.
1910	Uri string `json:"uri,omitempty"`
1911
1912	// ForceSendFields is a list of field names (e.g. "Uri") to
1913	// unconditionally include in API requests. By default, fields with
1914	// empty values are omitted from API requests. However, any non-pointer,
1915	// non-interface field appearing in ForceSendFields will be sent to the
1916	// server regardless of whether the field is empty or not. This may be
1917	// used to include empty fields in Patch requests.
1918	ForceSendFields []string `json:"-"`
1919
1920	// NullFields is a list of field names (e.g. "Uri") to include in API
1921	// requests with the JSON null value. By default, fields with empty
1922	// values are omitted from API requests. However, any field with an
1923	// empty value appearing in NullFields will be sent to the server as
1924	// null. It is an error if a field in this list has a non-empty value.
1925	// This may be used to include null fields in Patch requests.
1926	NullFields []string `json:"-"`
1927}
1928
1929func (s *GoogleCloudHealthcareV1alpha2DicomGcsSource) MarshalJSON() ([]byte, error) {
1930	type NoMethod GoogleCloudHealthcareV1alpha2DicomGcsSource
1931	raw := NoMethod(*s)
1932	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1933}
1934
1935// GoogleCloudHealthcareV1alpha2FhirBigQueryDestination: The
1936// configuration for exporting to BigQuery.
1937type GoogleCloudHealthcareV1alpha2FhirBigQueryDestination struct {
1938	// DatasetUri: BigQuery URI to a dataset, up to 2000 characters long, in
1939	// the format
1940	// `bq://projectId.bqDatasetId`
1941	DatasetUri string `json:"datasetUri,omitempty"`
1942
1943	// SchemaConfig: The configuration for the exported BigQuery schema.
1944	SchemaConfig *SchemaConfig `json:"schemaConfig,omitempty"`
1945
1946	// ForceSendFields is a list of field names (e.g. "DatasetUri") to
1947	// unconditionally include in API requests. By default, fields with
1948	// empty values are omitted from API requests. However, any non-pointer,
1949	// non-interface field appearing in ForceSendFields will be sent to the
1950	// server regardless of whether the field is empty or not. This may be
1951	// used to include empty fields in Patch requests.
1952	ForceSendFields []string `json:"-"`
1953
1954	// NullFields is a list of field names (e.g. "DatasetUri") to include in
1955	// API requests with the JSON null value. By default, fields with empty
1956	// values are omitted from API requests. However, any field with an
1957	// empty value appearing in NullFields will be sent to the server as
1958	// null. It is an error if a field in this list has a non-empty value.
1959	// This may be used to include null fields in Patch requests.
1960	NullFields []string `json:"-"`
1961}
1962
1963func (s *GoogleCloudHealthcareV1alpha2FhirBigQueryDestination) MarshalJSON() ([]byte, error) {
1964	type NoMethod GoogleCloudHealthcareV1alpha2FhirBigQueryDestination
1965	raw := NoMethod(*s)
1966	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1967}
1968
1969// GoogleCloudHealthcareV1alpha2FhirRestExportResourcesErrorDetails:
1970// Response when errors occur while exporting resources.
1971// This structure is included in the
1972// error details to describe the
1973// detailed outcome. It is only included when the operation finishes
1974// with
1975// errors.
1976type GoogleCloudHealthcareV1alpha2FhirRestExportResourcesErrorDetails struct {
1977	// ErrorCount: The number of resources that had errors.
1978	ErrorCount int64 `json:"errorCount,omitempty,string"`
1979
1980	// FhirStore: The name of the FHIR store where resources have been
1981	// exported, in
1982	// the
1983	// format
1984	// `projects/{project_id}/locations/{location_id}/datasets/{da
1985	// taset_id}/fhirStores/{fhir_store_id}`.
1986	FhirStore string `json:"fhirStore,omitempty"`
1987
1988	// ResourceCount: The total number of resources included in the export
1989	// operation. This is
1990	// the sum of the success and error counts.
1991	ResourceCount int64 `json:"resourceCount,omitempty,string"`
1992
1993	// SuccessCount: The number of resources that were exported.
1994	SuccessCount int64 `json:"successCount,omitempty,string"`
1995
1996	// ForceSendFields is a list of field names (e.g. "ErrorCount") to
1997	// unconditionally include in API requests. By default, fields with
1998	// empty values are omitted from API requests. However, any non-pointer,
1999	// non-interface field appearing in ForceSendFields will be sent to the
2000	// server regardless of whether the field is empty or not. This may be
2001	// used to include empty fields in Patch requests.
2002	ForceSendFields []string `json:"-"`
2003
2004	// NullFields is a list of field names (e.g. "ErrorCount") to include in
2005	// API requests with the JSON null value. By default, fields with empty
2006	// values are omitted from API requests. However, any field with an
2007	// empty value appearing in NullFields will be sent to the server as
2008	// null. It is an error if a field in this list has a non-empty value.
2009	// This may be used to include null fields in Patch requests.
2010	NullFields []string `json:"-"`
2011}
2012
2013func (s *GoogleCloudHealthcareV1alpha2FhirRestExportResourcesErrorDetails) MarshalJSON() ([]byte, error) {
2014	type NoMethod GoogleCloudHealthcareV1alpha2FhirRestExportResourcesErrorDetails
2015	raw := NoMethod(*s)
2016	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2017}
2018
2019// GoogleCloudHealthcareV1alpha2FhirRestExportResourcesResponse:
2020// Response when all resources export successfully.
2021// This structure will be included in the
2022// response to describe the detailed
2023// outcome. It will only be included when the operation finishes
2024// successfully.
2025type GoogleCloudHealthcareV1alpha2FhirRestExportResourcesResponse struct {
2026	// FhirStore: The name of the FHIR store where resources have been
2027	// exported, in
2028	// the
2029	// format
2030	// `projects/{project_id}/locations/{location_id}/datasets/{da
2031	// taset_id}/fhirStores/{fhir_store_id}`.
2032	FhirStore string `json:"fhirStore,omitempty"`
2033
2034	// ResourceCount: The total number of resources exported from the
2035	// requested FHIR store.
2036	ResourceCount int64 `json:"resourceCount,omitempty,string"`
2037
2038	// ForceSendFields is a list of field names (e.g. "FhirStore") to
2039	// unconditionally include in API requests. By default, fields with
2040	// empty values are omitted from API requests. However, any non-pointer,
2041	// non-interface field appearing in ForceSendFields will be sent to the
2042	// server regardless of whether the field is empty or not. This may be
2043	// used to include empty fields in Patch requests.
2044	ForceSendFields []string `json:"-"`
2045
2046	// NullFields is a list of field names (e.g. "FhirStore") to include in
2047	// API requests with the JSON null value. By default, fields with empty
2048	// values are omitted from API requests. However, any field with an
2049	// empty value appearing in NullFields will be sent to the server as
2050	// null. It is an error if a field in this list has a non-empty value.
2051	// This may be used to include null fields in Patch requests.
2052	NullFields []string `json:"-"`
2053}
2054
2055func (s *GoogleCloudHealthcareV1alpha2FhirRestExportResourcesResponse) MarshalJSON() ([]byte, error) {
2056	type NoMethod GoogleCloudHealthcareV1alpha2FhirRestExportResourcesResponse
2057	raw := NoMethod(*s)
2058	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2059}
2060
2061// GoogleCloudHealthcareV1alpha2FhirRestGcsDestination: The
2062// configuration for exporting to Cloud Storage.
2063type GoogleCloudHealthcareV1alpha2FhirRestGcsDestination struct {
2064	// UriPrefix: URI for a Cloud Storage directory where result files
2065	// should be written (in
2066	// the format `gs://{bucket-id}/{path/to/destination/dir}`). If there is
2067	// no
2068	// trailing slash, the service will append one when composing the object
2069	// path.
2070	// The user is responsible for creating the Cloud Storage bucket
2071	// referenced in
2072	// `uri_prefix`.
2073	UriPrefix string `json:"uriPrefix,omitempty"`
2074
2075	// ForceSendFields is a list of field names (e.g. "UriPrefix") to
2076	// unconditionally include in API requests. By default, fields with
2077	// empty values are omitted from API requests. However, any non-pointer,
2078	// non-interface field appearing in ForceSendFields will be sent to the
2079	// server regardless of whether the field is empty or not. This may be
2080	// used to include empty fields in Patch requests.
2081	ForceSendFields []string `json:"-"`
2082
2083	// NullFields is a list of field names (e.g. "UriPrefix") to include in
2084	// API requests with the JSON null value. By default, fields with empty
2085	// values are omitted from API requests. However, any field with an
2086	// empty value appearing in NullFields will be sent to the server as
2087	// null. It is an error if a field in this list has a non-empty value.
2088	// This may be used to include null fields in Patch requests.
2089	NullFields []string `json:"-"`
2090}
2091
2092func (s *GoogleCloudHealthcareV1alpha2FhirRestGcsDestination) MarshalJSON() ([]byte, error) {
2093	type NoMethod GoogleCloudHealthcareV1alpha2FhirRestGcsDestination
2094	raw := NoMethod(*s)
2095	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2096}
2097
2098// GoogleCloudHealthcareV1alpha2FhirRestGcsErrorDestination: Specifies
2099// the Cloud Storage destination where errors will be recorded.
2100type GoogleCloudHealthcareV1alpha2FhirRestGcsErrorDestination struct {
2101	// UriPrefix: URI for a Cloud Storage directory to which error report
2102	// files should be
2103	// written (in the format `gs://{bucket-id}/{path/to/destination/dir}`).
2104	// If
2105	// there is no trailing slash, the service will append one when
2106	// composing the
2107	// object path. The user is responsible for creating the Cloud Storage
2108	// bucket
2109	// referenced in `uri_prefix`.
2110	UriPrefix string `json:"uriPrefix,omitempty"`
2111
2112	// ForceSendFields is a list of field names (e.g. "UriPrefix") to
2113	// unconditionally include in API requests. By default, fields with
2114	// empty values are omitted from API requests. However, any non-pointer,
2115	// non-interface field appearing in ForceSendFields will be sent to the
2116	// server regardless of whether the field is empty or not. This may be
2117	// used to include empty fields in Patch requests.
2118	ForceSendFields []string `json:"-"`
2119
2120	// NullFields is a list of field names (e.g. "UriPrefix") to include in
2121	// API requests with the JSON null value. By default, fields with empty
2122	// values are omitted from API requests. However, any field with an
2123	// empty value appearing in NullFields will be sent to the server as
2124	// null. It is an error if a field in this list has a non-empty value.
2125	// This may be used to include null fields in Patch requests.
2126	NullFields []string `json:"-"`
2127}
2128
2129func (s *GoogleCloudHealthcareV1alpha2FhirRestGcsErrorDestination) MarshalJSON() ([]byte, error) {
2130	type NoMethod GoogleCloudHealthcareV1alpha2FhirRestGcsErrorDestination
2131	raw := NoMethod(*s)
2132	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2133}
2134
2135// GoogleCloudHealthcareV1alpha2FhirRestGcsSource: Specifies the
2136// configuration for importing data from Cloud Storage.
2137type GoogleCloudHealthcareV1alpha2FhirRestGcsSource struct {
2138	// Uri: Points to a Cloud Storage URI containing file(s) to import.
2139	//
2140	// The URI must be in the following format:
2141	// `gs://{bucket_id}/{object_id}`.
2142	// The URI can include wildcards in `object_id` and thus identify
2143	// multiple
2144	// files. Supported wildcards:
2145	//
2146	// *  `*` to match 0 or more non-separator characters
2147	// *  `**` to match 0 or more characters (including separators). Must be
2148	// used
2149	// at the end of a path and with no other wildcards in the
2150	// path. Can also be used with a file extension (such as .ndjson),
2151	// which
2152	// imports all files with the extension in the specified directory
2153	// and
2154	// its sub-directories. For example,
2155	// `gs://my-bucket/my-directory/**.ndjson`
2156	// imports all files with `.ndjson` extensions in `my-directory/` and
2157	// its
2158	// sub-directories.
2159	// *  `?` to match 1 character
2160	//
2161	// Files matching the wildcard are expected to contain content only,
2162	// no
2163	// metadata.
2164	Uri string `json:"uri,omitempty"`
2165
2166	// ForceSendFields is a list of field names (e.g. "Uri") to
2167	// unconditionally include in API requests. By default, fields with
2168	// empty values are omitted from API requests. However, any non-pointer,
2169	// non-interface field appearing in ForceSendFields will be sent to the
2170	// server regardless of whether the field is empty or not. This may be
2171	// used to include empty fields in Patch requests.
2172	ForceSendFields []string `json:"-"`
2173
2174	// NullFields is a list of field names (e.g. "Uri") to include in API
2175	// requests with the JSON null value. By default, fields with empty
2176	// values are omitted from API requests. However, any field with an
2177	// empty value appearing in NullFields will be sent to the server as
2178	// null. It is an error if a field in this list has a non-empty value.
2179	// This may be used to include null fields in Patch requests.
2180	NullFields []string `json:"-"`
2181}
2182
2183func (s *GoogleCloudHealthcareV1alpha2FhirRestGcsSource) MarshalJSON() ([]byte, error) {
2184	type NoMethod GoogleCloudHealthcareV1alpha2FhirRestGcsSource
2185	raw := NoMethod(*s)
2186	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2187}
2188
2189// GoogleCloudHealthcareV1alpha2FhirRestImportResourcesErrorDetails:
2190// Error response of importing resources.
2191// This structure will be included in the
2192// error details to describe the
2193// detailed error. It will only be included when the operation finishes
2194// with
2195// some failure.
2196type GoogleCloudHealthcareV1alpha2FhirRestImportResourcesErrorDetails struct {
2197	// ErrorCount: The number of resources that had errors.
2198	ErrorCount int64 `json:"errorCount,omitempty,string"`
2199
2200	// FhirStore: The name of the FHIR store where resources have been
2201	// imported, in
2202	// the
2203	// format
2204	// `projects/{project_id}/locations/{location_id}/datasets/{da
2205	// taset_id}/fhirStores/{fhir_store_id}`.
2206	FhirStore string `json:"fhirStore,omitempty"`
2207
2208	// InputSize: The total number of resources included in the source data.
2209	// This is the sum
2210	// of the success and error counts.
2211	InputSize int64 `json:"inputSize,omitempty,string"`
2212
2213	// SuccessCount: The number of resources that have been imported.
2214	SuccessCount int64 `json:"successCount,omitempty,string"`
2215
2216	// ForceSendFields is a list of field names (e.g. "ErrorCount") to
2217	// unconditionally include in API requests. By default, fields with
2218	// empty values are omitted from API requests. However, any non-pointer,
2219	// non-interface field appearing in ForceSendFields will be sent to the
2220	// server regardless of whether the field is empty or not. This may be
2221	// used to include empty fields in Patch requests.
2222	ForceSendFields []string `json:"-"`
2223
2224	// NullFields is a list of field names (e.g. "ErrorCount") to include in
2225	// API requests with the JSON null value. By default, fields with empty
2226	// values are omitted from API requests. However, any field with an
2227	// empty value appearing in NullFields will be sent to the server as
2228	// null. It is an error if a field in this list has a non-empty value.
2229	// This may be used to include null fields in Patch requests.
2230	NullFields []string `json:"-"`
2231}
2232
2233func (s *GoogleCloudHealthcareV1alpha2FhirRestImportResourcesErrorDetails) MarshalJSON() ([]byte, error) {
2234	type NoMethod GoogleCloudHealthcareV1alpha2FhirRestImportResourcesErrorDetails
2235	raw := NoMethod(*s)
2236	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2237}
2238
2239// GoogleCloudHealthcareV1alpha2FhirRestImportResourcesResponse: Final
2240// response of importing resources.
2241// This structure will be included in the
2242// response to describe the detailed
2243// outcome. It will only be included when the operation finishes
2244// successfully.
2245type GoogleCloudHealthcareV1alpha2FhirRestImportResourcesResponse struct {
2246	// FhirStore: The name of the FHIR store where the resources have been
2247	// imported, in
2248	// the
2249	// format
2250	// `projects/{project_id}/locations/{location_id}/datasets/{da
2251	// taset_id}/fhirStores/{fhir_store_id}`.
2252	FhirStore string `json:"fhirStore,omitempty"`
2253
2254	// InputSize: The total number of resources included in the source data.
2255	InputSize int64 `json:"inputSize,omitempty,string"`
2256
2257	// ForceSendFields is a list of field names (e.g. "FhirStore") to
2258	// unconditionally include in API requests. By default, fields with
2259	// empty values are omitted from API requests. However, any non-pointer,
2260	// non-interface field appearing in ForceSendFields will be sent to the
2261	// server regardless of whether the field is empty or not. This may be
2262	// used to include empty fields in Patch requests.
2263	ForceSendFields []string `json:"-"`
2264
2265	// NullFields is a list of field names (e.g. "FhirStore") to include in
2266	// API requests with the JSON null value. By default, fields with empty
2267	// values are omitted from API requests. However, any field with an
2268	// empty value appearing in NullFields will be sent to the server as
2269	// null. It is an error if a field in this list has a non-empty value.
2270	// This may be used to include null fields in Patch requests.
2271	NullFields []string `json:"-"`
2272}
2273
2274func (s *GoogleCloudHealthcareV1alpha2FhirRestImportResourcesResponse) MarshalJSON() ([]byte, error) {
2275	type NoMethod GoogleCloudHealthcareV1alpha2FhirRestImportResourcesResponse
2276	raw := NoMethod(*s)
2277	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2278}
2279
2280// Hl7V2Store: Represents an HL7v2 store.
2281type Hl7V2Store struct {
2282	// Labels: User-supplied key-value pairs used to organize HL7v2
2283	// stores.
2284	//
2285	// Label keys must be between 1 and 63 characters long, have a UTF-8
2286	// encoding
2287	// of maximum 128 bytes, and must conform to the
2288	// following PCRE regular expression:
2289	// \p{Ll}\p{Lo}{0,62}
2290	//
2291	// Label values are optional, must be between 1 and 63 characters long,
2292	// have
2293	// a UTF-8 encoding of maximum 128 bytes, and must conform to
2294	// the
2295	// following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
2296	//
2297	// No more than 64 labels can be associated with a given store.
2298	Labels map[string]string `json:"labels,omitempty"`
2299
2300	// Name: Output only. Resource name of the HL7v2 store, of the
2301	// form
2302	// `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7v2_s
2303	// tore_id}`.
2304	Name string `json:"name,omitempty"`
2305
2306	// NotificationConfig: The notification destination all messages (both
2307	// Ingest & Create) are
2308	// published on. Only the message name is sent as part of the
2309	// notification. If
2310	// this is unset, no notifications will be sent. Supplied by the client.
2311	NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"`
2312
2313	// ParserConfig: The configuration for the parser. It determines how the
2314	// server parses the
2315	// messages.
2316	ParserConfig *ParserConfig `json:"parserConfig,omitempty"`
2317
2318	// ServerResponse contains the HTTP response code and headers from the
2319	// server.
2320	googleapi.ServerResponse `json:"-"`
2321
2322	// ForceSendFields is a list of field names (e.g. "Labels") to
2323	// unconditionally include in API requests. By default, fields with
2324	// empty values are omitted from API requests. However, any non-pointer,
2325	// non-interface field appearing in ForceSendFields will be sent to the
2326	// server regardless of whether the field is empty or not. This may be
2327	// used to include empty fields in Patch requests.
2328	ForceSendFields []string `json:"-"`
2329
2330	// NullFields is a list of field names (e.g. "Labels") to include in API
2331	// requests with the JSON null value. By default, fields with empty
2332	// values are omitted from API requests. However, any field with an
2333	// empty value appearing in NullFields will be sent to the server as
2334	// null. It is an error if a field in this list has a non-empty value.
2335	// This may be used to include null fields in Patch requests.
2336	NullFields []string `json:"-"`
2337}
2338
2339func (s *Hl7V2Store) MarshalJSON() ([]byte, error) {
2340	type NoMethod Hl7V2Store
2341	raw := NoMethod(*s)
2342	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2343}
2344
2345// HttpBody: Message that represents an arbitrary HTTP body. It should
2346// only be used for
2347// payload formats that can't be represented as JSON, such as raw binary
2348// or
2349// an HTML page.
2350//
2351//
2352// This message can be used both in streaming and non-streaming API
2353// methods in
2354// the request as well as the response.
2355//
2356// It can be used as a top-level request field, which is convenient if
2357// one
2358// wants to extract parameters from either the URL or HTTP template into
2359// the
2360// request fields and also want access to the raw HTTP body.
2361//
2362// Example:
2363//
2364//     message GetResourceRequest {
2365//       // A unique request id.
2366//       string request_id = 1;
2367//
2368//       // The raw HTTP body is bound to this field.
2369//       google.api.HttpBody http_body = 2;
2370//     }
2371//
2372//     service ResourceService {
2373//       rpc GetResource(GetResourceRequest) returns
2374// (google.api.HttpBody);
2375//       rpc UpdateResource(google.api.HttpBody) returns
2376//       (google.protobuf.Empty);
2377//     }
2378//
2379// Example with streaming methods:
2380//
2381//     service CaldavService {
2382//       rpc GetCalendar(stream google.api.HttpBody)
2383//         returns (stream google.api.HttpBody);
2384//       rpc UpdateCalendar(stream google.api.HttpBody)
2385//         returns (stream google.api.HttpBody);
2386//     }
2387//
2388// Use of this type only changes how the request and response bodies
2389// are
2390// handled, all other features will continue to work unchanged.
2391type HttpBody struct {
2392	// ContentType: The HTTP Content-Type header value specifying the
2393	// content type of the body.
2394	ContentType string `json:"contentType,omitempty"`
2395
2396	// Data: The HTTP request/response body as raw binary.
2397	Data string `json:"data,omitempty"`
2398
2399	// Extensions: Application specific response metadata. Must be set in
2400	// the first response
2401	// for streaming APIs.
2402	Extensions []googleapi.RawMessage `json:"extensions,omitempty"`
2403
2404	// ServerResponse contains the HTTP response code and headers from the
2405	// server.
2406	googleapi.ServerResponse `json:"-"`
2407
2408	// ForceSendFields is a list of field names (e.g. "ContentType") to
2409	// unconditionally include in API requests. By default, fields with
2410	// empty values are omitted from API requests. However, any non-pointer,
2411	// non-interface field appearing in ForceSendFields will be sent to the
2412	// server regardless of whether the field is empty or not. This may be
2413	// used to include empty fields in Patch requests.
2414	ForceSendFields []string `json:"-"`
2415
2416	// NullFields is a list of field names (e.g. "ContentType") to include
2417	// in API requests with the JSON null value. By default, fields with
2418	// empty values are omitted from API requests. However, any field with
2419	// an empty value appearing in NullFields will be sent to the server as
2420	// null. It is an error if a field in this list has a non-empty value.
2421	// This may be used to include null fields in Patch requests.
2422	NullFields []string `json:"-"`
2423}
2424
2425func (s *HttpBody) MarshalJSON() ([]byte, error) {
2426	type NoMethod HttpBody
2427	raw := NoMethod(*s)
2428	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2429}
2430
2431// ImageAnnotation: Image annotation.
2432type ImageAnnotation struct {
2433	// BoundingPolys: The list of polygons outlining the sensitive regions
2434	// in the image.
2435	BoundingPolys []*BoundingPoly `json:"boundingPolys,omitempty"`
2436
2437	// ForceSendFields is a list of field names (e.g. "BoundingPolys") to
2438	// unconditionally include in API requests. By default, fields with
2439	// empty values are omitted from API requests. However, any non-pointer,
2440	// non-interface field appearing in ForceSendFields will be sent to the
2441	// server regardless of whether the field is empty or not. This may be
2442	// used to include empty fields in Patch requests.
2443	ForceSendFields []string `json:"-"`
2444
2445	// NullFields is a list of field names (e.g. "BoundingPolys") to include
2446	// in API requests with the JSON null value. By default, fields with
2447	// empty values are omitted from API requests. However, any field with
2448	// an empty value appearing in NullFields will be sent to the server as
2449	// null. It is an error if a field in this list has a non-empty value.
2450	// This may be used to include null fields in Patch requests.
2451	NullFields []string `json:"-"`
2452}
2453
2454func (s *ImageAnnotation) MarshalJSON() ([]byte, error) {
2455	type NoMethod ImageAnnotation
2456	raw := NoMethod(*s)
2457	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2458}
2459
2460// ImageConfig: Specifies how to handle the de-identification of image
2461// pixels.
2462type ImageConfig struct {
2463	// TextRedactionMode: Determines how to redact text from images.
2464	//
2465	// Possible values:
2466	//   "TEXT_REDACTION_MODE_UNSPECIFIED" - No text redaction specified.
2467	// Same as REDACT_NO_TEXT.
2468	//   "REDACT_ALL_TEXT" - Redact all text.
2469	//   "REDACT_SENSITIVE_TEXT" - Redact sensitive text.
2470	//   "REDACT_NO_TEXT" - Do not redact text.
2471	TextRedactionMode string `json:"textRedactionMode,omitempty"`
2472
2473	// ForceSendFields is a list of field names (e.g. "TextRedactionMode")
2474	// to unconditionally include in API requests. By default, fields with
2475	// empty values are omitted from API requests. However, any non-pointer,
2476	// non-interface field appearing in ForceSendFields will be sent to the
2477	// server regardless of whether the field is empty or not. This may be
2478	// used to include empty fields in Patch requests.
2479	ForceSendFields []string `json:"-"`
2480
2481	// NullFields is a list of field names (e.g. "TextRedactionMode") to
2482	// include in API requests with the JSON null value. By default, fields
2483	// with empty values are omitted from API requests. However, any field
2484	// with an empty value appearing in NullFields will be sent to the
2485	// server as null. It is an error if a field in this list has a
2486	// non-empty value. This may be used to include null fields in Patch
2487	// requests.
2488	NullFields []string `json:"-"`
2489}
2490
2491func (s *ImageConfig) MarshalJSON() ([]byte, error) {
2492	type NoMethod ImageConfig
2493	raw := NoMethod(*s)
2494	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2495}
2496
2497// ImportDicomDataErrorDetails: Returns the errors encountered during
2498// DICOM store import.
2499type ImportDicomDataErrorDetails struct {
2500	// SampleErrors: Deprecated. Use only for debugging purposes.
2501	//
2502	// Contains sample errors encountered in imports of individual
2503	// resources
2504	// (for example, a Cloud Storage object).
2505	SampleErrors []*ErrorDetail `json:"sampleErrors,omitempty"`
2506
2507	// ForceSendFields is a list of field names (e.g. "SampleErrors") to
2508	// unconditionally include in API requests. By default, fields with
2509	// empty values are omitted from API requests. However, any non-pointer,
2510	// non-interface field appearing in ForceSendFields will be sent to the
2511	// server regardless of whether the field is empty or not. This may be
2512	// used to include empty fields in Patch requests.
2513	ForceSendFields []string `json:"-"`
2514
2515	// NullFields is a list of field names (e.g. "SampleErrors") to include
2516	// in API requests with the JSON null value. By default, fields with
2517	// empty values are omitted from API requests. However, any field with
2518	// an empty value appearing in NullFields will be sent to the server as
2519	// null. It is an error if a field in this list has a non-empty value.
2520	// This may be used to include null fields in Patch requests.
2521	NullFields []string `json:"-"`
2522}
2523
2524func (s *ImportDicomDataErrorDetails) MarshalJSON() ([]byte, error) {
2525	type NoMethod ImportDicomDataErrorDetails
2526	raw := NoMethod(*s)
2527	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2528}
2529
2530// ImportDicomDataRequest: Imports data into the specified DICOM
2531// store.
2532// Returns an error if any of the files to import are not DICOM files.
2533// This
2534// API will accept duplicate DICOM instances, by simply ignoring the
2535// newly
2536// pushed instance (it will not overwrite).
2537type ImportDicomDataRequest struct {
2538	// GcsSource: Cloud Storage source data location and import
2539	// configuration.
2540	//
2541	// The Cloud Storage location requires the
2542	// `roles/storage.objectViewer`
2543	// Cloud IAM role.
2544	GcsSource *GoogleCloudHealthcareV1alpha2DicomGcsSource `json:"gcsSource,omitempty"`
2545
2546	// ForceSendFields is a list of field names (e.g. "GcsSource") to
2547	// unconditionally include in API requests. By default, fields with
2548	// empty values are omitted from API requests. However, any non-pointer,
2549	// non-interface field appearing in ForceSendFields will be sent to the
2550	// server regardless of whether the field is empty or not. This may be
2551	// used to include empty fields in Patch requests.
2552	ForceSendFields []string `json:"-"`
2553
2554	// NullFields is a list of field names (e.g. "GcsSource") to include in
2555	// API requests with the JSON null value. By default, fields with empty
2556	// values are omitted from API requests. However, any field with an
2557	// empty value appearing in NullFields will be sent to the server as
2558	// null. It is an error if a field in this list has a non-empty value.
2559	// This may be used to include null fields in Patch requests.
2560	NullFields []string `json:"-"`
2561}
2562
2563func (s *ImportDicomDataRequest) MarshalJSON() ([]byte, error) {
2564	type NoMethod ImportDicomDataRequest
2565	raw := NoMethod(*s)
2566	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2567}
2568
2569// ImportResourcesRequest: Request to import resources.
2570type ImportResourcesRequest struct {
2571	// ContentStructure: The content structure in the source location. If
2572	// not specified, the server
2573	// treats the input source files as BUNDLE.
2574	//
2575	// Possible values:
2576	//   "CONTENT_STRUCTURE_UNSPECIFIED" - If the content structure is not
2577	// specified, the default value `BUNDLE`
2578	// will be used.
2579	//   "BUNDLE" - The source file contains one or more lines of
2580	// newline-delimited JSON
2581	// (ndjson). Each line is a bundle, which contains one or more
2582	// resources.
2583	// Set the bundle type to `history` to import resource versions.
2584	//   "RESOURCE" - The source file contains one or more lines of
2585	// newline-delimited JSON
2586	// (ndjson). Each line is a single resource.
2587	//   "BUNDLE_PRETTY" - The entire file is one JSON bundle. The JSON can
2588	// span multiple lines.
2589	//   "RESOURCE_PRETTY" - The entire file is one JSON resource. The JSON
2590	// can span multiple lines.
2591	ContentStructure string `json:"contentStructure,omitempty"`
2592
2593	// GcsErrorDestination: The Cloud Storage destination to write the error
2594	// report to.
2595	//
2596	// The Cloud Storage location requires the `roles/storage.objectAdmin`
2597	// Cloud
2598	// IAM role.
2599	//
2600	// Note that writing a file to the same destination multiple times
2601	// will
2602	// result in the previous version of the file being overwritten.
2603	GcsErrorDestination *GoogleCloudHealthcareV1alpha2FhirRestGcsErrorDestination `json:"gcsErrorDestination,omitempty"`
2604
2605	// GcsSource: Cloud Storage source data location and import
2606	// configuration.
2607	//
2608	// The Cloud Storage location requires the
2609	// `roles/storage.objectViewer`
2610	// Cloud IAM role.
2611	//
2612	// Each Cloud Storage object should be a text file that contains the
2613	// format
2614	// specified in ContentStructu.
2615	GcsSource *GoogleCloudHealthcareV1alpha2FhirRestGcsSource `json:"gcsSource,omitempty"`
2616
2617	// ForceSendFields is a list of field names (e.g. "ContentStructure") to
2618	// unconditionally include in API requests. By default, fields with
2619	// empty values are omitted from API requests. However, any non-pointer,
2620	// non-interface field appearing in ForceSendFields will be sent to the
2621	// server regardless of whether the field is empty or not. This may be
2622	// used to include empty fields in Patch requests.
2623	ForceSendFields []string `json:"-"`
2624
2625	// NullFields is a list of field names (e.g. "ContentStructure") to
2626	// include in API requests with the JSON null value. By default, fields
2627	// with empty values are omitted from API requests. However, any field
2628	// with an empty value appearing in NullFields will be sent to the
2629	// server as null. It is an error if a field in this list has a
2630	// non-empty value. This may be used to include null fields in Patch
2631	// requests.
2632	NullFields []string `json:"-"`
2633}
2634
2635func (s *ImportResourcesRequest) MarshalJSON() ([]byte, error) {
2636	type NoMethod ImportResourcesRequest
2637	raw := NoMethod(*s)
2638	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2639}
2640
2641// InfoTypeTransformation: A transformation to apply to text that is
2642// identified as a specific
2643// info_type.
2644type InfoTypeTransformation struct {
2645	// CharacterMaskConfig: Config for character mask.
2646	CharacterMaskConfig *CharacterMaskConfig `json:"characterMaskConfig,omitempty"`
2647
2648	// CryptoHashConfig: Config for crypto hash.
2649	CryptoHashConfig *CryptoHashConfig `json:"cryptoHashConfig,omitempty"`
2650
2651	// DateShiftConfig: Config for date shift.
2652	DateShiftConfig *DateShiftConfig `json:"dateShiftConfig,omitempty"`
2653
2654	// InfoTypes: InfoTypes to apply this transformation to. If this is not
2655	// specified, the
2656	// transformation applies to any info_type.
2657	InfoTypes []string `json:"infoTypes,omitempty"`
2658
2659	// RedactConfig: Config for text redaction.
2660	RedactConfig *RedactConfig `json:"redactConfig,omitempty"`
2661
2662	// ReplaceWithInfoTypeConfig: Config for replace with InfoType.
2663	ReplaceWithInfoTypeConfig *ReplaceWithInfoTypeConfig `json:"replaceWithInfoTypeConfig,omitempty"`
2664
2665	// ForceSendFields is a list of field names (e.g. "CharacterMaskConfig")
2666	// to unconditionally include in API requests. By default, fields with
2667	// empty values are omitted from API requests. However, any non-pointer,
2668	// non-interface field appearing in ForceSendFields will be sent to the
2669	// server regardless of whether the field is empty or not. This may be
2670	// used to include empty fields in Patch requests.
2671	ForceSendFields []string `json:"-"`
2672
2673	// NullFields is a list of field names (e.g. "CharacterMaskConfig") to
2674	// include in API requests with the JSON null value. By default, fields
2675	// with empty values are omitted from API requests. However, any field
2676	// with an empty value appearing in NullFields will be sent to the
2677	// server as null. It is an error if a field in this list has a
2678	// non-empty value. This may be used to include null fields in Patch
2679	// requests.
2680	NullFields []string `json:"-"`
2681}
2682
2683func (s *InfoTypeTransformation) MarshalJSON() ([]byte, error) {
2684	type NoMethod InfoTypeTransformation
2685	raw := NoMethod(*s)
2686	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2687}
2688
2689// IngestMessageRequest: Ingests a message into the specified HL7v2
2690// store.
2691type IngestMessageRequest struct {
2692	// Message: HL7v2 message to ingest.
2693	Message *Message `json:"message,omitempty"`
2694
2695	// ForceSendFields is a list of field names (e.g. "Message") to
2696	// unconditionally include in API requests. By default, fields with
2697	// empty values are omitted from API requests. However, any non-pointer,
2698	// non-interface field appearing in ForceSendFields will be sent to the
2699	// server regardless of whether the field is empty or not. This may be
2700	// used to include empty fields in Patch requests.
2701	ForceSendFields []string `json:"-"`
2702
2703	// NullFields is a list of field names (e.g. "Message") to include in
2704	// API requests with the JSON null value. By default, fields with empty
2705	// values are omitted from API requests. However, any field with an
2706	// empty value appearing in NullFields will be sent to the server as
2707	// null. It is an error if a field in this list has a non-empty value.
2708	// This may be used to include null fields in Patch requests.
2709	NullFields []string `json:"-"`
2710}
2711
2712func (s *IngestMessageRequest) MarshalJSON() ([]byte, error) {
2713	type NoMethod IngestMessageRequest
2714	raw := NoMethod(*s)
2715	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2716}
2717
2718// IngestMessageResponse: Acknowledges that a message has been ingested
2719// into the specified
2720// HL7v2 store.
2721type IngestMessageResponse struct {
2722	// Hl7Ack: HL7v2 ACK message.
2723	Hl7Ack string `json:"hl7Ack,omitempty"`
2724
2725	// Message: Created message resource.
2726	Message *Message `json:"message,omitempty"`
2727
2728	// ServerResponse contains the HTTP response code and headers from the
2729	// server.
2730	googleapi.ServerResponse `json:"-"`
2731
2732	// ForceSendFields is a list of field names (e.g. "Hl7Ack") to
2733	// unconditionally include in API requests. By default, fields with
2734	// empty values are omitted from API requests. However, any non-pointer,
2735	// non-interface field appearing in ForceSendFields will be sent to the
2736	// server regardless of whether the field is empty or not. This may be
2737	// used to include empty fields in Patch requests.
2738	ForceSendFields []string `json:"-"`
2739
2740	// NullFields is a list of field names (e.g. "Hl7Ack") to include in API
2741	// requests with the JSON null value. By default, fields with empty
2742	// values are omitted from API requests. However, any field with an
2743	// empty value appearing in NullFields will be sent to the server as
2744	// null. It is an error if a field in this list has a non-empty value.
2745	// This may be used to include null fields in Patch requests.
2746	NullFields []string `json:"-"`
2747}
2748
2749func (s *IngestMessageResponse) MarshalJSON() ([]byte, error) {
2750	type NoMethod IngestMessageResponse
2751	raw := NoMethod(*s)
2752	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2753}
2754
2755// ListAnnotationStoresResponse: Lists the Annotation stores
2756// in the given dataset.
2757type ListAnnotationStoresResponse struct {
2758	// AnnotationStores: The returned Annotation stores. Won't be more
2759	// Annotation stores than the
2760	// value of page_size in the request.
2761	AnnotationStores []*AnnotationStore `json:"annotationStores,omitempty"`
2762
2763	// NextPageToken: Token to retrieve the next page of results or empty if
2764	// there are no more
2765	// results in the list.
2766	NextPageToken string `json:"nextPageToken,omitempty"`
2767
2768	// ServerResponse contains the HTTP response code and headers from the
2769	// server.
2770	googleapi.ServerResponse `json:"-"`
2771
2772	// ForceSendFields is a list of field names (e.g. "AnnotationStores") to
2773	// unconditionally include in API requests. By default, fields with
2774	// empty values are omitted from API requests. However, any non-pointer,
2775	// non-interface field appearing in ForceSendFields will be sent to the
2776	// server regardless of whether the field is empty or not. This may be
2777	// used to include empty fields in Patch requests.
2778	ForceSendFields []string `json:"-"`
2779
2780	// NullFields is a list of field names (e.g. "AnnotationStores") to
2781	// include in API requests with the JSON null value. By default, fields
2782	// with empty values are omitted from API requests. However, any field
2783	// with an empty value appearing in NullFields will be sent to the
2784	// server as null. It is an error if a field in this list has a
2785	// non-empty value. This may be used to include null fields in Patch
2786	// requests.
2787	NullFields []string `json:"-"`
2788}
2789
2790func (s *ListAnnotationStoresResponse) MarshalJSON() ([]byte, error) {
2791	type NoMethod ListAnnotationStoresResponse
2792	raw := NoMethod(*s)
2793	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2794}
2795
2796// ListAnnotationsResponse: Lists the Annotations in the
2797// specified
2798// Annotation store.
2799type ListAnnotationsResponse struct {
2800	// Annotations: The returned Annotations names. Won't be more values
2801	// than the value of
2802	// page_size in the request.
2803	Annotations []string `json:"annotations,omitempty"`
2804
2805	// NextPageToken: Token to retrieve the next page of results or empty if
2806	// there are no more
2807	// results in the list.
2808	NextPageToken string `json:"nextPageToken,omitempty"`
2809
2810	// ServerResponse contains the HTTP response code and headers from the
2811	// server.
2812	googleapi.ServerResponse `json:"-"`
2813
2814	// ForceSendFields is a list of field names (e.g. "Annotations") to
2815	// unconditionally include in API requests. By default, fields with
2816	// empty values are omitted from API requests. However, any non-pointer,
2817	// non-interface field appearing in ForceSendFields will be sent to the
2818	// server regardless of whether the field is empty or not. This may be
2819	// used to include empty fields in Patch requests.
2820	ForceSendFields []string `json:"-"`
2821
2822	// NullFields is a list of field names (e.g. "Annotations") to include
2823	// in API requests with the JSON null value. By default, fields with
2824	// empty values are omitted from API requests. However, any field with
2825	// an empty value appearing in NullFields will be sent to the server as
2826	// null. It is an error if a field in this list has a non-empty value.
2827	// This may be used to include null fields in Patch requests.
2828	NullFields []string `json:"-"`
2829}
2830
2831func (s *ListAnnotationsResponse) MarshalJSON() ([]byte, error) {
2832	type NoMethod ListAnnotationsResponse
2833	raw := NoMethod(*s)
2834	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2835}
2836
2837// ListDatasetsResponse: Lists the available datasets.
2838type ListDatasetsResponse struct {
2839	// Datasets: The first page of datasets.
2840	Datasets []*Dataset `json:"datasets,omitempty"`
2841
2842	// NextPageToken: Token to retrieve the next page of results, or empty
2843	// if there are no
2844	// more results in the list.
2845	NextPageToken string `json:"nextPageToken,omitempty"`
2846
2847	// ServerResponse contains the HTTP response code and headers from the
2848	// server.
2849	googleapi.ServerResponse `json:"-"`
2850
2851	// ForceSendFields is a list of field names (e.g. "Datasets") to
2852	// unconditionally include in API requests. By default, fields with
2853	// empty values are omitted from API requests. However, any non-pointer,
2854	// non-interface field appearing in ForceSendFields will be sent to the
2855	// server regardless of whether the field is empty or not. This may be
2856	// used to include empty fields in Patch requests.
2857	ForceSendFields []string `json:"-"`
2858
2859	// NullFields is a list of field names (e.g. "Datasets") to include in
2860	// API requests with the JSON null value. By default, fields with empty
2861	// values are omitted from API requests. However, any field with an
2862	// empty value appearing in NullFields will be sent to the server as
2863	// null. It is an error if a field in this list has a non-empty value.
2864	// This may be used to include null fields in Patch requests.
2865	NullFields []string `json:"-"`
2866}
2867
2868func (s *ListDatasetsResponse) MarshalJSON() ([]byte, error) {
2869	type NoMethod ListDatasetsResponse
2870	raw := NoMethod(*s)
2871	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2872}
2873
2874// ListDicomStoresResponse: Lists the DICOM stores in the given dataset.
2875type ListDicomStoresResponse struct {
2876	// DicomStores: The returned DICOM stores. Won't be more DICOM stores
2877	// than the value of
2878	// page_size in the request.
2879	DicomStores []*DicomStore `json:"dicomStores,omitempty"`
2880
2881	// NextPageToken: Token to retrieve the next page of results or empty if
2882	// there are no more
2883	// results in the list.
2884	NextPageToken string `json:"nextPageToken,omitempty"`
2885
2886	// ServerResponse contains the HTTP response code and headers from the
2887	// server.
2888	googleapi.ServerResponse `json:"-"`
2889
2890	// ForceSendFields is a list of field names (e.g. "DicomStores") to
2891	// unconditionally include in API requests. By default, fields with
2892	// empty values are omitted from API requests. However, any non-pointer,
2893	// non-interface field appearing in ForceSendFields will be sent to the
2894	// server regardless of whether the field is empty or not. This may be
2895	// used to include empty fields in Patch requests.
2896	ForceSendFields []string `json:"-"`
2897
2898	// NullFields is a list of field names (e.g. "DicomStores") to include
2899	// in API requests with the JSON null value. By default, fields with
2900	// empty values are omitted from API requests. However, any field with
2901	// an empty value appearing in NullFields will be sent to the server as
2902	// null. It is an error if a field in this list has a non-empty value.
2903	// This may be used to include null fields in Patch requests.
2904	NullFields []string `json:"-"`
2905}
2906
2907func (s *ListDicomStoresResponse) MarshalJSON() ([]byte, error) {
2908	type NoMethod ListDicomStoresResponse
2909	raw := NoMethod(*s)
2910	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2911}
2912
2913// ListFhirStoresResponse: Lists the FHIR stores in the given dataset.
2914type ListFhirStoresResponse struct {
2915	// FhirStores: The returned FHIR stores. Won't be more FHIR stores than
2916	// the value of
2917	// page_size in the request.
2918	FhirStores []*FhirStore `json:"fhirStores,omitempty"`
2919
2920	// NextPageToken: Token to retrieve the next page of results or empty if
2921	// there are no more
2922	// results in the list.
2923	NextPageToken string `json:"nextPageToken,omitempty"`
2924
2925	// ServerResponse contains the HTTP response code and headers from the
2926	// server.
2927	googleapi.ServerResponse `json:"-"`
2928
2929	// ForceSendFields is a list of field names (e.g. "FhirStores") to
2930	// unconditionally include in API requests. By default, fields with
2931	// empty values are omitted from API requests. However, any non-pointer,
2932	// non-interface field appearing in ForceSendFields will be sent to the
2933	// server regardless of whether the field is empty or not. This may be
2934	// used to include empty fields in Patch requests.
2935	ForceSendFields []string `json:"-"`
2936
2937	// NullFields is a list of field names (e.g. "FhirStores") to include in
2938	// API requests with the JSON null value. By default, fields with empty
2939	// values are omitted from API requests. However, any field with an
2940	// empty value appearing in NullFields will be sent to the server as
2941	// null. It is an error if a field in this list has a non-empty value.
2942	// This may be used to include null fields in Patch requests.
2943	NullFields []string `json:"-"`
2944}
2945
2946func (s *ListFhirStoresResponse) MarshalJSON() ([]byte, error) {
2947	type NoMethod ListFhirStoresResponse
2948	raw := NoMethod(*s)
2949	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2950}
2951
2952// ListHl7V2StoresResponse: Lists the HL7v2 stores in the given dataset.
2953type ListHl7V2StoresResponse struct {
2954	// Hl7V2Stores: The returned HL7v2 stores. Won't be more HL7v2 stores
2955	// than the value of
2956	// page_size in the request.
2957	Hl7V2Stores []*Hl7V2Store `json:"hl7V2Stores,omitempty"`
2958
2959	// NextPageToken: Token to retrieve the next page of results or empty if
2960	// there are no more
2961	// results in the list.
2962	NextPageToken string `json:"nextPageToken,omitempty"`
2963
2964	// ServerResponse contains the HTTP response code and headers from the
2965	// server.
2966	googleapi.ServerResponse `json:"-"`
2967
2968	// ForceSendFields is a list of field names (e.g. "Hl7V2Stores") to
2969	// unconditionally include in API requests. By default, fields with
2970	// empty values are omitted from API requests. However, any non-pointer,
2971	// non-interface field appearing in ForceSendFields will be sent to the
2972	// server regardless of whether the field is empty or not. This may be
2973	// used to include empty fields in Patch requests.
2974	ForceSendFields []string `json:"-"`
2975
2976	// NullFields is a list of field names (e.g. "Hl7V2Stores") to include
2977	// in API requests with the JSON null value. By default, fields with
2978	// empty values are omitted from API requests. However, any field with
2979	// an empty value appearing in NullFields will be sent to the server as
2980	// null. It is an error if a field in this list has a non-empty value.
2981	// This may be used to include null fields in Patch requests.
2982	NullFields []string `json:"-"`
2983}
2984
2985func (s *ListHl7V2StoresResponse) MarshalJSON() ([]byte, error) {
2986	type NoMethod ListHl7V2StoresResponse
2987	raw := NoMethod(*s)
2988	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2989}
2990
2991// ListLocationsResponse: The response message for
2992// Locations.ListLocations.
2993type ListLocationsResponse struct {
2994	// Locations: A list of locations that matches the specified filter in
2995	// the request.
2996	Locations []*Location `json:"locations,omitempty"`
2997
2998	// NextPageToken: The standard List next-page token.
2999	NextPageToken string `json:"nextPageToken,omitempty"`
3000
3001	// ServerResponse contains the HTTP response code and headers from the
3002	// server.
3003	googleapi.ServerResponse `json:"-"`
3004
3005	// ForceSendFields is a list of field names (e.g. "Locations") to
3006	// unconditionally include in API requests. By default, fields with
3007	// empty values are omitted from API requests. However, any non-pointer,
3008	// non-interface field appearing in ForceSendFields will be sent to the
3009	// server regardless of whether the field is empty or not. This may be
3010	// used to include empty fields in Patch requests.
3011	ForceSendFields []string `json:"-"`
3012
3013	// NullFields is a list of field names (e.g. "Locations") to include in
3014	// API requests with the JSON null value. By default, fields with empty
3015	// values are omitted from API requests. However, any field with an
3016	// empty value appearing in NullFields will be sent to the server as
3017	// null. It is an error if a field in this list has a non-empty value.
3018	// This may be used to include null fields in Patch requests.
3019	NullFields []string `json:"-"`
3020}
3021
3022func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) {
3023	type NoMethod ListLocationsResponse
3024	raw := NoMethod(*s)
3025	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3026}
3027
3028// ListMessagesResponse: Lists the messages in the specified HL7v2
3029// store.
3030type ListMessagesResponse struct {
3031	// Messages: The returned message names. Won't be more values than the
3032	// value of
3033	// page_size in the request.
3034	Messages []string `json:"messages,omitempty"`
3035
3036	// NextPageToken: Token to retrieve the next page of results or empty if
3037	// there are no more
3038	// results in the list.
3039	NextPageToken string `json:"nextPageToken,omitempty"`
3040
3041	// ServerResponse contains the HTTP response code and headers from the
3042	// server.
3043	googleapi.ServerResponse `json:"-"`
3044
3045	// ForceSendFields is a list of field names (e.g. "Messages") to
3046	// unconditionally include in API requests. By default, fields with
3047	// empty values are omitted from API requests. However, any non-pointer,
3048	// non-interface field appearing in ForceSendFields will be sent to the
3049	// server regardless of whether the field is empty or not. This may be
3050	// used to include empty fields in Patch requests.
3051	ForceSendFields []string `json:"-"`
3052
3053	// NullFields is a list of field names (e.g. "Messages") to include in
3054	// API requests with the JSON null value. By default, fields with empty
3055	// values are omitted from API requests. However, any field with an
3056	// empty value appearing in NullFields will be sent to the server as
3057	// null. It is an error if a field in this list has a non-empty value.
3058	// This may be used to include null fields in Patch requests.
3059	NullFields []string `json:"-"`
3060}
3061
3062func (s *ListMessagesResponse) MarshalJSON() ([]byte, error) {
3063	type NoMethod ListMessagesResponse
3064	raw := NoMethod(*s)
3065	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3066}
3067
3068// ListOperationsResponse: The response message for
3069// Operations.ListOperations.
3070type ListOperationsResponse struct {
3071	// NextPageToken: The standard List next-page token.
3072	NextPageToken string `json:"nextPageToken,omitempty"`
3073
3074	// Operations: A list of operations that matches the specified filter in
3075	// the request.
3076	Operations []*Operation `json:"operations,omitempty"`
3077
3078	// ServerResponse contains the HTTP response code and headers from the
3079	// server.
3080	googleapi.ServerResponse `json:"-"`
3081
3082	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
3083	// unconditionally include in API requests. By default, fields with
3084	// empty values are omitted from API requests. However, any non-pointer,
3085	// non-interface field appearing in ForceSendFields will be sent to the
3086	// server regardless of whether the field is empty or not. This may be
3087	// used to include empty fields in Patch requests.
3088	ForceSendFields []string `json:"-"`
3089
3090	// NullFields is a list of field names (e.g. "NextPageToken") to include
3091	// in API requests with the JSON null value. By default, fields with
3092	// empty values are omitted from API requests. However, any field with
3093	// an empty value appearing in NullFields will be sent to the server as
3094	// null. It is an error if a field in this list has a non-empty value.
3095	// This may be used to include null fields in Patch requests.
3096	NullFields []string `json:"-"`
3097}
3098
3099func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
3100	type NoMethod ListOperationsResponse
3101	raw := NoMethod(*s)
3102	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3103}
3104
3105// Location: A resource that represents Google Cloud Platform location.
3106type Location struct {
3107	// DisplayName: The friendly name for this location, typically a nearby
3108	// city name.
3109	// For example, "Tokyo".
3110	DisplayName string `json:"displayName,omitempty"`
3111
3112	// Labels: Cross-service attributes for the location. For example
3113	//
3114	//     {"cloud.googleapis.com/region": "us-east1"}
3115	Labels map[string]string `json:"labels,omitempty"`
3116
3117	// LocationId: The canonical id for this location. For example:
3118	// "us-east1".
3119	LocationId string `json:"locationId,omitempty"`
3120
3121	// Metadata: Service-specific metadata. For example the available
3122	// capacity at the given
3123	// location.
3124	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
3125
3126	// Name: Resource name for the location, which may vary between
3127	// implementations.
3128	// For example: "projects/example-project/locations/us-east1"
3129	Name string `json:"name,omitempty"`
3130
3131	// ServerResponse contains the HTTP response code and headers from the
3132	// server.
3133	googleapi.ServerResponse `json:"-"`
3134
3135	// ForceSendFields is a list of field names (e.g. "DisplayName") to
3136	// unconditionally include in API requests. By default, fields with
3137	// empty values are omitted from API requests. However, any non-pointer,
3138	// non-interface field appearing in ForceSendFields will be sent to the
3139	// server regardless of whether the field is empty or not. This may be
3140	// used to include empty fields in Patch requests.
3141	ForceSendFields []string `json:"-"`
3142
3143	// NullFields is a list of field names (e.g. "DisplayName") to include
3144	// in API requests with the JSON null value. By default, fields with
3145	// empty values are omitted from API requests. However, any field with
3146	// an empty value appearing in NullFields will be sent to the server as
3147	// null. It is an error if a field in this list has a non-empty value.
3148	// This may be used to include null fields in Patch requests.
3149	NullFields []string `json:"-"`
3150}
3151
3152func (s *Location) MarshalJSON() ([]byte, error) {
3153	type NoMethod Location
3154	raw := NoMethod(*s)
3155	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3156}
3157
3158// Message: A complete HL7v2 message.
3159// See http://www.hl7.org/implement/standards/index.cfm?ref=common for
3160// details
3161// on the standard.
3162type Message struct {
3163	// CreateTime: Output only. The datetime when the message was created.
3164	// Set by the server.
3165	CreateTime string `json:"createTime,omitempty"`
3166
3167	// Data: Raw message bytes.
3168	Data string `json:"data,omitempty"`
3169
3170	// Labels: User-supplied key-value pairs used to organize HL7v2
3171	// stores.
3172	//
3173	// Label keys must be between 1 and 63 characters long, have a UTF-8
3174	// encoding
3175	// of maximum 128 bytes, and must conform to the
3176	// following PCRE regular expression:
3177	// \p{Ll}\p{Lo}{0,62}
3178	//
3179	// Label values are optional, must be between 1 and 63 characters long,
3180	// have
3181	// a UTF-8 encoding of maximum 128 bytes, and must conform to
3182	// the
3183	// following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
3184	//
3185	// No more than 64 labels can be associated with a given store.
3186	Labels map[string]string `json:"labels,omitempty"`
3187
3188	// MessageType: The message type and trigger event for this message.
3189	// MSH-9.
3190	MessageType string `json:"messageType,omitempty"`
3191
3192	// Name: Resource name of the Message, of the
3193	// form
3194	// `projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_
3195	// store_id}/messages/{message_id}`.
3196	// Assigned by the server.
3197	Name string `json:"name,omitempty"`
3198
3199	// ParsedData: Output only. The parsed version of the raw message data.
3200	ParsedData *ParsedData `json:"parsedData,omitempty"`
3201
3202	// PatientIds: All patient IDs listed in the PID-2, PID-3, and PID-4
3203	// segments of this
3204	// message.
3205	PatientIds []*PatientId `json:"patientIds,omitempty"`
3206
3207	// SendFacility: The hospital that this message came from. MSH-4.
3208	SendFacility string `json:"sendFacility,omitempty"`
3209
3210	// SendTime: The datetime the sending application sent this message.
3211	// MSH-7.
3212	SendTime string `json:"sendTime,omitempty"`
3213
3214	// ServerResponse contains the HTTP response code and headers from the
3215	// server.
3216	googleapi.ServerResponse `json:"-"`
3217
3218	// ForceSendFields is a list of field names (e.g. "CreateTime") to
3219	// unconditionally include in API requests. By default, fields with
3220	// empty values are omitted from API requests. However, any non-pointer,
3221	// non-interface field appearing in ForceSendFields will be sent to the
3222	// server regardless of whether the field is empty or not. This may be
3223	// used to include empty fields in Patch requests.
3224	ForceSendFields []string `json:"-"`
3225
3226	// NullFields is a list of field names (e.g. "CreateTime") to include in
3227	// API requests with the JSON null value. By default, fields with empty
3228	// values are omitted from API requests. However, any field with an
3229	// empty value appearing in NullFields will be sent to the server as
3230	// null. It is an error if a field in this list has a non-empty value.
3231	// This may be used to include null fields in Patch requests.
3232	NullFields []string `json:"-"`
3233}
3234
3235func (s *Message) MarshalJSON() ([]byte, error) {
3236	type NoMethod Message
3237	raw := NoMethod(*s)
3238	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3239}
3240
3241// NotificationConfig: Specifies where notifications should be sent upon
3242// changes to a data store.
3243type NotificationConfig struct {
3244	// PubsubTopic: The [Cloud
3245	// Pub/Sub](https://cloud.google.com/pubsub/docs/) topic
3246	// that
3247	// notifications of changes are published on. Supplied by the
3248	// client.
3249	// PubsubMessage.Data will contain the resource
3250	// name.
3251	// PubsubMessage.MessageId is the ID of this message. It is guaranteed
3252	// to be
3253	// unique within the topic.
3254	// PubsubMessage.PublishTime is the time at which the message was
3255	// published.
3256	// Notifications are only sent if the topic is
3257	// non-empty.
3258	// [Topic
3259	// names](https://cloud.google.com/pubsub/docs/overview#names) must be
3260	// scoped
3261	// to a project. cloud-healthcare@system.gserviceaccount.com must
3262	// have
3263	// publisher permissions on the given Cloud Pub/Sub topic. Not having
3264	// adequate
3265	// permissions will cause the calls that send notifications to fail.
3266	PubsubTopic string `json:"pubsubTopic,omitempty"`
3267
3268	// ForceSendFields is a list of field names (e.g. "PubsubTopic") to
3269	// unconditionally include in API requests. By default, fields with
3270	// empty values are omitted from API requests. However, any non-pointer,
3271	// non-interface field appearing in ForceSendFields will be sent to the
3272	// server regardless of whether the field is empty or not. This may be
3273	// used to include empty fields in Patch requests.
3274	ForceSendFields []string `json:"-"`
3275
3276	// NullFields is a list of field names (e.g. "PubsubTopic") to include
3277	// in API requests with the JSON null value. By default, fields with
3278	// empty values are omitted from API requests. However, any field with
3279	// an empty value appearing in NullFields will be sent to the server as
3280	// null. It is an error if a field in this list has a non-empty value.
3281	// This may be used to include null fields in Patch requests.
3282	NullFields []string `json:"-"`
3283}
3284
3285func (s *NotificationConfig) MarshalJSON() ([]byte, error) {
3286	type NoMethod NotificationConfig
3287	raw := NoMethod(*s)
3288	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3289}
3290
3291// Operation: This resource represents a long-running operation that is
3292// the result of a
3293// network API call.
3294type Operation struct {
3295	// Done: If the value is `false`, it means the operation is still in
3296	// progress.
3297	// If `true`, the operation is completed, and either `error` or
3298	// `response` is
3299	// available.
3300	Done bool `json:"done,omitempty"`
3301
3302	// Error: The error result of the operation in case of failure or
3303	// cancellation.
3304	Error *Status `json:"error,omitempty"`
3305
3306	// Metadata: Service-specific metadata associated with the operation.
3307	// It typically
3308	// contains progress information and common metadata such as create
3309	// time.
3310	// Some services might not provide such metadata.  Any method that
3311	// returns a
3312	// long-running operation should document the metadata type, if any.
3313	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
3314
3315	// Name: The server-assigned name, which is only unique within the same
3316	// service that
3317	// originally returns it. If you use the default HTTP mapping,
3318	// the
3319	// `name` should be a resource name ending with
3320	// `operations/{unique_id}`.
3321	Name string `json:"name,omitempty"`
3322
3323	// Response: The normal response of the operation in case of success.
3324	// If the original
3325	// method returns no data on success, such as `Delete`, the response
3326	// is
3327	// `google.protobuf.Empty`.  If the original method is
3328	// standard
3329	// `Get`/`Create`/`Update`, the response should be the resource.  For
3330	// other
3331	// methods, the response should have the type `XxxResponse`, where
3332	// `Xxx`
3333	// is the original method name.  For example, if the original method
3334	// name
3335	// is `TakeSnapshot()`, the inferred response type
3336	// is
3337	// `TakeSnapshotResponse`.
3338	Response googleapi.RawMessage `json:"response,omitempty"`
3339
3340	// ServerResponse contains the HTTP response code and headers from the
3341	// server.
3342	googleapi.ServerResponse `json:"-"`
3343
3344	// ForceSendFields is a list of field names (e.g. "Done") to
3345	// unconditionally include in API requests. By default, fields with
3346	// empty values are omitted from API requests. However, any non-pointer,
3347	// non-interface field appearing in ForceSendFields will be sent to the
3348	// server regardless of whether the field is empty or not. This may be
3349	// used to include empty fields in Patch requests.
3350	ForceSendFields []string `json:"-"`
3351
3352	// NullFields is a list of field names (e.g. "Done") to include in API
3353	// requests with the JSON null value. By default, fields with empty
3354	// values are omitted from API requests. However, any field with an
3355	// empty value appearing in NullFields will be sent to the server as
3356	// null. It is an error if a field in this list has a non-empty value.
3357	// This may be used to include null fields in Patch requests.
3358	NullFields []string `json:"-"`
3359}
3360
3361func (s *Operation) MarshalJSON() ([]byte, error) {
3362	type NoMethod Operation
3363	raw := NoMethod(*s)
3364	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3365}
3366
3367// OperationMetadata: OperationMetadata provides information about the
3368// operation execution.
3369// Returned in the long-running operation's metadata field.
3370type OperationMetadata struct {
3371	// ApiMethodName: The name of the API method that initiated the
3372	// operation.
3373	ApiMethodName string `json:"apiMethodName,omitempty"`
3374
3375	Counter *ProgressCounter `json:"counter,omitempty"`
3376
3377	// CreateTime: The time at which the operation was created by the API.
3378	CreateTime string `json:"createTime,omitempty"`
3379
3380	// EndTime: The time at which execution was completed.
3381	EndTime string `json:"endTime,omitempty"`
3382
3383	// ForceSendFields is a list of field names (e.g. "ApiMethodName") to
3384	// unconditionally include in API requests. By default, fields with
3385	// empty values are omitted from API requests. However, any non-pointer,
3386	// non-interface field appearing in ForceSendFields will be sent to the
3387	// server regardless of whether the field is empty or not. This may be
3388	// used to include empty fields in Patch requests.
3389	ForceSendFields []string `json:"-"`
3390
3391	// NullFields is a list of field names (e.g. "ApiMethodName") to include
3392	// in API requests with the JSON null value. By default, fields with
3393	// empty values are omitted from API requests. However, any field with
3394	// an empty value appearing in NullFields will be sent to the server as
3395	// null. It is an error if a field in this list has a non-empty value.
3396	// This may be used to include null fields in Patch requests.
3397	NullFields []string `json:"-"`
3398}
3399
3400func (s *OperationMetadata) MarshalJSON() ([]byte, error) {
3401	type NoMethod OperationMetadata
3402	raw := NoMethod(*s)
3403	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3404}
3405
3406// ParsedData: The content of a HL7v2 message in a structured format.
3407type ParsedData struct {
3408	Segments []*Segment `json:"segments,omitempty"`
3409
3410	// ForceSendFields is a list of field names (e.g. "Segments") to
3411	// unconditionally include in API requests. By default, fields with
3412	// empty values are omitted from API requests. However, any non-pointer,
3413	// non-interface field appearing in ForceSendFields will be sent to the
3414	// server regardless of whether the field is empty or not. This may be
3415	// used to include empty fields in Patch requests.
3416	ForceSendFields []string `json:"-"`
3417
3418	// NullFields is a list of field names (e.g. "Segments") to include in
3419	// API requests with the JSON null value. By default, fields with empty
3420	// values are omitted from API requests. However, any field with an
3421	// empty value appearing in NullFields will be sent to the server as
3422	// null. It is an error if a field in this list has a non-empty value.
3423	// This may be used to include null fields in Patch requests.
3424	NullFields []string `json:"-"`
3425}
3426
3427func (s *ParsedData) MarshalJSON() ([]byte, error) {
3428	type NoMethod ParsedData
3429	raw := NoMethod(*s)
3430	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3431}
3432
3433// ParserConfig: The configuration for the parser. It determines how the
3434// server parses the
3435// messages.
3436type ParserConfig struct {
3437	// AllowNullHeader: Determines whether messages with no header are
3438	// allowed.
3439	AllowNullHeader bool `json:"allowNullHeader,omitempty"`
3440
3441	// SegmentTerminator: Byte(s) to be used as the segment terminator. If
3442	// this is unset, '\r' will
3443	// be used as the segment terminator, matching the HL7 version
3444	// 2
3445	// specification.
3446	SegmentTerminator string `json:"segmentTerminator,omitempty"`
3447
3448	// ForceSendFields is a list of field names (e.g. "AllowNullHeader") to
3449	// unconditionally include in API requests. By default, fields with
3450	// empty values are omitted from API requests. However, any non-pointer,
3451	// non-interface field appearing in ForceSendFields will be sent to the
3452	// server regardless of whether the field is empty or not. This may be
3453	// used to include empty fields in Patch requests.
3454	ForceSendFields []string `json:"-"`
3455
3456	// NullFields is a list of field names (e.g. "AllowNullHeader") to
3457	// include in API requests with the JSON null value. By default, fields
3458	// with empty values are omitted from API requests. However, any field
3459	// with an empty value appearing in NullFields will be sent to the
3460	// server as null. It is an error if a field in this list has a
3461	// non-empty value. This may be used to include null fields in Patch
3462	// requests.
3463	NullFields []string `json:"-"`
3464}
3465
3466func (s *ParserConfig) MarshalJSON() ([]byte, error) {
3467	type NoMethod ParserConfig
3468	raw := NoMethod(*s)
3469	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3470}
3471
3472// PatientId: A patient identifier and associated type.
3473type PatientId struct {
3474	// Type: ID type, e.g. MRN or NHS.
3475	Type string `json:"type,omitempty"`
3476
3477	// Value: The patient's unique identifier.
3478	Value string `json:"value,omitempty"`
3479
3480	// ForceSendFields is a list of field names (e.g. "Type") to
3481	// unconditionally include in API requests. By default, fields with
3482	// empty values are omitted from API requests. However, any non-pointer,
3483	// non-interface field appearing in ForceSendFields will be sent to the
3484	// server regardless of whether the field is empty or not. This may be
3485	// used to include empty fields in Patch requests.
3486	ForceSendFields []string `json:"-"`
3487
3488	// NullFields is a list of field names (e.g. "Type") to include in API
3489	// requests with the JSON null value. By default, fields with empty
3490	// values are omitted from API requests. However, any field with an
3491	// empty value appearing in NullFields will be sent to the server as
3492	// null. It is an error if a field in this list has a non-empty value.
3493	// This may be used to include null fields in Patch requests.
3494	NullFields []string `json:"-"`
3495}
3496
3497func (s *PatientId) MarshalJSON() ([]byte, error) {
3498	type NoMethod PatientId
3499	raw := NoMethod(*s)
3500	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3501}
3502
3503// Policy: Defines an Identity and Access Management (IAM) policy. It is
3504// used to
3505// specify access control policies for Cloud Platform resources.
3506//
3507//
3508// A `Policy` consists of a list of `bindings`. A `binding` binds a list
3509// of
3510// `members` to a `role`, where the members can be user accounts, Google
3511// groups,
3512// Google domains, and service accounts. A `role` is a named list of
3513// permissions
3514// defined by IAM.
3515//
3516// **JSON Example**
3517//
3518//     {
3519//       "bindings": [
3520//         {
3521//           "role": "roles/owner",
3522//           "members": [
3523//             "user:mike@example.com",
3524//             "group:admins@example.com",
3525//             "domain:google.com",
3526//
3527// "serviceAccount:my-other-app@appspot.gserviceaccount.com"
3528//           ]
3529//         },
3530//         {
3531//           "role": "roles/viewer",
3532//           "members": ["user:sean@example.com"]
3533//         }
3534//       ]
3535//     }
3536//
3537// **YAML Example**
3538//
3539//     bindings:
3540//     - members:
3541//       - user:mike@example.com
3542//       - group:admins@example.com
3543//       - domain:google.com
3544//       - serviceAccount:my-other-app@appspot.gserviceaccount.com
3545//       role: roles/owner
3546//     - members:
3547//       - user:sean@example.com
3548//       role: roles/viewer
3549//
3550//
3551// For a description of IAM and its features, see the
3552// [IAM developer's guide](https://cloud.google.com/iam/docs).
3553type Policy struct {
3554	// AuditConfigs: Specifies cloud audit logging configuration for this
3555	// policy.
3556	AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"`
3557
3558	// Bindings: Associates a list of `members` to a `role`.
3559	// `bindings` with no members will result in an error.
3560	Bindings []*Binding `json:"bindings,omitempty"`
3561
3562	// Etag: `etag` is used for optimistic concurrency control as a way to
3563	// help
3564	// prevent simultaneous updates of a policy from overwriting each
3565	// other.
3566	// It is strongly suggested that systems make use of the `etag` in
3567	// the
3568	// read-modify-write cycle to perform policy updates in order to avoid
3569	// race
3570	// conditions: An `etag` is returned in the response to `getIamPolicy`,
3571	// and
3572	// systems are expected to put that etag in the request to
3573	// `setIamPolicy` to
3574	// ensure that their change will be applied to the same version of the
3575	// policy.
3576	//
3577	// If no `etag` is provided in the call to `setIamPolicy`, then the
3578	// existing
3579	// policy is overwritten.
3580	Etag string `json:"etag,omitempty"`
3581
3582	// Version: Deprecated.
3583	Version int64 `json:"version,omitempty"`
3584
3585	// ServerResponse contains the HTTP response code and headers from the
3586	// server.
3587	googleapi.ServerResponse `json:"-"`
3588
3589	// ForceSendFields is a list of field names (e.g. "AuditConfigs") to
3590	// unconditionally include in API requests. By default, fields with
3591	// empty values are omitted from API requests. However, any non-pointer,
3592	// non-interface field appearing in ForceSendFields will be sent to the
3593	// server regardless of whether the field is empty or not. This may be
3594	// used to include empty fields in Patch requests.
3595	ForceSendFields []string `json:"-"`
3596
3597	// NullFields is a list of field names (e.g. "AuditConfigs") to include
3598	// in API requests with the JSON null value. By default, fields with
3599	// empty values are omitted from API requests. However, any field with
3600	// an empty value appearing in NullFields will be sent to the server as
3601	// null. It is an error if a field in this list has a non-empty value.
3602	// This may be used to include null fields in Patch requests.
3603	NullFields []string `json:"-"`
3604}
3605
3606func (s *Policy) MarshalJSON() ([]byte, error) {
3607	type NoMethod Policy
3608	raw := NoMethod(*s)
3609	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3610}
3611
3612// ProgressCounter: ProgressCounter provides counters to describe an
3613// operation's progress.
3614type ProgressCounter struct {
3615	// Failure: The number of units that failed in the operation.
3616	Failure int64 `json:"failure,omitempty,string"`
3617
3618	// Pending: The number of units that are pending in the operation.
3619	Pending int64 `json:"pending,omitempty,string"`
3620
3621	// Success: The number of units that succeeded in the operation.
3622	Success int64 `json:"success,omitempty,string"`
3623
3624	// ForceSendFields is a list of field names (e.g. "Failure") to
3625	// unconditionally include in API requests. By default, fields with
3626	// empty values are omitted from API requests. However, any non-pointer,
3627	// non-interface field appearing in ForceSendFields will be sent to the
3628	// server regardless of whether the field is empty or not. This may be
3629	// used to include empty fields in Patch requests.
3630	ForceSendFields []string `json:"-"`
3631
3632	// NullFields is a list of field names (e.g. "Failure") to include in
3633	// API requests with the JSON null value. By default, fields with empty
3634	// values are omitted from API requests. However, any field with an
3635	// empty value appearing in NullFields will be sent to the server as
3636	// null. It is an error if a field in this list has a non-empty value.
3637	// This may be used to include null fields in Patch requests.
3638	NullFields []string `json:"-"`
3639}
3640
3641func (s *ProgressCounter) MarshalJSON() ([]byte, error) {
3642	type NoMethod ProgressCounter
3643	raw := NoMethod(*s)
3644	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3645}
3646
3647// RedactConfig: Defines how to redact sensitive values. Default
3648// behavior is erase.
3649// For example, "My name is Jake." becomes "My name is ."
3650type RedactConfig struct {
3651}
3652
3653// ReplaceWithInfoTypeConfig: When using the INSPECT_AND_TRANSFORM
3654// action, each match is replaced with
3655// the name of the `info_type`. For example, "My name is Jake" becomes
3656// "My name
3657// is [PERSON_NAME]." The TRANSFORM action is equivalent to redacting.
3658type ReplaceWithInfoTypeConfig struct {
3659}
3660
3661// ResourceAnnotation: Resource level annotation.
3662type ResourceAnnotation struct {
3663	Label string `json:"label,omitempty"`
3664
3665	// ForceSendFields is a list of field names (e.g. "Label") to
3666	// unconditionally include in API requests. By default, fields with
3667	// empty values are omitted from API requests. However, any non-pointer,
3668	// non-interface field appearing in ForceSendFields will be sent to the
3669	// server regardless of whether the field is empty or not. This may be
3670	// used to include empty fields in Patch requests.
3671	ForceSendFields []string `json:"-"`
3672
3673	// NullFields is a list of field names (e.g. "Label") to include in API
3674	// requests with the JSON null value. By default, fields with empty
3675	// values are omitted from API requests. However, any field with an
3676	// empty value appearing in NullFields will be sent to the server as
3677	// null. It is an error if a field in this list has a non-empty value.
3678	// This may be used to include null fields in Patch requests.
3679	NullFields []string `json:"-"`
3680}
3681
3682func (s *ResourceAnnotation) MarshalJSON() ([]byte, error) {
3683	type NoMethod ResourceAnnotation
3684	raw := NoMethod(*s)
3685	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3686}
3687
3688// SchemaConfig: Configuration for the FHIR BigQuery and Cloud Storage
3689// schema. Determines
3690// how the server generates the schema.
3691type SchemaConfig struct {
3692	// RecursiveStructureDepth: The depth for all recursive structures in
3693	// the output analytics
3694	// schema. For example, `concept` in the CodeSystem resource is a
3695	// recursive
3696	// structure; when the depth is 2, the CodeSystem table will have a
3697	// column
3698	// called `concept.concept` but not `concept.concept.concept`. If
3699	// not
3700	// specified or set to 0, the server will use the default value 2.
3701	RecursiveStructureDepth int64 `json:"recursiveStructureDepth,omitempty,string"`
3702
3703	// SchemaType: Specifies the output schema type. If unspecified, the
3704	// default is
3705	// `LOSSLESS`.
3706	//
3707	// Possible values:
3708	//   "SCHEMA_TYPE_UNSPECIFIED" - No schema type specified. Same as
3709	// `LOSSLESS`.
3710	//   "LOSSLESS" - A data-driven schema generated from the fields present
3711	// in the FHIR data
3712	// being exported, with no additional simplification.
3713	//   "ANALYTICS" - Analytics schema defined by the FHIR community.
3714	// See https://github.com/FHIR/sql-on-fhir/blob/master/sql-on-fhir.md.
3715	SchemaType string `json:"schemaType,omitempty"`
3716
3717	// ForceSendFields is a list of field names (e.g.
3718	// "RecursiveStructureDepth") to unconditionally include in API
3719	// requests. By default, fields with empty values are omitted from API
3720	// requests. However, any non-pointer, non-interface field appearing in
3721	// ForceSendFields will be sent to the server regardless of whether the
3722	// field is empty or not. This may be used to include empty fields in
3723	// Patch requests.
3724	ForceSendFields []string `json:"-"`
3725
3726	// NullFields is a list of field names (e.g. "RecursiveStructureDepth")
3727	// to include in API requests with the JSON null value. By default,
3728	// fields with empty values are omitted from API requests. However, any
3729	// field with an empty value appearing in NullFields will be sent to the
3730	// server as null. It is an error if a field in this list has a
3731	// non-empty value. This may be used to include null fields in Patch
3732	// requests.
3733	NullFields []string `json:"-"`
3734}
3735
3736func (s *SchemaConfig) MarshalJSON() ([]byte, error) {
3737	type NoMethod SchemaConfig
3738	raw := NoMethod(*s)
3739	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3740}
3741
3742// SearchResourcesRequest: Request to search the resources in the
3743// specified FHIR store.
3744type SearchResourcesRequest struct {
3745	// ResourceType: The FHIR resource type to search, such as Patient or
3746	// Observation. For a
3747	// complete list, see the FHIR Resource
3748	// Index
3749	// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcel
3750	// ist.html),
3751	// [STU3](http://hl7.org/implement/standards/fhir/STU3/resourc
3752	// elist.html)).
3753	ResourceType string `json:"resourceType,omitempty"`
3754
3755	// ForceSendFields is a list of field names (e.g. "ResourceType") to
3756	// unconditionally include in API requests. By default, fields with
3757	// empty values are omitted from API requests. However, any non-pointer,
3758	// non-interface field appearing in ForceSendFields will be sent to the
3759	// server regardless of whether the field is empty or not. This may be
3760	// used to include empty fields in Patch requests.
3761	ForceSendFields []string `json:"-"`
3762
3763	// NullFields is a list of field names (e.g. "ResourceType") to include
3764	// in API requests with the JSON null value. By default, fields with
3765	// empty values are omitted from API requests. However, any field with
3766	// an empty value appearing in NullFields will be sent to the server as
3767	// null. It is an error if a field in this list has a non-empty value.
3768	// This may be used to include null fields in Patch requests.
3769	NullFields []string `json:"-"`
3770}
3771
3772func (s *SearchResourcesRequest) MarshalJSON() ([]byte, error) {
3773	type NoMethod SearchResourcesRequest
3774	raw := NoMethod(*s)
3775	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3776}
3777
3778// Segment: A segment in a structured format.
3779type Segment struct {
3780	// Fields: A mapping from the positional location to the value.
3781	// The key string uses zero-based indexes separated by dots to
3782	// identify
3783	// Fields, components and sub-components. A bracket notation is also
3784	// used to
3785	// identify different instances of a repeated field.
3786	// Regex for key: (\d+)(\[\d+\])?(.\d+)?(.\d+)?
3787	//
3788	// Examples of (key, value) pairs:
3789	// - (0.1, "foo"): Component 1 of Field 0 has the value "foo".
3790	// - (1.1.2, "bar"): Sub-component 2 of Component 1 of field 1 has the
3791	// value
3792	// "bar".
3793	// - (1[2].1, "baz"): Component 1 of Instance 2 of Field 1, which is
3794	// repeated,
3795	// has the value "baz".
3796	Fields map[string]string `json:"fields,omitempty"`
3797
3798	// SegmentId: A string that indicates the type of segment, e.g., EVN,
3799	// PID.
3800	SegmentId string `json:"segmentId,omitempty"`
3801
3802	// SetId: Set ID for segments that can be in a set. This can be empty if
3803	// it is
3804	// missing or it is not applicable.
3805	SetId string `json:"setId,omitempty"`
3806
3807	// ForceSendFields is a list of field names (e.g. "Fields") to
3808	// unconditionally include in API requests. By default, fields with
3809	// empty values are omitted from API requests. However, any non-pointer,
3810	// non-interface field appearing in ForceSendFields will be sent to the
3811	// server regardless of whether the field is empty or not. This may be
3812	// used to include empty fields in Patch requests.
3813	ForceSendFields []string `json:"-"`
3814
3815	// NullFields is a list of field names (e.g. "Fields") to include in API
3816	// requests with the JSON null value. By default, fields with empty
3817	// values are omitted from API requests. However, any field with an
3818	// empty value appearing in NullFields will be sent to the server as
3819	// null. It is an error if a field in this list has a non-empty value.
3820	// This may be used to include null fields in Patch requests.
3821	NullFields []string `json:"-"`
3822}
3823
3824func (s *Segment) MarshalJSON() ([]byte, error) {
3825	type NoMethod Segment
3826	raw := NoMethod(*s)
3827	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3828}
3829
3830// SensitiveTextAnnotation: A TextAnnotation specifies a text range that
3831// includes sensitive information.
3832type SensitiveTextAnnotation struct {
3833	// Details: Maps from a resource slice (e.g. FHIR resource field path)
3834	// to a set of
3835	// sensitive text findings. For example,
3836	// Appointment.Narrative text1 --> {findings_1, findings_2, findings_3}
3837	Details map[string]Detail `json:"details,omitempty"`
3838
3839	// ForceSendFields is a list of field names (e.g. "Details") to
3840	// unconditionally include in API requests. By default, fields with
3841	// empty values are omitted from API requests. However, any non-pointer,
3842	// non-interface field appearing in ForceSendFields will be sent to the
3843	// server regardless of whether the field is empty or not. This may be
3844	// used to include empty fields in Patch requests.
3845	ForceSendFields []string `json:"-"`
3846
3847	// NullFields is a list of field names (e.g. "Details") to include in
3848	// API requests with the JSON null value. By default, fields with empty
3849	// values are omitted from API requests. However, any field with an
3850	// empty value appearing in NullFields will be sent to the server as
3851	// null. It is an error if a field in this list has a non-empty value.
3852	// This may be used to include null fields in Patch requests.
3853	NullFields []string `json:"-"`
3854}
3855
3856func (s *SensitiveTextAnnotation) MarshalJSON() ([]byte, error) {
3857	type NoMethod SensitiveTextAnnotation
3858	raw := NoMethod(*s)
3859	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3860}
3861
3862// SetIamPolicyRequest: Request message for `SetIamPolicy` method.
3863type SetIamPolicyRequest struct {
3864	// Policy: REQUIRED: The complete policy to be applied to the
3865	// `resource`. The size of
3866	// the policy is limited to a few 10s of KB. An empty policy is a
3867	// valid policy but certain Cloud Platform services (such as
3868	// Projects)
3869	// might reject them.
3870	Policy *Policy `json:"policy,omitempty"`
3871
3872	// UpdateMask: OPTIONAL: A FieldMask specifying which fields of the
3873	// policy to modify. Only
3874	// the fields in the mask will be modified. If no mask is provided,
3875	// the
3876	// following default mask is used:
3877	// paths: "bindings, etag"
3878	// This field is only used by Cloud IAM.
3879	UpdateMask string `json:"updateMask,omitempty"`
3880
3881	// ForceSendFields is a list of field names (e.g. "Policy") to
3882	// unconditionally include in API requests. By default, fields with
3883	// empty values are omitted from API requests. However, any non-pointer,
3884	// non-interface field appearing in ForceSendFields will be sent to the
3885	// server regardless of whether the field is empty or not. This may be
3886	// used to include empty fields in Patch requests.
3887	ForceSendFields []string `json:"-"`
3888
3889	// NullFields is a list of field names (e.g. "Policy") to include in API
3890	// requests with the JSON null value. By default, fields with empty
3891	// values are omitted from API requests. However, any field with an
3892	// empty value appearing in NullFields will be sent to the server as
3893	// null. It is an error if a field in this list has a non-empty value.
3894	// This may be used to include null fields in Patch requests.
3895	NullFields []string `json:"-"`
3896}
3897
3898func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
3899	type NoMethod SetIamPolicyRequest
3900	raw := NoMethod(*s)
3901	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3902}
3903
3904// Status: The `Status` type defines a logical error model that is
3905// suitable for
3906// different programming environments, including REST APIs and RPC APIs.
3907// It is
3908// used by [gRPC](https://github.com/grpc). Each `Status` message
3909// contains
3910// three pieces of data: error code, error message, and error
3911// details.
3912//
3913// You can find out more about this error model and how to work with it
3914// in the
3915// [API Design Guide](https://cloud.google.com/apis/design/errors).
3916type Status struct {
3917	// Code: The status code, which should be an enum value of
3918	// google.rpc.Code.
3919	Code int64 `json:"code,omitempty"`
3920
3921	// Details: A list of messages that carry the error details.  There is a
3922	// common set of
3923	// message types for APIs to use.
3924	Details []googleapi.RawMessage `json:"details,omitempty"`
3925
3926	// Message: A developer-facing error message, which should be in
3927	// English. Any
3928	// user-facing error message should be localized and sent in
3929	// the
3930	// google.rpc.Status.details field, or localized by the client.
3931	Message string `json:"message,omitempty"`
3932
3933	// ForceSendFields is a list of field names (e.g. "Code") to
3934	// unconditionally include in API requests. By default, fields with
3935	// empty values are omitted from API requests. However, any non-pointer,
3936	// non-interface field appearing in ForceSendFields will be sent to the
3937	// server regardless of whether the field is empty or not. This may be
3938	// used to include empty fields in Patch requests.
3939	ForceSendFields []string `json:"-"`
3940
3941	// NullFields is a list of field names (e.g. "Code") to include in API
3942	// requests with the JSON null value. By default, fields with empty
3943	// values are omitted from API requests. However, any field with an
3944	// empty value appearing in NullFields will be sent to the server as
3945	// null. It is an error if a field in this list has a non-empty value.
3946	// This may be used to include null fields in Patch requests.
3947	NullFields []string `json:"-"`
3948}
3949
3950func (s *Status) MarshalJSON() ([]byte, error) {
3951	type NoMethod Status
3952	raw := NoMethod(*s)
3953	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3954}
3955
3956// StreamConfig: This structure contains configuration for streaming
3957// FHIR export.
3958type StreamConfig struct {
3959	// BigqueryDestination: The destination BigQuery structure that contains
3960	// both the dataset
3961	// location and corresponding schema config.
3962	// The output will be organized in one table per resource type.
3963	// The server will inspect and potentially create new tables (if
3964	// they
3965	// don't exist) in the given BigQuery dataset.
3966	// Results will be appended to the corresponding BigQuery tables.
3967	// The views of the latest snapshot will also be automatically created
3968	// in
3969	// the dataset.
3970	BigqueryDestination *GoogleCloudHealthcareV1alpha2FhirBigQueryDestination `json:"bigqueryDestination,omitempty"`
3971
3972	// ResourceTypes: Supply a FHIR resource type (such as "Patient" or
3973	// "Observation").
3974	// See https://www.hl7.org/fhir/valueset-resource-types.html for a list
3975	// of
3976	// all FHIR resource types.
3977	// The server will treat an empty list as an intent to stream all
3978	// the
3979	// supported resource types in this FHIR store.
3980	ResourceTypes []string `json:"resourceTypes,omitempty"`
3981
3982	// ForceSendFields is a list of field names (e.g. "BigqueryDestination")
3983	// to unconditionally include in API requests. By default, fields with
3984	// empty values are omitted from API requests. However, any non-pointer,
3985	// non-interface field appearing in ForceSendFields will be sent to the
3986	// server regardless of whether the field is empty or not. This may be
3987	// used to include empty fields in Patch requests.
3988	ForceSendFields []string `json:"-"`
3989
3990	// NullFields is a list of field names (e.g. "BigqueryDestination") to
3991	// include in API requests with the JSON null value. By default, fields
3992	// with empty values are omitted from API requests. However, any field
3993	// with an empty value appearing in NullFields will be sent to the
3994	// server as null. It is an error if a field in this list has a
3995	// non-empty value. This may be used to include null fields in Patch
3996	// requests.
3997	NullFields []string `json:"-"`
3998}
3999
4000func (s *StreamConfig) MarshalJSON() ([]byte, error) {
4001	type NoMethod StreamConfig
4002	raw := NoMethod(*s)
4003	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4004}
4005
4006// SubscriptionConfig: Configuration of FHIR
4007// Subscription:
4008// https://www.hl7.org/fhir/subscription.html.
4009type SubscriptionConfig struct {
4010	// AllowedRestHookEndpoints: REST hook endpoints that are allowed to
4011	// receive subscription notifications.
4012	// The create or update operation on a FHIR Subscription resource will
4013	// fail if
4014	// the FHIR Subscription resource contains a REST hook endpoint that is
4015	// not in
4016	// this list.
4017	// A subscription notification push will fail if the FHIR
4018	// Subscription
4019	// resource contains a REST hook endpoint that is not in this list.
4020	// The REST hook endpoint in a subscription resource will be compared
4021	// with the
4022	// endpoints in this list by exact matching.
4023	// Users must verify their ownership of the domain of an endpoint
4024	// before
4025	// adding it to this list. To verify domain ownership, go
4026	// to
4027	// https://search.google.com/search-console/welcome.
4028	AllowedRestHookEndpoints []*SubscriptionRestHookEndpoint `json:"allowedRestHookEndpoints,omitempty"`
4029
4030	// ForceSendFields is a list of field names (e.g.
4031	// "AllowedRestHookEndpoints") to unconditionally include in API
4032	// requests. By default, fields with empty values are omitted from API
4033	// requests. However, any non-pointer, non-interface field appearing in
4034	// ForceSendFields will be sent to the server regardless of whether the
4035	// field is empty or not. This may be used to include empty fields in
4036	// Patch requests.
4037	ForceSendFields []string `json:"-"`
4038
4039	// NullFields is a list of field names (e.g. "AllowedRestHookEndpoints")
4040	// to include in API requests with the JSON null value. By default,
4041	// fields with empty values are omitted from API requests. However, any
4042	// field with an empty value appearing in NullFields will be sent to the
4043	// server as null. It is an error if a field in this list has a
4044	// non-empty value. This may be used to include null fields in Patch
4045	// requests.
4046	NullFields []string `json:"-"`
4047}
4048
4049func (s *SubscriptionConfig) MarshalJSON() ([]byte, error) {
4050	type NoMethod SubscriptionConfig
4051	raw := NoMethod(*s)
4052	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4053}
4054
4055// SubscriptionRestHookEndpoint: REST hook endpoint of FHIR
4056// Subscription.
4057type SubscriptionRestHookEndpoint struct {
4058	// AllowResourcePayload: Whether this endpoint is allowed to receive
4059	// full resource payloads. If set
4060	// to false, the subscription notificiation sending to this endpoint
4061	// with full
4062	// resource payload will be blocked.
4063	AllowResourcePayload bool `json:"allowResourcePayload,omitempty"`
4064
4065	// Endpoint: Address of the REST hook endpoint. It must be a valid HTTPS
4066	// URL with TLS
4067	// certificate.
4068	Endpoint string `json:"endpoint,omitempty"`
4069
4070	// ForceSendFields is a list of field names (e.g.
4071	// "AllowResourcePayload") to unconditionally include in API requests.
4072	// By default, fields with empty values are omitted from API requests.
4073	// However, any non-pointer, non-interface field appearing in
4074	// ForceSendFields will be sent to the server regardless of whether the
4075	// field is empty or not. This may be used to include empty fields in
4076	// Patch requests.
4077	ForceSendFields []string `json:"-"`
4078
4079	// NullFields is a list of field names (e.g. "AllowResourcePayload") to
4080	// include in API requests with the JSON null value. By default, fields
4081	// with empty values are omitted from API requests. However, any field
4082	// with an empty value appearing in NullFields will be sent to the
4083	// server as null. It is an error if a field in this list has a
4084	// non-empty value. This may be used to include null fields in Patch
4085	// requests.
4086	NullFields []string `json:"-"`
4087}
4088
4089func (s *SubscriptionRestHookEndpoint) MarshalJSON() ([]byte, error) {
4090	type NoMethod SubscriptionRestHookEndpoint
4091	raw := NoMethod(*s)
4092	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4093}
4094
4095// TagFilterList: List of tags to filter.
4096type TagFilterList struct {
4097	// Tags: Tags to filter. Tags must be DICOM Data Elements, File
4098	// Meta
4099	// Elements, or Directory Structuring Elements, as defined
4100	// at:
4101	// http://dicom.nema.org/medical/dicom/current/output/html/part06.htm
4102	// l#table_6-1,.
4103	// They may be provided by "Keyword" or "Tag". For example,
4104	// "PatientID",
4105	// "00100010".
4106	Tags []string `json:"tags,omitempty"`
4107
4108	// ForceSendFields is a list of field names (e.g. "Tags") to
4109	// unconditionally include in API requests. By default, fields with
4110	// empty values are omitted from API requests. However, any non-pointer,
4111	// non-interface field appearing in ForceSendFields will be sent to the
4112	// server regardless of whether the field is empty or not. This may be
4113	// used to include empty fields in Patch requests.
4114	ForceSendFields []string `json:"-"`
4115
4116	// NullFields is a list of field names (e.g. "Tags") to include in API
4117	// requests with the JSON null value. By default, fields with empty
4118	// values are omitted from API requests. However, any field with an
4119	// empty value appearing in NullFields will be sent to the server as
4120	// null. It is an error if a field in this list has a non-empty value.
4121	// This may be used to include null fields in Patch requests.
4122	NullFields []string `json:"-"`
4123}
4124
4125func (s *TagFilterList) MarshalJSON() ([]byte, error) {
4126	type NoMethod TagFilterList
4127	raw := NoMethod(*s)
4128	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4129}
4130
4131// TestIamPermissionsRequest: Request message for `TestIamPermissions`
4132// method.
4133type TestIamPermissionsRequest struct {
4134	// Permissions: The set of permissions to check for the `resource`.
4135	// Permissions with
4136	// wildcards (such as '*' or 'storage.*') are not allowed. For
4137	// more
4138	// information see
4139	// [IAM
4140	// Overview](https://cloud.google.com/iam/docs/overview#permissions).
4141	Permissions []string `json:"permissions,omitempty"`
4142
4143	// ForceSendFields is a list of field names (e.g. "Permissions") to
4144	// unconditionally include in API requests. By default, fields with
4145	// empty values are omitted from API requests. However, any non-pointer,
4146	// non-interface field appearing in ForceSendFields will be sent to the
4147	// server regardless of whether the field is empty or not. This may be
4148	// used to include empty fields in Patch requests.
4149	ForceSendFields []string `json:"-"`
4150
4151	// NullFields is a list of field names (e.g. "Permissions") to include
4152	// in API requests with the JSON null value. By default, fields with
4153	// empty values are omitted from API requests. However, any field with
4154	// an empty value appearing in NullFields will be sent to the server as
4155	// null. It is an error if a field in this list has a non-empty value.
4156	// This may be used to include null fields in Patch requests.
4157	NullFields []string `json:"-"`
4158}
4159
4160func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
4161	type NoMethod TestIamPermissionsRequest
4162	raw := NoMethod(*s)
4163	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4164}
4165
4166// TestIamPermissionsResponse: Response message for `TestIamPermissions`
4167// method.
4168type TestIamPermissionsResponse struct {
4169	// Permissions: A subset of `TestPermissionsRequest.permissions` that
4170	// the caller is
4171	// allowed.
4172	Permissions []string `json:"permissions,omitempty"`
4173
4174	// ServerResponse contains the HTTP response code and headers from the
4175	// server.
4176	googleapi.ServerResponse `json:"-"`
4177
4178	// ForceSendFields is a list of field names (e.g. "Permissions") to
4179	// unconditionally include in API requests. By default, fields with
4180	// empty values are omitted from API requests. However, any non-pointer,
4181	// non-interface field appearing in ForceSendFields will be sent to the
4182	// server regardless of whether the field is empty or not. This may be
4183	// used to include empty fields in Patch requests.
4184	ForceSendFields []string `json:"-"`
4185
4186	// NullFields is a list of field names (e.g. "Permissions") to include
4187	// in API requests with the JSON null value. By default, fields with
4188	// empty values are omitted from API requests. However, any field with
4189	// an empty value appearing in NullFields will be sent to the server as
4190	// null. It is an error if a field in this list has a non-empty value.
4191	// This may be used to include null fields in Patch requests.
4192	NullFields []string `json:"-"`
4193}
4194
4195func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
4196	type NoMethod TestIamPermissionsResponse
4197	raw := NoMethod(*s)
4198	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4199}
4200
4201type TextConfig struct {
4202	// Transformations: The transformations to apply to the detected data.
4203	Transformations []*InfoTypeTransformation `json:"transformations,omitempty"`
4204
4205	// ForceSendFields is a list of field names (e.g. "Transformations") to
4206	// unconditionally include in API requests. By default, fields with
4207	// empty values are omitted from API requests. However, any non-pointer,
4208	// non-interface field appearing in ForceSendFields will be sent to the
4209	// server regardless of whether the field is empty or not. This may be
4210	// used to include empty fields in Patch requests.
4211	ForceSendFields []string `json:"-"`
4212
4213	// NullFields is a list of field names (e.g. "Transformations") to
4214	// include in API requests with the JSON null value. By default, fields
4215	// with empty values are omitted from API requests. However, any field
4216	// with an empty value appearing in NullFields will be sent to the
4217	// server as null. It is an error if a field in this list has a
4218	// non-empty value. This may be used to include null fields in Patch
4219	// requests.
4220	NullFields []string `json:"-"`
4221}
4222
4223func (s *TextConfig) MarshalJSON() ([]byte, error) {
4224	type NoMethod TextConfig
4225	raw := NoMethod(*s)
4226	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4227}
4228
4229// ValidationConfig: This structure contains the configuration for FHIR
4230// profiles and validation.
4231type ValidationConfig struct {
4232	// DisableProfileValidation: Whether profile validation should be
4233	// disabled for this FHIR store. Set
4234	// this to true to disable checking incoming resources for
4235	// conformance
4236	// against StructureDefinitions in this FHIR store.
4237	DisableProfileValidation bool `json:"disableProfileValidation,omitempty"`
4238
4239	// EnabledImplementationGuides: A list of ImplementationGuide IDs in
4240	// this FHIR store that will be used to
4241	// configure which profiles are used for validation. For example, to
4242	// enable
4243	// an implementation guide with ID 1 set `enabled_implementation_guides`
4244	// to
4245	// `["1"]`. If `enabled_implementation_guides` is empty or omitted
4246	// then
4247	// incoming resources will only be required to conform to the base
4248	// FHIR
4249	// profiles. Otherwise, a resource must conform to at least one
4250	// profile
4251	// listed in the `global` property of one of the
4252	// enabled
4253	// ImplementationGuides.
4254	EnabledImplementationGuides []string `json:"enabledImplementationGuides,omitempty"`
4255
4256	// ForceSendFields is a list of field names (e.g.
4257	// "DisableProfileValidation") to unconditionally include in API
4258	// requests. By default, fields with empty values are omitted from API
4259	// requests. However, any non-pointer, non-interface field appearing in
4260	// ForceSendFields will be sent to the server regardless of whether the
4261	// field is empty or not. This may be used to include empty fields in
4262	// Patch requests.
4263	ForceSendFields []string `json:"-"`
4264
4265	// NullFields is a list of field names (e.g. "DisableProfileValidation")
4266	// to include in API requests with the JSON null value. By default,
4267	// fields with empty values are omitted from API requests. However, any
4268	// field with an empty value appearing in NullFields will be sent to the
4269	// server as null. It is an error if a field in this list has a
4270	// non-empty value. This may be used to include null fields in Patch
4271	// requests.
4272	NullFields []string `json:"-"`
4273}
4274
4275func (s *ValidationConfig) MarshalJSON() ([]byte, error) {
4276	type NoMethod ValidationConfig
4277	raw := NoMethod(*s)
4278	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4279}
4280
4281// Vertex: A 2D coordinate in an image. The origin is the top-left.
4282type Vertex struct {
4283	// X: X coordinate.
4284	X float64 `json:"x,omitempty"`
4285
4286	// Y: Y coordinate.
4287	Y float64 `json:"y,omitempty"`
4288
4289	// ForceSendFields is a list of field names (e.g. "X") to
4290	// unconditionally include in API requests. By default, fields with
4291	// empty values are omitted from API requests. However, any non-pointer,
4292	// non-interface field appearing in ForceSendFields will be sent to the
4293	// server regardless of whether the field is empty or not. This may be
4294	// used to include empty fields in Patch requests.
4295	ForceSendFields []string `json:"-"`
4296
4297	// NullFields is a list of field names (e.g. "X") to include in API
4298	// requests with the JSON null value. By default, fields with empty
4299	// values are omitted from API requests. However, any field with an
4300	// empty value appearing in NullFields will be sent to the server as
4301	// null. It is an error if a field in this list has a non-empty value.
4302	// This may be used to include null fields in Patch requests.
4303	NullFields []string `json:"-"`
4304}
4305
4306func (s *Vertex) MarshalJSON() ([]byte, error) {
4307	type NoMethod Vertex
4308	raw := NoMethod(*s)
4309	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4310}
4311
4312func (s *Vertex) UnmarshalJSON(data []byte) error {
4313	type NoMethod Vertex
4314	var s1 struct {
4315		X gensupport.JSONFloat64 `json:"x"`
4316		Y gensupport.JSONFloat64 `json:"y"`
4317		*NoMethod
4318	}
4319	s1.NoMethod = (*NoMethod)(s)
4320	if err := json.Unmarshal(data, &s1); err != nil {
4321		return err
4322	}
4323	s.X = float64(s1.X)
4324	s.Y = float64(s1.Y)
4325	return nil
4326}
4327
4328// method id "healthcare.projects.locations.get":
4329
4330type ProjectsLocationsGetCall struct {
4331	s            *Service
4332	name         string
4333	urlParams_   gensupport.URLParams
4334	ifNoneMatch_ string
4335	ctx_         context.Context
4336	header_      http.Header
4337}
4338
4339// Get: Gets information about a location.
4340func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
4341	c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4342	c.name = name
4343	return c
4344}
4345
4346// Fields allows partial responses to be retrieved. See
4347// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
4348// for more information.
4349func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
4350	c.urlParams_.Set("fields", googleapi.CombineFields(s))
4351	return c
4352}
4353
4354// IfNoneMatch sets the optional parameter which makes the operation
4355// fail if the object's ETag matches the given value. This is useful for
4356// getting updates only after the object has changed since the last
4357// request. Use googleapi.IsNotModified to check whether the response
4358// error from Do is the result of In-None-Match.
4359func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
4360	c.ifNoneMatch_ = entityTag
4361	return c
4362}
4363
4364// Context sets the context to be used in this call's Do method. Any
4365// pending HTTP request will be aborted if the provided context is
4366// canceled.
4367func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
4368	c.ctx_ = ctx
4369	return c
4370}
4371
4372// Header returns an http.Header that can be modified by the caller to
4373// add HTTP headers to the request.
4374func (c *ProjectsLocationsGetCall) Header() http.Header {
4375	if c.header_ == nil {
4376		c.header_ = make(http.Header)
4377	}
4378	return c.header_
4379}
4380
4381func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
4382	reqHeaders := make(http.Header)
4383	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
4384	for k, v := range c.header_ {
4385		reqHeaders[k] = v
4386	}
4387	reqHeaders.Set("User-Agent", c.s.userAgent())
4388	if c.ifNoneMatch_ != "" {
4389		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4390	}
4391	var body io.Reader = nil
4392	c.urlParams_.Set("alt", alt)
4393	c.urlParams_.Set("prettyPrint", "false")
4394	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
4395	urls += "?" + c.urlParams_.Encode()
4396	req, err := http.NewRequest("GET", urls, body)
4397	if err != nil {
4398		return nil, err
4399	}
4400	req.Header = reqHeaders
4401	googleapi.Expand(req.URL, map[string]string{
4402		"name": c.name,
4403	})
4404	return gensupport.SendRequest(c.ctx_, c.s.client, req)
4405}
4406
4407// Do executes the "healthcare.projects.locations.get" call.
4408// Exactly one of *Location or error will be non-nil. Any non-2xx status
4409// code is an error. Response headers are in either
4410// *Location.ServerResponse.Header or (if a response was returned at
4411// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
4412// to check whether the returned error was because
4413// http.StatusNotModified was returned.
4414func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) {
4415	gensupport.SetOptions(c.urlParams_, opts...)
4416	res, err := c.doRequest("json")
4417	if res != nil && res.StatusCode == http.StatusNotModified {
4418		if res.Body != nil {
4419			res.Body.Close()
4420		}
4421		return nil, &googleapi.Error{
4422			Code:   res.StatusCode,
4423			Header: res.Header,
4424		}
4425	}
4426	if err != nil {
4427		return nil, err
4428	}
4429	defer googleapi.CloseBody(res)
4430	if err := googleapi.CheckResponse(res); err != nil {
4431		return nil, err
4432	}
4433	ret := &Location{
4434		ServerResponse: googleapi.ServerResponse{
4435			Header:         res.Header,
4436			HTTPStatusCode: res.StatusCode,
4437		},
4438	}
4439	target := &ret
4440	if err := gensupport.DecodeResponse(target, res); err != nil {
4441		return nil, err
4442	}
4443	return ret, nil
4444	// {
4445	//   "description": "Gets information about a location.",
4446	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}",
4447	//   "httpMethod": "GET",
4448	//   "id": "healthcare.projects.locations.get",
4449	//   "parameterOrder": [
4450	//     "name"
4451	//   ],
4452	//   "parameters": {
4453	//     "name": {
4454	//       "description": "Resource name for the location.",
4455	//       "location": "path",
4456	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
4457	//       "required": true,
4458	//       "type": "string"
4459	//     }
4460	//   },
4461	//   "path": "v1alpha2/{+name}",
4462	//   "response": {
4463	//     "$ref": "Location"
4464	//   },
4465	//   "scopes": [
4466	//     "https://www.googleapis.com/auth/cloud-platform"
4467	//   ]
4468	// }
4469
4470}
4471
4472// method id "healthcare.projects.locations.list":
4473
4474type ProjectsLocationsListCall struct {
4475	s            *Service
4476	name         string
4477	urlParams_   gensupport.URLParams
4478	ifNoneMatch_ string
4479	ctx_         context.Context
4480	header_      http.Header
4481}
4482
4483// List: Lists information about the supported locations for this
4484// service.
4485func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
4486	c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4487	c.name = name
4488	return c
4489}
4490
4491// Filter sets the optional parameter "filter": The standard list
4492// filter.
4493func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
4494	c.urlParams_.Set("filter", filter)
4495	return c
4496}
4497
4498// PageSize sets the optional parameter "pageSize": The standard list
4499// page size.
4500func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
4501	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
4502	return c
4503}
4504
4505// PageToken sets the optional parameter "pageToken": The standard list
4506// page token.
4507func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
4508	c.urlParams_.Set("pageToken", pageToken)
4509	return c
4510}
4511
4512// Fields allows partial responses to be retrieved. See
4513// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
4514// for more information.
4515func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
4516	c.urlParams_.Set("fields", googleapi.CombineFields(s))
4517	return c
4518}
4519
4520// IfNoneMatch sets the optional parameter which makes the operation
4521// fail if the object's ETag matches the given value. This is useful for
4522// getting updates only after the object has changed since the last
4523// request. Use googleapi.IsNotModified to check whether the response
4524// error from Do is the result of In-None-Match.
4525func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
4526	c.ifNoneMatch_ = entityTag
4527	return c
4528}
4529
4530// Context sets the context to be used in this call's Do method. Any
4531// pending HTTP request will be aborted if the provided context is
4532// canceled.
4533func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
4534	c.ctx_ = ctx
4535	return c
4536}
4537
4538// Header returns an http.Header that can be modified by the caller to
4539// add HTTP headers to the request.
4540func (c *ProjectsLocationsListCall) Header() http.Header {
4541	if c.header_ == nil {
4542		c.header_ = make(http.Header)
4543	}
4544	return c.header_
4545}
4546
4547func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
4548	reqHeaders := make(http.Header)
4549	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
4550	for k, v := range c.header_ {
4551		reqHeaders[k] = v
4552	}
4553	reqHeaders.Set("User-Agent", c.s.userAgent())
4554	if c.ifNoneMatch_ != "" {
4555		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4556	}
4557	var body io.Reader = nil
4558	c.urlParams_.Set("alt", alt)
4559	c.urlParams_.Set("prettyPrint", "false")
4560	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}/locations")
4561	urls += "?" + c.urlParams_.Encode()
4562	req, err := http.NewRequest("GET", urls, body)
4563	if err != nil {
4564		return nil, err
4565	}
4566	req.Header = reqHeaders
4567	googleapi.Expand(req.URL, map[string]string{
4568		"name": c.name,
4569	})
4570	return gensupport.SendRequest(c.ctx_, c.s.client, req)
4571}
4572
4573// Do executes the "healthcare.projects.locations.list" call.
4574// Exactly one of *ListLocationsResponse or error will be non-nil. Any
4575// non-2xx status code is an error. Response headers are in either
4576// *ListLocationsResponse.ServerResponse.Header or (if a response was
4577// returned at all) in error.(*googleapi.Error).Header. Use
4578// googleapi.IsNotModified to check whether the returned error was
4579// because http.StatusNotModified was returned.
4580func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) {
4581	gensupport.SetOptions(c.urlParams_, opts...)
4582	res, err := c.doRequest("json")
4583	if res != nil && res.StatusCode == http.StatusNotModified {
4584		if res.Body != nil {
4585			res.Body.Close()
4586		}
4587		return nil, &googleapi.Error{
4588			Code:   res.StatusCode,
4589			Header: res.Header,
4590		}
4591	}
4592	if err != nil {
4593		return nil, err
4594	}
4595	defer googleapi.CloseBody(res)
4596	if err := googleapi.CheckResponse(res); err != nil {
4597		return nil, err
4598	}
4599	ret := &ListLocationsResponse{
4600		ServerResponse: googleapi.ServerResponse{
4601			Header:         res.Header,
4602			HTTPStatusCode: res.StatusCode,
4603		},
4604	}
4605	target := &ret
4606	if err := gensupport.DecodeResponse(target, res); err != nil {
4607		return nil, err
4608	}
4609	return ret, nil
4610	// {
4611	//   "description": "Lists information about the supported locations for this service.",
4612	//   "flatPath": "v1alpha2/projects/{projectsId}/locations",
4613	//   "httpMethod": "GET",
4614	//   "id": "healthcare.projects.locations.list",
4615	//   "parameterOrder": [
4616	//     "name"
4617	//   ],
4618	//   "parameters": {
4619	//     "filter": {
4620	//       "description": "The standard list filter.",
4621	//       "location": "query",
4622	//       "type": "string"
4623	//     },
4624	//     "name": {
4625	//       "description": "The resource that owns the locations collection, if applicable.",
4626	//       "location": "path",
4627	//       "pattern": "^projects/[^/]+$",
4628	//       "required": true,
4629	//       "type": "string"
4630	//     },
4631	//     "pageSize": {
4632	//       "description": "The standard list page size.",
4633	//       "format": "int32",
4634	//       "location": "query",
4635	//       "type": "integer"
4636	//     },
4637	//     "pageToken": {
4638	//       "description": "The standard list page token.",
4639	//       "location": "query",
4640	//       "type": "string"
4641	//     }
4642	//   },
4643	//   "path": "v1alpha2/{+name}/locations",
4644	//   "response": {
4645	//     "$ref": "ListLocationsResponse"
4646	//   },
4647	//   "scopes": [
4648	//     "https://www.googleapis.com/auth/cloud-platform"
4649	//   ]
4650	// }
4651
4652}
4653
4654// Pages invokes f for each page of results.
4655// A non-nil error returned from f will halt the iteration.
4656// The provided context supersedes any context provided to the Context method.
4657func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error {
4658	c.ctx_ = ctx
4659	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
4660	for {
4661		x, err := c.Do()
4662		if err != nil {
4663			return err
4664		}
4665		if err := f(x); err != nil {
4666			return err
4667		}
4668		if x.NextPageToken == "" {
4669			return nil
4670		}
4671		c.PageToken(x.NextPageToken)
4672	}
4673}
4674
4675// method id "healthcare.projects.locations.datasets.create":
4676
4677type ProjectsLocationsDatasetsCreateCall struct {
4678	s          *Service
4679	parent     string
4680	dataset    *Dataset
4681	urlParams_ gensupport.URLParams
4682	ctx_       context.Context
4683	header_    http.Header
4684}
4685
4686// Create: Creates a new health dataset. Results are returned through
4687// the
4688// Operation interface which returns either an
4689// `Operation.response` which contains a Dataset or
4690// `Operation.error`. The metadata
4691// field type is OperationMetadata.
4692// A Google Cloud Platform project can contain up to 500 datasets across
4693// all
4694// regions.
4695func (r *ProjectsLocationsDatasetsService) Create(parent string, dataset *Dataset) *ProjectsLocationsDatasetsCreateCall {
4696	c := &ProjectsLocationsDatasetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4697	c.parent = parent
4698	c.dataset = dataset
4699	return c
4700}
4701
4702// DatasetId sets the optional parameter "datasetId": The ID of the
4703// dataset that is being created.
4704// The string must match the following regex:
4705// `[\p{L}\p{N}_\-\.]{1,256}`.
4706func (c *ProjectsLocationsDatasetsCreateCall) DatasetId(datasetId string) *ProjectsLocationsDatasetsCreateCall {
4707	c.urlParams_.Set("datasetId", datasetId)
4708	return c
4709}
4710
4711// Fields allows partial responses to be retrieved. See
4712// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
4713// for more information.
4714func (c *ProjectsLocationsDatasetsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsCreateCall {
4715	c.urlParams_.Set("fields", googleapi.CombineFields(s))
4716	return c
4717}
4718
4719// Context sets the context to be used in this call's Do method. Any
4720// pending HTTP request will be aborted if the provided context is
4721// canceled.
4722func (c *ProjectsLocationsDatasetsCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsCreateCall {
4723	c.ctx_ = ctx
4724	return c
4725}
4726
4727// Header returns an http.Header that can be modified by the caller to
4728// add HTTP headers to the request.
4729func (c *ProjectsLocationsDatasetsCreateCall) Header() http.Header {
4730	if c.header_ == nil {
4731		c.header_ = make(http.Header)
4732	}
4733	return c.header_
4734}
4735
4736func (c *ProjectsLocationsDatasetsCreateCall) doRequest(alt string) (*http.Response, error) {
4737	reqHeaders := make(http.Header)
4738	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
4739	for k, v := range c.header_ {
4740		reqHeaders[k] = v
4741	}
4742	reqHeaders.Set("User-Agent", c.s.userAgent())
4743	var body io.Reader = nil
4744	body, err := googleapi.WithoutDataWrapper.JSONReader(c.dataset)
4745	if err != nil {
4746		return nil, err
4747	}
4748	reqHeaders.Set("Content-Type", "application/json")
4749	c.urlParams_.Set("alt", alt)
4750	c.urlParams_.Set("prettyPrint", "false")
4751	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/datasets")
4752	urls += "?" + c.urlParams_.Encode()
4753	req, err := http.NewRequest("POST", urls, body)
4754	if err != nil {
4755		return nil, err
4756	}
4757	req.Header = reqHeaders
4758	googleapi.Expand(req.URL, map[string]string{
4759		"parent": c.parent,
4760	})
4761	return gensupport.SendRequest(c.ctx_, c.s.client, req)
4762}
4763
4764// Do executes the "healthcare.projects.locations.datasets.create" call.
4765// Exactly one of *Operation or error will be non-nil. Any non-2xx
4766// status code is an error. Response headers are in either
4767// *Operation.ServerResponse.Header or (if a response was returned at
4768// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
4769// to check whether the returned error was because
4770// http.StatusNotModified was returned.
4771func (c *ProjectsLocationsDatasetsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
4772	gensupport.SetOptions(c.urlParams_, opts...)
4773	res, err := c.doRequest("json")
4774	if res != nil && res.StatusCode == http.StatusNotModified {
4775		if res.Body != nil {
4776			res.Body.Close()
4777		}
4778		return nil, &googleapi.Error{
4779			Code:   res.StatusCode,
4780			Header: res.Header,
4781		}
4782	}
4783	if err != nil {
4784		return nil, err
4785	}
4786	defer googleapi.CloseBody(res)
4787	if err := googleapi.CheckResponse(res); err != nil {
4788		return nil, err
4789	}
4790	ret := &Operation{
4791		ServerResponse: googleapi.ServerResponse{
4792			Header:         res.Header,
4793			HTTPStatusCode: res.StatusCode,
4794		},
4795	}
4796	target := &ret
4797	if err := gensupport.DecodeResponse(target, res); err != nil {
4798		return nil, err
4799	}
4800	return ret, nil
4801	// {
4802	//   "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.",
4803	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets",
4804	//   "httpMethod": "POST",
4805	//   "id": "healthcare.projects.locations.datasets.create",
4806	//   "parameterOrder": [
4807	//     "parent"
4808	//   ],
4809	//   "parameters": {
4810	//     "datasetId": {
4811	//       "description": "The ID of the dataset that is being created.\nThe string must match the following regex: `[\\p{L}\\p{N}_\\-\\.]{1,256}`.",
4812	//       "location": "query",
4813	//       "type": "string"
4814	//     },
4815	//     "parent": {
4816	//       "description": "The name of the project in which the dataset should be created (e.g.,\n`projects/{project_id}/locations/{location_id}`).",
4817	//       "location": "path",
4818	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
4819	//       "required": true,
4820	//       "type": "string"
4821	//     }
4822	//   },
4823	//   "path": "v1alpha2/{+parent}/datasets",
4824	//   "request": {
4825	//     "$ref": "Dataset"
4826	//   },
4827	//   "response": {
4828	//     "$ref": "Operation"
4829	//   },
4830	//   "scopes": [
4831	//     "https://www.googleapis.com/auth/cloud-platform"
4832	//   ]
4833	// }
4834
4835}
4836
4837// method id "healthcare.projects.locations.datasets.deidentify":
4838
4839type ProjectsLocationsDatasetsDeidentifyCall struct {
4840	s                        *Service
4841	sourceDataset            string
4842	deidentifydatasetrequest *DeidentifyDatasetRequest
4843	urlParams_               gensupport.URLParams
4844	ctx_                     context.Context
4845	header_                  http.Header
4846}
4847
4848// Deidentify: Creates a new dataset containing de-identified data from
4849// the source
4850// dataset. The metadata field type
4851// is OperationMetadata.
4852// If the request is successful, the
4853// response field type is
4854// DeidentifySummary.
4855// If errors occur,
4856// details field type is
4857// DeidentifyErrorDetails.
4858// Errors are also logged to Stackdriver
4859// (see [Viewing logs](/healthcare/docs/how-tos/stackdriver-logging)).
4860func (r *ProjectsLocationsDatasetsService) Deidentify(sourceDataset string, deidentifydatasetrequest *DeidentifyDatasetRequest) *ProjectsLocationsDatasetsDeidentifyCall {
4861	c := &ProjectsLocationsDatasetsDeidentifyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4862	c.sourceDataset = sourceDataset
4863	c.deidentifydatasetrequest = deidentifydatasetrequest
4864	return c
4865}
4866
4867// Fields allows partial responses to be retrieved. See
4868// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
4869// for more information.
4870func (c *ProjectsLocationsDatasetsDeidentifyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDeidentifyCall {
4871	c.urlParams_.Set("fields", googleapi.CombineFields(s))
4872	return c
4873}
4874
4875// Context sets the context to be used in this call's Do method. Any
4876// pending HTTP request will be aborted if the provided context is
4877// canceled.
4878func (c *ProjectsLocationsDatasetsDeidentifyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDeidentifyCall {
4879	c.ctx_ = ctx
4880	return c
4881}
4882
4883// Header returns an http.Header that can be modified by the caller to
4884// add HTTP headers to the request.
4885func (c *ProjectsLocationsDatasetsDeidentifyCall) Header() http.Header {
4886	if c.header_ == nil {
4887		c.header_ = make(http.Header)
4888	}
4889	return c.header_
4890}
4891
4892func (c *ProjectsLocationsDatasetsDeidentifyCall) doRequest(alt string) (*http.Response, error) {
4893	reqHeaders := make(http.Header)
4894	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
4895	for k, v := range c.header_ {
4896		reqHeaders[k] = v
4897	}
4898	reqHeaders.Set("User-Agent", c.s.userAgent())
4899	var body io.Reader = nil
4900	body, err := googleapi.WithoutDataWrapper.JSONReader(c.deidentifydatasetrequest)
4901	if err != nil {
4902		return nil, err
4903	}
4904	reqHeaders.Set("Content-Type", "application/json")
4905	c.urlParams_.Set("alt", alt)
4906	c.urlParams_.Set("prettyPrint", "false")
4907	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+sourceDataset}:deidentify")
4908	urls += "?" + c.urlParams_.Encode()
4909	req, err := http.NewRequest("POST", urls, body)
4910	if err != nil {
4911		return nil, err
4912	}
4913	req.Header = reqHeaders
4914	googleapi.Expand(req.URL, map[string]string{
4915		"sourceDataset": c.sourceDataset,
4916	})
4917	return gensupport.SendRequest(c.ctx_, c.s.client, req)
4918}
4919
4920// Do executes the "healthcare.projects.locations.datasets.deidentify" call.
4921// Exactly one of *Operation or error will be non-nil. Any non-2xx
4922// status code is an error. Response headers are in either
4923// *Operation.ServerResponse.Header or (if a response was returned at
4924// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
4925// to check whether the returned error was because
4926// http.StatusNotModified was returned.
4927func (c *ProjectsLocationsDatasetsDeidentifyCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
4928	gensupport.SetOptions(c.urlParams_, opts...)
4929	res, err := c.doRequest("json")
4930	if res != nil && res.StatusCode == http.StatusNotModified {
4931		if res.Body != nil {
4932			res.Body.Close()
4933		}
4934		return nil, &googleapi.Error{
4935			Code:   res.StatusCode,
4936			Header: res.Header,
4937		}
4938	}
4939	if err != nil {
4940		return nil, err
4941	}
4942	defer googleapi.CloseBody(res)
4943	if err := googleapi.CheckResponse(res); err != nil {
4944		return nil, err
4945	}
4946	ret := &Operation{
4947		ServerResponse: googleapi.ServerResponse{
4948			Header:         res.Header,
4949			HTTPStatusCode: res.StatusCode,
4950		},
4951	}
4952	target := &ret
4953	if err := gensupport.DecodeResponse(target, res); err != nil {
4954		return nil, err
4955	}
4956	return ret, nil
4957	// {
4958	//   "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)).",
4959	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:deidentify",
4960	//   "httpMethod": "POST",
4961	//   "id": "healthcare.projects.locations.datasets.deidentify",
4962	//   "parameterOrder": [
4963	//     "sourceDataset"
4964	//   ],
4965	//   "parameters": {
4966	//     "sourceDataset": {
4967	//       "description": "Source dataset resource name. (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`).",
4968	//       "location": "path",
4969	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
4970	//       "required": true,
4971	//       "type": "string"
4972	//     }
4973	//   },
4974	//   "path": "v1alpha2/{+sourceDataset}:deidentify",
4975	//   "request": {
4976	//     "$ref": "DeidentifyDatasetRequest"
4977	//   },
4978	//   "response": {
4979	//     "$ref": "Operation"
4980	//   },
4981	//   "scopes": [
4982	//     "https://www.googleapis.com/auth/cloud-platform"
4983	//   ]
4984	// }
4985
4986}
4987
4988// method id "healthcare.projects.locations.datasets.delete":
4989
4990type ProjectsLocationsDatasetsDeleteCall struct {
4991	s          *Service
4992	name       string
4993	urlParams_ gensupport.URLParams
4994	ctx_       context.Context
4995	header_    http.Header
4996}
4997
4998// Delete: Deletes the specified health dataset and all data contained
4999// in the dataset.
5000// Deleting a dataset does not affect the sources from which the dataset
5001// was
5002// imported (if any).
5003func (r *ProjectsLocationsDatasetsService) Delete(name string) *ProjectsLocationsDatasetsDeleteCall {
5004	c := &ProjectsLocationsDatasetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5005	c.name = name
5006	return c
5007}
5008
5009// Fields allows partial responses to be retrieved. See
5010// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
5011// for more information.
5012func (c *ProjectsLocationsDatasetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDeleteCall {
5013	c.urlParams_.Set("fields", googleapi.CombineFields(s))
5014	return c
5015}
5016
5017// Context sets the context to be used in this call's Do method. Any
5018// pending HTTP request will be aborted if the provided context is
5019// canceled.
5020func (c *ProjectsLocationsDatasetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDeleteCall {
5021	c.ctx_ = ctx
5022	return c
5023}
5024
5025// Header returns an http.Header that can be modified by the caller to
5026// add HTTP headers to the request.
5027func (c *ProjectsLocationsDatasetsDeleteCall) Header() http.Header {
5028	if c.header_ == nil {
5029		c.header_ = make(http.Header)
5030	}
5031	return c.header_
5032}
5033
5034func (c *ProjectsLocationsDatasetsDeleteCall) doRequest(alt string) (*http.Response, error) {
5035	reqHeaders := make(http.Header)
5036	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
5037	for k, v := range c.header_ {
5038		reqHeaders[k] = v
5039	}
5040	reqHeaders.Set("User-Agent", c.s.userAgent())
5041	var body io.Reader = nil
5042	c.urlParams_.Set("alt", alt)
5043	c.urlParams_.Set("prettyPrint", "false")
5044	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
5045	urls += "?" + c.urlParams_.Encode()
5046	req, err := http.NewRequest("DELETE", urls, body)
5047	if err != nil {
5048		return nil, err
5049	}
5050	req.Header = reqHeaders
5051	googleapi.Expand(req.URL, map[string]string{
5052		"name": c.name,
5053	})
5054	return gensupport.SendRequest(c.ctx_, c.s.client, req)
5055}
5056
5057// Do executes the "healthcare.projects.locations.datasets.delete" call.
5058// Exactly one of *Empty or error will be non-nil. Any non-2xx status
5059// code is an error. Response headers are in either
5060// *Empty.ServerResponse.Header or (if a response was returned at all)
5061// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
5062// check whether the returned error was because http.StatusNotModified
5063// was returned.
5064func (c *ProjectsLocationsDatasetsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
5065	gensupport.SetOptions(c.urlParams_, opts...)
5066	res, err := c.doRequest("json")
5067	if res != nil && res.StatusCode == http.StatusNotModified {
5068		if res.Body != nil {
5069			res.Body.Close()
5070		}
5071		return nil, &googleapi.Error{
5072			Code:   res.StatusCode,
5073			Header: res.Header,
5074		}
5075	}
5076	if err != nil {
5077		return nil, err
5078	}
5079	defer googleapi.CloseBody(res)
5080	if err := googleapi.CheckResponse(res); err != nil {
5081		return nil, err
5082	}
5083	ret := &Empty{
5084		ServerResponse: googleapi.ServerResponse{
5085			Header:         res.Header,
5086			HTTPStatusCode: res.StatusCode,
5087		},
5088	}
5089	target := &ret
5090	if err := gensupport.DecodeResponse(target, res); err != nil {
5091		return nil, err
5092	}
5093	return ret, nil
5094	// {
5095	//   "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).",
5096	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}",
5097	//   "httpMethod": "DELETE",
5098	//   "id": "healthcare.projects.locations.datasets.delete",
5099	//   "parameterOrder": [
5100	//     "name"
5101	//   ],
5102	//   "parameters": {
5103	//     "name": {
5104	//       "description": "The name of the dataset to delete (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`).",
5105	//       "location": "path",
5106	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
5107	//       "required": true,
5108	//       "type": "string"
5109	//     }
5110	//   },
5111	//   "path": "v1alpha2/{+name}",
5112	//   "response": {
5113	//     "$ref": "Empty"
5114	//   },
5115	//   "scopes": [
5116	//     "https://www.googleapis.com/auth/cloud-platform"
5117	//   ]
5118	// }
5119
5120}
5121
5122// method id "healthcare.projects.locations.datasets.get":
5123
5124type ProjectsLocationsDatasetsGetCall struct {
5125	s            *Service
5126	name         string
5127	urlParams_   gensupport.URLParams
5128	ifNoneMatch_ string
5129	ctx_         context.Context
5130	header_      http.Header
5131}
5132
5133// Get: Gets any metadata associated with a dataset.
5134func (r *ProjectsLocationsDatasetsService) Get(name string) *ProjectsLocationsDatasetsGetCall {
5135	c := &ProjectsLocationsDatasetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5136	c.name = name
5137	return c
5138}
5139
5140// Fields allows partial responses to be retrieved. See
5141// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
5142// for more information.
5143func (c *ProjectsLocationsDatasetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsGetCall {
5144	c.urlParams_.Set("fields", googleapi.CombineFields(s))
5145	return c
5146}
5147
5148// IfNoneMatch sets the optional parameter which makes the operation
5149// fail if the object's ETag matches the given value. This is useful for
5150// getting updates only after the object has changed since the last
5151// request. Use googleapi.IsNotModified to check whether the response
5152// error from Do is the result of In-None-Match.
5153func (c *ProjectsLocationsDatasetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsGetCall {
5154	c.ifNoneMatch_ = entityTag
5155	return c
5156}
5157
5158// Context sets the context to be used in this call's Do method. Any
5159// pending HTTP request will be aborted if the provided context is
5160// canceled.
5161func (c *ProjectsLocationsDatasetsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsGetCall {
5162	c.ctx_ = ctx
5163	return c
5164}
5165
5166// Header returns an http.Header that can be modified by the caller to
5167// add HTTP headers to the request.
5168func (c *ProjectsLocationsDatasetsGetCall) Header() http.Header {
5169	if c.header_ == nil {
5170		c.header_ = make(http.Header)
5171	}
5172	return c.header_
5173}
5174
5175func (c *ProjectsLocationsDatasetsGetCall) doRequest(alt string) (*http.Response, error) {
5176	reqHeaders := make(http.Header)
5177	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
5178	for k, v := range c.header_ {
5179		reqHeaders[k] = v
5180	}
5181	reqHeaders.Set("User-Agent", c.s.userAgent())
5182	if c.ifNoneMatch_ != "" {
5183		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5184	}
5185	var body io.Reader = nil
5186	c.urlParams_.Set("alt", alt)
5187	c.urlParams_.Set("prettyPrint", "false")
5188	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
5189	urls += "?" + c.urlParams_.Encode()
5190	req, err := http.NewRequest("GET", urls, body)
5191	if err != nil {
5192		return nil, err
5193	}
5194	req.Header = reqHeaders
5195	googleapi.Expand(req.URL, map[string]string{
5196		"name": c.name,
5197	})
5198	return gensupport.SendRequest(c.ctx_, c.s.client, req)
5199}
5200
5201// Do executes the "healthcare.projects.locations.datasets.get" call.
5202// Exactly one of *Dataset or error will be non-nil. Any non-2xx status
5203// code is an error. Response headers are in either
5204// *Dataset.ServerResponse.Header or (if a response was returned at all)
5205// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
5206// check whether the returned error was because http.StatusNotModified
5207// was returned.
5208func (c *ProjectsLocationsDatasetsGetCall) Do(opts ...googleapi.CallOption) (*Dataset, error) {
5209	gensupport.SetOptions(c.urlParams_, opts...)
5210	res, err := c.doRequest("json")
5211	if res != nil && res.StatusCode == http.StatusNotModified {
5212		if res.Body != nil {
5213			res.Body.Close()
5214		}
5215		return nil, &googleapi.Error{
5216			Code:   res.StatusCode,
5217			Header: res.Header,
5218		}
5219	}
5220	if err != nil {
5221		return nil, err
5222	}
5223	defer googleapi.CloseBody(res)
5224	if err := googleapi.CheckResponse(res); err != nil {
5225		return nil, err
5226	}
5227	ret := &Dataset{
5228		ServerResponse: googleapi.ServerResponse{
5229			Header:         res.Header,
5230			HTTPStatusCode: res.StatusCode,
5231		},
5232	}
5233	target := &ret
5234	if err := gensupport.DecodeResponse(target, res); err != nil {
5235		return nil, err
5236	}
5237	return ret, nil
5238	// {
5239	//   "description": "Gets any metadata associated with a dataset.",
5240	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}",
5241	//   "httpMethod": "GET",
5242	//   "id": "healthcare.projects.locations.datasets.get",
5243	//   "parameterOrder": [
5244	//     "name"
5245	//   ],
5246	//   "parameters": {
5247	//     "name": {
5248	//       "description": "The name of the dataset to read (e.g.,\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`).",
5249	//       "location": "path",
5250	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
5251	//       "required": true,
5252	//       "type": "string"
5253	//     }
5254	//   },
5255	//   "path": "v1alpha2/{+name}",
5256	//   "response": {
5257	//     "$ref": "Dataset"
5258	//   },
5259	//   "scopes": [
5260	//     "https://www.googleapis.com/auth/cloud-platform"
5261	//   ]
5262	// }
5263
5264}
5265
5266// method id "healthcare.projects.locations.datasets.getIamPolicy":
5267
5268type ProjectsLocationsDatasetsGetIamPolicyCall struct {
5269	s            *Service
5270	resource     string
5271	urlParams_   gensupport.URLParams
5272	ifNoneMatch_ string
5273	ctx_         context.Context
5274	header_      http.Header
5275}
5276
5277// GetIamPolicy: Gets the access control policy for a resource.
5278// Returns an empty policy if the resource exists and does not have a
5279// policy
5280// set.
5281func (r *ProjectsLocationsDatasetsService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsGetIamPolicyCall {
5282	c := &ProjectsLocationsDatasetsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5283	c.resource = resource
5284	return c
5285}
5286
5287// OptionsRequestedPolicyVersion sets the optional parameter
5288// "options.requestedPolicyVersion": The policy format version to be
5289// returned.
5290// Acceptable values are 0, 1, and 3.
5291// If the value is 0, or the field is omitted, policy format version 1
5292// will be
5293// returned.
5294func (c *ProjectsLocationsDatasetsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsGetIamPolicyCall {
5295	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
5296	return c
5297}
5298
5299// Fields allows partial responses to be retrieved. See
5300// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
5301// for more information.
5302func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsGetIamPolicyCall {
5303	c.urlParams_.Set("fields", googleapi.CombineFields(s))
5304	return c
5305}
5306
5307// IfNoneMatch sets the optional parameter which makes the operation
5308// fail if the object's ETag matches the given value. This is useful for
5309// getting updates only after the object has changed since the last
5310// request. Use googleapi.IsNotModified to check whether the response
5311// error from Do is the result of In-None-Match.
5312func (c *ProjectsLocationsDatasetsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsGetIamPolicyCall {
5313	c.ifNoneMatch_ = entityTag
5314	return c
5315}
5316
5317// Context sets the context to be used in this call's Do method. Any
5318// pending HTTP request will be aborted if the provided context is
5319// canceled.
5320func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsGetIamPolicyCall {
5321	c.ctx_ = ctx
5322	return c
5323}
5324
5325// Header returns an http.Header that can be modified by the caller to
5326// add HTTP headers to the request.
5327func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Header() http.Header {
5328	if c.header_ == nil {
5329		c.header_ = make(http.Header)
5330	}
5331	return c.header_
5332}
5333
5334func (c *ProjectsLocationsDatasetsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
5335	reqHeaders := make(http.Header)
5336	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
5337	for k, v := range c.header_ {
5338		reqHeaders[k] = v
5339	}
5340	reqHeaders.Set("User-Agent", c.s.userAgent())
5341	if c.ifNoneMatch_ != "" {
5342		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5343	}
5344	var body io.Reader = nil
5345	c.urlParams_.Set("alt", alt)
5346	c.urlParams_.Set("prettyPrint", "false")
5347	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:getIamPolicy")
5348	urls += "?" + c.urlParams_.Encode()
5349	req, err := http.NewRequest("GET", urls, body)
5350	if err != nil {
5351		return nil, err
5352	}
5353	req.Header = reqHeaders
5354	googleapi.Expand(req.URL, map[string]string{
5355		"resource": c.resource,
5356	})
5357	return gensupport.SendRequest(c.ctx_, c.s.client, req)
5358}
5359
5360// Do executes the "healthcare.projects.locations.datasets.getIamPolicy" call.
5361// Exactly one of *Policy or error will be non-nil. Any non-2xx status
5362// code is an error. Response headers are in either
5363// *Policy.ServerResponse.Header or (if a response was returned at all)
5364// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
5365// check whether the returned error was because http.StatusNotModified
5366// was returned.
5367func (c *ProjectsLocationsDatasetsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
5368	gensupport.SetOptions(c.urlParams_, opts...)
5369	res, err := c.doRequest("json")
5370	if res != nil && res.StatusCode == http.StatusNotModified {
5371		if res.Body != nil {
5372			res.Body.Close()
5373		}
5374		return nil, &googleapi.Error{
5375			Code:   res.StatusCode,
5376			Header: res.Header,
5377		}
5378	}
5379	if err != nil {
5380		return nil, err
5381	}
5382	defer googleapi.CloseBody(res)
5383	if err := googleapi.CheckResponse(res); err != nil {
5384		return nil, err
5385	}
5386	ret := &Policy{
5387		ServerResponse: googleapi.ServerResponse{
5388			Header:         res.Header,
5389			HTTPStatusCode: res.StatusCode,
5390		},
5391	}
5392	target := &ret
5393	if err := gensupport.DecodeResponse(target, res); err != nil {
5394		return nil, err
5395	}
5396	return ret, nil
5397	// {
5398	//   "description": "Gets the access control policy for a resource.\nReturns an empty policy if the resource exists and does not have a policy\nset.",
5399	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:getIamPolicy",
5400	//   "httpMethod": "GET",
5401	//   "id": "healthcare.projects.locations.datasets.getIamPolicy",
5402	//   "parameterOrder": [
5403	//     "resource"
5404	//   ],
5405	//   "parameters": {
5406	//     "options.requestedPolicyVersion": {
5407	//       "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.",
5408	//       "format": "int32",
5409	//       "location": "query",
5410	//       "type": "integer"
5411	//     },
5412	//     "resource": {
5413	//       "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.",
5414	//       "location": "path",
5415	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
5416	//       "required": true,
5417	//       "type": "string"
5418	//     }
5419	//   },
5420	//   "path": "v1alpha2/{+resource}:getIamPolicy",
5421	//   "response": {
5422	//     "$ref": "Policy"
5423	//   },
5424	//   "scopes": [
5425	//     "https://www.googleapis.com/auth/cloud-platform"
5426	//   ]
5427	// }
5428
5429}
5430
5431// method id "healthcare.projects.locations.datasets.list":
5432
5433type ProjectsLocationsDatasetsListCall struct {
5434	s            *Service
5435	parent       string
5436	urlParams_   gensupport.URLParams
5437	ifNoneMatch_ string
5438	ctx_         context.Context
5439	header_      http.Header
5440}
5441
5442// List: Lists the health datasets in the current project.
5443func (r *ProjectsLocationsDatasetsService) List(parent string) *ProjectsLocationsDatasetsListCall {
5444	c := &ProjectsLocationsDatasetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5445	c.parent = parent
5446	return c
5447}
5448
5449// PageSize sets the optional parameter "pageSize": The maximum number
5450// of items to return. Capped to 100 if not specified.
5451// May not be larger than 1000.
5452func (c *ProjectsLocationsDatasetsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsListCall {
5453	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
5454	return c
5455}
5456
5457// PageToken sets the optional parameter "pageToken": The
5458// next_page_token value returned from a previous List request, if any.
5459func (c *ProjectsLocationsDatasetsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsListCall {
5460	c.urlParams_.Set("pageToken", pageToken)
5461	return c
5462}
5463
5464// Fields allows partial responses to be retrieved. See
5465// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
5466// for more information.
5467func (c *ProjectsLocationsDatasetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsListCall {
5468	c.urlParams_.Set("fields", googleapi.CombineFields(s))
5469	return c
5470}
5471
5472// IfNoneMatch sets the optional parameter which makes the operation
5473// fail if the object's ETag matches the given value. This is useful for
5474// getting updates only after the object has changed since the last
5475// request. Use googleapi.IsNotModified to check whether the response
5476// error from Do is the result of In-None-Match.
5477func (c *ProjectsLocationsDatasetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsListCall {
5478	c.ifNoneMatch_ = entityTag
5479	return c
5480}
5481
5482// Context sets the context to be used in this call's Do method. Any
5483// pending HTTP request will be aborted if the provided context is
5484// canceled.
5485func (c *ProjectsLocationsDatasetsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsListCall {
5486	c.ctx_ = ctx
5487	return c
5488}
5489
5490// Header returns an http.Header that can be modified by the caller to
5491// add HTTP headers to the request.
5492func (c *ProjectsLocationsDatasetsListCall) Header() http.Header {
5493	if c.header_ == nil {
5494		c.header_ = make(http.Header)
5495	}
5496	return c.header_
5497}
5498
5499func (c *ProjectsLocationsDatasetsListCall) doRequest(alt string) (*http.Response, error) {
5500	reqHeaders := make(http.Header)
5501	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
5502	for k, v := range c.header_ {
5503		reqHeaders[k] = v
5504	}
5505	reqHeaders.Set("User-Agent", c.s.userAgent())
5506	if c.ifNoneMatch_ != "" {
5507		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5508	}
5509	var body io.Reader = nil
5510	c.urlParams_.Set("alt", alt)
5511	c.urlParams_.Set("prettyPrint", "false")
5512	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/datasets")
5513	urls += "?" + c.urlParams_.Encode()
5514	req, err := http.NewRequest("GET", urls, body)
5515	if err != nil {
5516		return nil, err
5517	}
5518	req.Header = reqHeaders
5519	googleapi.Expand(req.URL, map[string]string{
5520		"parent": c.parent,
5521	})
5522	return gensupport.SendRequest(c.ctx_, c.s.client, req)
5523}
5524
5525// Do executes the "healthcare.projects.locations.datasets.list" call.
5526// Exactly one of *ListDatasetsResponse or error will be non-nil. Any
5527// non-2xx status code is an error. Response headers are in either
5528// *ListDatasetsResponse.ServerResponse.Header or (if a response was
5529// returned at all) in error.(*googleapi.Error).Header. Use
5530// googleapi.IsNotModified to check whether the returned error was
5531// because http.StatusNotModified was returned.
5532func (c *ProjectsLocationsDatasetsListCall) Do(opts ...googleapi.CallOption) (*ListDatasetsResponse, error) {
5533	gensupport.SetOptions(c.urlParams_, opts...)
5534	res, err := c.doRequest("json")
5535	if res != nil && res.StatusCode == http.StatusNotModified {
5536		if res.Body != nil {
5537			res.Body.Close()
5538		}
5539		return nil, &googleapi.Error{
5540			Code:   res.StatusCode,
5541			Header: res.Header,
5542		}
5543	}
5544	if err != nil {
5545		return nil, err
5546	}
5547	defer googleapi.CloseBody(res)
5548	if err := googleapi.CheckResponse(res); err != nil {
5549		return nil, err
5550	}
5551	ret := &ListDatasetsResponse{
5552		ServerResponse: googleapi.ServerResponse{
5553			Header:         res.Header,
5554			HTTPStatusCode: res.StatusCode,
5555		},
5556	}
5557	target := &ret
5558	if err := gensupport.DecodeResponse(target, res); err != nil {
5559		return nil, err
5560	}
5561	return ret, nil
5562	// {
5563	//   "description": "Lists the health datasets in the current project.",
5564	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets",
5565	//   "httpMethod": "GET",
5566	//   "id": "healthcare.projects.locations.datasets.list",
5567	//   "parameterOrder": [
5568	//     "parent"
5569	//   ],
5570	//   "parameters": {
5571	//     "pageSize": {
5572	//       "description": "The maximum number of items to return. Capped to 100 if not specified.\nMay not be larger than 1000.",
5573	//       "format": "int32",
5574	//       "location": "query",
5575	//       "type": "integer"
5576	//     },
5577	//     "pageToken": {
5578	//       "description": "The next_page_token value returned from a previous List request, if any.",
5579	//       "location": "query",
5580	//       "type": "string"
5581	//     },
5582	//     "parent": {
5583	//       "description": "The name of the project whose datasets should be listed (e.g.,\n`projects/{project_id}/locations/{location_id}`).",
5584	//       "location": "path",
5585	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
5586	//       "required": true,
5587	//       "type": "string"
5588	//     }
5589	//   },
5590	//   "path": "v1alpha2/{+parent}/datasets",
5591	//   "response": {
5592	//     "$ref": "ListDatasetsResponse"
5593	//   },
5594	//   "scopes": [
5595	//     "https://www.googleapis.com/auth/cloud-platform"
5596	//   ]
5597	// }
5598
5599}
5600
5601// Pages invokes f for each page of results.
5602// A non-nil error returned from f will halt the iteration.
5603// The provided context supersedes any context provided to the Context method.
5604func (c *ProjectsLocationsDatasetsListCall) Pages(ctx context.Context, f func(*ListDatasetsResponse) error) error {
5605	c.ctx_ = ctx
5606	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
5607	for {
5608		x, err := c.Do()
5609		if err != nil {
5610			return err
5611		}
5612		if err := f(x); err != nil {
5613			return err
5614		}
5615		if x.NextPageToken == "" {
5616			return nil
5617		}
5618		c.PageToken(x.NextPageToken)
5619	}
5620}
5621
5622// method id "healthcare.projects.locations.datasets.patch":
5623
5624type ProjectsLocationsDatasetsPatchCall struct {
5625	s          *Service
5626	name       string
5627	dataset    *Dataset
5628	urlParams_ gensupport.URLParams
5629	ctx_       context.Context
5630	header_    http.Header
5631}
5632
5633// Patch: Updates dataset metadata.
5634func (r *ProjectsLocationsDatasetsService) Patch(name string, dataset *Dataset) *ProjectsLocationsDatasetsPatchCall {
5635	c := &ProjectsLocationsDatasetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5636	c.name = name
5637	c.dataset = dataset
5638	return c
5639}
5640
5641// UpdateMask sets the optional parameter "updateMask": The update mask
5642// applies to the resource. For the `FieldMask`
5643// definition,
5644// see
5645// https://developers.google.com/protocol-buffers/docs/re
5646// ference/google.protobuf#fieldmask
5647func (c *ProjectsLocationsDatasetsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsPatchCall {
5648	c.urlParams_.Set("updateMask", updateMask)
5649	return c
5650}
5651
5652// Fields allows partial responses to be retrieved. See
5653// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
5654// for more information.
5655func (c *ProjectsLocationsDatasetsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsPatchCall {
5656	c.urlParams_.Set("fields", googleapi.CombineFields(s))
5657	return c
5658}
5659
5660// Context sets the context to be used in this call's Do method. Any
5661// pending HTTP request will be aborted if the provided context is
5662// canceled.
5663func (c *ProjectsLocationsDatasetsPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsPatchCall {
5664	c.ctx_ = ctx
5665	return c
5666}
5667
5668// Header returns an http.Header that can be modified by the caller to
5669// add HTTP headers to the request.
5670func (c *ProjectsLocationsDatasetsPatchCall) Header() http.Header {
5671	if c.header_ == nil {
5672		c.header_ = make(http.Header)
5673	}
5674	return c.header_
5675}
5676
5677func (c *ProjectsLocationsDatasetsPatchCall) doRequest(alt string) (*http.Response, error) {
5678	reqHeaders := make(http.Header)
5679	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
5680	for k, v := range c.header_ {
5681		reqHeaders[k] = v
5682	}
5683	reqHeaders.Set("User-Agent", c.s.userAgent())
5684	var body io.Reader = nil
5685	body, err := googleapi.WithoutDataWrapper.JSONReader(c.dataset)
5686	if err != nil {
5687		return nil, err
5688	}
5689	reqHeaders.Set("Content-Type", "application/json")
5690	c.urlParams_.Set("alt", alt)
5691	c.urlParams_.Set("prettyPrint", "false")
5692	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
5693	urls += "?" + c.urlParams_.Encode()
5694	req, err := http.NewRequest("PATCH", urls, body)
5695	if err != nil {
5696		return nil, err
5697	}
5698	req.Header = reqHeaders
5699	googleapi.Expand(req.URL, map[string]string{
5700		"name": c.name,
5701	})
5702	return gensupport.SendRequest(c.ctx_, c.s.client, req)
5703}
5704
5705// Do executes the "healthcare.projects.locations.datasets.patch" call.
5706// Exactly one of *Dataset or error will be non-nil. Any non-2xx status
5707// code is an error. Response headers are in either
5708// *Dataset.ServerResponse.Header or (if a response was returned at all)
5709// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
5710// check whether the returned error was because http.StatusNotModified
5711// was returned.
5712func (c *ProjectsLocationsDatasetsPatchCall) Do(opts ...googleapi.CallOption) (*Dataset, error) {
5713	gensupport.SetOptions(c.urlParams_, opts...)
5714	res, err := c.doRequest("json")
5715	if res != nil && res.StatusCode == http.StatusNotModified {
5716		if res.Body != nil {
5717			res.Body.Close()
5718		}
5719		return nil, &googleapi.Error{
5720			Code:   res.StatusCode,
5721			Header: res.Header,
5722		}
5723	}
5724	if err != nil {
5725		return nil, err
5726	}
5727	defer googleapi.CloseBody(res)
5728	if err := googleapi.CheckResponse(res); err != nil {
5729		return nil, err
5730	}
5731	ret := &Dataset{
5732		ServerResponse: googleapi.ServerResponse{
5733			Header:         res.Header,
5734			HTTPStatusCode: res.StatusCode,
5735		},
5736	}
5737	target := &ret
5738	if err := gensupport.DecodeResponse(target, res); err != nil {
5739		return nil, err
5740	}
5741	return ret, nil
5742	// {
5743	//   "description": "Updates dataset metadata.",
5744	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}",
5745	//   "httpMethod": "PATCH",
5746	//   "id": "healthcare.projects.locations.datasets.patch",
5747	//   "parameterOrder": [
5748	//     "name"
5749	//   ],
5750	//   "parameters": {
5751	//     "name": {
5752	//       "description": "Output only. Resource name of the dataset, of the form\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`.",
5753	//       "location": "path",
5754	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
5755	//       "required": true,
5756	//       "type": "string"
5757	//     },
5758	//     "updateMask": {
5759	//       "description": "The update mask applies to the resource. For the `FieldMask` definition,\nsee\nhttps://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask",
5760	//       "format": "google-fieldmask",
5761	//       "location": "query",
5762	//       "type": "string"
5763	//     }
5764	//   },
5765	//   "path": "v1alpha2/{+name}",
5766	//   "request": {
5767	//     "$ref": "Dataset"
5768	//   },
5769	//   "response": {
5770	//     "$ref": "Dataset"
5771	//   },
5772	//   "scopes": [
5773	//     "https://www.googleapis.com/auth/cloud-platform"
5774	//   ]
5775	// }
5776
5777}
5778
5779// method id "healthcare.projects.locations.datasets.setIamPolicy":
5780
5781type ProjectsLocationsDatasetsSetIamPolicyCall struct {
5782	s                   *Service
5783	resource            string
5784	setiampolicyrequest *SetIamPolicyRequest
5785	urlParams_          gensupport.URLParams
5786	ctx_                context.Context
5787	header_             http.Header
5788}
5789
5790// SetIamPolicy: Sets the access control policy on the specified
5791// resource. Replaces any
5792// existing policy.
5793func (r *ProjectsLocationsDatasetsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsSetIamPolicyCall {
5794	c := &ProjectsLocationsDatasetsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5795	c.resource = resource
5796	c.setiampolicyrequest = setiampolicyrequest
5797	return c
5798}
5799
5800// Fields allows partial responses to be retrieved. See
5801// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
5802// for more information.
5803func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSetIamPolicyCall {
5804	c.urlParams_.Set("fields", googleapi.CombineFields(s))
5805	return c
5806}
5807
5808// Context sets the context to be used in this call's Do method. Any
5809// pending HTTP request will be aborted if the provided context is
5810// canceled.
5811func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSetIamPolicyCall {
5812	c.ctx_ = ctx
5813	return c
5814}
5815
5816// Header returns an http.Header that can be modified by the caller to
5817// add HTTP headers to the request.
5818func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Header() http.Header {
5819	if c.header_ == nil {
5820		c.header_ = make(http.Header)
5821	}
5822	return c.header_
5823}
5824
5825func (c *ProjectsLocationsDatasetsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
5826	reqHeaders := make(http.Header)
5827	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
5828	for k, v := range c.header_ {
5829		reqHeaders[k] = v
5830	}
5831	reqHeaders.Set("User-Agent", c.s.userAgent())
5832	var body io.Reader = nil
5833	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
5834	if err != nil {
5835		return nil, err
5836	}
5837	reqHeaders.Set("Content-Type", "application/json")
5838	c.urlParams_.Set("alt", alt)
5839	c.urlParams_.Set("prettyPrint", "false")
5840	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:setIamPolicy")
5841	urls += "?" + c.urlParams_.Encode()
5842	req, err := http.NewRequest("POST", urls, body)
5843	if err != nil {
5844		return nil, err
5845	}
5846	req.Header = reqHeaders
5847	googleapi.Expand(req.URL, map[string]string{
5848		"resource": c.resource,
5849	})
5850	return gensupport.SendRequest(c.ctx_, c.s.client, req)
5851}
5852
5853// Do executes the "healthcare.projects.locations.datasets.setIamPolicy" call.
5854// Exactly one of *Policy or error will be non-nil. Any non-2xx status
5855// code is an error. Response headers are in either
5856// *Policy.ServerResponse.Header or (if a response was returned at all)
5857// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
5858// check whether the returned error was because http.StatusNotModified
5859// was returned.
5860func (c *ProjectsLocationsDatasetsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
5861	gensupport.SetOptions(c.urlParams_, opts...)
5862	res, err := c.doRequest("json")
5863	if res != nil && res.StatusCode == http.StatusNotModified {
5864		if res.Body != nil {
5865			res.Body.Close()
5866		}
5867		return nil, &googleapi.Error{
5868			Code:   res.StatusCode,
5869			Header: res.Header,
5870		}
5871	}
5872	if err != nil {
5873		return nil, err
5874	}
5875	defer googleapi.CloseBody(res)
5876	if err := googleapi.CheckResponse(res); err != nil {
5877		return nil, err
5878	}
5879	ret := &Policy{
5880		ServerResponse: googleapi.ServerResponse{
5881			Header:         res.Header,
5882			HTTPStatusCode: res.StatusCode,
5883		},
5884	}
5885	target := &ret
5886	if err := gensupport.DecodeResponse(target, res); err != nil {
5887		return nil, err
5888	}
5889	return ret, nil
5890	// {
5891	//   "description": "Sets the access control policy on the specified resource. Replaces any\nexisting policy.",
5892	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:setIamPolicy",
5893	//   "httpMethod": "POST",
5894	//   "id": "healthcare.projects.locations.datasets.setIamPolicy",
5895	//   "parameterOrder": [
5896	//     "resource"
5897	//   ],
5898	//   "parameters": {
5899	//     "resource": {
5900	//       "description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.",
5901	//       "location": "path",
5902	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
5903	//       "required": true,
5904	//       "type": "string"
5905	//     }
5906	//   },
5907	//   "path": "v1alpha2/{+resource}:setIamPolicy",
5908	//   "request": {
5909	//     "$ref": "SetIamPolicyRequest"
5910	//   },
5911	//   "response": {
5912	//     "$ref": "Policy"
5913	//   },
5914	//   "scopes": [
5915	//     "https://www.googleapis.com/auth/cloud-platform"
5916	//   ]
5917	// }
5918
5919}
5920
5921// method id "healthcare.projects.locations.datasets.testIamPermissions":
5922
5923type ProjectsLocationsDatasetsTestIamPermissionsCall struct {
5924	s                         *Service
5925	resource                  string
5926	testiampermissionsrequest *TestIamPermissionsRequest
5927	urlParams_                gensupport.URLParams
5928	ctx_                      context.Context
5929	header_                   http.Header
5930}
5931
5932// TestIamPermissions: Returns permissions that a caller has on the
5933// specified resource.
5934// If the resource does not exist, this will return an empty set
5935// of
5936// permissions, not a NOT_FOUND error.
5937//
5938// Note: This operation is designed to be used for building
5939// permission-aware
5940// UIs and command-line tools, not for authorization checking. This
5941// operation
5942// may "fail open" without warning.
5943func (r *ProjectsLocationsDatasetsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsTestIamPermissionsCall {
5944	c := &ProjectsLocationsDatasetsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5945	c.resource = resource
5946	c.testiampermissionsrequest = testiampermissionsrequest
5947	return c
5948}
5949
5950// Fields allows partial responses to be retrieved. See
5951// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
5952// for more information.
5953func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsTestIamPermissionsCall {
5954	c.urlParams_.Set("fields", googleapi.CombineFields(s))
5955	return c
5956}
5957
5958// Context sets the context to be used in this call's Do method. Any
5959// pending HTTP request will be aborted if the provided context is
5960// canceled.
5961func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsTestIamPermissionsCall {
5962	c.ctx_ = ctx
5963	return c
5964}
5965
5966// Header returns an http.Header that can be modified by the caller to
5967// add HTTP headers to the request.
5968func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Header() http.Header {
5969	if c.header_ == nil {
5970		c.header_ = make(http.Header)
5971	}
5972	return c.header_
5973}
5974
5975func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
5976	reqHeaders := make(http.Header)
5977	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
5978	for k, v := range c.header_ {
5979		reqHeaders[k] = v
5980	}
5981	reqHeaders.Set("User-Agent", c.s.userAgent())
5982	var body io.Reader = nil
5983	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
5984	if err != nil {
5985		return nil, err
5986	}
5987	reqHeaders.Set("Content-Type", "application/json")
5988	c.urlParams_.Set("alt", alt)
5989	c.urlParams_.Set("prettyPrint", "false")
5990	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:testIamPermissions")
5991	urls += "?" + c.urlParams_.Encode()
5992	req, err := http.NewRequest("POST", urls, body)
5993	if err != nil {
5994		return nil, err
5995	}
5996	req.Header = reqHeaders
5997	googleapi.Expand(req.URL, map[string]string{
5998		"resource": c.resource,
5999	})
6000	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6001}
6002
6003// Do executes the "healthcare.projects.locations.datasets.testIamPermissions" call.
6004// Exactly one of *TestIamPermissionsResponse or error will be non-nil.
6005// Any non-2xx status code is an error. Response headers are in either
6006// *TestIamPermissionsResponse.ServerResponse.Header or (if a response
6007// was returned at all) in error.(*googleapi.Error).Header. Use
6008// googleapi.IsNotModified to check whether the returned error was
6009// because http.StatusNotModified was returned.
6010func (c *ProjectsLocationsDatasetsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
6011	gensupport.SetOptions(c.urlParams_, opts...)
6012	res, err := c.doRequest("json")
6013	if res != nil && res.StatusCode == http.StatusNotModified {
6014		if res.Body != nil {
6015			res.Body.Close()
6016		}
6017		return nil, &googleapi.Error{
6018			Code:   res.StatusCode,
6019			Header: res.Header,
6020		}
6021	}
6022	if err != nil {
6023		return nil, err
6024	}
6025	defer googleapi.CloseBody(res)
6026	if err := googleapi.CheckResponse(res); err != nil {
6027		return nil, err
6028	}
6029	ret := &TestIamPermissionsResponse{
6030		ServerResponse: googleapi.ServerResponse{
6031			Header:         res.Header,
6032			HTTPStatusCode: res.StatusCode,
6033		},
6034	}
6035	target := &ret
6036	if err := gensupport.DecodeResponse(target, res); err != nil {
6037		return nil, err
6038	}
6039	return ret, nil
6040	// {
6041	//   "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.",
6042	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:testIamPermissions",
6043	//   "httpMethod": "POST",
6044	//   "id": "healthcare.projects.locations.datasets.testIamPermissions",
6045	//   "parameterOrder": [
6046	//     "resource"
6047	//   ],
6048	//   "parameters": {
6049	//     "resource": {
6050	//       "description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.",
6051	//       "location": "path",
6052	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
6053	//       "required": true,
6054	//       "type": "string"
6055	//     }
6056	//   },
6057	//   "path": "v1alpha2/{+resource}:testIamPermissions",
6058	//   "request": {
6059	//     "$ref": "TestIamPermissionsRequest"
6060	//   },
6061	//   "response": {
6062	//     "$ref": "TestIamPermissionsResponse"
6063	//   },
6064	//   "scopes": [
6065	//     "https://www.googleapis.com/auth/cloud-platform"
6066	//   ]
6067	// }
6068
6069}
6070
6071// method id "healthcare.projects.locations.datasets.annotationStores.create":
6072
6073type ProjectsLocationsDatasetsAnnotationStoresCreateCall struct {
6074	s               *Service
6075	parent          string
6076	annotationstore *AnnotationStore
6077	urlParams_      gensupport.URLParams
6078	ctx_            context.Context
6079	header_         http.Header
6080}
6081
6082// Create: Creates a new Annotation store within the parent dataset.
6083func (r *ProjectsLocationsDatasetsAnnotationStoresService) Create(parent string, annotationstore *AnnotationStore) *ProjectsLocationsDatasetsAnnotationStoresCreateCall {
6084	c := &ProjectsLocationsDatasetsAnnotationStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6085	c.parent = parent
6086	c.annotationstore = annotationstore
6087	return c
6088}
6089
6090// AnnotationStoreId sets the optional parameter "annotationStoreId":
6091// The ID of the Annotation store that is being created.
6092// The string must match the following regex:
6093// `[\p{L}\p{N}_\-\.]{1,256}`.
6094func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) AnnotationStoreId(annotationStoreId string) *ProjectsLocationsDatasetsAnnotationStoresCreateCall {
6095	c.urlParams_.Set("annotationStoreId", annotationStoreId)
6096	return c
6097}
6098
6099// Fields allows partial responses to be retrieved. See
6100// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6101// for more information.
6102func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresCreateCall {
6103	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6104	return c
6105}
6106
6107// Context sets the context to be used in this call's Do method. Any
6108// pending HTTP request will be aborted if the provided context is
6109// canceled.
6110func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresCreateCall {
6111	c.ctx_ = ctx
6112	return c
6113}
6114
6115// Header returns an http.Header that can be modified by the caller to
6116// add HTTP headers to the request.
6117func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) Header() http.Header {
6118	if c.header_ == nil {
6119		c.header_ = make(http.Header)
6120	}
6121	return c.header_
6122}
6123
6124func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) doRequest(alt string) (*http.Response, error) {
6125	reqHeaders := make(http.Header)
6126	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
6127	for k, v := range c.header_ {
6128		reqHeaders[k] = v
6129	}
6130	reqHeaders.Set("User-Agent", c.s.userAgent())
6131	var body io.Reader = nil
6132	body, err := googleapi.WithoutDataWrapper.JSONReader(c.annotationstore)
6133	if err != nil {
6134		return nil, err
6135	}
6136	reqHeaders.Set("Content-Type", "application/json")
6137	c.urlParams_.Set("alt", alt)
6138	c.urlParams_.Set("prettyPrint", "false")
6139	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/annotationStores")
6140	urls += "?" + c.urlParams_.Encode()
6141	req, err := http.NewRequest("POST", urls, body)
6142	if err != nil {
6143		return nil, err
6144	}
6145	req.Header = reqHeaders
6146	googleapi.Expand(req.URL, map[string]string{
6147		"parent": c.parent,
6148	})
6149	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6150}
6151
6152// Do executes the "healthcare.projects.locations.datasets.annotationStores.create" call.
6153// Exactly one of *AnnotationStore or error will be non-nil. Any non-2xx
6154// status code is an error. Response headers are in either
6155// *AnnotationStore.ServerResponse.Header or (if a response was returned
6156// at all) in error.(*googleapi.Error).Header. Use
6157// googleapi.IsNotModified to check whether the returned error was
6158// because http.StatusNotModified was returned.
6159func (c *ProjectsLocationsDatasetsAnnotationStoresCreateCall) Do(opts ...googleapi.CallOption) (*AnnotationStore, error) {
6160	gensupport.SetOptions(c.urlParams_, opts...)
6161	res, err := c.doRequest("json")
6162	if res != nil && res.StatusCode == http.StatusNotModified {
6163		if res.Body != nil {
6164			res.Body.Close()
6165		}
6166		return nil, &googleapi.Error{
6167			Code:   res.StatusCode,
6168			Header: res.Header,
6169		}
6170	}
6171	if err != nil {
6172		return nil, err
6173	}
6174	defer googleapi.CloseBody(res)
6175	if err := googleapi.CheckResponse(res); err != nil {
6176		return nil, err
6177	}
6178	ret := &AnnotationStore{
6179		ServerResponse: googleapi.ServerResponse{
6180			Header:         res.Header,
6181			HTTPStatusCode: res.StatusCode,
6182		},
6183	}
6184	target := &ret
6185	if err := gensupport.DecodeResponse(target, res); err != nil {
6186		return nil, err
6187	}
6188	return ret, nil
6189	// {
6190	//   "description": "Creates a new Annotation store within the parent dataset.",
6191	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores",
6192	//   "httpMethod": "POST",
6193	//   "id": "healthcare.projects.locations.datasets.annotationStores.create",
6194	//   "parameterOrder": [
6195	//     "parent"
6196	//   ],
6197	//   "parameters": {
6198	//     "annotationStoreId": {
6199	//       "description": "The ID of the Annotation store that is being created.\nThe string must match the following regex: `[\\p{L}\\p{N}_\\-\\.]{1,256}`.",
6200	//       "location": "query",
6201	//       "type": "string"
6202	//     },
6203	//     "parent": {
6204	//       "description": "The name of the dataset this Annotation store belongs to.",
6205	//       "location": "path",
6206	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
6207	//       "required": true,
6208	//       "type": "string"
6209	//     }
6210	//   },
6211	//   "path": "v1alpha2/{+parent}/annotationStores",
6212	//   "request": {
6213	//     "$ref": "AnnotationStore"
6214	//   },
6215	//   "response": {
6216	//     "$ref": "AnnotationStore"
6217	//   },
6218	//   "scopes": [
6219	//     "https://www.googleapis.com/auth/cloud-platform"
6220	//   ]
6221	// }
6222
6223}
6224
6225// method id "healthcare.projects.locations.datasets.annotationStores.delete":
6226
6227type ProjectsLocationsDatasetsAnnotationStoresDeleteCall struct {
6228	s          *Service
6229	name       string
6230	urlParams_ gensupport.URLParams
6231	ctx_       context.Context
6232	header_    http.Header
6233}
6234
6235// Delete: Deletes the specified Annotation store and removes all
6236// annotations that are
6237// contained within it.
6238func (r *ProjectsLocationsDatasetsAnnotationStoresService) Delete(name string) *ProjectsLocationsDatasetsAnnotationStoresDeleteCall {
6239	c := &ProjectsLocationsDatasetsAnnotationStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6240	c.name = name
6241	return c
6242}
6243
6244// Fields allows partial responses to be retrieved. See
6245// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6246// for more information.
6247func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresDeleteCall {
6248	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6249	return c
6250}
6251
6252// Context sets the context to be used in this call's Do method. Any
6253// pending HTTP request will be aborted if the provided context is
6254// canceled.
6255func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresDeleteCall {
6256	c.ctx_ = ctx
6257	return c
6258}
6259
6260// Header returns an http.Header that can be modified by the caller to
6261// add HTTP headers to the request.
6262func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) Header() http.Header {
6263	if c.header_ == nil {
6264		c.header_ = make(http.Header)
6265	}
6266	return c.header_
6267}
6268
6269func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) doRequest(alt string) (*http.Response, error) {
6270	reqHeaders := make(http.Header)
6271	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
6272	for k, v := range c.header_ {
6273		reqHeaders[k] = v
6274	}
6275	reqHeaders.Set("User-Agent", c.s.userAgent())
6276	var body io.Reader = nil
6277	c.urlParams_.Set("alt", alt)
6278	c.urlParams_.Set("prettyPrint", "false")
6279	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
6280	urls += "?" + c.urlParams_.Encode()
6281	req, err := http.NewRequest("DELETE", urls, body)
6282	if err != nil {
6283		return nil, err
6284	}
6285	req.Header = reqHeaders
6286	googleapi.Expand(req.URL, map[string]string{
6287		"name": c.name,
6288	})
6289	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6290}
6291
6292// Do executes the "healthcare.projects.locations.datasets.annotationStores.delete" call.
6293// Exactly one of *Empty or error will be non-nil. Any non-2xx status
6294// code is an error. Response headers are in either
6295// *Empty.ServerResponse.Header or (if a response was returned at all)
6296// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
6297// check whether the returned error was because http.StatusNotModified
6298// was returned.
6299func (c *ProjectsLocationsDatasetsAnnotationStoresDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
6300	gensupport.SetOptions(c.urlParams_, opts...)
6301	res, err := c.doRequest("json")
6302	if res != nil && res.StatusCode == http.StatusNotModified {
6303		if res.Body != nil {
6304			res.Body.Close()
6305		}
6306		return nil, &googleapi.Error{
6307			Code:   res.StatusCode,
6308			Header: res.Header,
6309		}
6310	}
6311	if err != nil {
6312		return nil, err
6313	}
6314	defer googleapi.CloseBody(res)
6315	if err := googleapi.CheckResponse(res); err != nil {
6316		return nil, err
6317	}
6318	ret := &Empty{
6319		ServerResponse: googleapi.ServerResponse{
6320			Header:         res.Header,
6321			HTTPStatusCode: res.StatusCode,
6322		},
6323	}
6324	target := &ret
6325	if err := gensupport.DecodeResponse(target, res); err != nil {
6326		return nil, err
6327	}
6328	return ret, nil
6329	// {
6330	//   "description": "Deletes the specified Annotation store and removes all annotations that are\ncontained within it.",
6331	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}",
6332	//   "httpMethod": "DELETE",
6333	//   "id": "healthcare.projects.locations.datasets.annotationStores.delete",
6334	//   "parameterOrder": [
6335	//     "name"
6336	//   ],
6337	//   "parameters": {
6338	//     "name": {
6339	//       "description": "The resource name of the Annotation store to delete.",
6340	//       "location": "path",
6341	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+$",
6342	//       "required": true,
6343	//       "type": "string"
6344	//     }
6345	//   },
6346	//   "path": "v1alpha2/{+name}",
6347	//   "response": {
6348	//     "$ref": "Empty"
6349	//   },
6350	//   "scopes": [
6351	//     "https://www.googleapis.com/auth/cloud-platform"
6352	//   ]
6353	// }
6354
6355}
6356
6357// method id "healthcare.projects.locations.datasets.annotationStores.get":
6358
6359type ProjectsLocationsDatasetsAnnotationStoresGetCall struct {
6360	s            *Service
6361	name         string
6362	urlParams_   gensupport.URLParams
6363	ifNoneMatch_ string
6364	ctx_         context.Context
6365	header_      http.Header
6366}
6367
6368// Get: Gets the specified Annotation store or returns NOT_FOUND if it
6369// does not
6370// exist.
6371func (r *ProjectsLocationsDatasetsAnnotationStoresService) Get(name string) *ProjectsLocationsDatasetsAnnotationStoresGetCall {
6372	c := &ProjectsLocationsDatasetsAnnotationStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6373	c.name = name
6374	return c
6375}
6376
6377// Fields allows partial responses to be retrieved. See
6378// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6379// for more information.
6380func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresGetCall {
6381	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6382	return c
6383}
6384
6385// IfNoneMatch sets the optional parameter which makes the operation
6386// fail if the object's ETag matches the given value. This is useful for
6387// getting updates only after the object has changed since the last
6388// request. Use googleapi.IsNotModified to check whether the response
6389// error from Do is the result of In-None-Match.
6390func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationStoresGetCall {
6391	c.ifNoneMatch_ = entityTag
6392	return c
6393}
6394
6395// Context sets the context to be used in this call's Do method. Any
6396// pending HTTP request will be aborted if the provided context is
6397// canceled.
6398func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresGetCall {
6399	c.ctx_ = ctx
6400	return c
6401}
6402
6403// Header returns an http.Header that can be modified by the caller to
6404// add HTTP headers to the request.
6405func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) Header() http.Header {
6406	if c.header_ == nil {
6407		c.header_ = make(http.Header)
6408	}
6409	return c.header_
6410}
6411
6412func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) doRequest(alt string) (*http.Response, error) {
6413	reqHeaders := make(http.Header)
6414	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
6415	for k, v := range c.header_ {
6416		reqHeaders[k] = v
6417	}
6418	reqHeaders.Set("User-Agent", c.s.userAgent())
6419	if c.ifNoneMatch_ != "" {
6420		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6421	}
6422	var body io.Reader = nil
6423	c.urlParams_.Set("alt", alt)
6424	c.urlParams_.Set("prettyPrint", "false")
6425	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
6426	urls += "?" + c.urlParams_.Encode()
6427	req, err := http.NewRequest("GET", urls, body)
6428	if err != nil {
6429		return nil, err
6430	}
6431	req.Header = reqHeaders
6432	googleapi.Expand(req.URL, map[string]string{
6433		"name": c.name,
6434	})
6435	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6436}
6437
6438// Do executes the "healthcare.projects.locations.datasets.annotationStores.get" call.
6439// Exactly one of *AnnotationStore or error will be non-nil. Any non-2xx
6440// status code is an error. Response headers are in either
6441// *AnnotationStore.ServerResponse.Header or (if a response was returned
6442// at all) in error.(*googleapi.Error).Header. Use
6443// googleapi.IsNotModified to check whether the returned error was
6444// because http.StatusNotModified was returned.
6445func (c *ProjectsLocationsDatasetsAnnotationStoresGetCall) Do(opts ...googleapi.CallOption) (*AnnotationStore, error) {
6446	gensupport.SetOptions(c.urlParams_, opts...)
6447	res, err := c.doRequest("json")
6448	if res != nil && res.StatusCode == http.StatusNotModified {
6449		if res.Body != nil {
6450			res.Body.Close()
6451		}
6452		return nil, &googleapi.Error{
6453			Code:   res.StatusCode,
6454			Header: res.Header,
6455		}
6456	}
6457	if err != nil {
6458		return nil, err
6459	}
6460	defer googleapi.CloseBody(res)
6461	if err := googleapi.CheckResponse(res); err != nil {
6462		return nil, err
6463	}
6464	ret := &AnnotationStore{
6465		ServerResponse: googleapi.ServerResponse{
6466			Header:         res.Header,
6467			HTTPStatusCode: res.StatusCode,
6468		},
6469	}
6470	target := &ret
6471	if err := gensupport.DecodeResponse(target, res); err != nil {
6472		return nil, err
6473	}
6474	return ret, nil
6475	// {
6476	//   "description": "Gets the specified Annotation store or returns NOT_FOUND if it does not\nexist.",
6477	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}",
6478	//   "httpMethod": "GET",
6479	//   "id": "healthcare.projects.locations.datasets.annotationStores.get",
6480	//   "parameterOrder": [
6481	//     "name"
6482	//   ],
6483	//   "parameters": {
6484	//     "name": {
6485	//       "description": "The resource name of the Annotation store to get.",
6486	//       "location": "path",
6487	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+$",
6488	//       "required": true,
6489	//       "type": "string"
6490	//     }
6491	//   },
6492	//   "path": "v1alpha2/{+name}",
6493	//   "response": {
6494	//     "$ref": "AnnotationStore"
6495	//   },
6496	//   "scopes": [
6497	//     "https://www.googleapis.com/auth/cloud-platform"
6498	//   ]
6499	// }
6500
6501}
6502
6503// method id "healthcare.projects.locations.datasets.annotationStores.getIamPolicy":
6504
6505type ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall struct {
6506	s                   *Service
6507	resource            string
6508	getiampolicyrequest *GetIamPolicyRequest
6509	urlParams_          gensupport.URLParams
6510	ctx_                context.Context
6511	header_             http.Header
6512}
6513
6514// GetIamPolicy: Gets the access control policy for a resource. Returns
6515// NOT_FOUND error if
6516// the resource does not exist. Returns an empty policy if the resource
6517// exists
6518// but does not have a policy set.
6519//
6520// Authorization requires the Google IAM
6521// permission
6522// `healthcare.AnnotationStores.getIamPolicy` on the specified
6523// resource
6524func (r *ProjectsLocationsDatasetsAnnotationStoresService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall {
6525	c := &ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6526	c.resource = resource
6527	c.getiampolicyrequest = getiampolicyrequest
6528	return c
6529}
6530
6531// Fields allows partial responses to be retrieved. See
6532// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6533// for more information.
6534func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall {
6535	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6536	return c
6537}
6538
6539// Context sets the context to be used in this call's Do method. Any
6540// pending HTTP request will be aborted if the provided context is
6541// canceled.
6542func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall {
6543	c.ctx_ = ctx
6544	return c
6545}
6546
6547// Header returns an http.Header that can be modified by the caller to
6548// add HTTP headers to the request.
6549func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) Header() http.Header {
6550	if c.header_ == nil {
6551		c.header_ = make(http.Header)
6552	}
6553	return c.header_
6554}
6555
6556func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
6557	reqHeaders := make(http.Header)
6558	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
6559	for k, v := range c.header_ {
6560		reqHeaders[k] = v
6561	}
6562	reqHeaders.Set("User-Agent", c.s.userAgent())
6563	var body io.Reader = nil
6564	body, err := googleapi.WithoutDataWrapper.JSONReader(c.getiampolicyrequest)
6565	if err != nil {
6566		return nil, err
6567	}
6568	reqHeaders.Set("Content-Type", "application/json")
6569	c.urlParams_.Set("alt", alt)
6570	c.urlParams_.Set("prettyPrint", "false")
6571	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:getIamPolicy")
6572	urls += "?" + c.urlParams_.Encode()
6573	req, err := http.NewRequest("POST", urls, body)
6574	if err != nil {
6575		return nil, err
6576	}
6577	req.Header = reqHeaders
6578	googleapi.Expand(req.URL, map[string]string{
6579		"resource": c.resource,
6580	})
6581	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6582}
6583
6584// Do executes the "healthcare.projects.locations.datasets.annotationStores.getIamPolicy" call.
6585// Exactly one of *Policy or error will be non-nil. Any non-2xx status
6586// code is an error. Response headers are in either
6587// *Policy.ServerResponse.Header or (if a response was returned at all)
6588// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
6589// check whether the returned error was because http.StatusNotModified
6590// was returned.
6591func (c *ProjectsLocationsDatasetsAnnotationStoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
6592	gensupport.SetOptions(c.urlParams_, opts...)
6593	res, err := c.doRequest("json")
6594	if res != nil && res.StatusCode == http.StatusNotModified {
6595		if res.Body != nil {
6596			res.Body.Close()
6597		}
6598		return nil, &googleapi.Error{
6599			Code:   res.StatusCode,
6600			Header: res.Header,
6601		}
6602	}
6603	if err != nil {
6604		return nil, err
6605	}
6606	defer googleapi.CloseBody(res)
6607	if err := googleapi.CheckResponse(res); err != nil {
6608		return nil, err
6609	}
6610	ret := &Policy{
6611		ServerResponse: googleapi.ServerResponse{
6612			Header:         res.Header,
6613			HTTPStatusCode: res.StatusCode,
6614		},
6615	}
6616	target := &ret
6617	if err := gensupport.DecodeResponse(target, res); err != nil {
6618		return nil, err
6619	}
6620	return ret, nil
6621	// {
6622	//   "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",
6623	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}:getIamPolicy",
6624	//   "httpMethod": "POST",
6625	//   "id": "healthcare.projects.locations.datasets.annotationStores.getIamPolicy",
6626	//   "parameterOrder": [
6627	//     "resource"
6628	//   ],
6629	//   "parameters": {
6630	//     "resource": {
6631	//       "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.",
6632	//       "location": "path",
6633	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+$",
6634	//       "required": true,
6635	//       "type": "string"
6636	//     }
6637	//   },
6638	//   "path": "v1alpha2/{+resource}:getIamPolicy",
6639	//   "request": {
6640	//     "$ref": "GetIamPolicyRequest"
6641	//   },
6642	//   "response": {
6643	//     "$ref": "Policy"
6644	//   },
6645	//   "scopes": [
6646	//     "https://www.googleapis.com/auth/cloud-platform"
6647	//   ]
6648	// }
6649
6650}
6651
6652// method id "healthcare.projects.locations.datasets.annotationStores.list":
6653
6654type ProjectsLocationsDatasetsAnnotationStoresListCall struct {
6655	s            *Service
6656	parent       string
6657	urlParams_   gensupport.URLParams
6658	ifNoneMatch_ string
6659	ctx_         context.Context
6660	header_      http.Header
6661}
6662
6663// List: Lists the Annotation stores in the given dataset for a source
6664// store.
6665func (r *ProjectsLocationsDatasetsAnnotationStoresService) List(parent string) *ProjectsLocationsDatasetsAnnotationStoresListCall {
6666	c := &ProjectsLocationsDatasetsAnnotationStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6667	c.parent = parent
6668	return c
6669}
6670
6671// Filter sets the optional parameter "filter": Restricts stores
6672// returned to those matching a filter.
6673// Syntax:
6674// https://cloud.google.com/appengine/docs/standard/python/search
6675// /query_strings
6676// Only filtering on labels is supported, for example
6677// `labels.key=value`.
6678func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Filter(filter string) *ProjectsLocationsDatasetsAnnotationStoresListCall {
6679	c.urlParams_.Set("filter", filter)
6680	return c
6681}
6682
6683// PageSize sets the optional parameter "pageSize": Limit on the number
6684// of Annotation stores to return in a single response.
6685// If zero the default page size of 100 is used.
6686func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsAnnotationStoresListCall {
6687	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
6688	return c
6689}
6690
6691// PageToken sets the optional parameter "pageToken": The
6692// next_page_token value returned from the previous List request, if
6693// any.
6694func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsAnnotationStoresListCall {
6695	c.urlParams_.Set("pageToken", pageToken)
6696	return c
6697}
6698
6699// Fields allows partial responses to be retrieved. See
6700// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6701// for more information.
6702func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresListCall {
6703	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6704	return c
6705}
6706
6707// IfNoneMatch sets the optional parameter which makes the operation
6708// fail if the object's ETag matches the given value. This is useful for
6709// getting updates only after the object has changed since the last
6710// request. Use googleapi.IsNotModified to check whether the response
6711// error from Do is the result of In-None-Match.
6712func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationStoresListCall {
6713	c.ifNoneMatch_ = entityTag
6714	return c
6715}
6716
6717// Context sets the context to be used in this call's Do method. Any
6718// pending HTTP request will be aborted if the provided context is
6719// canceled.
6720func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresListCall {
6721	c.ctx_ = ctx
6722	return c
6723}
6724
6725// Header returns an http.Header that can be modified by the caller to
6726// add HTTP headers to the request.
6727func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Header() http.Header {
6728	if c.header_ == nil {
6729		c.header_ = make(http.Header)
6730	}
6731	return c.header_
6732}
6733
6734func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) doRequest(alt string) (*http.Response, error) {
6735	reqHeaders := make(http.Header)
6736	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
6737	for k, v := range c.header_ {
6738		reqHeaders[k] = v
6739	}
6740	reqHeaders.Set("User-Agent", c.s.userAgent())
6741	if c.ifNoneMatch_ != "" {
6742		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6743	}
6744	var body io.Reader = nil
6745	c.urlParams_.Set("alt", alt)
6746	c.urlParams_.Set("prettyPrint", "false")
6747	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/annotationStores")
6748	urls += "?" + c.urlParams_.Encode()
6749	req, err := http.NewRequest("GET", urls, body)
6750	if err != nil {
6751		return nil, err
6752	}
6753	req.Header = reqHeaders
6754	googleapi.Expand(req.URL, map[string]string{
6755		"parent": c.parent,
6756	})
6757	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6758}
6759
6760// Do executes the "healthcare.projects.locations.datasets.annotationStores.list" call.
6761// Exactly one of *ListAnnotationStoresResponse or error will be
6762// non-nil. Any non-2xx status code is an error. Response headers are in
6763// either *ListAnnotationStoresResponse.ServerResponse.Header or (if a
6764// response was returned at all) in error.(*googleapi.Error).Header. Use
6765// googleapi.IsNotModified to check whether the returned error was
6766// because http.StatusNotModified was returned.
6767func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Do(opts ...googleapi.CallOption) (*ListAnnotationStoresResponse, error) {
6768	gensupport.SetOptions(c.urlParams_, opts...)
6769	res, err := c.doRequest("json")
6770	if res != nil && res.StatusCode == http.StatusNotModified {
6771		if res.Body != nil {
6772			res.Body.Close()
6773		}
6774		return nil, &googleapi.Error{
6775			Code:   res.StatusCode,
6776			Header: res.Header,
6777		}
6778	}
6779	if err != nil {
6780		return nil, err
6781	}
6782	defer googleapi.CloseBody(res)
6783	if err := googleapi.CheckResponse(res); err != nil {
6784		return nil, err
6785	}
6786	ret := &ListAnnotationStoresResponse{
6787		ServerResponse: googleapi.ServerResponse{
6788			Header:         res.Header,
6789			HTTPStatusCode: res.StatusCode,
6790		},
6791	}
6792	target := &ret
6793	if err := gensupport.DecodeResponse(target, res); err != nil {
6794		return nil, err
6795	}
6796	return ret, nil
6797	// {
6798	//   "description": "Lists the Annotation stores in the given dataset for a source store.",
6799	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores",
6800	//   "httpMethod": "GET",
6801	//   "id": "healthcare.projects.locations.datasets.annotationStores.list",
6802	//   "parameterOrder": [
6803	//     "parent"
6804	//   ],
6805	//   "parameters": {
6806	//     "filter": {
6807	//       "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`.",
6808	//       "location": "query",
6809	//       "type": "string"
6810	//     },
6811	//     "pageSize": {
6812	//       "description": "Limit on the number of Annotation stores to return in a single response.\nIf zero the default page size of 100 is used.",
6813	//       "format": "int32",
6814	//       "location": "query",
6815	//       "type": "integer"
6816	//     },
6817	//     "pageToken": {
6818	//       "description": "The next_page_token value returned from the previous List request, if any.",
6819	//       "location": "query",
6820	//       "type": "string"
6821	//     },
6822	//     "parent": {
6823	//       "description": "Name of the dataset.",
6824	//       "location": "path",
6825	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
6826	//       "required": true,
6827	//       "type": "string"
6828	//     }
6829	//   },
6830	//   "path": "v1alpha2/{+parent}/annotationStores",
6831	//   "response": {
6832	//     "$ref": "ListAnnotationStoresResponse"
6833	//   },
6834	//   "scopes": [
6835	//     "https://www.googleapis.com/auth/cloud-platform"
6836	//   ]
6837	// }
6838
6839}
6840
6841// Pages invokes f for each page of results.
6842// A non-nil error returned from f will halt the iteration.
6843// The provided context supersedes any context provided to the Context method.
6844func (c *ProjectsLocationsDatasetsAnnotationStoresListCall) Pages(ctx context.Context, f func(*ListAnnotationStoresResponse) error) error {
6845	c.ctx_ = ctx
6846	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
6847	for {
6848		x, err := c.Do()
6849		if err != nil {
6850			return err
6851		}
6852		if err := f(x); err != nil {
6853			return err
6854		}
6855		if x.NextPageToken == "" {
6856			return nil
6857		}
6858		c.PageToken(x.NextPageToken)
6859	}
6860}
6861
6862// method id "healthcare.projects.locations.datasets.annotationStores.patch":
6863
6864type ProjectsLocationsDatasetsAnnotationStoresPatchCall struct {
6865	s               *Service
6866	name            string
6867	annotationstore *AnnotationStore
6868	urlParams_      gensupport.URLParams
6869	ctx_            context.Context
6870	header_         http.Header
6871}
6872
6873// Patch: Updates the specified Annotation store.
6874func (r *ProjectsLocationsDatasetsAnnotationStoresService) Patch(name string, annotationstore *AnnotationStore) *ProjectsLocationsDatasetsAnnotationStoresPatchCall {
6875	c := &ProjectsLocationsDatasetsAnnotationStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6876	c.name = name
6877	c.annotationstore = annotationstore
6878	return c
6879}
6880
6881// UpdateMask sets the optional parameter "updateMask": The update mask
6882// applies to the resource. For the `FieldMask`
6883// definition,
6884// see
6885// https://developers.google.com/protocol-buffers/docs/re
6886// ference/google.protobuf#fieldmask
6887func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsAnnotationStoresPatchCall {
6888	c.urlParams_.Set("updateMask", updateMask)
6889	return c
6890}
6891
6892// Fields allows partial responses to be retrieved. See
6893// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6894// for more information.
6895func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresPatchCall {
6896	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6897	return c
6898}
6899
6900// Context sets the context to be used in this call's Do method. Any
6901// pending HTTP request will be aborted if the provided context is
6902// canceled.
6903func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresPatchCall {
6904	c.ctx_ = ctx
6905	return c
6906}
6907
6908// Header returns an http.Header that can be modified by the caller to
6909// add HTTP headers to the request.
6910func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) Header() http.Header {
6911	if c.header_ == nil {
6912		c.header_ = make(http.Header)
6913	}
6914	return c.header_
6915}
6916
6917func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) doRequest(alt string) (*http.Response, error) {
6918	reqHeaders := make(http.Header)
6919	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
6920	for k, v := range c.header_ {
6921		reqHeaders[k] = v
6922	}
6923	reqHeaders.Set("User-Agent", c.s.userAgent())
6924	var body io.Reader = nil
6925	body, err := googleapi.WithoutDataWrapper.JSONReader(c.annotationstore)
6926	if err != nil {
6927		return nil, err
6928	}
6929	reqHeaders.Set("Content-Type", "application/json")
6930	c.urlParams_.Set("alt", alt)
6931	c.urlParams_.Set("prettyPrint", "false")
6932	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
6933	urls += "?" + c.urlParams_.Encode()
6934	req, err := http.NewRequest("PATCH", urls, body)
6935	if err != nil {
6936		return nil, err
6937	}
6938	req.Header = reqHeaders
6939	googleapi.Expand(req.URL, map[string]string{
6940		"name": c.name,
6941	})
6942	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6943}
6944
6945// Do executes the "healthcare.projects.locations.datasets.annotationStores.patch" call.
6946// Exactly one of *AnnotationStore or error will be non-nil. Any non-2xx
6947// status code is an error. Response headers are in either
6948// *AnnotationStore.ServerResponse.Header or (if a response was returned
6949// at all) in error.(*googleapi.Error).Header. Use
6950// googleapi.IsNotModified to check whether the returned error was
6951// because http.StatusNotModified was returned.
6952func (c *ProjectsLocationsDatasetsAnnotationStoresPatchCall) Do(opts ...googleapi.CallOption) (*AnnotationStore, error) {
6953	gensupport.SetOptions(c.urlParams_, opts...)
6954	res, err := c.doRequest("json")
6955	if res != nil && res.StatusCode == http.StatusNotModified {
6956		if res.Body != nil {
6957			res.Body.Close()
6958		}
6959		return nil, &googleapi.Error{
6960			Code:   res.StatusCode,
6961			Header: res.Header,
6962		}
6963	}
6964	if err != nil {
6965		return nil, err
6966	}
6967	defer googleapi.CloseBody(res)
6968	if err := googleapi.CheckResponse(res); err != nil {
6969		return nil, err
6970	}
6971	ret := &AnnotationStore{
6972		ServerResponse: googleapi.ServerResponse{
6973			Header:         res.Header,
6974			HTTPStatusCode: res.StatusCode,
6975		},
6976	}
6977	target := &ret
6978	if err := gensupport.DecodeResponse(target, res); err != nil {
6979		return nil, err
6980	}
6981	return ret, nil
6982	// {
6983	//   "description": "Updates the specified Annotation store.",
6984	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}",
6985	//   "httpMethod": "PATCH",
6986	//   "id": "healthcare.projects.locations.datasets.annotationStores.patch",
6987	//   "parameterOrder": [
6988	//     "name"
6989	//   ],
6990	//   "parameters": {
6991	//     "name": {
6992	//       "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}`.",
6993	//       "location": "path",
6994	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+$",
6995	//       "required": true,
6996	//       "type": "string"
6997	//     },
6998	//     "updateMask": {
6999	//       "description": "The update mask applies to the resource. For the `FieldMask` definition,\nsee\nhttps://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask",
7000	//       "format": "google-fieldmask",
7001	//       "location": "query",
7002	//       "type": "string"
7003	//     }
7004	//   },
7005	//   "path": "v1alpha2/{+name}",
7006	//   "request": {
7007	//     "$ref": "AnnotationStore"
7008	//   },
7009	//   "response": {
7010	//     "$ref": "AnnotationStore"
7011	//   },
7012	//   "scopes": [
7013	//     "https://www.googleapis.com/auth/cloud-platform"
7014	//   ]
7015	// }
7016
7017}
7018
7019// method id "healthcare.projects.locations.datasets.annotationStores.setIamPolicy":
7020
7021type ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall struct {
7022	s                   *Service
7023	resource            string
7024	setiampolicyrequest *SetIamPolicyRequest
7025	urlParams_          gensupport.URLParams
7026	ctx_                context.Context
7027	header_             http.Header
7028}
7029
7030// SetIamPolicy: POLICIES
7031// Sets the access control policy for a resource. Replaces any
7032// existing
7033// policy.
7034//
7035// Authorization requires the Google IAM
7036// permission
7037// `healthcare.annotationStores.setIamPolicy` on the specified
7038// resource
7039func (r *ProjectsLocationsDatasetsAnnotationStoresService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall {
7040	c := &ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7041	c.resource = resource
7042	c.setiampolicyrequest = setiampolicyrequest
7043	return c
7044}
7045
7046// Fields allows partial responses to be retrieved. See
7047// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7048// for more information.
7049func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall {
7050	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7051	return c
7052}
7053
7054// Context sets the context to be used in this call's Do method. Any
7055// pending HTTP request will be aborted if the provided context is
7056// canceled.
7057func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall {
7058	c.ctx_ = ctx
7059	return c
7060}
7061
7062// Header returns an http.Header that can be modified by the caller to
7063// add HTTP headers to the request.
7064func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) Header() http.Header {
7065	if c.header_ == nil {
7066		c.header_ = make(http.Header)
7067	}
7068	return c.header_
7069}
7070
7071func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
7072	reqHeaders := make(http.Header)
7073	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
7074	for k, v := range c.header_ {
7075		reqHeaders[k] = v
7076	}
7077	reqHeaders.Set("User-Agent", c.s.userAgent())
7078	var body io.Reader = nil
7079	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
7080	if err != nil {
7081		return nil, err
7082	}
7083	reqHeaders.Set("Content-Type", "application/json")
7084	c.urlParams_.Set("alt", alt)
7085	c.urlParams_.Set("prettyPrint", "false")
7086	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:setIamPolicy")
7087	urls += "?" + c.urlParams_.Encode()
7088	req, err := http.NewRequest("POST", urls, body)
7089	if err != nil {
7090		return nil, err
7091	}
7092	req.Header = reqHeaders
7093	googleapi.Expand(req.URL, map[string]string{
7094		"resource": c.resource,
7095	})
7096	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7097}
7098
7099// Do executes the "healthcare.projects.locations.datasets.annotationStores.setIamPolicy" call.
7100// Exactly one of *Policy or error will be non-nil. Any non-2xx status
7101// code is an error. Response headers are in either
7102// *Policy.ServerResponse.Header or (if a response was returned at all)
7103// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
7104// check whether the returned error was because http.StatusNotModified
7105// was returned.
7106func (c *ProjectsLocationsDatasetsAnnotationStoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
7107	gensupport.SetOptions(c.urlParams_, opts...)
7108	res, err := c.doRequest("json")
7109	if res != nil && res.StatusCode == http.StatusNotModified {
7110		if res.Body != nil {
7111			res.Body.Close()
7112		}
7113		return nil, &googleapi.Error{
7114			Code:   res.StatusCode,
7115			Header: res.Header,
7116		}
7117	}
7118	if err != nil {
7119		return nil, err
7120	}
7121	defer googleapi.CloseBody(res)
7122	if err := googleapi.CheckResponse(res); err != nil {
7123		return nil, err
7124	}
7125	ret := &Policy{
7126		ServerResponse: googleapi.ServerResponse{
7127			Header:         res.Header,
7128			HTTPStatusCode: res.StatusCode,
7129		},
7130	}
7131	target := &ret
7132	if err := gensupport.DecodeResponse(target, res); err != nil {
7133		return nil, err
7134	}
7135	return ret, nil
7136	// {
7137	//   "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",
7138	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}:setIamPolicy",
7139	//   "httpMethod": "POST",
7140	//   "id": "healthcare.projects.locations.datasets.annotationStores.setIamPolicy",
7141	//   "parameterOrder": [
7142	//     "resource"
7143	//   ],
7144	//   "parameters": {
7145	//     "resource": {
7146	//       "description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.",
7147	//       "location": "path",
7148	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+$",
7149	//       "required": true,
7150	//       "type": "string"
7151	//     }
7152	//   },
7153	//   "path": "v1alpha2/{+resource}:setIamPolicy",
7154	//   "request": {
7155	//     "$ref": "SetIamPolicyRequest"
7156	//   },
7157	//   "response": {
7158	//     "$ref": "Policy"
7159	//   },
7160	//   "scopes": [
7161	//     "https://www.googleapis.com/auth/cloud-platform"
7162	//   ]
7163	// }
7164
7165}
7166
7167// method id "healthcare.projects.locations.datasets.annotationStores.testIamPermissions":
7168
7169type ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall struct {
7170	s                         *Service
7171	resource                  string
7172	testiampermissionsrequest *TestIamPermissionsRequest
7173	urlParams_                gensupport.URLParams
7174	ctx_                      context.Context
7175	header_                   http.Header
7176}
7177
7178// TestIamPermissions: Returns permissions that a caller has on the
7179// specified resource.
7180// If the resource does not exist, this will return an empty set
7181// of
7182// permissions, not a NOT_FOUND error.
7183//
7184// There is no permission required to make this API call.
7185func (r *ProjectsLocationsDatasetsAnnotationStoresService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall {
7186	c := &ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7187	c.resource = resource
7188	c.testiampermissionsrequest = testiampermissionsrequest
7189	return c
7190}
7191
7192// Fields allows partial responses to be retrieved. See
7193// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7194// for more information.
7195func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall {
7196	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7197	return c
7198}
7199
7200// Context sets the context to be used in this call's Do method. Any
7201// pending HTTP request will be aborted if the provided context is
7202// canceled.
7203func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall {
7204	c.ctx_ = ctx
7205	return c
7206}
7207
7208// Header returns an http.Header that can be modified by the caller to
7209// add HTTP headers to the request.
7210func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) Header() http.Header {
7211	if c.header_ == nil {
7212		c.header_ = make(http.Header)
7213	}
7214	return c.header_
7215}
7216
7217func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
7218	reqHeaders := make(http.Header)
7219	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
7220	for k, v := range c.header_ {
7221		reqHeaders[k] = v
7222	}
7223	reqHeaders.Set("User-Agent", c.s.userAgent())
7224	var body io.Reader = nil
7225	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
7226	if err != nil {
7227		return nil, err
7228	}
7229	reqHeaders.Set("Content-Type", "application/json")
7230	c.urlParams_.Set("alt", alt)
7231	c.urlParams_.Set("prettyPrint", "false")
7232	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:testIamPermissions")
7233	urls += "?" + c.urlParams_.Encode()
7234	req, err := http.NewRequest("POST", urls, body)
7235	if err != nil {
7236		return nil, err
7237	}
7238	req.Header = reqHeaders
7239	googleapi.Expand(req.URL, map[string]string{
7240		"resource": c.resource,
7241	})
7242	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7243}
7244
7245// Do executes the "healthcare.projects.locations.datasets.annotationStores.testIamPermissions" call.
7246// Exactly one of *TestIamPermissionsResponse or error will be non-nil.
7247// Any non-2xx status code is an error. Response headers are in either
7248// *TestIamPermissionsResponse.ServerResponse.Header or (if a response
7249// was returned at all) in error.(*googleapi.Error).Header. Use
7250// googleapi.IsNotModified to check whether the returned error was
7251// because http.StatusNotModified was returned.
7252func (c *ProjectsLocationsDatasetsAnnotationStoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
7253	gensupport.SetOptions(c.urlParams_, opts...)
7254	res, err := c.doRequest("json")
7255	if res != nil && res.StatusCode == http.StatusNotModified {
7256		if res.Body != nil {
7257			res.Body.Close()
7258		}
7259		return nil, &googleapi.Error{
7260			Code:   res.StatusCode,
7261			Header: res.Header,
7262		}
7263	}
7264	if err != nil {
7265		return nil, err
7266	}
7267	defer googleapi.CloseBody(res)
7268	if err := googleapi.CheckResponse(res); err != nil {
7269		return nil, err
7270	}
7271	ret := &TestIamPermissionsResponse{
7272		ServerResponse: googleapi.ServerResponse{
7273			Header:         res.Header,
7274			HTTPStatusCode: res.StatusCode,
7275		},
7276	}
7277	target := &ret
7278	if err := gensupport.DecodeResponse(target, res); err != nil {
7279		return nil, err
7280	}
7281	return ret, nil
7282	// {
7283	//   "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.",
7284	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}:testIamPermissions",
7285	//   "httpMethod": "POST",
7286	//   "id": "healthcare.projects.locations.datasets.annotationStores.testIamPermissions",
7287	//   "parameterOrder": [
7288	//     "resource"
7289	//   ],
7290	//   "parameters": {
7291	//     "resource": {
7292	//       "description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.",
7293	//       "location": "path",
7294	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+$",
7295	//       "required": true,
7296	//       "type": "string"
7297	//     }
7298	//   },
7299	//   "path": "v1alpha2/{+resource}:testIamPermissions",
7300	//   "request": {
7301	//     "$ref": "TestIamPermissionsRequest"
7302	//   },
7303	//   "response": {
7304	//     "$ref": "TestIamPermissionsResponse"
7305	//   },
7306	//   "scopes": [
7307	//     "https://www.googleapis.com/auth/cloud-platform"
7308	//   ]
7309	// }
7310
7311}
7312
7313// method id "healthcare.projects.locations.datasets.annotationStores.annotations.create":
7314
7315type ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall struct {
7316	s          *Service
7317	parent     string
7318	annotation *Annotation
7319	urlParams_ gensupport.URLParams
7320	ctx_       context.Context
7321	header_    http.Header
7322}
7323
7324// Create: Creates a new Annotation record. It is
7325// valid to create Annotation objects for the same source more than once
7326// since
7327// a unique ID is assigned to each record by this service.
7328func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) Create(parent string, annotation *Annotation) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall {
7329	c := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7330	c.parent = parent
7331	c.annotation = annotation
7332	return c
7333}
7334
7335// Fields allows partial responses to be retrieved. See
7336// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7337// for more information.
7338func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall {
7339	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7340	return c
7341}
7342
7343// Context sets the context to be used in this call's Do method. Any
7344// pending HTTP request will be aborted if the provided context is
7345// canceled.
7346func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall {
7347	c.ctx_ = ctx
7348	return c
7349}
7350
7351// Header returns an http.Header that can be modified by the caller to
7352// add HTTP headers to the request.
7353func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) Header() http.Header {
7354	if c.header_ == nil {
7355		c.header_ = make(http.Header)
7356	}
7357	return c.header_
7358}
7359
7360func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) doRequest(alt string) (*http.Response, error) {
7361	reqHeaders := make(http.Header)
7362	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
7363	for k, v := range c.header_ {
7364		reqHeaders[k] = v
7365	}
7366	reqHeaders.Set("User-Agent", c.s.userAgent())
7367	var body io.Reader = nil
7368	body, err := googleapi.WithoutDataWrapper.JSONReader(c.annotation)
7369	if err != nil {
7370		return nil, err
7371	}
7372	reqHeaders.Set("Content-Type", "application/json")
7373	c.urlParams_.Set("alt", alt)
7374	c.urlParams_.Set("prettyPrint", "false")
7375	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/annotations")
7376	urls += "?" + c.urlParams_.Encode()
7377	req, err := http.NewRequest("POST", urls, body)
7378	if err != nil {
7379		return nil, err
7380	}
7381	req.Header = reqHeaders
7382	googleapi.Expand(req.URL, map[string]string{
7383		"parent": c.parent,
7384	})
7385	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7386}
7387
7388// Do executes the "healthcare.projects.locations.datasets.annotationStores.annotations.create" call.
7389// Exactly one of *Annotation or error will be non-nil. Any non-2xx
7390// status code is an error. Response headers are in either
7391// *Annotation.ServerResponse.Header or (if a response was returned at
7392// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
7393// to check whether the returned error was because
7394// http.StatusNotModified was returned.
7395func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsCreateCall) Do(opts ...googleapi.CallOption) (*Annotation, error) {
7396	gensupport.SetOptions(c.urlParams_, opts...)
7397	res, err := c.doRequest("json")
7398	if res != nil && res.StatusCode == http.StatusNotModified {
7399		if res.Body != nil {
7400			res.Body.Close()
7401		}
7402		return nil, &googleapi.Error{
7403			Code:   res.StatusCode,
7404			Header: res.Header,
7405		}
7406	}
7407	if err != nil {
7408		return nil, err
7409	}
7410	defer googleapi.CloseBody(res)
7411	if err := googleapi.CheckResponse(res); err != nil {
7412		return nil, err
7413	}
7414	ret := &Annotation{
7415		ServerResponse: googleapi.ServerResponse{
7416			Header:         res.Header,
7417			HTTPStatusCode: res.StatusCode,
7418		},
7419	}
7420	target := &ret
7421	if err := gensupport.DecodeResponse(target, res); err != nil {
7422		return nil, err
7423	}
7424	return ret, nil
7425	// {
7426	//   "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.",
7427	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}/annotations",
7428	//   "httpMethod": "POST",
7429	//   "id": "healthcare.projects.locations.datasets.annotationStores.annotations.create",
7430	//   "parameterOrder": [
7431	//     "parent"
7432	//   ],
7433	//   "parameters": {
7434	//     "parent": {
7435	//       "description": "The name of the Annotation store this annotation belongs to. For example,\n`projects/my-project/locations/us-central1/datasets/mydataset/annotationStores/myannotationstore`.",
7436	//       "location": "path",
7437	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+$",
7438	//       "required": true,
7439	//       "type": "string"
7440	//     }
7441	//   },
7442	//   "path": "v1alpha2/{+parent}/annotations",
7443	//   "request": {
7444	//     "$ref": "Annotation"
7445	//   },
7446	//   "response": {
7447	//     "$ref": "Annotation"
7448	//   },
7449	//   "scopes": [
7450	//     "https://www.googleapis.com/auth/cloud-platform"
7451	//   ]
7452	// }
7453
7454}
7455
7456// method id "healthcare.projects.locations.datasets.annotationStores.annotations.delete":
7457
7458type ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall struct {
7459	s          *Service
7460	name       string
7461	urlParams_ gensupport.URLParams
7462	ctx_       context.Context
7463	header_    http.Header
7464}
7465
7466// Delete: Deletes an Annotation or returns
7467// NOT_FOUND if it does not exist.
7468func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) Delete(name string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall {
7469	c := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7470	c.name = name
7471	return c
7472}
7473
7474// Fields allows partial responses to be retrieved. See
7475// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7476// for more information.
7477func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall {
7478	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7479	return c
7480}
7481
7482// Context sets the context to be used in this call's Do method. Any
7483// pending HTTP request will be aborted if the provided context is
7484// canceled.
7485func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall {
7486	c.ctx_ = ctx
7487	return c
7488}
7489
7490// Header returns an http.Header that can be modified by the caller to
7491// add HTTP headers to the request.
7492func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) Header() http.Header {
7493	if c.header_ == nil {
7494		c.header_ = make(http.Header)
7495	}
7496	return c.header_
7497}
7498
7499func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) doRequest(alt string) (*http.Response, error) {
7500	reqHeaders := make(http.Header)
7501	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
7502	for k, v := range c.header_ {
7503		reqHeaders[k] = v
7504	}
7505	reqHeaders.Set("User-Agent", c.s.userAgent())
7506	var body io.Reader = nil
7507	c.urlParams_.Set("alt", alt)
7508	c.urlParams_.Set("prettyPrint", "false")
7509	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
7510	urls += "?" + c.urlParams_.Encode()
7511	req, err := http.NewRequest("DELETE", urls, body)
7512	if err != nil {
7513		return nil, err
7514	}
7515	req.Header = reqHeaders
7516	googleapi.Expand(req.URL, map[string]string{
7517		"name": c.name,
7518	})
7519	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7520}
7521
7522// Do executes the "healthcare.projects.locations.datasets.annotationStores.annotations.delete" call.
7523// Exactly one of *Empty or error will be non-nil. Any non-2xx status
7524// code is an error. Response headers are in either
7525// *Empty.ServerResponse.Header or (if a response was returned at all)
7526// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
7527// check whether the returned error was because http.StatusNotModified
7528// was returned.
7529func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
7530	gensupport.SetOptions(c.urlParams_, opts...)
7531	res, err := c.doRequest("json")
7532	if res != nil && res.StatusCode == http.StatusNotModified {
7533		if res.Body != nil {
7534			res.Body.Close()
7535		}
7536		return nil, &googleapi.Error{
7537			Code:   res.StatusCode,
7538			Header: res.Header,
7539		}
7540	}
7541	if err != nil {
7542		return nil, err
7543	}
7544	defer googleapi.CloseBody(res)
7545	if err := googleapi.CheckResponse(res); err != nil {
7546		return nil, err
7547	}
7548	ret := &Empty{
7549		ServerResponse: googleapi.ServerResponse{
7550			Header:         res.Header,
7551			HTTPStatusCode: res.StatusCode,
7552		},
7553	}
7554	target := &ret
7555	if err := gensupport.DecodeResponse(target, res); err != nil {
7556		return nil, err
7557	}
7558	return ret, nil
7559	// {
7560	//   "description": "Deletes an Annotation or returns\nNOT_FOUND if it does not exist.",
7561	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}/annotations/{annotationsId}",
7562	//   "httpMethod": "DELETE",
7563	//   "id": "healthcare.projects.locations.datasets.annotationStores.annotations.delete",
7564	//   "parameterOrder": [
7565	//     "name"
7566	//   ],
7567	//   "parameters": {
7568	//     "name": {
7569	//       "description": "The resource name of the Annotation to delete.",
7570	//       "location": "path",
7571	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+/annotations/[^/]+$",
7572	//       "required": true,
7573	//       "type": "string"
7574	//     }
7575	//   },
7576	//   "path": "v1alpha2/{+name}",
7577	//   "response": {
7578	//     "$ref": "Empty"
7579	//   },
7580	//   "scopes": [
7581	//     "https://www.googleapis.com/auth/cloud-platform"
7582	//   ]
7583	// }
7584
7585}
7586
7587// method id "healthcare.projects.locations.datasets.annotationStores.annotations.get":
7588
7589type ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall struct {
7590	s            *Service
7591	name         string
7592	urlParams_   gensupport.URLParams
7593	ifNoneMatch_ string
7594	ctx_         context.Context
7595	header_      http.Header
7596}
7597
7598// Get: Gets an Annotation.
7599func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) Get(name string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall {
7600	c := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7601	c.name = name
7602	return c
7603}
7604
7605// Fields allows partial responses to be retrieved. See
7606// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7607// for more information.
7608func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall {
7609	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7610	return c
7611}
7612
7613// IfNoneMatch sets the optional parameter which makes the operation
7614// fail if the object's ETag matches the given value. This is useful for
7615// getting updates only after the object has changed since the last
7616// request. Use googleapi.IsNotModified to check whether the response
7617// error from Do is the result of In-None-Match.
7618func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall {
7619	c.ifNoneMatch_ = entityTag
7620	return c
7621}
7622
7623// Context sets the context to be used in this call's Do method. Any
7624// pending HTTP request will be aborted if the provided context is
7625// canceled.
7626func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall {
7627	c.ctx_ = ctx
7628	return c
7629}
7630
7631// Header returns an http.Header that can be modified by the caller to
7632// add HTTP headers to the request.
7633func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) Header() http.Header {
7634	if c.header_ == nil {
7635		c.header_ = make(http.Header)
7636	}
7637	return c.header_
7638}
7639
7640func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) doRequest(alt string) (*http.Response, error) {
7641	reqHeaders := make(http.Header)
7642	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
7643	for k, v := range c.header_ {
7644		reqHeaders[k] = v
7645	}
7646	reqHeaders.Set("User-Agent", c.s.userAgent())
7647	if c.ifNoneMatch_ != "" {
7648		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7649	}
7650	var body io.Reader = nil
7651	c.urlParams_.Set("alt", alt)
7652	c.urlParams_.Set("prettyPrint", "false")
7653	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
7654	urls += "?" + c.urlParams_.Encode()
7655	req, err := http.NewRequest("GET", urls, body)
7656	if err != nil {
7657		return nil, err
7658	}
7659	req.Header = reqHeaders
7660	googleapi.Expand(req.URL, map[string]string{
7661		"name": c.name,
7662	})
7663	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7664}
7665
7666// Do executes the "healthcare.projects.locations.datasets.annotationStores.annotations.get" call.
7667// Exactly one of *Annotation or error will be non-nil. Any non-2xx
7668// status code is an error. Response headers are in either
7669// *Annotation.ServerResponse.Header or (if a response was returned at
7670// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
7671// to check whether the returned error was because
7672// http.StatusNotModified was returned.
7673func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsGetCall) Do(opts ...googleapi.CallOption) (*Annotation, error) {
7674	gensupport.SetOptions(c.urlParams_, opts...)
7675	res, err := c.doRequest("json")
7676	if res != nil && res.StatusCode == http.StatusNotModified {
7677		if res.Body != nil {
7678			res.Body.Close()
7679		}
7680		return nil, &googleapi.Error{
7681			Code:   res.StatusCode,
7682			Header: res.Header,
7683		}
7684	}
7685	if err != nil {
7686		return nil, err
7687	}
7688	defer googleapi.CloseBody(res)
7689	if err := googleapi.CheckResponse(res); err != nil {
7690		return nil, err
7691	}
7692	ret := &Annotation{
7693		ServerResponse: googleapi.ServerResponse{
7694			Header:         res.Header,
7695			HTTPStatusCode: res.StatusCode,
7696		},
7697	}
7698	target := &ret
7699	if err := gensupport.DecodeResponse(target, res); err != nil {
7700		return nil, err
7701	}
7702	return ret, nil
7703	// {
7704	//   "description": "Gets an Annotation.",
7705	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}/annotations/{annotationsId}",
7706	//   "httpMethod": "GET",
7707	//   "id": "healthcare.projects.locations.datasets.annotationStores.annotations.get",
7708	//   "parameterOrder": [
7709	//     "name"
7710	//   ],
7711	//   "parameters": {
7712	//     "name": {
7713	//       "description": "The resource name of the Annotation to retrieve.",
7714	//       "location": "path",
7715	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+/annotations/[^/]+$",
7716	//       "required": true,
7717	//       "type": "string"
7718	//     }
7719	//   },
7720	//   "path": "v1alpha2/{+name}",
7721	//   "response": {
7722	//     "$ref": "Annotation"
7723	//   },
7724	//   "scopes": [
7725	//     "https://www.googleapis.com/auth/cloud-platform"
7726	//   ]
7727	// }
7728
7729}
7730
7731// method id "healthcare.projects.locations.datasets.annotationStores.annotations.list":
7732
7733type ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall struct {
7734	s            *Service
7735	parent       string
7736	urlParams_   gensupport.URLParams
7737	ifNoneMatch_ string
7738	ctx_         context.Context
7739	header_      http.Header
7740}
7741
7742// List: Lists the Annotations in the given
7743// Annotation store for a source
7744// resource.
7745func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) List(parent string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
7746	c := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7747	c.parent = parent
7748	return c
7749}
7750
7751// Filter sets the optional parameter "filter": Restricts Annotations
7752// returned to those matching a filter.
7753// Syntax:
7754// https://cloud.google.com/appengine/docs/standard/python/search
7755// /query_strings
7756// Fields/functions available for filtering are:
7757// - source_version
7758func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Filter(filter string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
7759	c.urlParams_.Set("filter", filter)
7760	return c
7761}
7762
7763// PageSize sets the optional parameter "pageSize": Limit on the number
7764// of Annotations to return in a single response.
7765// If zero the default page size of 100 is used.
7766func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
7767	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
7768	return c
7769}
7770
7771// PageToken sets the optional parameter "pageToken": The
7772// next_page_token value returned from the previous List request, if
7773// any.
7774func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
7775	c.urlParams_.Set("pageToken", pageToken)
7776	return c
7777}
7778
7779// Fields allows partial responses to be retrieved. See
7780// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7781// for more information.
7782func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
7783	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7784	return c
7785}
7786
7787// IfNoneMatch sets the optional parameter which makes the operation
7788// fail if the object's ETag matches the given value. This is useful for
7789// getting updates only after the object has changed since the last
7790// request. Use googleapi.IsNotModified to check whether the response
7791// error from Do is the result of In-None-Match.
7792func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
7793	c.ifNoneMatch_ = entityTag
7794	return c
7795}
7796
7797// Context sets the context to be used in this call's Do method. Any
7798// pending HTTP request will be aborted if the provided context is
7799// canceled.
7800func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall {
7801	c.ctx_ = ctx
7802	return c
7803}
7804
7805// Header returns an http.Header that can be modified by the caller to
7806// add HTTP headers to the request.
7807func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Header() http.Header {
7808	if c.header_ == nil {
7809		c.header_ = make(http.Header)
7810	}
7811	return c.header_
7812}
7813
7814func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) doRequest(alt string) (*http.Response, error) {
7815	reqHeaders := make(http.Header)
7816	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
7817	for k, v := range c.header_ {
7818		reqHeaders[k] = v
7819	}
7820	reqHeaders.Set("User-Agent", c.s.userAgent())
7821	if c.ifNoneMatch_ != "" {
7822		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7823	}
7824	var body io.Reader = nil
7825	c.urlParams_.Set("alt", alt)
7826	c.urlParams_.Set("prettyPrint", "false")
7827	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/annotations")
7828	urls += "?" + c.urlParams_.Encode()
7829	req, err := http.NewRequest("GET", urls, body)
7830	if err != nil {
7831		return nil, err
7832	}
7833	req.Header = reqHeaders
7834	googleapi.Expand(req.URL, map[string]string{
7835		"parent": c.parent,
7836	})
7837	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7838}
7839
7840// Do executes the "healthcare.projects.locations.datasets.annotationStores.annotations.list" call.
7841// Exactly one of *ListAnnotationsResponse or error will be non-nil. Any
7842// non-2xx status code is an error. Response headers are in either
7843// *ListAnnotationsResponse.ServerResponse.Header or (if a response was
7844// returned at all) in error.(*googleapi.Error).Header. Use
7845// googleapi.IsNotModified to check whether the returned error was
7846// because http.StatusNotModified was returned.
7847func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Do(opts ...googleapi.CallOption) (*ListAnnotationsResponse, error) {
7848	gensupport.SetOptions(c.urlParams_, opts...)
7849	res, err := c.doRequest("json")
7850	if res != nil && res.StatusCode == http.StatusNotModified {
7851		if res.Body != nil {
7852			res.Body.Close()
7853		}
7854		return nil, &googleapi.Error{
7855			Code:   res.StatusCode,
7856			Header: res.Header,
7857		}
7858	}
7859	if err != nil {
7860		return nil, err
7861	}
7862	defer googleapi.CloseBody(res)
7863	if err := googleapi.CheckResponse(res); err != nil {
7864		return nil, err
7865	}
7866	ret := &ListAnnotationsResponse{
7867		ServerResponse: googleapi.ServerResponse{
7868			Header:         res.Header,
7869			HTTPStatusCode: res.StatusCode,
7870		},
7871	}
7872	target := &ret
7873	if err := gensupport.DecodeResponse(target, res); err != nil {
7874		return nil, err
7875	}
7876	return ret, nil
7877	// {
7878	//   "description": "Lists the Annotations in the given\nAnnotation store for a source\nresource.",
7879	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}/annotations",
7880	//   "httpMethod": "GET",
7881	//   "id": "healthcare.projects.locations.datasets.annotationStores.annotations.list",
7882	//   "parameterOrder": [
7883	//     "parent"
7884	//   ],
7885	//   "parameters": {
7886	//     "filter": {
7887	//       "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",
7888	//       "location": "query",
7889	//       "type": "string"
7890	//     },
7891	//     "pageSize": {
7892	//       "description": "Limit on the number of Annotations to return in a single response.\nIf zero the default page size of 100 is used.",
7893	//       "format": "int32",
7894	//       "location": "query",
7895	//       "type": "integer"
7896	//     },
7897	//     "pageToken": {
7898	//       "description": "The next_page_token value returned from the previous List request, if any.",
7899	//       "location": "query",
7900	//       "type": "string"
7901	//     },
7902	//     "parent": {
7903	//       "description": "Name of the Annotation store to retrieve Annotations from.",
7904	//       "location": "path",
7905	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+$",
7906	//       "required": true,
7907	//       "type": "string"
7908	//     }
7909	//   },
7910	//   "path": "v1alpha2/{+parent}/annotations",
7911	//   "response": {
7912	//     "$ref": "ListAnnotationsResponse"
7913	//   },
7914	//   "scopes": [
7915	//     "https://www.googleapis.com/auth/cloud-platform"
7916	//   ]
7917	// }
7918
7919}
7920
7921// Pages invokes f for each page of results.
7922// A non-nil error returned from f will halt the iteration.
7923// The provided context supersedes any context provided to the Context method.
7924func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsListCall) Pages(ctx context.Context, f func(*ListAnnotationsResponse) error) error {
7925	c.ctx_ = ctx
7926	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
7927	for {
7928		x, err := c.Do()
7929		if err != nil {
7930			return err
7931		}
7932		if err := f(x); err != nil {
7933			return err
7934		}
7935		if x.NextPageToken == "" {
7936			return nil
7937		}
7938		c.PageToken(x.NextPageToken)
7939	}
7940}
7941
7942// method id "healthcare.projects.locations.datasets.annotationStores.annotations.patch":
7943
7944type ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall struct {
7945	s          *Service
7946	name       string
7947	annotation *Annotation
7948	urlParams_ gensupport.URLParams
7949	ctx_       context.Context
7950	header_    http.Header
7951}
7952
7953// Patch: Updates the Annotation.
7954func (r *ProjectsLocationsDatasetsAnnotationStoresAnnotationsService) Patch(name string, annotation *Annotation) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall {
7955	c := &ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7956	c.name = name
7957	c.annotation = annotation
7958	return c
7959}
7960
7961// UpdateMask sets the optional parameter "updateMask": The update mask
7962// applies to the resource. For the `FieldMask`
7963// definition,
7964// see
7965// https://developers.google.com/protocol-buffers/docs/re
7966// ference/google.protobuf#fieldmask
7967func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall {
7968	c.urlParams_.Set("updateMask", updateMask)
7969	return c
7970}
7971
7972// Fields allows partial responses to be retrieved. See
7973// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7974// for more information.
7975func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall {
7976	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7977	return c
7978}
7979
7980// Context sets the context to be used in this call's Do method. Any
7981// pending HTTP request will be aborted if the provided context is
7982// canceled.
7983func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall {
7984	c.ctx_ = ctx
7985	return c
7986}
7987
7988// Header returns an http.Header that can be modified by the caller to
7989// add HTTP headers to the request.
7990func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) Header() http.Header {
7991	if c.header_ == nil {
7992		c.header_ = make(http.Header)
7993	}
7994	return c.header_
7995}
7996
7997func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) doRequest(alt string) (*http.Response, error) {
7998	reqHeaders := make(http.Header)
7999	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
8000	for k, v := range c.header_ {
8001		reqHeaders[k] = v
8002	}
8003	reqHeaders.Set("User-Agent", c.s.userAgent())
8004	var body io.Reader = nil
8005	body, err := googleapi.WithoutDataWrapper.JSONReader(c.annotation)
8006	if err != nil {
8007		return nil, err
8008	}
8009	reqHeaders.Set("Content-Type", "application/json")
8010	c.urlParams_.Set("alt", alt)
8011	c.urlParams_.Set("prettyPrint", "false")
8012	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
8013	urls += "?" + c.urlParams_.Encode()
8014	req, err := http.NewRequest("PATCH", urls, body)
8015	if err != nil {
8016		return nil, err
8017	}
8018	req.Header = reqHeaders
8019	googleapi.Expand(req.URL, map[string]string{
8020		"name": c.name,
8021	})
8022	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8023}
8024
8025// Do executes the "healthcare.projects.locations.datasets.annotationStores.annotations.patch" call.
8026// Exactly one of *Annotation or error will be non-nil. Any non-2xx
8027// status code is an error. Response headers are in either
8028// *Annotation.ServerResponse.Header or (if a response was returned at
8029// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
8030// to check whether the returned error was because
8031// http.StatusNotModified was returned.
8032func (c *ProjectsLocationsDatasetsAnnotationStoresAnnotationsPatchCall) Do(opts ...googleapi.CallOption) (*Annotation, error) {
8033	gensupport.SetOptions(c.urlParams_, opts...)
8034	res, err := c.doRequest("json")
8035	if res != nil && res.StatusCode == http.StatusNotModified {
8036		if res.Body != nil {
8037			res.Body.Close()
8038		}
8039		return nil, &googleapi.Error{
8040			Code:   res.StatusCode,
8041			Header: res.Header,
8042		}
8043	}
8044	if err != nil {
8045		return nil, err
8046	}
8047	defer googleapi.CloseBody(res)
8048	if err := googleapi.CheckResponse(res); err != nil {
8049		return nil, err
8050	}
8051	ret := &Annotation{
8052		ServerResponse: googleapi.ServerResponse{
8053			Header:         res.Header,
8054			HTTPStatusCode: res.StatusCode,
8055		},
8056	}
8057	target := &ret
8058	if err := gensupport.DecodeResponse(target, res); err != nil {
8059		return nil, err
8060	}
8061	return ret, nil
8062	// {
8063	//   "description": "Updates the Annotation.",
8064	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationStores/{annotationStoresId}/annotations/{annotationsId}",
8065	//   "httpMethod": "PATCH",
8066	//   "id": "healthcare.projects.locations.datasets.annotationStores.annotations.patch",
8067	//   "parameterOrder": [
8068	//     "name"
8069	//   ],
8070	//   "parameters": {
8071	//     "name": {
8072	//       "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}`.",
8073	//       "location": "path",
8074	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationStores/[^/]+/annotations/[^/]+$",
8075	//       "required": true,
8076	//       "type": "string"
8077	//     },
8078	//     "updateMask": {
8079	//       "description": "The update mask applies to the resource. For the `FieldMask` definition,\nsee\nhttps://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask",
8080	//       "format": "google-fieldmask",
8081	//       "location": "query",
8082	//       "type": "string"
8083	//     }
8084	//   },
8085	//   "path": "v1alpha2/{+name}",
8086	//   "request": {
8087	//     "$ref": "Annotation"
8088	//   },
8089	//   "response": {
8090	//     "$ref": "Annotation"
8091	//   },
8092	//   "scopes": [
8093	//     "https://www.googleapis.com/auth/cloud-platform"
8094	//   ]
8095	// }
8096
8097}
8098
8099// method id "healthcare.projects.locations.datasets.dicomStores.create":
8100
8101type ProjectsLocationsDatasetsDicomStoresCreateCall struct {
8102	s          *Service
8103	parent     string
8104	dicomstore *DicomStore
8105	urlParams_ gensupport.URLParams
8106	ctx_       context.Context
8107	header_    http.Header
8108}
8109
8110// Create: Creates a new DICOM store within the parent dataset.
8111func (r *ProjectsLocationsDatasetsDicomStoresService) Create(parent string, dicomstore *DicomStore) *ProjectsLocationsDatasetsDicomStoresCreateCall {
8112	c := &ProjectsLocationsDatasetsDicomStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8113	c.parent = parent
8114	c.dicomstore = dicomstore
8115	return c
8116}
8117
8118// DicomStoreId sets the optional parameter "dicomStoreId": The ID of
8119// the DICOM store that is being created.
8120// Any string value up to 256 characters in length.
8121func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) DicomStoreId(dicomStoreId string) *ProjectsLocationsDatasetsDicomStoresCreateCall {
8122	c.urlParams_.Set("dicomStoreId", dicomStoreId)
8123	return c
8124}
8125
8126// Fields allows partial responses to be retrieved. See
8127// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8128// for more information.
8129func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresCreateCall {
8130	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8131	return c
8132}
8133
8134// Context sets the context to be used in this call's Do method. Any
8135// pending HTTP request will be aborted if the provided context is
8136// canceled.
8137func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresCreateCall {
8138	c.ctx_ = ctx
8139	return c
8140}
8141
8142// Header returns an http.Header that can be modified by the caller to
8143// add HTTP headers to the request.
8144func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) Header() http.Header {
8145	if c.header_ == nil {
8146		c.header_ = make(http.Header)
8147	}
8148	return c.header_
8149}
8150
8151func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) doRequest(alt string) (*http.Response, error) {
8152	reqHeaders := make(http.Header)
8153	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
8154	for k, v := range c.header_ {
8155		reqHeaders[k] = v
8156	}
8157	reqHeaders.Set("User-Agent", c.s.userAgent())
8158	var body io.Reader = nil
8159	body, err := googleapi.WithoutDataWrapper.JSONReader(c.dicomstore)
8160	if err != nil {
8161		return nil, err
8162	}
8163	reqHeaders.Set("Content-Type", "application/json")
8164	c.urlParams_.Set("alt", alt)
8165	c.urlParams_.Set("prettyPrint", "false")
8166	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomStores")
8167	urls += "?" + c.urlParams_.Encode()
8168	req, err := http.NewRequest("POST", urls, body)
8169	if err != nil {
8170		return nil, err
8171	}
8172	req.Header = reqHeaders
8173	googleapi.Expand(req.URL, map[string]string{
8174		"parent": c.parent,
8175	})
8176	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8177}
8178
8179// Do executes the "healthcare.projects.locations.datasets.dicomStores.create" call.
8180// Exactly one of *DicomStore or error will be non-nil. Any non-2xx
8181// status code is an error. Response headers are in either
8182// *DicomStore.ServerResponse.Header or (if a response was returned at
8183// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
8184// to check whether the returned error was because
8185// http.StatusNotModified was returned.
8186func (c *ProjectsLocationsDatasetsDicomStoresCreateCall) Do(opts ...googleapi.CallOption) (*DicomStore, error) {
8187	gensupport.SetOptions(c.urlParams_, opts...)
8188	res, err := c.doRequest("json")
8189	if res != nil && res.StatusCode == http.StatusNotModified {
8190		if res.Body != nil {
8191			res.Body.Close()
8192		}
8193		return nil, &googleapi.Error{
8194			Code:   res.StatusCode,
8195			Header: res.Header,
8196		}
8197	}
8198	if err != nil {
8199		return nil, err
8200	}
8201	defer googleapi.CloseBody(res)
8202	if err := googleapi.CheckResponse(res); err != nil {
8203		return nil, err
8204	}
8205	ret := &DicomStore{
8206		ServerResponse: googleapi.ServerResponse{
8207			Header:         res.Header,
8208			HTTPStatusCode: res.StatusCode,
8209		},
8210	}
8211	target := &ret
8212	if err := gensupport.DecodeResponse(target, res); err != nil {
8213		return nil, err
8214	}
8215	return ret, nil
8216	// {
8217	//   "description": "Creates a new DICOM store within the parent dataset.",
8218	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores",
8219	//   "httpMethod": "POST",
8220	//   "id": "healthcare.projects.locations.datasets.dicomStores.create",
8221	//   "parameterOrder": [
8222	//     "parent"
8223	//   ],
8224	//   "parameters": {
8225	//     "dicomStoreId": {
8226	//       "description": "The ID of the DICOM store that is being created.\nAny string value up to 256 characters in length.",
8227	//       "location": "query",
8228	//       "type": "string"
8229	//     },
8230	//     "parent": {
8231	//       "description": "The name of the dataset this DICOM store belongs to.",
8232	//       "location": "path",
8233	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
8234	//       "required": true,
8235	//       "type": "string"
8236	//     }
8237	//   },
8238	//   "path": "v1alpha2/{+parent}/dicomStores",
8239	//   "request": {
8240	//     "$ref": "DicomStore"
8241	//   },
8242	//   "response": {
8243	//     "$ref": "DicomStore"
8244	//   },
8245	//   "scopes": [
8246	//     "https://www.googleapis.com/auth/cloud-platform"
8247	//   ]
8248	// }
8249
8250}
8251
8252// method id "healthcare.projects.locations.datasets.dicomStores.delete":
8253
8254type ProjectsLocationsDatasetsDicomStoresDeleteCall struct {
8255	s          *Service
8256	name       string
8257	urlParams_ gensupport.URLParams
8258	ctx_       context.Context
8259	header_    http.Header
8260}
8261
8262// Delete: Deletes the specified DICOM store and removes all images that
8263// are contained
8264// within it.
8265func (r *ProjectsLocationsDatasetsDicomStoresService) Delete(name string) *ProjectsLocationsDatasetsDicomStoresDeleteCall {
8266	c := &ProjectsLocationsDatasetsDicomStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8267	c.name = name
8268	return c
8269}
8270
8271// Fields allows partial responses to be retrieved. See
8272// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8273// for more information.
8274func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDeleteCall {
8275	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8276	return c
8277}
8278
8279// Context sets the context to be used in this call's Do method. Any
8280// pending HTTP request will be aborted if the provided context is
8281// canceled.
8282func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDeleteCall {
8283	c.ctx_ = ctx
8284	return c
8285}
8286
8287// Header returns an http.Header that can be modified by the caller to
8288// add HTTP headers to the request.
8289func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) Header() http.Header {
8290	if c.header_ == nil {
8291		c.header_ = make(http.Header)
8292	}
8293	return c.header_
8294}
8295
8296func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) doRequest(alt string) (*http.Response, error) {
8297	reqHeaders := make(http.Header)
8298	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
8299	for k, v := range c.header_ {
8300		reqHeaders[k] = v
8301	}
8302	reqHeaders.Set("User-Agent", c.s.userAgent())
8303	var body io.Reader = nil
8304	c.urlParams_.Set("alt", alt)
8305	c.urlParams_.Set("prettyPrint", "false")
8306	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
8307	urls += "?" + c.urlParams_.Encode()
8308	req, err := http.NewRequest("DELETE", urls, body)
8309	if err != nil {
8310		return nil, err
8311	}
8312	req.Header = reqHeaders
8313	googleapi.Expand(req.URL, map[string]string{
8314		"name": c.name,
8315	})
8316	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8317}
8318
8319// Do executes the "healthcare.projects.locations.datasets.dicomStores.delete" call.
8320// Exactly one of *Empty or error will be non-nil. Any non-2xx status
8321// code is an error. Response headers are in either
8322// *Empty.ServerResponse.Header or (if a response was returned at all)
8323// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
8324// check whether the returned error was because http.StatusNotModified
8325// was returned.
8326func (c *ProjectsLocationsDatasetsDicomStoresDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
8327	gensupport.SetOptions(c.urlParams_, opts...)
8328	res, err := c.doRequest("json")
8329	if res != nil && res.StatusCode == http.StatusNotModified {
8330		if res.Body != nil {
8331			res.Body.Close()
8332		}
8333		return nil, &googleapi.Error{
8334			Code:   res.StatusCode,
8335			Header: res.Header,
8336		}
8337	}
8338	if err != nil {
8339		return nil, err
8340	}
8341	defer googleapi.CloseBody(res)
8342	if err := googleapi.CheckResponse(res); err != nil {
8343		return nil, err
8344	}
8345	ret := &Empty{
8346		ServerResponse: googleapi.ServerResponse{
8347			Header:         res.Header,
8348			HTTPStatusCode: res.StatusCode,
8349		},
8350	}
8351	target := &ret
8352	if err := gensupport.DecodeResponse(target, res); err != nil {
8353		return nil, err
8354	}
8355	return ret, nil
8356	// {
8357	//   "description": "Deletes the specified DICOM store and removes all images that are contained\nwithin it.",
8358	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}",
8359	//   "httpMethod": "DELETE",
8360	//   "id": "healthcare.projects.locations.datasets.dicomStores.delete",
8361	//   "parameterOrder": [
8362	//     "name"
8363	//   ],
8364	//   "parameters": {
8365	//     "name": {
8366	//       "description": "The resource name of the DICOM store to delete.",
8367	//       "location": "path",
8368	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
8369	//       "required": true,
8370	//       "type": "string"
8371	//     }
8372	//   },
8373	//   "path": "v1alpha2/{+name}",
8374	//   "response": {
8375	//     "$ref": "Empty"
8376	//   },
8377	//   "scopes": [
8378	//     "https://www.googleapis.com/auth/cloud-platform"
8379	//   ]
8380	// }
8381
8382}
8383
8384// method id "healthcare.projects.locations.datasets.dicomStores.export":
8385
8386type ProjectsLocationsDatasetsDicomStoresExportCall struct {
8387	s                      *Service
8388	name                   string
8389	exportdicomdatarequest *ExportDicomDataRequest
8390	urlParams_             gensupport.URLParams
8391	ctx_                   context.Context
8392	header_                http.Header
8393}
8394
8395// Export: Exports data to the specified destination by copying it from
8396// the DICOM
8397// store.
8398// The metadata field type is
8399// OperationMetadata.
8400func (r *ProjectsLocationsDatasetsDicomStoresService) Export(name string, exportdicomdatarequest *ExportDicomDataRequest) *ProjectsLocationsDatasetsDicomStoresExportCall {
8401	c := &ProjectsLocationsDatasetsDicomStoresExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8402	c.name = name
8403	c.exportdicomdatarequest = exportdicomdatarequest
8404	return c
8405}
8406
8407// Fields allows partial responses to be retrieved. See
8408// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8409// for more information.
8410func (c *ProjectsLocationsDatasetsDicomStoresExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresExportCall {
8411	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8412	return c
8413}
8414
8415// Context sets the context to be used in this call's Do method. Any
8416// pending HTTP request will be aborted if the provided context is
8417// canceled.
8418func (c *ProjectsLocationsDatasetsDicomStoresExportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresExportCall {
8419	c.ctx_ = ctx
8420	return c
8421}
8422
8423// Header returns an http.Header that can be modified by the caller to
8424// add HTTP headers to the request.
8425func (c *ProjectsLocationsDatasetsDicomStoresExportCall) Header() http.Header {
8426	if c.header_ == nil {
8427		c.header_ = make(http.Header)
8428	}
8429	return c.header_
8430}
8431
8432func (c *ProjectsLocationsDatasetsDicomStoresExportCall) doRequest(alt string) (*http.Response, error) {
8433	reqHeaders := make(http.Header)
8434	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
8435	for k, v := range c.header_ {
8436		reqHeaders[k] = v
8437	}
8438	reqHeaders.Set("User-Agent", c.s.userAgent())
8439	var body io.Reader = nil
8440	body, err := googleapi.WithoutDataWrapper.JSONReader(c.exportdicomdatarequest)
8441	if err != nil {
8442		return nil, err
8443	}
8444	reqHeaders.Set("Content-Type", "application/json")
8445	c.urlParams_.Set("alt", alt)
8446	c.urlParams_.Set("prettyPrint", "false")
8447	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}:export")
8448	urls += "?" + c.urlParams_.Encode()
8449	req, err := http.NewRequest("POST", urls, body)
8450	if err != nil {
8451		return nil, err
8452	}
8453	req.Header = reqHeaders
8454	googleapi.Expand(req.URL, map[string]string{
8455		"name": c.name,
8456	})
8457	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8458}
8459
8460// Do executes the "healthcare.projects.locations.datasets.dicomStores.export" call.
8461// Exactly one of *Operation or error will be non-nil. Any non-2xx
8462// status code is an error. Response headers are in either
8463// *Operation.ServerResponse.Header or (if a response was returned at
8464// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
8465// to check whether the returned error was because
8466// http.StatusNotModified was returned.
8467func (c *ProjectsLocationsDatasetsDicomStoresExportCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
8468	gensupport.SetOptions(c.urlParams_, opts...)
8469	res, err := c.doRequest("json")
8470	if res != nil && res.StatusCode == http.StatusNotModified {
8471		if res.Body != nil {
8472			res.Body.Close()
8473		}
8474		return nil, &googleapi.Error{
8475			Code:   res.StatusCode,
8476			Header: res.Header,
8477		}
8478	}
8479	if err != nil {
8480		return nil, err
8481	}
8482	defer googleapi.CloseBody(res)
8483	if err := googleapi.CheckResponse(res); err != nil {
8484		return nil, err
8485	}
8486	ret := &Operation{
8487		ServerResponse: googleapi.ServerResponse{
8488			Header:         res.Header,
8489			HTTPStatusCode: res.StatusCode,
8490		},
8491	}
8492	target := &ret
8493	if err := gensupport.DecodeResponse(target, res); err != nil {
8494		return nil, err
8495	}
8496	return ret, nil
8497	// {
8498	//   "description": "Exports data to the specified destination by copying it from the DICOM\nstore.\nThe metadata field type is\nOperationMetadata.",
8499	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}:export",
8500	//   "httpMethod": "POST",
8501	//   "id": "healthcare.projects.locations.datasets.dicomStores.export",
8502	//   "parameterOrder": [
8503	//     "name"
8504	//   ],
8505	//   "parameters": {
8506	//     "name": {
8507	//       "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}`).",
8508	//       "location": "path",
8509	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
8510	//       "required": true,
8511	//       "type": "string"
8512	//     }
8513	//   },
8514	//   "path": "v1alpha2/{+name}:export",
8515	//   "request": {
8516	//     "$ref": "ExportDicomDataRequest"
8517	//   },
8518	//   "response": {
8519	//     "$ref": "Operation"
8520	//   },
8521	//   "scopes": [
8522	//     "https://www.googleapis.com/auth/cloud-platform"
8523	//   ]
8524	// }
8525
8526}
8527
8528// method id "healthcare.projects.locations.datasets.dicomStores.get":
8529
8530type ProjectsLocationsDatasetsDicomStoresGetCall struct {
8531	s            *Service
8532	name         string
8533	urlParams_   gensupport.URLParams
8534	ifNoneMatch_ string
8535	ctx_         context.Context
8536	header_      http.Header
8537}
8538
8539// Get: Gets the specified DICOM store.
8540func (r *ProjectsLocationsDatasetsDicomStoresService) Get(name string) *ProjectsLocationsDatasetsDicomStoresGetCall {
8541	c := &ProjectsLocationsDatasetsDicomStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8542	c.name = name
8543	return c
8544}
8545
8546// Fields allows partial responses to be retrieved. See
8547// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8548// for more information.
8549func (c *ProjectsLocationsDatasetsDicomStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresGetCall {
8550	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8551	return c
8552}
8553
8554// IfNoneMatch sets the optional parameter which makes the operation
8555// fail if the object's ETag matches the given value. This is useful for
8556// getting updates only after the object has changed since the last
8557// request. Use googleapi.IsNotModified to check whether the response
8558// error from Do is the result of In-None-Match.
8559func (c *ProjectsLocationsDatasetsDicomStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresGetCall {
8560	c.ifNoneMatch_ = entityTag
8561	return c
8562}
8563
8564// Context sets the context to be used in this call's Do method. Any
8565// pending HTTP request will be aborted if the provided context is
8566// canceled.
8567func (c *ProjectsLocationsDatasetsDicomStoresGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresGetCall {
8568	c.ctx_ = ctx
8569	return c
8570}
8571
8572// Header returns an http.Header that can be modified by the caller to
8573// add HTTP headers to the request.
8574func (c *ProjectsLocationsDatasetsDicomStoresGetCall) Header() http.Header {
8575	if c.header_ == nil {
8576		c.header_ = make(http.Header)
8577	}
8578	return c.header_
8579}
8580
8581func (c *ProjectsLocationsDatasetsDicomStoresGetCall) doRequest(alt string) (*http.Response, error) {
8582	reqHeaders := make(http.Header)
8583	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
8584	for k, v := range c.header_ {
8585		reqHeaders[k] = v
8586	}
8587	reqHeaders.Set("User-Agent", c.s.userAgent())
8588	if c.ifNoneMatch_ != "" {
8589		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8590	}
8591	var body io.Reader = nil
8592	c.urlParams_.Set("alt", alt)
8593	c.urlParams_.Set("prettyPrint", "false")
8594	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
8595	urls += "?" + c.urlParams_.Encode()
8596	req, err := http.NewRequest("GET", urls, body)
8597	if err != nil {
8598		return nil, err
8599	}
8600	req.Header = reqHeaders
8601	googleapi.Expand(req.URL, map[string]string{
8602		"name": c.name,
8603	})
8604	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8605}
8606
8607// Do executes the "healthcare.projects.locations.datasets.dicomStores.get" call.
8608// Exactly one of *DicomStore or error will be non-nil. Any non-2xx
8609// status code is an error. Response headers are in either
8610// *DicomStore.ServerResponse.Header or (if a response was returned at
8611// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
8612// to check whether the returned error was because
8613// http.StatusNotModified was returned.
8614func (c *ProjectsLocationsDatasetsDicomStoresGetCall) Do(opts ...googleapi.CallOption) (*DicomStore, error) {
8615	gensupport.SetOptions(c.urlParams_, opts...)
8616	res, err := c.doRequest("json")
8617	if res != nil && res.StatusCode == http.StatusNotModified {
8618		if res.Body != nil {
8619			res.Body.Close()
8620		}
8621		return nil, &googleapi.Error{
8622			Code:   res.StatusCode,
8623			Header: res.Header,
8624		}
8625	}
8626	if err != nil {
8627		return nil, err
8628	}
8629	defer googleapi.CloseBody(res)
8630	if err := googleapi.CheckResponse(res); err != nil {
8631		return nil, err
8632	}
8633	ret := &DicomStore{
8634		ServerResponse: googleapi.ServerResponse{
8635			Header:         res.Header,
8636			HTTPStatusCode: res.StatusCode,
8637		},
8638	}
8639	target := &ret
8640	if err := gensupport.DecodeResponse(target, res); err != nil {
8641		return nil, err
8642	}
8643	return ret, nil
8644	// {
8645	//   "description": "Gets the specified DICOM store.",
8646	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}",
8647	//   "httpMethod": "GET",
8648	//   "id": "healthcare.projects.locations.datasets.dicomStores.get",
8649	//   "parameterOrder": [
8650	//     "name"
8651	//   ],
8652	//   "parameters": {
8653	//     "name": {
8654	//       "description": "The resource name of the DICOM store to get.",
8655	//       "location": "path",
8656	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
8657	//       "required": true,
8658	//       "type": "string"
8659	//     }
8660	//   },
8661	//   "path": "v1alpha2/{+name}",
8662	//   "response": {
8663	//     "$ref": "DicomStore"
8664	//   },
8665	//   "scopes": [
8666	//     "https://www.googleapis.com/auth/cloud-platform"
8667	//   ]
8668	// }
8669
8670}
8671
8672// method id "healthcare.projects.locations.datasets.dicomStores.getIamPolicy":
8673
8674type ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall struct {
8675	s            *Service
8676	resource     string
8677	urlParams_   gensupport.URLParams
8678	ifNoneMatch_ string
8679	ctx_         context.Context
8680	header_      http.Header
8681}
8682
8683// GetIamPolicy: Gets the access control policy for a resource.
8684// Returns an empty policy if the resource exists and does not have a
8685// policy
8686// set.
8687func (r *ProjectsLocationsDatasetsDicomStoresService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall {
8688	c := &ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8689	c.resource = resource
8690	return c
8691}
8692
8693// OptionsRequestedPolicyVersion sets the optional parameter
8694// "options.requestedPolicyVersion": The policy format version to be
8695// returned.
8696// Acceptable values are 0, 1, and 3.
8697// If the value is 0, or the field is omitted, policy format version 1
8698// will be
8699// returned.
8700func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall {
8701	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
8702	return c
8703}
8704
8705// Fields allows partial responses to be retrieved. See
8706// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8707// for more information.
8708func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall {
8709	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8710	return c
8711}
8712
8713// IfNoneMatch sets the optional parameter which makes the operation
8714// fail if the object's ETag matches the given value. This is useful for
8715// getting updates only after the object has changed since the last
8716// request. Use googleapi.IsNotModified to check whether the response
8717// error from Do is the result of In-None-Match.
8718func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall {
8719	c.ifNoneMatch_ = entityTag
8720	return c
8721}
8722
8723// Context sets the context to be used in this call's Do method. Any
8724// pending HTTP request will be aborted if the provided context is
8725// canceled.
8726func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall {
8727	c.ctx_ = ctx
8728	return c
8729}
8730
8731// Header returns an http.Header that can be modified by the caller to
8732// add HTTP headers to the request.
8733func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Header() http.Header {
8734	if c.header_ == nil {
8735		c.header_ = make(http.Header)
8736	}
8737	return c.header_
8738}
8739
8740func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
8741	reqHeaders := make(http.Header)
8742	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
8743	for k, v := range c.header_ {
8744		reqHeaders[k] = v
8745	}
8746	reqHeaders.Set("User-Agent", c.s.userAgent())
8747	if c.ifNoneMatch_ != "" {
8748		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8749	}
8750	var body io.Reader = nil
8751	c.urlParams_.Set("alt", alt)
8752	c.urlParams_.Set("prettyPrint", "false")
8753	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:getIamPolicy")
8754	urls += "?" + c.urlParams_.Encode()
8755	req, err := http.NewRequest("GET", urls, body)
8756	if err != nil {
8757		return nil, err
8758	}
8759	req.Header = reqHeaders
8760	googleapi.Expand(req.URL, map[string]string{
8761		"resource": c.resource,
8762	})
8763	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8764}
8765
8766// Do executes the "healthcare.projects.locations.datasets.dicomStores.getIamPolicy" call.
8767// Exactly one of *Policy or error will be non-nil. Any non-2xx status
8768// code is an error. Response headers are in either
8769// *Policy.ServerResponse.Header or (if a response was returned at all)
8770// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
8771// check whether the returned error was because http.StatusNotModified
8772// was returned.
8773func (c *ProjectsLocationsDatasetsDicomStoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
8774	gensupport.SetOptions(c.urlParams_, opts...)
8775	res, err := c.doRequest("json")
8776	if res != nil && res.StatusCode == http.StatusNotModified {
8777		if res.Body != nil {
8778			res.Body.Close()
8779		}
8780		return nil, &googleapi.Error{
8781			Code:   res.StatusCode,
8782			Header: res.Header,
8783		}
8784	}
8785	if err != nil {
8786		return nil, err
8787	}
8788	defer googleapi.CloseBody(res)
8789	if err := googleapi.CheckResponse(res); err != nil {
8790		return nil, err
8791	}
8792	ret := &Policy{
8793		ServerResponse: googleapi.ServerResponse{
8794			Header:         res.Header,
8795			HTTPStatusCode: res.StatusCode,
8796		},
8797	}
8798	target := &ret
8799	if err := gensupport.DecodeResponse(target, res); err != nil {
8800		return nil, err
8801	}
8802	return ret, nil
8803	// {
8804	//   "description": "Gets the access control policy for a resource.\nReturns an empty policy if the resource exists and does not have a policy\nset.",
8805	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}:getIamPolicy",
8806	//   "httpMethod": "GET",
8807	//   "id": "healthcare.projects.locations.datasets.dicomStores.getIamPolicy",
8808	//   "parameterOrder": [
8809	//     "resource"
8810	//   ],
8811	//   "parameters": {
8812	//     "options.requestedPolicyVersion": {
8813	//       "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.",
8814	//       "format": "int32",
8815	//       "location": "query",
8816	//       "type": "integer"
8817	//     },
8818	//     "resource": {
8819	//       "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.",
8820	//       "location": "path",
8821	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
8822	//       "required": true,
8823	//       "type": "string"
8824	//     }
8825	//   },
8826	//   "path": "v1alpha2/{+resource}:getIamPolicy",
8827	//   "response": {
8828	//     "$ref": "Policy"
8829	//   },
8830	//   "scopes": [
8831	//     "https://www.googleapis.com/auth/cloud-platform"
8832	//   ]
8833	// }
8834
8835}
8836
8837// method id "healthcare.projects.locations.datasets.dicomStores.import":
8838
8839type ProjectsLocationsDatasetsDicomStoresImportCall struct {
8840	s                      *Service
8841	name                   string
8842	importdicomdatarequest *ImportDicomDataRequest
8843	urlParams_             gensupport.URLParams
8844	ctx_                   context.Context
8845	header_                http.Header
8846}
8847
8848// Import: Imports data into the DICOM store by copying it from the
8849// specified source.
8850// For errors, the Operation will be populated with error details (in
8851// the form
8852// of ImportDicomDataErrorDetails in error.details), which will
8853// hold
8854// finer-grained error information. Errors are also logged to
8855// Stackdriver
8856// (see [Viewing
8857// logs](/healthcare/docs/how-tos/stackdriver-logging)).
8858// The metadata field type is
8859// OperationMetadata.
8860func (r *ProjectsLocationsDatasetsDicomStoresService) Import(name string, importdicomdatarequest *ImportDicomDataRequest) *ProjectsLocationsDatasetsDicomStoresImportCall {
8861	c := &ProjectsLocationsDatasetsDicomStoresImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8862	c.name = name
8863	c.importdicomdatarequest = importdicomdatarequest
8864	return c
8865}
8866
8867// Fields allows partial responses to be retrieved. See
8868// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8869// for more information.
8870func (c *ProjectsLocationsDatasetsDicomStoresImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresImportCall {
8871	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8872	return c
8873}
8874
8875// Context sets the context to be used in this call's Do method. Any
8876// pending HTTP request will be aborted if the provided context is
8877// canceled.
8878func (c *ProjectsLocationsDatasetsDicomStoresImportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresImportCall {
8879	c.ctx_ = ctx
8880	return c
8881}
8882
8883// Header returns an http.Header that can be modified by the caller to
8884// add HTTP headers to the request.
8885func (c *ProjectsLocationsDatasetsDicomStoresImportCall) Header() http.Header {
8886	if c.header_ == nil {
8887		c.header_ = make(http.Header)
8888	}
8889	return c.header_
8890}
8891
8892func (c *ProjectsLocationsDatasetsDicomStoresImportCall) doRequest(alt string) (*http.Response, error) {
8893	reqHeaders := make(http.Header)
8894	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
8895	for k, v := range c.header_ {
8896		reqHeaders[k] = v
8897	}
8898	reqHeaders.Set("User-Agent", c.s.userAgent())
8899	var body io.Reader = nil
8900	body, err := googleapi.WithoutDataWrapper.JSONReader(c.importdicomdatarequest)
8901	if err != nil {
8902		return nil, err
8903	}
8904	reqHeaders.Set("Content-Type", "application/json")
8905	c.urlParams_.Set("alt", alt)
8906	c.urlParams_.Set("prettyPrint", "false")
8907	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}:import")
8908	urls += "?" + c.urlParams_.Encode()
8909	req, err := http.NewRequest("POST", urls, body)
8910	if err != nil {
8911		return nil, err
8912	}
8913	req.Header = reqHeaders
8914	googleapi.Expand(req.URL, map[string]string{
8915		"name": c.name,
8916	})
8917	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8918}
8919
8920// Do executes the "healthcare.projects.locations.datasets.dicomStores.import" call.
8921// Exactly one of *Operation or error will be non-nil. Any non-2xx
8922// status code is an error. Response headers are in either
8923// *Operation.ServerResponse.Header or (if a response was returned at
8924// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
8925// to check whether the returned error was because
8926// http.StatusNotModified was returned.
8927func (c *ProjectsLocationsDatasetsDicomStoresImportCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
8928	gensupport.SetOptions(c.urlParams_, opts...)
8929	res, err := c.doRequest("json")
8930	if res != nil && res.StatusCode == http.StatusNotModified {
8931		if res.Body != nil {
8932			res.Body.Close()
8933		}
8934		return nil, &googleapi.Error{
8935			Code:   res.StatusCode,
8936			Header: res.Header,
8937		}
8938	}
8939	if err != nil {
8940		return nil, err
8941	}
8942	defer googleapi.CloseBody(res)
8943	if err := googleapi.CheckResponse(res); err != nil {
8944		return nil, err
8945	}
8946	ret := &Operation{
8947		ServerResponse: googleapi.ServerResponse{
8948			Header:         res.Header,
8949			HTTPStatusCode: res.StatusCode,
8950		},
8951	}
8952	target := &ret
8953	if err := gensupport.DecodeResponse(target, res); err != nil {
8954		return nil, err
8955	}
8956	return ret, nil
8957	// {
8958	//   "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.",
8959	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}:import",
8960	//   "httpMethod": "POST",
8961	//   "id": "healthcare.projects.locations.datasets.dicomStores.import",
8962	//   "parameterOrder": [
8963	//     "name"
8964	//   ],
8965	//   "parameters": {
8966	//     "name": {
8967	//       "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}`).",
8968	//       "location": "path",
8969	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
8970	//       "required": true,
8971	//       "type": "string"
8972	//     }
8973	//   },
8974	//   "path": "v1alpha2/{+name}:import",
8975	//   "request": {
8976	//     "$ref": "ImportDicomDataRequest"
8977	//   },
8978	//   "response": {
8979	//     "$ref": "Operation"
8980	//   },
8981	//   "scopes": [
8982	//     "https://www.googleapis.com/auth/cloud-platform"
8983	//   ]
8984	// }
8985
8986}
8987
8988// method id "healthcare.projects.locations.datasets.dicomStores.list":
8989
8990type ProjectsLocationsDatasetsDicomStoresListCall struct {
8991	s            *Service
8992	parent       string
8993	urlParams_   gensupport.URLParams
8994	ifNoneMatch_ string
8995	ctx_         context.Context
8996	header_      http.Header
8997}
8998
8999// List: Lists the DICOM stores in the given dataset.
9000func (r *ProjectsLocationsDatasetsDicomStoresService) List(parent string) *ProjectsLocationsDatasetsDicomStoresListCall {
9001	c := &ProjectsLocationsDatasetsDicomStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9002	c.parent = parent
9003	return c
9004}
9005
9006// Filter sets the optional parameter "filter": Restricts stores
9007// returned to those matching a filter.
9008// Syntax:
9009// https://cloud.google.com/appengine/docs/standard/python/search
9010// /query_strings
9011// Only filtering on labels is supported, for example
9012// `labels.key=value`.
9013func (c *ProjectsLocationsDatasetsDicomStoresListCall) Filter(filter string) *ProjectsLocationsDatasetsDicomStoresListCall {
9014	c.urlParams_.Set("filter", filter)
9015	return c
9016}
9017
9018// PageSize sets the optional parameter "pageSize": Limit on the number
9019// of DICOM stores to return in a single response.
9020// If zero the default page size of 100 is used.
9021func (c *ProjectsLocationsDatasetsDicomStoresListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsDicomStoresListCall {
9022	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
9023	return c
9024}
9025
9026// PageToken sets the optional parameter "pageToken": The
9027// next_page_token value returned from the previous List request, if
9028// any.
9029func (c *ProjectsLocationsDatasetsDicomStoresListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsDicomStoresListCall {
9030	c.urlParams_.Set("pageToken", pageToken)
9031	return c
9032}
9033
9034// Fields allows partial responses to be retrieved. See
9035// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9036// for more information.
9037func (c *ProjectsLocationsDatasetsDicomStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresListCall {
9038	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9039	return c
9040}
9041
9042// IfNoneMatch sets the optional parameter which makes the operation
9043// fail if the object's ETag matches the given value. This is useful for
9044// getting updates only after the object has changed since the last
9045// request. Use googleapi.IsNotModified to check whether the response
9046// error from Do is the result of In-None-Match.
9047func (c *ProjectsLocationsDatasetsDicomStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresListCall {
9048	c.ifNoneMatch_ = entityTag
9049	return c
9050}
9051
9052// Context sets the context to be used in this call's Do method. Any
9053// pending HTTP request will be aborted if the provided context is
9054// canceled.
9055func (c *ProjectsLocationsDatasetsDicomStoresListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresListCall {
9056	c.ctx_ = ctx
9057	return c
9058}
9059
9060// Header returns an http.Header that can be modified by the caller to
9061// add HTTP headers to the request.
9062func (c *ProjectsLocationsDatasetsDicomStoresListCall) Header() http.Header {
9063	if c.header_ == nil {
9064		c.header_ = make(http.Header)
9065	}
9066	return c.header_
9067}
9068
9069func (c *ProjectsLocationsDatasetsDicomStoresListCall) doRequest(alt string) (*http.Response, error) {
9070	reqHeaders := make(http.Header)
9071	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
9072	for k, v := range c.header_ {
9073		reqHeaders[k] = v
9074	}
9075	reqHeaders.Set("User-Agent", c.s.userAgent())
9076	if c.ifNoneMatch_ != "" {
9077		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9078	}
9079	var body io.Reader = nil
9080	c.urlParams_.Set("alt", alt)
9081	c.urlParams_.Set("prettyPrint", "false")
9082	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomStores")
9083	urls += "?" + c.urlParams_.Encode()
9084	req, err := http.NewRequest("GET", urls, body)
9085	if err != nil {
9086		return nil, err
9087	}
9088	req.Header = reqHeaders
9089	googleapi.Expand(req.URL, map[string]string{
9090		"parent": c.parent,
9091	})
9092	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9093}
9094
9095// Do executes the "healthcare.projects.locations.datasets.dicomStores.list" call.
9096// Exactly one of *ListDicomStoresResponse or error will be non-nil. Any
9097// non-2xx status code is an error. Response headers are in either
9098// *ListDicomStoresResponse.ServerResponse.Header or (if a response was
9099// returned at all) in error.(*googleapi.Error).Header. Use
9100// googleapi.IsNotModified to check whether the returned error was
9101// because http.StatusNotModified was returned.
9102func (c *ProjectsLocationsDatasetsDicomStoresListCall) Do(opts ...googleapi.CallOption) (*ListDicomStoresResponse, error) {
9103	gensupport.SetOptions(c.urlParams_, opts...)
9104	res, err := c.doRequest("json")
9105	if res != nil && res.StatusCode == http.StatusNotModified {
9106		if res.Body != nil {
9107			res.Body.Close()
9108		}
9109		return nil, &googleapi.Error{
9110			Code:   res.StatusCode,
9111			Header: res.Header,
9112		}
9113	}
9114	if err != nil {
9115		return nil, err
9116	}
9117	defer googleapi.CloseBody(res)
9118	if err := googleapi.CheckResponse(res); err != nil {
9119		return nil, err
9120	}
9121	ret := &ListDicomStoresResponse{
9122		ServerResponse: googleapi.ServerResponse{
9123			Header:         res.Header,
9124			HTTPStatusCode: res.StatusCode,
9125		},
9126	}
9127	target := &ret
9128	if err := gensupport.DecodeResponse(target, res); err != nil {
9129		return nil, err
9130	}
9131	return ret, nil
9132	// {
9133	//   "description": "Lists the DICOM stores in the given dataset.",
9134	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores",
9135	//   "httpMethod": "GET",
9136	//   "id": "healthcare.projects.locations.datasets.dicomStores.list",
9137	//   "parameterOrder": [
9138	//     "parent"
9139	//   ],
9140	//   "parameters": {
9141	//     "filter": {
9142	//       "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`.",
9143	//       "location": "query",
9144	//       "type": "string"
9145	//     },
9146	//     "pageSize": {
9147	//       "description": "Limit on the number of DICOM stores to return in a single response.\nIf zero the default page size of 100 is used.",
9148	//       "format": "int32",
9149	//       "location": "query",
9150	//       "type": "integer"
9151	//     },
9152	//     "pageToken": {
9153	//       "description": "The next_page_token value returned from the previous List request, if any.",
9154	//       "location": "query",
9155	//       "type": "string"
9156	//     },
9157	//     "parent": {
9158	//       "description": "Name of the dataset.",
9159	//       "location": "path",
9160	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
9161	//       "required": true,
9162	//       "type": "string"
9163	//     }
9164	//   },
9165	//   "path": "v1alpha2/{+parent}/dicomStores",
9166	//   "response": {
9167	//     "$ref": "ListDicomStoresResponse"
9168	//   },
9169	//   "scopes": [
9170	//     "https://www.googleapis.com/auth/cloud-platform"
9171	//   ]
9172	// }
9173
9174}
9175
9176// Pages invokes f for each page of results.
9177// A non-nil error returned from f will halt the iteration.
9178// The provided context supersedes any context provided to the Context method.
9179func (c *ProjectsLocationsDatasetsDicomStoresListCall) Pages(ctx context.Context, f func(*ListDicomStoresResponse) error) error {
9180	c.ctx_ = ctx
9181	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
9182	for {
9183		x, err := c.Do()
9184		if err != nil {
9185			return err
9186		}
9187		if err := f(x); err != nil {
9188			return err
9189		}
9190		if x.NextPageToken == "" {
9191			return nil
9192		}
9193		c.PageToken(x.NextPageToken)
9194	}
9195}
9196
9197// method id "healthcare.projects.locations.datasets.dicomStores.patch":
9198
9199type ProjectsLocationsDatasetsDicomStoresPatchCall struct {
9200	s          *Service
9201	name       string
9202	dicomstore *DicomStore
9203	urlParams_ gensupport.URLParams
9204	ctx_       context.Context
9205	header_    http.Header
9206}
9207
9208// Patch: Updates the specified DICOM store.
9209func (r *ProjectsLocationsDatasetsDicomStoresService) Patch(name string, dicomstore *DicomStore) *ProjectsLocationsDatasetsDicomStoresPatchCall {
9210	c := &ProjectsLocationsDatasetsDicomStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9211	c.name = name
9212	c.dicomstore = dicomstore
9213	return c
9214}
9215
9216// UpdateMask sets the optional parameter "updateMask": The update mask
9217// applies to the resource. For the `FieldMask`
9218// definition,
9219// see
9220// https://developers.google.com/protocol-buffers/docs/re
9221// ference/google.protobuf#fieldmask
9222func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsDicomStoresPatchCall {
9223	c.urlParams_.Set("updateMask", updateMask)
9224	return c
9225}
9226
9227// Fields allows partial responses to be retrieved. See
9228// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9229// for more information.
9230func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresPatchCall {
9231	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9232	return c
9233}
9234
9235// Context sets the context to be used in this call's Do method. Any
9236// pending HTTP request will be aborted if the provided context is
9237// canceled.
9238func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresPatchCall {
9239	c.ctx_ = ctx
9240	return c
9241}
9242
9243// Header returns an http.Header that can be modified by the caller to
9244// add HTTP headers to the request.
9245func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) Header() http.Header {
9246	if c.header_ == nil {
9247		c.header_ = make(http.Header)
9248	}
9249	return c.header_
9250}
9251
9252func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) doRequest(alt string) (*http.Response, error) {
9253	reqHeaders := make(http.Header)
9254	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
9255	for k, v := range c.header_ {
9256		reqHeaders[k] = v
9257	}
9258	reqHeaders.Set("User-Agent", c.s.userAgent())
9259	var body io.Reader = nil
9260	body, err := googleapi.WithoutDataWrapper.JSONReader(c.dicomstore)
9261	if err != nil {
9262		return nil, err
9263	}
9264	reqHeaders.Set("Content-Type", "application/json")
9265	c.urlParams_.Set("alt", alt)
9266	c.urlParams_.Set("prettyPrint", "false")
9267	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
9268	urls += "?" + c.urlParams_.Encode()
9269	req, err := http.NewRequest("PATCH", urls, body)
9270	if err != nil {
9271		return nil, err
9272	}
9273	req.Header = reqHeaders
9274	googleapi.Expand(req.URL, map[string]string{
9275		"name": c.name,
9276	})
9277	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9278}
9279
9280// Do executes the "healthcare.projects.locations.datasets.dicomStores.patch" call.
9281// Exactly one of *DicomStore or error will be non-nil. Any non-2xx
9282// status code is an error. Response headers are in either
9283// *DicomStore.ServerResponse.Header or (if a response was returned at
9284// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
9285// to check whether the returned error was because
9286// http.StatusNotModified was returned.
9287func (c *ProjectsLocationsDatasetsDicomStoresPatchCall) Do(opts ...googleapi.CallOption) (*DicomStore, error) {
9288	gensupport.SetOptions(c.urlParams_, opts...)
9289	res, err := c.doRequest("json")
9290	if res != nil && res.StatusCode == http.StatusNotModified {
9291		if res.Body != nil {
9292			res.Body.Close()
9293		}
9294		return nil, &googleapi.Error{
9295			Code:   res.StatusCode,
9296			Header: res.Header,
9297		}
9298	}
9299	if err != nil {
9300		return nil, err
9301	}
9302	defer googleapi.CloseBody(res)
9303	if err := googleapi.CheckResponse(res); err != nil {
9304		return nil, err
9305	}
9306	ret := &DicomStore{
9307		ServerResponse: googleapi.ServerResponse{
9308			Header:         res.Header,
9309			HTTPStatusCode: res.StatusCode,
9310		},
9311	}
9312	target := &ret
9313	if err := gensupport.DecodeResponse(target, res); err != nil {
9314		return nil, err
9315	}
9316	return ret, nil
9317	// {
9318	//   "description": "Updates the specified DICOM store.",
9319	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}",
9320	//   "httpMethod": "PATCH",
9321	//   "id": "healthcare.projects.locations.datasets.dicomStores.patch",
9322	//   "parameterOrder": [
9323	//     "name"
9324	//   ],
9325	//   "parameters": {
9326	//     "name": {
9327	//       "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}`.",
9328	//       "location": "path",
9329	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
9330	//       "required": true,
9331	//       "type": "string"
9332	//     },
9333	//     "updateMask": {
9334	//       "description": "The update mask applies to the resource. For the `FieldMask` definition,\nsee\nhttps://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask",
9335	//       "format": "google-fieldmask",
9336	//       "location": "query",
9337	//       "type": "string"
9338	//     }
9339	//   },
9340	//   "path": "v1alpha2/{+name}",
9341	//   "request": {
9342	//     "$ref": "DicomStore"
9343	//   },
9344	//   "response": {
9345	//     "$ref": "DicomStore"
9346	//   },
9347	//   "scopes": [
9348	//     "https://www.googleapis.com/auth/cloud-platform"
9349	//   ]
9350	// }
9351
9352}
9353
9354// method id "healthcare.projects.locations.datasets.dicomStores.setIamPolicy":
9355
9356type ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall struct {
9357	s                   *Service
9358	resource            string
9359	setiampolicyrequest *SetIamPolicyRequest
9360	urlParams_          gensupport.URLParams
9361	ctx_                context.Context
9362	header_             http.Header
9363}
9364
9365// SetIamPolicy: Sets the access control policy on the specified
9366// resource. Replaces any
9367// existing policy.
9368func (r *ProjectsLocationsDatasetsDicomStoresService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall {
9369	c := &ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9370	c.resource = resource
9371	c.setiampolicyrequest = setiampolicyrequest
9372	return c
9373}
9374
9375// Fields allows partial responses to be retrieved. See
9376// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9377// for more information.
9378func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall {
9379	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9380	return c
9381}
9382
9383// Context sets the context to be used in this call's Do method. Any
9384// pending HTTP request will be aborted if the provided context is
9385// canceled.
9386func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall {
9387	c.ctx_ = ctx
9388	return c
9389}
9390
9391// Header returns an http.Header that can be modified by the caller to
9392// add HTTP headers to the request.
9393func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Header() http.Header {
9394	if c.header_ == nil {
9395		c.header_ = make(http.Header)
9396	}
9397	return c.header_
9398}
9399
9400func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
9401	reqHeaders := make(http.Header)
9402	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
9403	for k, v := range c.header_ {
9404		reqHeaders[k] = v
9405	}
9406	reqHeaders.Set("User-Agent", c.s.userAgent())
9407	var body io.Reader = nil
9408	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
9409	if err != nil {
9410		return nil, err
9411	}
9412	reqHeaders.Set("Content-Type", "application/json")
9413	c.urlParams_.Set("alt", alt)
9414	c.urlParams_.Set("prettyPrint", "false")
9415	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:setIamPolicy")
9416	urls += "?" + c.urlParams_.Encode()
9417	req, err := http.NewRequest("POST", urls, body)
9418	if err != nil {
9419		return nil, err
9420	}
9421	req.Header = reqHeaders
9422	googleapi.Expand(req.URL, map[string]string{
9423		"resource": c.resource,
9424	})
9425	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9426}
9427
9428// Do executes the "healthcare.projects.locations.datasets.dicomStores.setIamPolicy" call.
9429// Exactly one of *Policy or error will be non-nil. Any non-2xx status
9430// code is an error. Response headers are in either
9431// *Policy.ServerResponse.Header or (if a response was returned at all)
9432// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
9433// check whether the returned error was because http.StatusNotModified
9434// was returned.
9435func (c *ProjectsLocationsDatasetsDicomStoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
9436	gensupport.SetOptions(c.urlParams_, opts...)
9437	res, err := c.doRequest("json")
9438	if res != nil && res.StatusCode == http.StatusNotModified {
9439		if res.Body != nil {
9440			res.Body.Close()
9441		}
9442		return nil, &googleapi.Error{
9443			Code:   res.StatusCode,
9444			Header: res.Header,
9445		}
9446	}
9447	if err != nil {
9448		return nil, err
9449	}
9450	defer googleapi.CloseBody(res)
9451	if err := googleapi.CheckResponse(res); err != nil {
9452		return nil, err
9453	}
9454	ret := &Policy{
9455		ServerResponse: googleapi.ServerResponse{
9456			Header:         res.Header,
9457			HTTPStatusCode: res.StatusCode,
9458		},
9459	}
9460	target := &ret
9461	if err := gensupport.DecodeResponse(target, res); err != nil {
9462		return nil, err
9463	}
9464	return ret, nil
9465	// {
9466	//   "description": "Sets the access control policy on the specified resource. Replaces any\nexisting policy.",
9467	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}:setIamPolicy",
9468	//   "httpMethod": "POST",
9469	//   "id": "healthcare.projects.locations.datasets.dicomStores.setIamPolicy",
9470	//   "parameterOrder": [
9471	//     "resource"
9472	//   ],
9473	//   "parameters": {
9474	//     "resource": {
9475	//       "description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.",
9476	//       "location": "path",
9477	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
9478	//       "required": true,
9479	//       "type": "string"
9480	//     }
9481	//   },
9482	//   "path": "v1alpha2/{+resource}:setIamPolicy",
9483	//   "request": {
9484	//     "$ref": "SetIamPolicyRequest"
9485	//   },
9486	//   "response": {
9487	//     "$ref": "Policy"
9488	//   },
9489	//   "scopes": [
9490	//     "https://www.googleapis.com/auth/cloud-platform"
9491	//   ]
9492	// }
9493
9494}
9495
9496// method id "healthcare.projects.locations.datasets.dicomStores.testIamPermissions":
9497
9498type ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall struct {
9499	s                         *Service
9500	resource                  string
9501	testiampermissionsrequest *TestIamPermissionsRequest
9502	urlParams_                gensupport.URLParams
9503	ctx_                      context.Context
9504	header_                   http.Header
9505}
9506
9507// TestIamPermissions: Returns permissions that a caller has on the
9508// specified resource.
9509// If the resource does not exist, this will return an empty set
9510// of
9511// permissions, not a NOT_FOUND error.
9512//
9513// Note: This operation is designed to be used for building
9514// permission-aware
9515// UIs and command-line tools, not for authorization checking. This
9516// operation
9517// may "fail open" without warning.
9518func (r *ProjectsLocationsDatasetsDicomStoresService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall {
9519	c := &ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9520	c.resource = resource
9521	c.testiampermissionsrequest = testiampermissionsrequest
9522	return c
9523}
9524
9525// Fields allows partial responses to be retrieved. See
9526// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9527// for more information.
9528func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall {
9529	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9530	return c
9531}
9532
9533// Context sets the context to be used in this call's Do method. Any
9534// pending HTTP request will be aborted if the provided context is
9535// canceled.
9536func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall {
9537	c.ctx_ = ctx
9538	return c
9539}
9540
9541// Header returns an http.Header that can be modified by the caller to
9542// add HTTP headers to the request.
9543func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Header() http.Header {
9544	if c.header_ == nil {
9545		c.header_ = make(http.Header)
9546	}
9547	return c.header_
9548}
9549
9550func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
9551	reqHeaders := make(http.Header)
9552	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
9553	for k, v := range c.header_ {
9554		reqHeaders[k] = v
9555	}
9556	reqHeaders.Set("User-Agent", c.s.userAgent())
9557	var body io.Reader = nil
9558	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
9559	if err != nil {
9560		return nil, err
9561	}
9562	reqHeaders.Set("Content-Type", "application/json")
9563	c.urlParams_.Set("alt", alt)
9564	c.urlParams_.Set("prettyPrint", "false")
9565	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:testIamPermissions")
9566	urls += "?" + c.urlParams_.Encode()
9567	req, err := http.NewRequest("POST", urls, body)
9568	if err != nil {
9569		return nil, err
9570	}
9571	req.Header = reqHeaders
9572	googleapi.Expand(req.URL, map[string]string{
9573		"resource": c.resource,
9574	})
9575	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9576}
9577
9578// Do executes the "healthcare.projects.locations.datasets.dicomStores.testIamPermissions" call.
9579// Exactly one of *TestIamPermissionsResponse or error will be non-nil.
9580// Any non-2xx status code is an error. Response headers are in either
9581// *TestIamPermissionsResponse.ServerResponse.Header or (if a response
9582// was returned at all) in error.(*googleapi.Error).Header. Use
9583// googleapi.IsNotModified to check whether the returned error was
9584// because http.StatusNotModified was returned.
9585func (c *ProjectsLocationsDatasetsDicomStoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
9586	gensupport.SetOptions(c.urlParams_, opts...)
9587	res, err := c.doRequest("json")
9588	if res != nil && res.StatusCode == http.StatusNotModified {
9589		if res.Body != nil {
9590			res.Body.Close()
9591		}
9592		return nil, &googleapi.Error{
9593			Code:   res.StatusCode,
9594			Header: res.Header,
9595		}
9596	}
9597	if err != nil {
9598		return nil, err
9599	}
9600	defer googleapi.CloseBody(res)
9601	if err := googleapi.CheckResponse(res); err != nil {
9602		return nil, err
9603	}
9604	ret := &TestIamPermissionsResponse{
9605		ServerResponse: googleapi.ServerResponse{
9606			Header:         res.Header,
9607			HTTPStatusCode: res.StatusCode,
9608		},
9609	}
9610	target := &ret
9611	if err := gensupport.DecodeResponse(target, res); err != nil {
9612		return nil, err
9613	}
9614	return ret, nil
9615	// {
9616	//   "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.",
9617	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}:testIamPermissions",
9618	//   "httpMethod": "POST",
9619	//   "id": "healthcare.projects.locations.datasets.dicomStores.testIamPermissions",
9620	//   "parameterOrder": [
9621	//     "resource"
9622	//   ],
9623	//   "parameters": {
9624	//     "resource": {
9625	//       "description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.",
9626	//       "location": "path",
9627	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
9628	//       "required": true,
9629	//       "type": "string"
9630	//     }
9631	//   },
9632	//   "path": "v1alpha2/{+resource}:testIamPermissions",
9633	//   "request": {
9634	//     "$ref": "TestIamPermissionsRequest"
9635	//   },
9636	//   "response": {
9637	//     "$ref": "TestIamPermissionsResponse"
9638	//   },
9639	//   "scopes": [
9640	//     "https://www.googleapis.com/auth/cloud-platform"
9641	//   ]
9642	// }
9643
9644}
9645
9646// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.searchForInstances":
9647
9648type ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall struct {
9649	s            *Service
9650	parent       string
9651	dicomWebPath string
9652	urlParams_   gensupport.URLParams
9653	ifNoneMatch_ string
9654	ctx_         context.Context
9655	header_      http.Header
9656}
9657
9658// SearchForInstances: SearchForInstances returns a list of matching
9659// instances.
9660// See
9661// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
9662// l#sect_10.6.
9663func (r *ProjectsLocationsDatasetsDicomStoresDicomWebService) SearchForInstances(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall {
9664	c := &ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9665	c.parent = parent
9666	c.dicomWebPath = dicomWebPath
9667	return c
9668}
9669
9670// Fields allows partial responses to be retrieved. See
9671// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9672// for more information.
9673func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall {
9674	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9675	return c
9676}
9677
9678// IfNoneMatch sets the optional parameter which makes the operation
9679// fail if the object's ETag matches the given value. This is useful for
9680// getting updates only after the object has changed since the last
9681// request. Use googleapi.IsNotModified to check whether the response
9682// error from Do is the result of In-None-Match.
9683func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall {
9684	c.ifNoneMatch_ = entityTag
9685	return c
9686}
9687
9688// Context sets the context to be used in this call's Do method. Any
9689// pending HTTP request will be aborted if the provided context is
9690// canceled.
9691func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall {
9692	c.ctx_ = ctx
9693	return c
9694}
9695
9696// Header returns an http.Header that can be modified by the caller to
9697// add HTTP headers to the request.
9698func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall) Header() http.Header {
9699	if c.header_ == nil {
9700		c.header_ = make(http.Header)
9701	}
9702	return c.header_
9703}
9704
9705func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall) doRequest(alt string) (*http.Response, error) {
9706	reqHeaders := make(http.Header)
9707	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
9708	for k, v := range c.header_ {
9709		reqHeaders[k] = v
9710	}
9711	reqHeaders.Set("User-Agent", c.s.userAgent())
9712	if c.ifNoneMatch_ != "" {
9713		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9714	}
9715	var body io.Reader = nil
9716	c.urlParams_.Set("alt", alt)
9717	c.urlParams_.Set("prettyPrint", "false")
9718	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
9719	urls += "?" + c.urlParams_.Encode()
9720	req, err := http.NewRequest("GET", urls, body)
9721	if err != nil {
9722		return nil, err
9723	}
9724	req.Header = reqHeaders
9725	googleapi.Expand(req.URL, map[string]string{
9726		"parent":       c.parent,
9727		"dicomWebPath": c.dicomWebPath,
9728	})
9729	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9730}
9731
9732// Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.searchForInstances" call.
9733func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForInstancesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
9734	gensupport.SetOptions(c.urlParams_, opts...)
9735	return c.doRequest("")
9736	// {
9737	//   "description": "SearchForInstances returns a list of matching instances. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6.",
9738	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/instances",
9739	//   "httpMethod": "GET",
9740	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.searchForInstances",
9741	//   "parameterOrder": [
9742	//     "parent",
9743	//     "dicomWebPath"
9744	//   ],
9745	//   "parameters": {
9746	//     "dicomWebPath": {
9747	//       "description": "The path of the SearchForInstancesRequest DICOMweb request (e.g.,\n`instances` or `series/{series_uid}/instances` or\n`studies/{study_uid}/instances`).",
9748	//       "location": "path",
9749	//       "pattern": "^instances$",
9750	//       "required": true,
9751	//       "type": "string"
9752	//     },
9753	//     "parent": {
9754	//       "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}`).",
9755	//       "location": "path",
9756	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
9757	//       "required": true,
9758	//       "type": "string"
9759	//     }
9760	//   },
9761	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
9762	//   "response": {
9763	//     "$ref": "HttpBody"
9764	//   },
9765	//   "scopes": [
9766	//     "https://www.googleapis.com/auth/cloud-platform"
9767	//   ]
9768	// }
9769
9770}
9771
9772// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.searchForSeries":
9773
9774type ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall struct {
9775	s            *Service
9776	parent       string
9777	dicomWebPath string
9778	urlParams_   gensupport.URLParams
9779	ifNoneMatch_ string
9780	ctx_         context.Context
9781	header_      http.Header
9782}
9783
9784// SearchForSeries: SearchForSeries returns a list of matching series.
9785// See
9786// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
9787// l#sect_10.6.
9788func (r *ProjectsLocationsDatasetsDicomStoresDicomWebService) SearchForSeries(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall {
9789	c := &ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9790	c.parent = parent
9791	c.dicomWebPath = dicomWebPath
9792	return c
9793}
9794
9795// Fields allows partial responses to be retrieved. See
9796// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9797// for more information.
9798func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall {
9799	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9800	return c
9801}
9802
9803// IfNoneMatch sets the optional parameter which makes the operation
9804// fail if the object's ETag matches the given value. This is useful for
9805// getting updates only after the object has changed since the last
9806// request. Use googleapi.IsNotModified to check whether the response
9807// error from Do is the result of In-None-Match.
9808func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall {
9809	c.ifNoneMatch_ = entityTag
9810	return c
9811}
9812
9813// Context sets the context to be used in this call's Do method. Any
9814// pending HTTP request will be aborted if the provided context is
9815// canceled.
9816func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall {
9817	c.ctx_ = ctx
9818	return c
9819}
9820
9821// Header returns an http.Header that can be modified by the caller to
9822// add HTTP headers to the request.
9823func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall) Header() http.Header {
9824	if c.header_ == nil {
9825		c.header_ = make(http.Header)
9826	}
9827	return c.header_
9828}
9829
9830func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall) doRequest(alt string) (*http.Response, error) {
9831	reqHeaders := make(http.Header)
9832	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
9833	for k, v := range c.header_ {
9834		reqHeaders[k] = v
9835	}
9836	reqHeaders.Set("User-Agent", c.s.userAgent())
9837	if c.ifNoneMatch_ != "" {
9838		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9839	}
9840	var body io.Reader = nil
9841	c.urlParams_.Set("alt", alt)
9842	c.urlParams_.Set("prettyPrint", "false")
9843	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
9844	urls += "?" + c.urlParams_.Encode()
9845	req, err := http.NewRequest("GET", urls, body)
9846	if err != nil {
9847		return nil, err
9848	}
9849	req.Header = reqHeaders
9850	googleapi.Expand(req.URL, map[string]string{
9851		"parent":       c.parent,
9852		"dicomWebPath": c.dicomWebPath,
9853	})
9854	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9855}
9856
9857// Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.searchForSeries" call.
9858func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForSeriesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
9859	gensupport.SetOptions(c.urlParams_, opts...)
9860	return c.doRequest("")
9861	// {
9862	//   "description": "SearchForSeries returns a list of matching series. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6.",
9863	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/series",
9864	//   "httpMethod": "GET",
9865	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.searchForSeries",
9866	//   "parameterOrder": [
9867	//     "parent",
9868	//     "dicomWebPath"
9869	//   ],
9870	//   "parameters": {
9871	//     "dicomWebPath": {
9872	//       "description": "The path of the SearchForSeries DICOMweb request(e.g., `series` or\n`studies/{study_uid}/series`).",
9873	//       "location": "path",
9874	//       "pattern": "^series$",
9875	//       "required": true,
9876	//       "type": "string"
9877	//     },
9878	//     "parent": {
9879	//       "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}`).",
9880	//       "location": "path",
9881	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
9882	//       "required": true,
9883	//       "type": "string"
9884	//     }
9885	//   },
9886	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
9887	//   "response": {
9888	//     "$ref": "HttpBody"
9889	//   },
9890	//   "scopes": [
9891	//     "https://www.googleapis.com/auth/cloud-platform"
9892	//   ]
9893	// }
9894
9895}
9896
9897// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.searchForStudies":
9898
9899type ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall struct {
9900	s            *Service
9901	parent       string
9902	dicomWebPath string
9903	urlParams_   gensupport.URLParams
9904	ifNoneMatch_ string
9905	ctx_         context.Context
9906	header_      http.Header
9907}
9908
9909// SearchForStudies: SearchForStudies returns a list of matching
9910// studies.
9911// See
9912// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
9913// l#sect_10.6.
9914func (r *ProjectsLocationsDatasetsDicomStoresDicomWebService) SearchForStudies(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall {
9915	c := &ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9916	c.parent = parent
9917	c.dicomWebPath = dicomWebPath
9918	return c
9919}
9920
9921// Fields allows partial responses to be retrieved. See
9922// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9923// for more information.
9924func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall {
9925	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9926	return c
9927}
9928
9929// IfNoneMatch sets the optional parameter which makes the operation
9930// fail if the object's ETag matches the given value. This is useful for
9931// getting updates only after the object has changed since the last
9932// request. Use googleapi.IsNotModified to check whether the response
9933// error from Do is the result of In-None-Match.
9934func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall {
9935	c.ifNoneMatch_ = entityTag
9936	return c
9937}
9938
9939// Context sets the context to be used in this call's Do method. Any
9940// pending HTTP request will be aborted if the provided context is
9941// canceled.
9942func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall {
9943	c.ctx_ = ctx
9944	return c
9945}
9946
9947// Header returns an http.Header that can be modified by the caller to
9948// add HTTP headers to the request.
9949func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall) Header() http.Header {
9950	if c.header_ == nil {
9951		c.header_ = make(http.Header)
9952	}
9953	return c.header_
9954}
9955
9956func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall) doRequest(alt string) (*http.Response, error) {
9957	reqHeaders := make(http.Header)
9958	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
9959	for k, v := range c.header_ {
9960		reqHeaders[k] = v
9961	}
9962	reqHeaders.Set("User-Agent", c.s.userAgent())
9963	if c.ifNoneMatch_ != "" {
9964		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9965	}
9966	var body io.Reader = nil
9967	c.urlParams_.Set("alt", alt)
9968	c.urlParams_.Set("prettyPrint", "false")
9969	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
9970	urls += "?" + c.urlParams_.Encode()
9971	req, err := http.NewRequest("GET", urls, body)
9972	if err != nil {
9973		return nil, err
9974	}
9975	req.Header = reqHeaders
9976	googleapi.Expand(req.URL, map[string]string{
9977		"parent":       c.parent,
9978		"dicomWebPath": c.dicomWebPath,
9979	})
9980	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9981}
9982
9983// Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.searchForStudies" call.
9984func (c *ProjectsLocationsDatasetsDicomStoresDicomWebSearchForStudiesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
9985	gensupport.SetOptions(c.urlParams_, opts...)
9986	return c.doRequest("")
9987	// {
9988	//   "description": "SearchForStudies returns a list of matching studies. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6.",
9989	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies",
9990	//   "httpMethod": "GET",
9991	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.searchForStudies",
9992	//   "parameterOrder": [
9993	//     "parent",
9994	//     "dicomWebPath"
9995	//   ],
9996	//   "parameters": {
9997	//     "dicomWebPath": {
9998	//       "description": "The path of the SearchForStudies DICOMweb request (e.g., `studies`).",
9999	//       "location": "path",
10000	//       "pattern": "^studies$",
10001	//       "required": true,
10002	//       "type": "string"
10003	//     },
10004	//     "parent": {
10005	//       "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}`).",
10006	//       "location": "path",
10007	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
10008	//       "required": true,
10009	//       "type": "string"
10010	//     }
10011	//   },
10012	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
10013	//   "response": {
10014	//     "$ref": "HttpBody"
10015	//   },
10016	//   "scopes": [
10017	//     "https://www.googleapis.com/auth/cloud-platform"
10018	//   ]
10019	// }
10020
10021}
10022
10023// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.storeInstances":
10024
10025type ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall struct {
10026	s            *Service
10027	parent       string
10028	dicomWebPath string
10029	body_        io.Reader
10030	urlParams_   gensupport.URLParams
10031	ctx_         context.Context
10032	header_      http.Header
10033}
10034
10035// StoreInstances: StoreInstances stores DICOM instances associated with
10036// study instance unique
10037// identifiers (SUID).
10038// See
10039// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
10040// l#sect_10.5.
10041func (r *ProjectsLocationsDatasetsDicomStoresDicomWebService) StoreInstances(parent string, dicomWebPath string, body_ io.Reader) *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall {
10042	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10043	c.parent = parent
10044	c.dicomWebPath = dicomWebPath
10045	c.body_ = body_
10046	return c
10047}
10048
10049// Fields allows partial responses to be retrieved. See
10050// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10051// for more information.
10052func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall {
10053	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10054	return c
10055}
10056
10057// Context sets the context to be used in this call's Do method. Any
10058// pending HTTP request will be aborted if the provided context is
10059// canceled.
10060func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall {
10061	c.ctx_ = ctx
10062	return c
10063}
10064
10065// Header returns an http.Header that can be modified by the caller to
10066// add HTTP headers to the request.
10067func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall) Header() http.Header {
10068	if c.header_ == nil {
10069		c.header_ = make(http.Header)
10070	}
10071	return c.header_
10072}
10073
10074func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall) doRequest(alt string) (*http.Response, error) {
10075	reqHeaders := make(http.Header)
10076	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
10077	for k, v := range c.header_ {
10078		reqHeaders[k] = v
10079	}
10080	reqHeaders.Set("User-Agent", c.s.userAgent())
10081	var body io.Reader = nil
10082	body = c.body_
10083	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
10084	urls += "?" + c.urlParams_.Encode()
10085	req, err := http.NewRequest("POST", urls, body)
10086	if err != nil {
10087		return nil, err
10088	}
10089	req.Header = reqHeaders
10090	googleapi.Expand(req.URL, map[string]string{
10091		"parent":       c.parent,
10092		"dicomWebPath": c.dicomWebPath,
10093	})
10094	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10095}
10096
10097// Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.storeInstances" call.
10098func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStoreInstancesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
10099	gensupport.SetOptions(c.urlParams_, opts...)
10100	return c.doRequest("")
10101	// {
10102	//   "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.",
10103	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies",
10104	//   "httpMethod": "POST",
10105	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.storeInstances",
10106	//   "parameterOrder": [
10107	//     "parent",
10108	//     "dicomWebPath"
10109	//   ],
10110	//   "parameters": {
10111	//     "dicomWebPath": {
10112	//       "description": "The path of the StoreInstances DICOMweb request (e.g.,\n`studies/[{study_id}]`). Note that the `study_uid` is optional.",
10113	//       "location": "path",
10114	//       "pattern": "^studies$",
10115	//       "required": true,
10116	//       "type": "string"
10117	//     },
10118	//     "parent": {
10119	//       "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}`).",
10120	//       "location": "path",
10121	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
10122	//       "required": true,
10123	//       "type": "string"
10124	//     }
10125	//   },
10126	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
10127	//   "request": {
10128	//     "$ref": "HttpBody"
10129	//   },
10130	//   "response": {
10131	//     "$ref": "HttpBody"
10132	//   },
10133	//   "scopes": [
10134	//     "https://www.googleapis.com/auth/cloud-platform"
10135	//   ]
10136	// }
10137
10138}
10139
10140// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.delete":
10141
10142type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall struct {
10143	s            *Service
10144	parent       string
10145	dicomWebPath string
10146	urlParams_   gensupport.URLParams
10147	ctx_         context.Context
10148	header_      http.Header
10149}
10150
10151// Delete: DeleteStudy deletes all instances within the given study.
10152// Delete requests
10153// are equivalent to the GET requests specified in the WADO-RS standard.
10154func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) Delete(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall {
10155	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10156	c.parent = parent
10157	c.dicomWebPath = dicomWebPath
10158	return c
10159}
10160
10161// Fields allows partial responses to be retrieved. See
10162// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10163// for more information.
10164func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall {
10165	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10166	return c
10167}
10168
10169// Context sets the context to be used in this call's Do method. Any
10170// pending HTTP request will be aborted if the provided context is
10171// canceled.
10172func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall {
10173	c.ctx_ = ctx
10174	return c
10175}
10176
10177// Header returns an http.Header that can be modified by the caller to
10178// add HTTP headers to the request.
10179func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall) Header() http.Header {
10180	if c.header_ == nil {
10181		c.header_ = make(http.Header)
10182	}
10183	return c.header_
10184}
10185
10186func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall) doRequest(alt string) (*http.Response, error) {
10187	reqHeaders := make(http.Header)
10188	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
10189	for k, v := range c.header_ {
10190		reqHeaders[k] = v
10191	}
10192	reqHeaders.Set("User-Agent", c.s.userAgent())
10193	var body io.Reader = nil
10194	c.urlParams_.Set("alt", alt)
10195	c.urlParams_.Set("prettyPrint", "false")
10196	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
10197	urls += "?" + c.urlParams_.Encode()
10198	req, err := http.NewRequest("DELETE", urls, body)
10199	if err != nil {
10200		return nil, err
10201	}
10202	req.Header = reqHeaders
10203	googleapi.Expand(req.URL, map[string]string{
10204		"parent":       c.parent,
10205		"dicomWebPath": c.dicomWebPath,
10206	})
10207	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10208}
10209
10210// Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.delete" call.
10211// Exactly one of *Empty or error will be non-nil. Any non-2xx status
10212// code is an error. Response headers are in either
10213// *Empty.ServerResponse.Header or (if a response was returned at all)
10214// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
10215// check whether the returned error was because http.StatusNotModified
10216// was returned.
10217func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
10218	gensupport.SetOptions(c.urlParams_, opts...)
10219	res, err := c.doRequest("json")
10220	if res != nil && res.StatusCode == http.StatusNotModified {
10221		if res.Body != nil {
10222			res.Body.Close()
10223		}
10224		return nil, &googleapi.Error{
10225			Code:   res.StatusCode,
10226			Header: res.Header,
10227		}
10228	}
10229	if err != nil {
10230		return nil, err
10231	}
10232	defer googleapi.CloseBody(res)
10233	if err := googleapi.CheckResponse(res); err != nil {
10234		return nil, err
10235	}
10236	ret := &Empty{
10237		ServerResponse: googleapi.ServerResponse{
10238			Header:         res.Header,
10239			HTTPStatusCode: res.StatusCode,
10240		},
10241	}
10242	target := &ret
10243	if err := gensupport.DecodeResponse(target, res); err != nil {
10244		return nil, err
10245	}
10246	return ret, nil
10247	// {
10248	//   "description": "DeleteStudy deletes all instances within the given study. Delete requests\nare equivalent to the GET requests specified in the WADO-RS standard.",
10249	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}",
10250	//   "httpMethod": "DELETE",
10251	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.delete",
10252	//   "parameterOrder": [
10253	//     "parent",
10254	//     "dicomWebPath"
10255	//   ],
10256	//   "parameters": {
10257	//     "dicomWebPath": {
10258	//       "description": "The path of the DeleteStudy request (e.g., `studies/{study_id}`).",
10259	//       "location": "path",
10260	//       "pattern": "^studies/[^/]+$",
10261	//       "required": true,
10262	//       "type": "string"
10263	//     },
10264	//     "parent": {
10265	//       "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}`).",
10266	//       "location": "path",
10267	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
10268	//       "required": true,
10269	//       "type": "string"
10270	//     }
10271	//   },
10272	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
10273	//   "response": {
10274	//     "$ref": "Empty"
10275	//   },
10276	//   "scopes": [
10277	//     "https://www.googleapis.com/auth/cloud-platform"
10278	//   ]
10279	// }
10280
10281}
10282
10283// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.metadata":
10284
10285type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall struct {
10286	s            *Service
10287	parent       string
10288	dicomWebPath string
10289	urlParams_   gensupport.URLParams
10290	ifNoneMatch_ string
10291	ctx_         context.Context
10292	header_      http.Header
10293}
10294
10295// Metadata: RetrieveStudyMetadata returns instance associated with the
10296// given study
10297// presented as metadata with the bulk data removed.
10298// See
10299// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
10300// l#sect_10.4.
10301func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) Metadata(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall {
10302	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10303	c.parent = parent
10304	c.dicomWebPath = dicomWebPath
10305	return c
10306}
10307
10308// Fields allows partial responses to be retrieved. See
10309// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10310// for more information.
10311func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall {
10312	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10313	return c
10314}
10315
10316// IfNoneMatch sets the optional parameter which makes the operation
10317// fail if the object's ETag matches the given value. This is useful for
10318// getting updates only after the object has changed since the last
10319// request. Use googleapi.IsNotModified to check whether the response
10320// error from Do is the result of In-None-Match.
10321func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall {
10322	c.ifNoneMatch_ = entityTag
10323	return c
10324}
10325
10326// Context sets the context to be used in this call's Do method. Any
10327// pending HTTP request will be aborted if the provided context is
10328// canceled.
10329func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall {
10330	c.ctx_ = ctx
10331	return c
10332}
10333
10334// Header returns an http.Header that can be modified by the caller to
10335// add HTTP headers to the request.
10336func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall) Header() http.Header {
10337	if c.header_ == nil {
10338		c.header_ = make(http.Header)
10339	}
10340	return c.header_
10341}
10342
10343func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall) doRequest(alt string) (*http.Response, error) {
10344	reqHeaders := make(http.Header)
10345	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
10346	for k, v := range c.header_ {
10347		reqHeaders[k] = v
10348	}
10349	reqHeaders.Set("User-Agent", c.s.userAgent())
10350	if c.ifNoneMatch_ != "" {
10351		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10352	}
10353	var body io.Reader = nil
10354	c.urlParams_.Set("alt", alt)
10355	c.urlParams_.Set("prettyPrint", "false")
10356	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
10357	urls += "?" + c.urlParams_.Encode()
10358	req, err := http.NewRequest("GET", urls, body)
10359	if err != nil {
10360		return nil, err
10361	}
10362	req.Header = reqHeaders
10363	googleapi.Expand(req.URL, map[string]string{
10364		"parent":       c.parent,
10365		"dicomWebPath": c.dicomWebPath,
10366	})
10367	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10368}
10369
10370// Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.metadata" call.
10371func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesMetadataCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
10372	gensupport.SetOptions(c.urlParams_, opts...)
10373	return c.doRequest("")
10374	// {
10375	//   "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.",
10376	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/metadata",
10377	//   "httpMethod": "GET",
10378	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.metadata",
10379	//   "parameterOrder": [
10380	//     "parent",
10381	//     "dicomWebPath"
10382	//   ],
10383	//   "parameters": {
10384	//     "dicomWebPath": {
10385	//       "description": "The path of the RetrieveStudyMetadata DICOMweb request (e.g.,\n`studies/{study_id}/metadata`).",
10386	//       "location": "path",
10387	//       "pattern": "^studies/[^/]+/metadata$",
10388	//       "required": true,
10389	//       "type": "string"
10390	//     },
10391	//     "parent": {
10392	//       "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}`).",
10393	//       "location": "path",
10394	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
10395	//       "required": true,
10396	//       "type": "string"
10397	//     }
10398	//   },
10399	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
10400	//   "response": {
10401	//     "$ref": "HttpBody"
10402	//   },
10403	//   "scopes": [
10404	//     "https://www.googleapis.com/auth/cloud-platform"
10405	//   ]
10406	// }
10407
10408}
10409
10410// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.retrieveStudy":
10411
10412type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall struct {
10413	s            *Service
10414	parent       string
10415	dicomWebPath string
10416	urlParams_   gensupport.URLParams
10417	ifNoneMatch_ string
10418	ctx_         context.Context
10419	header_      http.Header
10420}
10421
10422// RetrieveStudy: RetrieveStudy returns all instances within the given
10423// study.
10424// See
10425// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
10426// l#sect_10.4.
10427func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) RetrieveStudy(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall {
10428	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10429	c.parent = parent
10430	c.dicomWebPath = dicomWebPath
10431	return c
10432}
10433
10434// Fields allows partial responses to be retrieved. See
10435// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10436// for more information.
10437func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall {
10438	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10439	return c
10440}
10441
10442// IfNoneMatch sets the optional parameter which makes the operation
10443// fail if the object's ETag matches the given value. This is useful for
10444// getting updates only after the object has changed since the last
10445// request. Use googleapi.IsNotModified to check whether the response
10446// error from Do is the result of In-None-Match.
10447func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall {
10448	c.ifNoneMatch_ = entityTag
10449	return c
10450}
10451
10452// Context sets the context to be used in this call's Do method. Any
10453// pending HTTP request will be aborted if the provided context is
10454// canceled.
10455func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall {
10456	c.ctx_ = ctx
10457	return c
10458}
10459
10460// Header returns an http.Header that can be modified by the caller to
10461// add HTTP headers to the request.
10462func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall) Header() http.Header {
10463	if c.header_ == nil {
10464		c.header_ = make(http.Header)
10465	}
10466	return c.header_
10467}
10468
10469func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall) doRequest(alt string) (*http.Response, error) {
10470	reqHeaders := make(http.Header)
10471	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
10472	for k, v := range c.header_ {
10473		reqHeaders[k] = v
10474	}
10475	reqHeaders.Set("User-Agent", c.s.userAgent())
10476	if c.ifNoneMatch_ != "" {
10477		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10478	}
10479	var body io.Reader = nil
10480	c.urlParams_.Set("alt", alt)
10481	c.urlParams_.Set("prettyPrint", "false")
10482	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
10483	urls += "?" + c.urlParams_.Encode()
10484	req, err := http.NewRequest("GET", urls, body)
10485	if err != nil {
10486		return nil, err
10487	}
10488	req.Header = reqHeaders
10489	googleapi.Expand(req.URL, map[string]string{
10490		"parent":       c.parent,
10491		"dicomWebPath": c.dicomWebPath,
10492	})
10493	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10494}
10495
10496// Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.retrieveStudy" call.
10497func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesRetrieveStudyCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
10498	gensupport.SetOptions(c.urlParams_, opts...)
10499	return c.doRequest("")
10500	// {
10501	//   "description": "RetrieveStudy returns all instances within the given study. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4.",
10502	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}",
10503	//   "httpMethod": "GET",
10504	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.retrieveStudy",
10505	//   "parameterOrder": [
10506	//     "parent",
10507	//     "dicomWebPath"
10508	//   ],
10509	//   "parameters": {
10510	//     "dicomWebPath": {
10511	//       "description": "The path of the RetrieveStudy DICOMweb request (e.g.,\n`studies/{study_id}`).",
10512	//       "location": "path",
10513	//       "pattern": "^studies/[^/]+$",
10514	//       "required": true,
10515	//       "type": "string"
10516	//     },
10517	//     "parent": {
10518	//       "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}`).",
10519	//       "location": "path",
10520	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
10521	//       "required": true,
10522	//       "type": "string"
10523	//     }
10524	//   },
10525	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
10526	//   "response": {
10527	//     "$ref": "HttpBody"
10528	//   },
10529	//   "scopes": [
10530	//     "https://www.googleapis.com/auth/cloud-platform"
10531	//   ]
10532	// }
10533
10534}
10535
10536// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.searchForInstances":
10537
10538type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall struct {
10539	s            *Service
10540	parent       string
10541	dicomWebPath string
10542	urlParams_   gensupport.URLParams
10543	ifNoneMatch_ string
10544	ctx_         context.Context
10545	header_      http.Header
10546}
10547
10548// SearchForInstances: SearchForInstances returns a list of matching
10549// instances.
10550// See
10551// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
10552// l#sect_10.6.
10553func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) SearchForInstances(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall {
10554	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10555	c.parent = parent
10556	c.dicomWebPath = dicomWebPath
10557	return c
10558}
10559
10560// Fields allows partial responses to be retrieved. See
10561// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10562// for more information.
10563func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall {
10564	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10565	return c
10566}
10567
10568// IfNoneMatch sets the optional parameter which makes the operation
10569// fail if the object's ETag matches the given value. This is useful for
10570// getting updates only after the object has changed since the last
10571// request. Use googleapi.IsNotModified to check whether the response
10572// error from Do is the result of In-None-Match.
10573func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall {
10574	c.ifNoneMatch_ = entityTag
10575	return c
10576}
10577
10578// Context sets the context to be used in this call's Do method. Any
10579// pending HTTP request will be aborted if the provided context is
10580// canceled.
10581func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall {
10582	c.ctx_ = ctx
10583	return c
10584}
10585
10586// Header returns an http.Header that can be modified by the caller to
10587// add HTTP headers to the request.
10588func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall) Header() http.Header {
10589	if c.header_ == nil {
10590		c.header_ = make(http.Header)
10591	}
10592	return c.header_
10593}
10594
10595func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall) doRequest(alt string) (*http.Response, error) {
10596	reqHeaders := make(http.Header)
10597	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
10598	for k, v := range c.header_ {
10599		reqHeaders[k] = v
10600	}
10601	reqHeaders.Set("User-Agent", c.s.userAgent())
10602	if c.ifNoneMatch_ != "" {
10603		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10604	}
10605	var body io.Reader = nil
10606	c.urlParams_.Set("alt", alt)
10607	c.urlParams_.Set("prettyPrint", "false")
10608	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
10609	urls += "?" + c.urlParams_.Encode()
10610	req, err := http.NewRequest("GET", urls, body)
10611	if err != nil {
10612		return nil, err
10613	}
10614	req.Header = reqHeaders
10615	googleapi.Expand(req.URL, map[string]string{
10616		"parent":       c.parent,
10617		"dicomWebPath": c.dicomWebPath,
10618	})
10619	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10620}
10621
10622// Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.searchForInstances" call.
10623func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForInstancesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
10624	gensupport.SetOptions(c.urlParams_, opts...)
10625	return c.doRequest("")
10626	// {
10627	//   "description": "SearchForInstances returns a list of matching instances. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6.",
10628	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/instances",
10629	//   "httpMethod": "GET",
10630	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.searchForInstances",
10631	//   "parameterOrder": [
10632	//     "parent",
10633	//     "dicomWebPath"
10634	//   ],
10635	//   "parameters": {
10636	//     "dicomWebPath": {
10637	//       "description": "The path of the SearchForInstancesRequest DICOMweb request (e.g.,\n`instances` or `series/{series_uid}/instances` or\n`studies/{study_uid}/instances`).",
10638	//       "location": "path",
10639	//       "pattern": "^studies/[^/]+/instances$",
10640	//       "required": true,
10641	//       "type": "string"
10642	//     },
10643	//     "parent": {
10644	//       "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}`).",
10645	//       "location": "path",
10646	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
10647	//       "required": true,
10648	//       "type": "string"
10649	//     }
10650	//   },
10651	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
10652	//   "response": {
10653	//     "$ref": "HttpBody"
10654	//   },
10655	//   "scopes": [
10656	//     "https://www.googleapis.com/auth/cloud-platform"
10657	//   ]
10658	// }
10659
10660}
10661
10662// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.searchForSeries":
10663
10664type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall struct {
10665	s            *Service
10666	parent       string
10667	dicomWebPath string
10668	urlParams_   gensupport.URLParams
10669	ifNoneMatch_ string
10670	ctx_         context.Context
10671	header_      http.Header
10672}
10673
10674// SearchForSeries: SearchForSeries returns a list of matching series.
10675// See
10676// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
10677// l#sect_10.6.
10678func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) SearchForSeries(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall {
10679	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10680	c.parent = parent
10681	c.dicomWebPath = dicomWebPath
10682	return c
10683}
10684
10685// Fields allows partial responses to be retrieved. See
10686// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10687// for more information.
10688func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall {
10689	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10690	return c
10691}
10692
10693// IfNoneMatch sets the optional parameter which makes the operation
10694// fail if the object's ETag matches the given value. This is useful for
10695// getting updates only after the object has changed since the last
10696// request. Use googleapi.IsNotModified to check whether the response
10697// error from Do is the result of In-None-Match.
10698func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall {
10699	c.ifNoneMatch_ = entityTag
10700	return c
10701}
10702
10703// Context sets the context to be used in this call's Do method. Any
10704// pending HTTP request will be aborted if the provided context is
10705// canceled.
10706func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall {
10707	c.ctx_ = ctx
10708	return c
10709}
10710
10711// Header returns an http.Header that can be modified by the caller to
10712// add HTTP headers to the request.
10713func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall) Header() http.Header {
10714	if c.header_ == nil {
10715		c.header_ = make(http.Header)
10716	}
10717	return c.header_
10718}
10719
10720func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall) doRequest(alt string) (*http.Response, error) {
10721	reqHeaders := make(http.Header)
10722	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
10723	for k, v := range c.header_ {
10724		reqHeaders[k] = v
10725	}
10726	reqHeaders.Set("User-Agent", c.s.userAgent())
10727	if c.ifNoneMatch_ != "" {
10728		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10729	}
10730	var body io.Reader = nil
10731	c.urlParams_.Set("alt", alt)
10732	c.urlParams_.Set("prettyPrint", "false")
10733	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
10734	urls += "?" + c.urlParams_.Encode()
10735	req, err := http.NewRequest("GET", urls, body)
10736	if err != nil {
10737		return nil, err
10738	}
10739	req.Header = reqHeaders
10740	googleapi.Expand(req.URL, map[string]string{
10741		"parent":       c.parent,
10742		"dicomWebPath": c.dicomWebPath,
10743	})
10744	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10745}
10746
10747// Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.searchForSeries" call.
10748func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSearchForSeriesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
10749	gensupport.SetOptions(c.urlParams_, opts...)
10750	return c.doRequest("")
10751	// {
10752	//   "description": "SearchForSeries returns a list of matching series. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6.",
10753	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series",
10754	//   "httpMethod": "GET",
10755	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.searchForSeries",
10756	//   "parameterOrder": [
10757	//     "parent",
10758	//     "dicomWebPath"
10759	//   ],
10760	//   "parameters": {
10761	//     "dicomWebPath": {
10762	//       "description": "The path of the SearchForSeries DICOMweb request(e.g., `series` or\n`studies/{study_uid}/series`).",
10763	//       "location": "path",
10764	//       "pattern": "^studies/[^/]+/series$",
10765	//       "required": true,
10766	//       "type": "string"
10767	//     },
10768	//     "parent": {
10769	//       "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}`).",
10770	//       "location": "path",
10771	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
10772	//       "required": true,
10773	//       "type": "string"
10774	//     }
10775	//   },
10776	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
10777	//   "response": {
10778	//     "$ref": "HttpBody"
10779	//   },
10780	//   "scopes": [
10781	//     "https://www.googleapis.com/auth/cloud-platform"
10782	//   ]
10783	// }
10784
10785}
10786
10787// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.storeInstances":
10788
10789type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall struct {
10790	s            *Service
10791	parent       string
10792	dicomWebPath string
10793	body_        io.Reader
10794	urlParams_   gensupport.URLParams
10795	ctx_         context.Context
10796	header_      http.Header
10797}
10798
10799// StoreInstances: StoreInstances stores DICOM instances associated with
10800// study instance unique
10801// identifiers (SUID).
10802// See
10803// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
10804// l#sect_10.5.
10805func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesService) StoreInstances(parent string, dicomWebPath string, body_ io.Reader) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall {
10806	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10807	c.parent = parent
10808	c.dicomWebPath = dicomWebPath
10809	c.body_ = body_
10810	return c
10811}
10812
10813// Fields allows partial responses to be retrieved. See
10814// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10815// for more information.
10816func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall {
10817	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10818	return c
10819}
10820
10821// Context sets the context to be used in this call's Do method. Any
10822// pending HTTP request will be aborted if the provided context is
10823// canceled.
10824func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall {
10825	c.ctx_ = ctx
10826	return c
10827}
10828
10829// Header returns an http.Header that can be modified by the caller to
10830// add HTTP headers to the request.
10831func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall) Header() http.Header {
10832	if c.header_ == nil {
10833		c.header_ = make(http.Header)
10834	}
10835	return c.header_
10836}
10837
10838func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall) doRequest(alt string) (*http.Response, error) {
10839	reqHeaders := make(http.Header)
10840	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
10841	for k, v := range c.header_ {
10842		reqHeaders[k] = v
10843	}
10844	reqHeaders.Set("User-Agent", c.s.userAgent())
10845	var body io.Reader = nil
10846	body = c.body_
10847	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
10848	urls += "?" + c.urlParams_.Encode()
10849	req, err := http.NewRequest("POST", urls, body)
10850	if err != nil {
10851		return nil, err
10852	}
10853	req.Header = reqHeaders
10854	googleapi.Expand(req.URL, map[string]string{
10855		"parent":       c.parent,
10856		"dicomWebPath": c.dicomWebPath,
10857	})
10858	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10859}
10860
10861// Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.storeInstances" call.
10862func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesStoreInstancesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
10863	gensupport.SetOptions(c.urlParams_, opts...)
10864	return c.doRequest("")
10865	// {
10866	//   "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.",
10867	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}",
10868	//   "httpMethod": "POST",
10869	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.storeInstances",
10870	//   "parameterOrder": [
10871	//     "parent",
10872	//     "dicomWebPath"
10873	//   ],
10874	//   "parameters": {
10875	//     "dicomWebPath": {
10876	//       "description": "The path of the StoreInstances DICOMweb request (e.g.,\n`studies/[{study_id}]`). Note that the `study_uid` is optional.",
10877	//       "location": "path",
10878	//       "pattern": "^studies/[^/]+$",
10879	//       "required": true,
10880	//       "type": "string"
10881	//     },
10882	//     "parent": {
10883	//       "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}`).",
10884	//       "location": "path",
10885	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
10886	//       "required": true,
10887	//       "type": "string"
10888	//     }
10889	//   },
10890	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
10891	//   "request": {
10892	//     "$ref": "HttpBody"
10893	//   },
10894	//   "response": {
10895	//     "$ref": "HttpBody"
10896	//   },
10897	//   "scopes": [
10898	//     "https://www.googleapis.com/auth/cloud-platform"
10899	//   ]
10900	// }
10901
10902}
10903
10904// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.delete":
10905
10906type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall struct {
10907	s            *Service
10908	parent       string
10909	dicomWebPath string
10910	urlParams_   gensupport.URLParams
10911	ctx_         context.Context
10912	header_      http.Header
10913}
10914
10915// Delete: DeleteSeries deletes all instances within the given study and
10916// series.
10917// Delete requests are equivalent to the GET requests specified in the
10918// WADO-RS
10919// standard.
10920func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService) Delete(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall {
10921	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10922	c.parent = parent
10923	c.dicomWebPath = dicomWebPath
10924	return c
10925}
10926
10927// Fields allows partial responses to be retrieved. See
10928// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10929// for more information.
10930func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall {
10931	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10932	return c
10933}
10934
10935// Context sets the context to be used in this call's Do method. Any
10936// pending HTTP request will be aborted if the provided context is
10937// canceled.
10938func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall {
10939	c.ctx_ = ctx
10940	return c
10941}
10942
10943// Header returns an http.Header that can be modified by the caller to
10944// add HTTP headers to the request.
10945func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall) Header() http.Header {
10946	if c.header_ == nil {
10947		c.header_ = make(http.Header)
10948	}
10949	return c.header_
10950}
10951
10952func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall) doRequest(alt string) (*http.Response, error) {
10953	reqHeaders := make(http.Header)
10954	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
10955	for k, v := range c.header_ {
10956		reqHeaders[k] = v
10957	}
10958	reqHeaders.Set("User-Agent", c.s.userAgent())
10959	var body io.Reader = nil
10960	c.urlParams_.Set("alt", alt)
10961	c.urlParams_.Set("prettyPrint", "false")
10962	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
10963	urls += "?" + c.urlParams_.Encode()
10964	req, err := http.NewRequest("DELETE", urls, body)
10965	if err != nil {
10966		return nil, err
10967	}
10968	req.Header = reqHeaders
10969	googleapi.Expand(req.URL, map[string]string{
10970		"parent":       c.parent,
10971		"dicomWebPath": c.dicomWebPath,
10972	})
10973	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10974}
10975
10976// Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.delete" call.
10977// Exactly one of *Empty or error will be non-nil. Any non-2xx status
10978// code is an error. Response headers are in either
10979// *Empty.ServerResponse.Header or (if a response was returned at all)
10980// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
10981// check whether the returned error was because http.StatusNotModified
10982// was returned.
10983func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
10984	gensupport.SetOptions(c.urlParams_, opts...)
10985	res, err := c.doRequest("json")
10986	if res != nil && res.StatusCode == http.StatusNotModified {
10987		if res.Body != nil {
10988			res.Body.Close()
10989		}
10990		return nil, &googleapi.Error{
10991			Code:   res.StatusCode,
10992			Header: res.Header,
10993		}
10994	}
10995	if err != nil {
10996		return nil, err
10997	}
10998	defer googleapi.CloseBody(res)
10999	if err := googleapi.CheckResponse(res); err != nil {
11000		return nil, err
11001	}
11002	ret := &Empty{
11003		ServerResponse: googleapi.ServerResponse{
11004			Header:         res.Header,
11005			HTTPStatusCode: res.StatusCode,
11006		},
11007	}
11008	target := &ret
11009	if err := gensupport.DecodeResponse(target, res); err != nil {
11010		return nil, err
11011	}
11012	return ret, nil
11013	// {
11014	//   "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.",
11015	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}",
11016	//   "httpMethod": "DELETE",
11017	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.delete",
11018	//   "parameterOrder": [
11019	//     "parent",
11020	//     "dicomWebPath"
11021	//   ],
11022	//   "parameters": {
11023	//     "dicomWebPath": {
11024	//       "description": "The path of the DeleteSeries request (e.g.,\n`studies/{study_id}/series/{series_id}`).",
11025	//       "location": "path",
11026	//       "pattern": "^studies/[^/]+/series/[^/]+$",
11027	//       "required": true,
11028	//       "type": "string"
11029	//     },
11030	//     "parent": {
11031	//       "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}`).",
11032	//       "location": "path",
11033	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
11034	//       "required": true,
11035	//       "type": "string"
11036	//     }
11037	//   },
11038	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
11039	//   "response": {
11040	//     "$ref": "Empty"
11041	//   },
11042	//   "scopes": [
11043	//     "https://www.googleapis.com/auth/cloud-platform"
11044	//   ]
11045	// }
11046
11047}
11048
11049// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.metadata":
11050
11051type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall struct {
11052	s            *Service
11053	parent       string
11054	dicomWebPath string
11055	urlParams_   gensupport.URLParams
11056	ifNoneMatch_ string
11057	ctx_         context.Context
11058	header_      http.Header
11059}
11060
11061// Metadata: RetrieveSeriesMetadata returns instance associated with the
11062// given study and
11063// series, presented as metadata with the bulk data removed.
11064// See
11065// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
11066// l#sect_10.4.
11067func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService) Metadata(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall {
11068	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11069	c.parent = parent
11070	c.dicomWebPath = dicomWebPath
11071	return c
11072}
11073
11074// Fields allows partial responses to be retrieved. See
11075// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11076// for more information.
11077func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall {
11078	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11079	return c
11080}
11081
11082// IfNoneMatch sets the optional parameter which makes the operation
11083// fail if the object's ETag matches the given value. This is useful for
11084// getting updates only after the object has changed since the last
11085// request. Use googleapi.IsNotModified to check whether the response
11086// error from Do is the result of In-None-Match.
11087func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall {
11088	c.ifNoneMatch_ = entityTag
11089	return c
11090}
11091
11092// Context sets the context to be used in this call's Do method. Any
11093// pending HTTP request will be aborted if the provided context is
11094// canceled.
11095func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall {
11096	c.ctx_ = ctx
11097	return c
11098}
11099
11100// Header returns an http.Header that can be modified by the caller to
11101// add HTTP headers to the request.
11102func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall) Header() http.Header {
11103	if c.header_ == nil {
11104		c.header_ = make(http.Header)
11105	}
11106	return c.header_
11107}
11108
11109func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall) doRequest(alt string) (*http.Response, error) {
11110	reqHeaders := make(http.Header)
11111	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
11112	for k, v := range c.header_ {
11113		reqHeaders[k] = v
11114	}
11115	reqHeaders.Set("User-Agent", c.s.userAgent())
11116	if c.ifNoneMatch_ != "" {
11117		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11118	}
11119	var body io.Reader = nil
11120	c.urlParams_.Set("alt", alt)
11121	c.urlParams_.Set("prettyPrint", "false")
11122	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
11123	urls += "?" + c.urlParams_.Encode()
11124	req, err := http.NewRequest("GET", urls, body)
11125	if err != nil {
11126		return nil, err
11127	}
11128	req.Header = reqHeaders
11129	googleapi.Expand(req.URL, map[string]string{
11130		"parent":       c.parent,
11131		"dicomWebPath": c.dicomWebPath,
11132	})
11133	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11134}
11135
11136// Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.metadata" call.
11137func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesMetadataCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
11138	gensupport.SetOptions(c.urlParams_, opts...)
11139	return c.doRequest("")
11140	// {
11141	//   "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.",
11142	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}/metadata",
11143	//   "httpMethod": "GET",
11144	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.metadata",
11145	//   "parameterOrder": [
11146	//     "parent",
11147	//     "dicomWebPath"
11148	//   ],
11149	//   "parameters": {
11150	//     "dicomWebPath": {
11151	//       "description": "The path of the RetrieveSeriesMetadata DICOMweb request (e.g.,\n`studies/{study_id}/series/{series_id}/metadata`).",
11152	//       "location": "path",
11153	//       "pattern": "^studies/[^/]+/series/[^/]+/metadata$",
11154	//       "required": true,
11155	//       "type": "string"
11156	//     },
11157	//     "parent": {
11158	//       "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}`).",
11159	//       "location": "path",
11160	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
11161	//       "required": true,
11162	//       "type": "string"
11163	//     }
11164	//   },
11165	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
11166	//   "response": {
11167	//     "$ref": "HttpBody"
11168	//   },
11169	//   "scopes": [
11170	//     "https://www.googleapis.com/auth/cloud-platform"
11171	//   ]
11172	// }
11173
11174}
11175
11176// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.retrieveSeries":
11177
11178type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall struct {
11179	s            *Service
11180	parent       string
11181	dicomWebPath string
11182	urlParams_   gensupport.URLParams
11183	ifNoneMatch_ string
11184	ctx_         context.Context
11185	header_      http.Header
11186}
11187
11188// RetrieveSeries: RetrieveSeries returns all instances within the given
11189// study and series.
11190// See
11191// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
11192// l#sect_10.4.
11193func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService) RetrieveSeries(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall {
11194	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11195	c.parent = parent
11196	c.dicomWebPath = dicomWebPath
11197	return c
11198}
11199
11200// Fields allows partial responses to be retrieved. See
11201// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11202// for more information.
11203func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall {
11204	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11205	return c
11206}
11207
11208// IfNoneMatch sets the optional parameter which makes the operation
11209// fail if the object's ETag matches the given value. This is useful for
11210// getting updates only after the object has changed since the last
11211// request. Use googleapi.IsNotModified to check whether the response
11212// error from Do is the result of In-None-Match.
11213func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall {
11214	c.ifNoneMatch_ = entityTag
11215	return c
11216}
11217
11218// Context sets the context to be used in this call's Do method. Any
11219// pending HTTP request will be aborted if the provided context is
11220// canceled.
11221func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall {
11222	c.ctx_ = ctx
11223	return c
11224}
11225
11226// Header returns an http.Header that can be modified by the caller to
11227// add HTTP headers to the request.
11228func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall) Header() http.Header {
11229	if c.header_ == nil {
11230		c.header_ = make(http.Header)
11231	}
11232	return c.header_
11233}
11234
11235func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall) doRequest(alt string) (*http.Response, error) {
11236	reqHeaders := make(http.Header)
11237	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
11238	for k, v := range c.header_ {
11239		reqHeaders[k] = v
11240	}
11241	reqHeaders.Set("User-Agent", c.s.userAgent())
11242	if c.ifNoneMatch_ != "" {
11243		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11244	}
11245	var body io.Reader = nil
11246	c.urlParams_.Set("alt", alt)
11247	c.urlParams_.Set("prettyPrint", "false")
11248	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
11249	urls += "?" + c.urlParams_.Encode()
11250	req, err := http.NewRequest("GET", urls, body)
11251	if err != nil {
11252		return nil, err
11253	}
11254	req.Header = reqHeaders
11255	googleapi.Expand(req.URL, map[string]string{
11256		"parent":       c.parent,
11257		"dicomWebPath": c.dicomWebPath,
11258	})
11259	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11260}
11261
11262// Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.retrieveSeries" call.
11263func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesRetrieveSeriesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
11264	gensupport.SetOptions(c.urlParams_, opts...)
11265	return c.doRequest("")
11266	// {
11267	//   "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.",
11268	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}",
11269	//   "httpMethod": "GET",
11270	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.retrieveSeries",
11271	//   "parameterOrder": [
11272	//     "parent",
11273	//     "dicomWebPath"
11274	//   ],
11275	//   "parameters": {
11276	//     "dicomWebPath": {
11277	//       "description": "The path of the RetrieveSeries DICOMweb request (e.g.,\n`studies/{study_id}/series/{series_id}`).",
11278	//       "location": "path",
11279	//       "pattern": "^studies/[^/]+/series/[^/]+$",
11280	//       "required": true,
11281	//       "type": "string"
11282	//     },
11283	//     "parent": {
11284	//       "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}`).",
11285	//       "location": "path",
11286	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
11287	//       "required": true,
11288	//       "type": "string"
11289	//     }
11290	//   },
11291	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
11292	//   "response": {
11293	//     "$ref": "HttpBody"
11294	//   },
11295	//   "scopes": [
11296	//     "https://www.googleapis.com/auth/cloud-platform"
11297	//   ]
11298	// }
11299
11300}
11301
11302// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.searchForInstances":
11303
11304type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall struct {
11305	s            *Service
11306	parent       string
11307	dicomWebPath string
11308	urlParams_   gensupport.URLParams
11309	ifNoneMatch_ string
11310	ctx_         context.Context
11311	header_      http.Header
11312}
11313
11314// SearchForInstances: SearchForInstances returns a list of matching
11315// instances.
11316// See
11317// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
11318// l#sect_10.6.
11319func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesService) SearchForInstances(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall {
11320	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11321	c.parent = parent
11322	c.dicomWebPath = dicomWebPath
11323	return c
11324}
11325
11326// Fields allows partial responses to be retrieved. See
11327// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11328// for more information.
11329func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall {
11330	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11331	return c
11332}
11333
11334// IfNoneMatch sets the optional parameter which makes the operation
11335// fail if the object's ETag matches the given value. This is useful for
11336// getting updates only after the object has changed since the last
11337// request. Use googleapi.IsNotModified to check whether the response
11338// error from Do is the result of In-None-Match.
11339func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall {
11340	c.ifNoneMatch_ = entityTag
11341	return c
11342}
11343
11344// Context sets the context to be used in this call's Do method. Any
11345// pending HTTP request will be aborted if the provided context is
11346// canceled.
11347func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall {
11348	c.ctx_ = ctx
11349	return c
11350}
11351
11352// Header returns an http.Header that can be modified by the caller to
11353// add HTTP headers to the request.
11354func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall) Header() http.Header {
11355	if c.header_ == nil {
11356		c.header_ = make(http.Header)
11357	}
11358	return c.header_
11359}
11360
11361func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall) doRequest(alt string) (*http.Response, error) {
11362	reqHeaders := make(http.Header)
11363	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
11364	for k, v := range c.header_ {
11365		reqHeaders[k] = v
11366	}
11367	reqHeaders.Set("User-Agent", c.s.userAgent())
11368	if c.ifNoneMatch_ != "" {
11369		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11370	}
11371	var body io.Reader = nil
11372	c.urlParams_.Set("alt", alt)
11373	c.urlParams_.Set("prettyPrint", "false")
11374	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
11375	urls += "?" + c.urlParams_.Encode()
11376	req, err := http.NewRequest("GET", urls, body)
11377	if err != nil {
11378		return nil, err
11379	}
11380	req.Header = reqHeaders
11381	googleapi.Expand(req.URL, map[string]string{
11382		"parent":       c.parent,
11383		"dicomWebPath": c.dicomWebPath,
11384	})
11385	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11386}
11387
11388// Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.searchForInstances" call.
11389func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesSearchForInstancesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
11390	gensupport.SetOptions(c.urlParams_, opts...)
11391	return c.doRequest("")
11392	// {
11393	//   "description": "SearchForInstances returns a list of matching instances. See\nhttp://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6.",
11394	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}/instances",
11395	//   "httpMethod": "GET",
11396	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.searchForInstances",
11397	//   "parameterOrder": [
11398	//     "parent",
11399	//     "dicomWebPath"
11400	//   ],
11401	//   "parameters": {
11402	//     "dicomWebPath": {
11403	//       "description": "The path of the SearchForInstancesRequest DICOMweb request (e.g.,\n`instances` or `series/{series_uid}/instances` or\n`studies/{study_uid}/instances`).",
11404	//       "location": "path",
11405	//       "pattern": "^studies/[^/]+/series/[^/]+/instances$",
11406	//       "required": true,
11407	//       "type": "string"
11408	//     },
11409	//     "parent": {
11410	//       "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}`).",
11411	//       "location": "path",
11412	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
11413	//       "required": true,
11414	//       "type": "string"
11415	//     }
11416	//   },
11417	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
11418	//   "response": {
11419	//     "$ref": "HttpBody"
11420	//   },
11421	//   "scopes": [
11422	//     "https://www.googleapis.com/auth/cloud-platform"
11423	//   ]
11424	// }
11425
11426}
11427
11428// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.delete":
11429
11430type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall struct {
11431	s            *Service
11432	parent       string
11433	dicomWebPath string
11434	urlParams_   gensupport.URLParams
11435	ctx_         context.Context
11436	header_      http.Header
11437}
11438
11439// Delete: DeleteInstance deletes an instance associated with the given
11440// study, series,
11441// and SOP Instance UID. Delete requests are equivalent to the GET
11442// requests
11443// specified in the WADO-RS standard.
11444func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService) Delete(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall {
11445	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11446	c.parent = parent
11447	c.dicomWebPath = dicomWebPath
11448	return c
11449}
11450
11451// Fields allows partial responses to be retrieved. See
11452// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11453// for more information.
11454func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall {
11455	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11456	return c
11457}
11458
11459// Context sets the context to be used in this call's Do method. Any
11460// pending HTTP request will be aborted if the provided context is
11461// canceled.
11462func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall {
11463	c.ctx_ = ctx
11464	return c
11465}
11466
11467// Header returns an http.Header that can be modified by the caller to
11468// add HTTP headers to the request.
11469func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall) Header() http.Header {
11470	if c.header_ == nil {
11471		c.header_ = make(http.Header)
11472	}
11473	return c.header_
11474}
11475
11476func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall) doRequest(alt string) (*http.Response, error) {
11477	reqHeaders := make(http.Header)
11478	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
11479	for k, v := range c.header_ {
11480		reqHeaders[k] = v
11481	}
11482	reqHeaders.Set("User-Agent", c.s.userAgent())
11483	var body io.Reader = nil
11484	c.urlParams_.Set("alt", alt)
11485	c.urlParams_.Set("prettyPrint", "false")
11486	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
11487	urls += "?" + c.urlParams_.Encode()
11488	req, err := http.NewRequest("DELETE", urls, body)
11489	if err != nil {
11490		return nil, err
11491	}
11492	req.Header = reqHeaders
11493	googleapi.Expand(req.URL, map[string]string{
11494		"parent":       c.parent,
11495		"dicomWebPath": c.dicomWebPath,
11496	})
11497	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11498}
11499
11500// Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.delete" call.
11501// Exactly one of *Empty or error will be non-nil. Any non-2xx status
11502// code is an error. Response headers are in either
11503// *Empty.ServerResponse.Header or (if a response was returned at all)
11504// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
11505// check whether the returned error was because http.StatusNotModified
11506// was returned.
11507func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
11508	gensupport.SetOptions(c.urlParams_, opts...)
11509	res, err := c.doRequest("json")
11510	if res != nil && res.StatusCode == http.StatusNotModified {
11511		if res.Body != nil {
11512			res.Body.Close()
11513		}
11514		return nil, &googleapi.Error{
11515			Code:   res.StatusCode,
11516			Header: res.Header,
11517		}
11518	}
11519	if err != nil {
11520		return nil, err
11521	}
11522	defer googleapi.CloseBody(res)
11523	if err := googleapi.CheckResponse(res); err != nil {
11524		return nil, err
11525	}
11526	ret := &Empty{
11527		ServerResponse: googleapi.ServerResponse{
11528			Header:         res.Header,
11529			HTTPStatusCode: res.StatusCode,
11530		},
11531	}
11532	target := &ret
11533	if err := gensupport.DecodeResponse(target, res); err != nil {
11534		return nil, err
11535	}
11536	return ret, nil
11537	// {
11538	//   "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.",
11539	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}/instances/{instancesId}",
11540	//   "httpMethod": "DELETE",
11541	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.delete",
11542	//   "parameterOrder": [
11543	//     "parent",
11544	//     "dicomWebPath"
11545	//   ],
11546	//   "parameters": {
11547	//     "dicomWebPath": {
11548	//       "description": "The path of the DeleteInstance request (e.g.,\n`studies/{study_id}/series/{series_id}/instances/{instance_id}`).",
11549	//       "location": "path",
11550	//       "pattern": "^studies/[^/]+/series/[^/]+/instances/[^/]+$",
11551	//       "required": true,
11552	//       "type": "string"
11553	//     },
11554	//     "parent": {
11555	//       "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}`).",
11556	//       "location": "path",
11557	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
11558	//       "required": true,
11559	//       "type": "string"
11560	//     }
11561	//   },
11562	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
11563	//   "response": {
11564	//     "$ref": "Empty"
11565	//   },
11566	//   "scopes": [
11567	//     "https://www.googleapis.com/auth/cloud-platform"
11568	//   ]
11569	// }
11570
11571}
11572
11573// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.metadata":
11574
11575type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall struct {
11576	s            *Service
11577	parent       string
11578	dicomWebPath string
11579	urlParams_   gensupport.URLParams
11580	ifNoneMatch_ string
11581	ctx_         context.Context
11582	header_      http.Header
11583}
11584
11585// Metadata: RetrieveInstanceMetadata returns instance associated with
11586// the given study,
11587// series, and SOP Instance UID presented as metadata with the bulk
11588// data
11589// removed.
11590// See
11591// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
11592// l#sect_10.4.
11593func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService) Metadata(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall {
11594	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11595	c.parent = parent
11596	c.dicomWebPath = dicomWebPath
11597	return c
11598}
11599
11600// Fields allows partial responses to be retrieved. See
11601// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11602// for more information.
11603func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall {
11604	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11605	return c
11606}
11607
11608// IfNoneMatch sets the optional parameter which makes the operation
11609// fail if the object's ETag matches the given value. This is useful for
11610// getting updates only after the object has changed since the last
11611// request. Use googleapi.IsNotModified to check whether the response
11612// error from Do is the result of In-None-Match.
11613func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall {
11614	c.ifNoneMatch_ = entityTag
11615	return c
11616}
11617
11618// Context sets the context to be used in this call's Do method. Any
11619// pending HTTP request will be aborted if the provided context is
11620// canceled.
11621func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall {
11622	c.ctx_ = ctx
11623	return c
11624}
11625
11626// Header returns an http.Header that can be modified by the caller to
11627// add HTTP headers to the request.
11628func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall) Header() http.Header {
11629	if c.header_ == nil {
11630		c.header_ = make(http.Header)
11631	}
11632	return c.header_
11633}
11634
11635func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall) doRequest(alt string) (*http.Response, error) {
11636	reqHeaders := make(http.Header)
11637	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
11638	for k, v := range c.header_ {
11639		reqHeaders[k] = v
11640	}
11641	reqHeaders.Set("User-Agent", c.s.userAgent())
11642	if c.ifNoneMatch_ != "" {
11643		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11644	}
11645	var body io.Reader = nil
11646	c.urlParams_.Set("alt", alt)
11647	c.urlParams_.Set("prettyPrint", "false")
11648	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
11649	urls += "?" + c.urlParams_.Encode()
11650	req, err := http.NewRequest("GET", urls, body)
11651	if err != nil {
11652		return nil, err
11653	}
11654	req.Header = reqHeaders
11655	googleapi.Expand(req.URL, map[string]string{
11656		"parent":       c.parent,
11657		"dicomWebPath": c.dicomWebPath,
11658	})
11659	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11660}
11661
11662// Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.metadata" call.
11663func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesMetadataCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
11664	gensupport.SetOptions(c.urlParams_, opts...)
11665	return c.doRequest("")
11666	// {
11667	//   "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.",
11668	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}/instances/{instancesId}/metadata",
11669	//   "httpMethod": "GET",
11670	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.metadata",
11671	//   "parameterOrder": [
11672	//     "parent",
11673	//     "dicomWebPath"
11674	//   ],
11675	//   "parameters": {
11676	//     "dicomWebPath": {
11677	//       "description": "The path of the RetrieveInstanceMetadata DICOMweb request (e.g.,\n`studies/{study_id}/series/{series_id}/instances/{instance_id}/metadata`).",
11678	//       "location": "path",
11679	//       "pattern": "^studies/[^/]+/series/[^/]+/instances/[^/]+/metadata$",
11680	//       "required": true,
11681	//       "type": "string"
11682	//     },
11683	//     "parent": {
11684	//       "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}`).",
11685	//       "location": "path",
11686	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
11687	//       "required": true,
11688	//       "type": "string"
11689	//     }
11690	//   },
11691	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
11692	//   "response": {
11693	//     "$ref": "HttpBody"
11694	//   },
11695	//   "scopes": [
11696	//     "https://www.googleapis.com/auth/cloud-platform"
11697	//   ]
11698	// }
11699
11700}
11701
11702// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.rendered":
11703
11704type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall struct {
11705	s            *Service
11706	parent       string
11707	dicomWebPath string
11708	urlParams_   gensupport.URLParams
11709	ifNoneMatch_ string
11710	ctx_         context.Context
11711	header_      http.Header
11712}
11713
11714// Rendered: RetrieveRenderedInstance returns instance associated with
11715// the given study,
11716// series, and SOP Instance UID in an acceptable Rendered Media Type.
11717// See
11718// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
11719// l#sect_10.4.
11720func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService) Rendered(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall {
11721	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11722	c.parent = parent
11723	c.dicomWebPath = dicomWebPath
11724	return c
11725}
11726
11727// Fields allows partial responses to be retrieved. See
11728// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11729// for more information.
11730func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall {
11731	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11732	return c
11733}
11734
11735// IfNoneMatch sets the optional parameter which makes the operation
11736// fail if the object's ETag matches the given value. This is useful for
11737// getting updates only after the object has changed since the last
11738// request. Use googleapi.IsNotModified to check whether the response
11739// error from Do is the result of In-None-Match.
11740func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall {
11741	c.ifNoneMatch_ = entityTag
11742	return c
11743}
11744
11745// Context sets the context to be used in this call's Do method. Any
11746// pending HTTP request will be aborted if the provided context is
11747// canceled.
11748func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall {
11749	c.ctx_ = ctx
11750	return c
11751}
11752
11753// Header returns an http.Header that can be modified by the caller to
11754// add HTTP headers to the request.
11755func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall) Header() http.Header {
11756	if c.header_ == nil {
11757		c.header_ = make(http.Header)
11758	}
11759	return c.header_
11760}
11761
11762func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall) doRequest(alt string) (*http.Response, error) {
11763	reqHeaders := make(http.Header)
11764	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
11765	for k, v := range c.header_ {
11766		reqHeaders[k] = v
11767	}
11768	reqHeaders.Set("User-Agent", c.s.userAgent())
11769	if c.ifNoneMatch_ != "" {
11770		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11771	}
11772	var body io.Reader = nil
11773	c.urlParams_.Set("alt", alt)
11774	c.urlParams_.Set("prettyPrint", "false")
11775	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
11776	urls += "?" + c.urlParams_.Encode()
11777	req, err := http.NewRequest("GET", urls, body)
11778	if err != nil {
11779		return nil, err
11780	}
11781	req.Header = reqHeaders
11782	googleapi.Expand(req.URL, map[string]string{
11783		"parent":       c.parent,
11784		"dicomWebPath": c.dicomWebPath,
11785	})
11786	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11787}
11788
11789// Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.rendered" call.
11790func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRenderedCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
11791	gensupport.SetOptions(c.urlParams_, opts...)
11792	return c.doRequest("")
11793	// {
11794	//   "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.",
11795	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}/instances/{instancesId}/rendered",
11796	//   "httpMethod": "GET",
11797	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.rendered",
11798	//   "parameterOrder": [
11799	//     "parent",
11800	//     "dicomWebPath"
11801	//   ],
11802	//   "parameters": {
11803	//     "dicomWebPath": {
11804	//       "description": "The path of the RetrieveRenderedInstance DICOMweb request (e.g.,\n`studies/{study_id}/series/{series_id}/instances/{instance_id}/rendered`).",
11805	//       "location": "path",
11806	//       "pattern": "^studies/[^/]+/series/[^/]+/instances/[^/]+/rendered$",
11807	//       "required": true,
11808	//       "type": "string"
11809	//     },
11810	//     "parent": {
11811	//       "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}`).",
11812	//       "location": "path",
11813	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
11814	//       "required": true,
11815	//       "type": "string"
11816	//     }
11817	//   },
11818	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
11819	//   "response": {
11820	//     "$ref": "HttpBody"
11821	//   },
11822	//   "scopes": [
11823	//     "https://www.googleapis.com/auth/cloud-platform"
11824	//   ]
11825	// }
11826
11827}
11828
11829// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.retrieveInstance":
11830
11831type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall struct {
11832	s            *Service
11833	parent       string
11834	dicomWebPath string
11835	urlParams_   gensupport.URLParams
11836	ifNoneMatch_ string
11837	ctx_         context.Context
11838	header_      http.Header
11839}
11840
11841// RetrieveInstance: RetrieveInstance returns instance associated with
11842// the given study, series,
11843// and SOP Instance UID.
11844// See
11845// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
11846// l#sect_10.4.
11847func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesService) RetrieveInstance(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall {
11848	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11849	c.parent = parent
11850	c.dicomWebPath = dicomWebPath
11851	return c
11852}
11853
11854// Fields allows partial responses to be retrieved. See
11855// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11856// for more information.
11857func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall {
11858	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11859	return c
11860}
11861
11862// IfNoneMatch sets the optional parameter which makes the operation
11863// fail if the object's ETag matches the given value. This is useful for
11864// getting updates only after the object has changed since the last
11865// request. Use googleapi.IsNotModified to check whether the response
11866// error from Do is the result of In-None-Match.
11867func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall {
11868	c.ifNoneMatch_ = entityTag
11869	return c
11870}
11871
11872// Context sets the context to be used in this call's Do method. Any
11873// pending HTTP request will be aborted if the provided context is
11874// canceled.
11875func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall {
11876	c.ctx_ = ctx
11877	return c
11878}
11879
11880// Header returns an http.Header that can be modified by the caller to
11881// add HTTP headers to the request.
11882func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall) Header() http.Header {
11883	if c.header_ == nil {
11884		c.header_ = make(http.Header)
11885	}
11886	return c.header_
11887}
11888
11889func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall) doRequest(alt string) (*http.Response, error) {
11890	reqHeaders := make(http.Header)
11891	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
11892	for k, v := range c.header_ {
11893		reqHeaders[k] = v
11894	}
11895	reqHeaders.Set("User-Agent", c.s.userAgent())
11896	if c.ifNoneMatch_ != "" {
11897		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11898	}
11899	var body io.Reader = nil
11900	c.urlParams_.Set("alt", alt)
11901	c.urlParams_.Set("prettyPrint", "false")
11902	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
11903	urls += "?" + c.urlParams_.Encode()
11904	req, err := http.NewRequest("GET", urls, body)
11905	if err != nil {
11906		return nil, err
11907	}
11908	req.Header = reqHeaders
11909	googleapi.Expand(req.URL, map[string]string{
11910		"parent":       c.parent,
11911		"dicomWebPath": c.dicomWebPath,
11912	})
11913	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11914}
11915
11916// Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.retrieveInstance" call.
11917func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesRetrieveInstanceCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
11918	gensupport.SetOptions(c.urlParams_, opts...)
11919	return c.doRequest("")
11920	// {
11921	//   "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.",
11922	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}/instances/{instancesId}",
11923	//   "httpMethod": "GET",
11924	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.retrieveInstance",
11925	//   "parameterOrder": [
11926	//     "parent",
11927	//     "dicomWebPath"
11928	//   ],
11929	//   "parameters": {
11930	//     "dicomWebPath": {
11931	//       "description": "The path of the RetrieveInstance DICOMweb request (e.g.,\n`studies/{study_id}/series/{series_id}/instances/{instance_id}`).",
11932	//       "location": "path",
11933	//       "pattern": "^studies/[^/]+/series/[^/]+/instances/[^/]+$",
11934	//       "required": true,
11935	//       "type": "string"
11936	//     },
11937	//     "parent": {
11938	//       "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}`).",
11939	//       "location": "path",
11940	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
11941	//       "required": true,
11942	//       "type": "string"
11943	//     }
11944	//   },
11945	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
11946	//   "response": {
11947	//     "$ref": "HttpBody"
11948	//   },
11949	//   "scopes": [
11950	//     "https://www.googleapis.com/auth/cloud-platform"
11951	//   ]
11952	// }
11953
11954}
11955
11956// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.frames.rendered":
11957
11958type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall struct {
11959	s            *Service
11960	parent       string
11961	dicomWebPath string
11962	urlParams_   gensupport.URLParams
11963	ifNoneMatch_ string
11964	ctx_         context.Context
11965	header_      http.Header
11966}
11967
11968// Rendered: RetrieveRenderedFrames returns instances associated with
11969// the given study,
11970// series, SOP Instance UID and frame numbers in an acceptable Rendered
11971// Media
11972// Type.
11973// See
11974// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
11975// l#sect_10.4.
11976func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesService) Rendered(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall {
11977	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11978	c.parent = parent
11979	c.dicomWebPath = dicomWebPath
11980	return c
11981}
11982
11983// Fields allows partial responses to be retrieved. See
11984// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11985// for more information.
11986func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall {
11987	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11988	return c
11989}
11990
11991// IfNoneMatch sets the optional parameter which makes the operation
11992// fail if the object's ETag matches the given value. This is useful for
11993// getting updates only after the object has changed since the last
11994// request. Use googleapi.IsNotModified to check whether the response
11995// error from Do is the result of In-None-Match.
11996func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall {
11997	c.ifNoneMatch_ = entityTag
11998	return c
11999}
12000
12001// Context sets the context to be used in this call's Do method. Any
12002// pending HTTP request will be aborted if the provided context is
12003// canceled.
12004func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall {
12005	c.ctx_ = ctx
12006	return c
12007}
12008
12009// Header returns an http.Header that can be modified by the caller to
12010// add HTTP headers to the request.
12011func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall) Header() http.Header {
12012	if c.header_ == nil {
12013		c.header_ = make(http.Header)
12014	}
12015	return c.header_
12016}
12017
12018func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall) doRequest(alt string) (*http.Response, error) {
12019	reqHeaders := make(http.Header)
12020	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
12021	for k, v := range c.header_ {
12022		reqHeaders[k] = v
12023	}
12024	reqHeaders.Set("User-Agent", c.s.userAgent())
12025	if c.ifNoneMatch_ != "" {
12026		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12027	}
12028	var body io.Reader = nil
12029	c.urlParams_.Set("alt", alt)
12030	c.urlParams_.Set("prettyPrint", "false")
12031	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
12032	urls += "?" + c.urlParams_.Encode()
12033	req, err := http.NewRequest("GET", urls, body)
12034	if err != nil {
12035		return nil, err
12036	}
12037	req.Header = reqHeaders
12038	googleapi.Expand(req.URL, map[string]string{
12039		"parent":       c.parent,
12040		"dicomWebPath": c.dicomWebPath,
12041	})
12042	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12043}
12044
12045// Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.frames.rendered" call.
12046func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRenderedCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
12047	gensupport.SetOptions(c.urlParams_, opts...)
12048	return c.doRequest("")
12049	// {
12050	//   "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.",
12051	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}/instances/{instancesId}/frames/{framesId}/rendered",
12052	//   "httpMethod": "GET",
12053	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.frames.rendered",
12054	//   "parameterOrder": [
12055	//     "parent",
12056	//     "dicomWebPath"
12057	//   ],
12058	//   "parameters": {
12059	//     "dicomWebPath": {
12060	//       "description": "The path of the RetrieveRenderedFrames DICOMweb request (e.g.,\n`studies/{study_id}/series/{series_id}/instances/{instance_id}/frames/{frame_list}/rendered`).",
12061	//       "location": "path",
12062	//       "pattern": "^studies/[^/]+/series/[^/]+/instances/[^/]+/frames/[^/]+/rendered$",
12063	//       "required": true,
12064	//       "type": "string"
12065	//     },
12066	//     "parent": {
12067	//       "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}`).",
12068	//       "location": "path",
12069	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
12070	//       "required": true,
12071	//       "type": "string"
12072	//     }
12073	//   },
12074	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
12075	//   "response": {
12076	//     "$ref": "HttpBody"
12077	//   },
12078	//   "scopes": [
12079	//     "https://www.googleapis.com/auth/cloud-platform"
12080	//   ]
12081	// }
12082
12083}
12084
12085// method id "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.frames.retrieveFrames":
12086
12087type ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall struct {
12088	s            *Service
12089	parent       string
12090	dicomWebPath string
12091	urlParams_   gensupport.URLParams
12092	ifNoneMatch_ string
12093	ctx_         context.Context
12094	header_      http.Header
12095}
12096
12097// RetrieveFrames: RetrieveFrames returns instances associated with the
12098// given study, series,
12099// SOP Instance UID and frame numbers.
12100// See
12101// http://dicom.nema.org/medical/dicom/current/output/html/part18.htm
12102// l#sect_10.4.
12103func (r *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesService) RetrieveFrames(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall {
12104	c := &ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12105	c.parent = parent
12106	c.dicomWebPath = dicomWebPath
12107	return c
12108}
12109
12110// Fields allows partial responses to be retrieved. See
12111// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12112// for more information.
12113func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall {
12114	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12115	return c
12116}
12117
12118// IfNoneMatch sets the optional parameter which makes the operation
12119// fail if the object's ETag matches the given value. This is useful for
12120// getting updates only after the object has changed since the last
12121// request. Use googleapi.IsNotModified to check whether the response
12122// error from Do is the result of In-None-Match.
12123func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall {
12124	c.ifNoneMatch_ = entityTag
12125	return c
12126}
12127
12128// Context sets the context to be used in this call's Do method. Any
12129// pending HTTP request will be aborted if the provided context is
12130// canceled.
12131func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall {
12132	c.ctx_ = ctx
12133	return c
12134}
12135
12136// Header returns an http.Header that can be modified by the caller to
12137// add HTTP headers to the request.
12138func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall) Header() http.Header {
12139	if c.header_ == nil {
12140		c.header_ = make(http.Header)
12141	}
12142	return c.header_
12143}
12144
12145func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall) doRequest(alt string) (*http.Response, error) {
12146	reqHeaders := make(http.Header)
12147	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
12148	for k, v := range c.header_ {
12149		reqHeaders[k] = v
12150	}
12151	reqHeaders.Set("User-Agent", c.s.userAgent())
12152	if c.ifNoneMatch_ != "" {
12153		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12154	}
12155	var body io.Reader = nil
12156	c.urlParams_.Set("alt", alt)
12157	c.urlParams_.Set("prettyPrint", "false")
12158	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}")
12159	urls += "?" + c.urlParams_.Encode()
12160	req, err := http.NewRequest("GET", urls, body)
12161	if err != nil {
12162		return nil, err
12163	}
12164	req.Header = reqHeaders
12165	googleapi.Expand(req.URL, map[string]string{
12166		"parent":       c.parent,
12167		"dicomWebPath": c.dicomWebPath,
12168	})
12169	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12170}
12171
12172// Do executes the "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.frames.retrieveFrames" call.
12173func (c *ProjectsLocationsDatasetsDicomStoresDicomWebStudiesSeriesInstancesFramesRetrieveFramesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
12174	gensupport.SetOptions(c.urlParams_, opts...)
12175	return c.doRequest("")
12176	// {
12177	//   "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.",
12178	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}/instances/{instancesId}/frames/{framesId}",
12179	//   "httpMethod": "GET",
12180	//   "id": "healthcare.projects.locations.datasets.dicomStores.dicomWeb.studies.series.instances.frames.retrieveFrames",
12181	//   "parameterOrder": [
12182	//     "parent",
12183	//     "dicomWebPath"
12184	//   ],
12185	//   "parameters": {
12186	//     "dicomWebPath": {
12187	//       "description": "The path of the RetrieveFrames DICOMweb request (e.g.,\n`studies/{study_id}/series/{series_id}/instances/{instance_id}/frames/{frame_list}`).",
12188	//       "location": "path",
12189	//       "pattern": "^studies/[^/]+/series/[^/]+/instances/[^/]+/frames/[^/]+$",
12190	//       "required": true,
12191	//       "type": "string"
12192	//     },
12193	//     "parent": {
12194	//       "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}`).",
12195	//       "location": "path",
12196	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$",
12197	//       "required": true,
12198	//       "type": "string"
12199	//     }
12200	//   },
12201	//   "path": "v1alpha2/{+parent}/dicomWeb/{+dicomWebPath}",
12202	//   "response": {
12203	//     "$ref": "HttpBody"
12204	//   },
12205	//   "scopes": [
12206	//     "https://www.googleapis.com/auth/cloud-platform"
12207	//   ]
12208	// }
12209
12210}
12211
12212// method id "healthcare.projects.locations.datasets.fhirStores.capabilities":
12213
12214type ProjectsLocationsDatasetsFhirStoresCapabilitiesCall struct {
12215	s            *Service
12216	name         string
12217	urlParams_   gensupport.URLParams
12218	ifNoneMatch_ string
12219	ctx_         context.Context
12220	header_      http.Header
12221}
12222
12223// Capabilities: Gets the FHIR capability
12224// statement
12225// ([STU3](http://hl7.org/implement/standards/fhir/STU3/capabil
12226// itystatement.html)),
12227// or the
12228// [conformance
12229// statement](http://hl7.org/implement/standards/fhir/DSTU2/
12230// conformance.html)
12231// in the DSTU2 case for the store, which contains a description
12232// of
12233// functionality supported by the server.
12234//
12235// Implements the FHIR standard capabilities
12236// interaction
12237// ([STU3](http://hl7.org/implement/standards/fhir/STU3/http.
12238// html#capabilities)),
12239// or the
12240// [conformance
12241// interaction](http://hl7.org/implement/standards/fhir/DSTU
12242// 2/http.html#conformance)
12243// in the DSTU2 case.
12244//
12245// On success, the response body will contain a JSON-encoded
12246// representation
12247// of a `CapabilityStatement` resource.
12248func (r *ProjectsLocationsDatasetsFhirStoresService) Capabilities(name string) *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall {
12249	c := &ProjectsLocationsDatasetsFhirStoresCapabilitiesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12250	c.name = name
12251	return c
12252}
12253
12254// Fields allows partial responses to be retrieved. See
12255// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12256// for more information.
12257func (c *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall {
12258	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12259	return c
12260}
12261
12262// IfNoneMatch sets the optional parameter which makes the operation
12263// fail if the object's ETag matches the given value. This is useful for
12264// getting updates only after the object has changed since the last
12265// request. Use googleapi.IsNotModified to check whether the response
12266// error from Do is the result of In-None-Match.
12267func (c *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall {
12268	c.ifNoneMatch_ = entityTag
12269	return c
12270}
12271
12272// Context sets the context to be used in this call's Do method. Any
12273// pending HTTP request will be aborted if the provided context is
12274// canceled.
12275func (c *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall {
12276	c.ctx_ = ctx
12277	return c
12278}
12279
12280// Header returns an http.Header that can be modified by the caller to
12281// add HTTP headers to the request.
12282func (c *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall) Header() http.Header {
12283	if c.header_ == nil {
12284		c.header_ = make(http.Header)
12285	}
12286	return c.header_
12287}
12288
12289func (c *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall) doRequest(alt string) (*http.Response, error) {
12290	reqHeaders := make(http.Header)
12291	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
12292	for k, v := range c.header_ {
12293		reqHeaders[k] = v
12294	}
12295	reqHeaders.Set("User-Agent", c.s.userAgent())
12296	if c.ifNoneMatch_ != "" {
12297		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12298	}
12299	var body io.Reader = nil
12300	c.urlParams_.Set("alt", alt)
12301	c.urlParams_.Set("prettyPrint", "false")
12302	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}/metadata")
12303	urls += "?" + c.urlParams_.Encode()
12304	req, err := http.NewRequest("GET", urls, body)
12305	if err != nil {
12306		return nil, err
12307	}
12308	req.Header = reqHeaders
12309	googleapi.Expand(req.URL, map[string]string{
12310		"name": c.name,
12311	})
12312	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12313}
12314
12315// Do executes the "healthcare.projects.locations.datasets.fhirStores.capabilities" call.
12316func (c *ProjectsLocationsDatasetsFhirStoresCapabilitiesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
12317	gensupport.SetOptions(c.urlParams_, opts...)
12318	return c.doRequest("")
12319	// {
12320	//   "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.",
12321	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/metadata",
12322	//   "httpMethod": "GET",
12323	//   "id": "healthcare.projects.locations.datasets.fhirStores.capabilities",
12324	//   "parameterOrder": [
12325	//     "name"
12326	//   ],
12327	//   "parameters": {
12328	//     "name": {
12329	//       "description": "Name of the FHIR store to retrieve the capabilities for.",
12330	//       "location": "path",
12331	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
12332	//       "required": true,
12333	//       "type": "string"
12334	//     }
12335	//   },
12336	//   "path": "v1alpha2/{+name}/metadata",
12337	//   "response": {
12338	//     "$ref": "HttpBody"
12339	//   },
12340	//   "scopes": [
12341	//     "https://www.googleapis.com/auth/cloud-platform"
12342	//   ]
12343	// }
12344
12345}
12346
12347// method id "healthcare.projects.locations.datasets.fhirStores.create":
12348
12349type ProjectsLocationsDatasetsFhirStoresCreateCall struct {
12350	s          *Service
12351	parent     string
12352	fhirstore  *FhirStore
12353	urlParams_ gensupport.URLParams
12354	ctx_       context.Context
12355	header_    http.Header
12356}
12357
12358// Create: Creates a new FHIR store within the parent dataset.
12359func (r *ProjectsLocationsDatasetsFhirStoresService) Create(parent string, fhirstore *FhirStore) *ProjectsLocationsDatasetsFhirStoresCreateCall {
12360	c := &ProjectsLocationsDatasetsFhirStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12361	c.parent = parent
12362	c.fhirstore = fhirstore
12363	return c
12364}
12365
12366// FhirStoreId sets the optional parameter "fhirStoreId": The ID of the
12367// FHIR store that is being created.
12368// The string must match the following regex:
12369// `[\p{L}\p{N}_\-\.]{1,256}`.
12370func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) FhirStoreId(fhirStoreId string) *ProjectsLocationsDatasetsFhirStoresCreateCall {
12371	c.urlParams_.Set("fhirStoreId", fhirStoreId)
12372	return c
12373}
12374
12375// Fields allows partial responses to be retrieved. See
12376// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12377// for more information.
12378func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresCreateCall {
12379	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12380	return c
12381}
12382
12383// Context sets the context to be used in this call's Do method. Any
12384// pending HTTP request will be aborted if the provided context is
12385// canceled.
12386func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresCreateCall {
12387	c.ctx_ = ctx
12388	return c
12389}
12390
12391// Header returns an http.Header that can be modified by the caller to
12392// add HTTP headers to the request.
12393func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) Header() http.Header {
12394	if c.header_ == nil {
12395		c.header_ = make(http.Header)
12396	}
12397	return c.header_
12398}
12399
12400func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) doRequest(alt string) (*http.Response, error) {
12401	reqHeaders := make(http.Header)
12402	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
12403	for k, v := range c.header_ {
12404		reqHeaders[k] = v
12405	}
12406	reqHeaders.Set("User-Agent", c.s.userAgent())
12407	var body io.Reader = nil
12408	body, err := googleapi.WithoutDataWrapper.JSONReader(c.fhirstore)
12409	if err != nil {
12410		return nil, err
12411	}
12412	reqHeaders.Set("Content-Type", "application/json")
12413	c.urlParams_.Set("alt", alt)
12414	c.urlParams_.Set("prettyPrint", "false")
12415	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhirStores")
12416	urls += "?" + c.urlParams_.Encode()
12417	req, err := http.NewRequest("POST", urls, body)
12418	if err != nil {
12419		return nil, err
12420	}
12421	req.Header = reqHeaders
12422	googleapi.Expand(req.URL, map[string]string{
12423		"parent": c.parent,
12424	})
12425	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12426}
12427
12428// Do executes the "healthcare.projects.locations.datasets.fhirStores.create" call.
12429// Exactly one of *FhirStore or error will be non-nil. Any non-2xx
12430// status code is an error. Response headers are in either
12431// *FhirStore.ServerResponse.Header or (if a response was returned at
12432// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
12433// to check whether the returned error was because
12434// http.StatusNotModified was returned.
12435func (c *ProjectsLocationsDatasetsFhirStoresCreateCall) Do(opts ...googleapi.CallOption) (*FhirStore, error) {
12436	gensupport.SetOptions(c.urlParams_, opts...)
12437	res, err := c.doRequest("json")
12438	if res != nil && res.StatusCode == http.StatusNotModified {
12439		if res.Body != nil {
12440			res.Body.Close()
12441		}
12442		return nil, &googleapi.Error{
12443			Code:   res.StatusCode,
12444			Header: res.Header,
12445		}
12446	}
12447	if err != nil {
12448		return nil, err
12449	}
12450	defer googleapi.CloseBody(res)
12451	if err := googleapi.CheckResponse(res); err != nil {
12452		return nil, err
12453	}
12454	ret := &FhirStore{
12455		ServerResponse: googleapi.ServerResponse{
12456			Header:         res.Header,
12457			HTTPStatusCode: res.StatusCode,
12458		},
12459	}
12460	target := &ret
12461	if err := gensupport.DecodeResponse(target, res); err != nil {
12462		return nil, err
12463	}
12464	return ret, nil
12465	// {
12466	//   "description": "Creates a new FHIR store within the parent dataset.",
12467	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores",
12468	//   "httpMethod": "POST",
12469	//   "id": "healthcare.projects.locations.datasets.fhirStores.create",
12470	//   "parameterOrder": [
12471	//     "parent"
12472	//   ],
12473	//   "parameters": {
12474	//     "fhirStoreId": {
12475	//       "description": "The ID of the FHIR store that is being created.\nThe string must match the following regex: `[\\p{L}\\p{N}_\\-\\.]{1,256}`.",
12476	//       "location": "query",
12477	//       "type": "string"
12478	//     },
12479	//     "parent": {
12480	//       "description": "The name of the dataset this FHIR store belongs to.",
12481	//       "location": "path",
12482	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
12483	//       "required": true,
12484	//       "type": "string"
12485	//     }
12486	//   },
12487	//   "path": "v1alpha2/{+parent}/fhirStores",
12488	//   "request": {
12489	//     "$ref": "FhirStore"
12490	//   },
12491	//   "response": {
12492	//     "$ref": "FhirStore"
12493	//   },
12494	//   "scopes": [
12495	//     "https://www.googleapis.com/auth/cloud-platform"
12496	//   ]
12497	// }
12498
12499}
12500
12501// method id "healthcare.projects.locations.datasets.fhirStores.delete":
12502
12503type ProjectsLocationsDatasetsFhirStoresDeleteCall struct {
12504	s          *Service
12505	name       string
12506	urlParams_ gensupport.URLParams
12507	ctx_       context.Context
12508	header_    http.Header
12509}
12510
12511// Delete: Deletes the specified FHIR store and removes all resources
12512// within it.
12513func (r *ProjectsLocationsDatasetsFhirStoresService) Delete(name string) *ProjectsLocationsDatasetsFhirStoresDeleteCall {
12514	c := &ProjectsLocationsDatasetsFhirStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12515	c.name = name
12516	return c
12517}
12518
12519// Fields allows partial responses to be retrieved. See
12520// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12521// for more information.
12522func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresDeleteCall {
12523	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12524	return c
12525}
12526
12527// Context sets the context to be used in this call's Do method. Any
12528// pending HTTP request will be aborted if the provided context is
12529// canceled.
12530func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresDeleteCall {
12531	c.ctx_ = ctx
12532	return c
12533}
12534
12535// Header returns an http.Header that can be modified by the caller to
12536// add HTTP headers to the request.
12537func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) Header() http.Header {
12538	if c.header_ == nil {
12539		c.header_ = make(http.Header)
12540	}
12541	return c.header_
12542}
12543
12544func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) doRequest(alt string) (*http.Response, error) {
12545	reqHeaders := make(http.Header)
12546	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
12547	for k, v := range c.header_ {
12548		reqHeaders[k] = v
12549	}
12550	reqHeaders.Set("User-Agent", c.s.userAgent())
12551	var body io.Reader = nil
12552	c.urlParams_.Set("alt", alt)
12553	c.urlParams_.Set("prettyPrint", "false")
12554	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
12555	urls += "?" + c.urlParams_.Encode()
12556	req, err := http.NewRequest("DELETE", urls, body)
12557	if err != nil {
12558		return nil, err
12559	}
12560	req.Header = reqHeaders
12561	googleapi.Expand(req.URL, map[string]string{
12562		"name": c.name,
12563	})
12564	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12565}
12566
12567// Do executes the "healthcare.projects.locations.datasets.fhirStores.delete" call.
12568// Exactly one of *Empty or error will be non-nil. Any non-2xx status
12569// code is an error. Response headers are in either
12570// *Empty.ServerResponse.Header or (if a response was returned at all)
12571// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
12572// check whether the returned error was because http.StatusNotModified
12573// was returned.
12574func (c *ProjectsLocationsDatasetsFhirStoresDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
12575	gensupport.SetOptions(c.urlParams_, opts...)
12576	res, err := c.doRequest("json")
12577	if res != nil && res.StatusCode == http.StatusNotModified {
12578		if res.Body != nil {
12579			res.Body.Close()
12580		}
12581		return nil, &googleapi.Error{
12582			Code:   res.StatusCode,
12583			Header: res.Header,
12584		}
12585	}
12586	if err != nil {
12587		return nil, err
12588	}
12589	defer googleapi.CloseBody(res)
12590	if err := googleapi.CheckResponse(res); err != nil {
12591		return nil, err
12592	}
12593	ret := &Empty{
12594		ServerResponse: googleapi.ServerResponse{
12595			Header:         res.Header,
12596			HTTPStatusCode: res.StatusCode,
12597		},
12598	}
12599	target := &ret
12600	if err := gensupport.DecodeResponse(target, res); err != nil {
12601		return nil, err
12602	}
12603	return ret, nil
12604	// {
12605	//   "description": "Deletes the specified FHIR store and removes all resources within it.",
12606	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}",
12607	//   "httpMethod": "DELETE",
12608	//   "id": "healthcare.projects.locations.datasets.fhirStores.delete",
12609	//   "parameterOrder": [
12610	//     "name"
12611	//   ],
12612	//   "parameters": {
12613	//     "name": {
12614	//       "description": "The resource name of the FHIR store to delete.",
12615	//       "location": "path",
12616	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
12617	//       "required": true,
12618	//       "type": "string"
12619	//     }
12620	//   },
12621	//   "path": "v1alpha2/{+name}",
12622	//   "response": {
12623	//     "$ref": "Empty"
12624	//   },
12625	//   "scopes": [
12626	//     "https://www.googleapis.com/auth/cloud-platform"
12627	//   ]
12628	// }
12629
12630}
12631
12632// method id "healthcare.projects.locations.datasets.fhirStores.export":
12633
12634type ProjectsLocationsDatasetsFhirStoresExportCall struct {
12635	s                      *Service
12636	name                   string
12637	exportresourcesrequest *ExportResourcesRequest
12638	urlParams_             gensupport.URLParams
12639	ctx_                   context.Context
12640	header_                http.Header
12641}
12642
12643// Export: Export resources from the FHIR store to the specified
12644// destination.
12645//
12646// This method returns an Operation that can
12647// be used to track the status of the export by
12648// calling
12649// GetOperation.
12650//
12651// Immediate fatal errors appear in the
12652// error field, errors are also logged
12653// to Stackdriver (see
12654// [Viewing
12655// logs](/healthcare/docs/how-tos/stackdriver-logging)).
12656// Otherwi
12657// se, when the operation finishes, a detailed response of
12658// type
12659// ExportResourcesResponse is returned in the
12660// response field.
12661// The metadata field type for this
12662// operation is OperationMetadata.
12663func (r *ProjectsLocationsDatasetsFhirStoresService) Export(name string, exportresourcesrequest *ExportResourcesRequest) *ProjectsLocationsDatasetsFhirStoresExportCall {
12664	c := &ProjectsLocationsDatasetsFhirStoresExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12665	c.name = name
12666	c.exportresourcesrequest = exportresourcesrequest
12667	return c
12668}
12669
12670// Fields allows partial responses to be retrieved. See
12671// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12672// for more information.
12673func (c *ProjectsLocationsDatasetsFhirStoresExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresExportCall {
12674	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12675	return c
12676}
12677
12678// Context sets the context to be used in this call's Do method. Any
12679// pending HTTP request will be aborted if the provided context is
12680// canceled.
12681func (c *ProjectsLocationsDatasetsFhirStoresExportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresExportCall {
12682	c.ctx_ = ctx
12683	return c
12684}
12685
12686// Header returns an http.Header that can be modified by the caller to
12687// add HTTP headers to the request.
12688func (c *ProjectsLocationsDatasetsFhirStoresExportCall) Header() http.Header {
12689	if c.header_ == nil {
12690		c.header_ = make(http.Header)
12691	}
12692	return c.header_
12693}
12694
12695func (c *ProjectsLocationsDatasetsFhirStoresExportCall) doRequest(alt string) (*http.Response, error) {
12696	reqHeaders := make(http.Header)
12697	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
12698	for k, v := range c.header_ {
12699		reqHeaders[k] = v
12700	}
12701	reqHeaders.Set("User-Agent", c.s.userAgent())
12702	var body io.Reader = nil
12703	body, err := googleapi.WithoutDataWrapper.JSONReader(c.exportresourcesrequest)
12704	if err != nil {
12705		return nil, err
12706	}
12707	reqHeaders.Set("Content-Type", "application/json")
12708	c.urlParams_.Set("alt", alt)
12709	c.urlParams_.Set("prettyPrint", "false")
12710	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}:export")
12711	urls += "?" + c.urlParams_.Encode()
12712	req, err := http.NewRequest("POST", urls, body)
12713	if err != nil {
12714		return nil, err
12715	}
12716	req.Header = reqHeaders
12717	googleapi.Expand(req.URL, map[string]string{
12718		"name": c.name,
12719	})
12720	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12721}
12722
12723// Do executes the "healthcare.projects.locations.datasets.fhirStores.export" call.
12724// Exactly one of *Operation or error will be non-nil. Any non-2xx
12725// status code is an error. Response headers are in either
12726// *Operation.ServerResponse.Header or (if a response was returned at
12727// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
12728// to check whether the returned error was because
12729// http.StatusNotModified was returned.
12730func (c *ProjectsLocationsDatasetsFhirStoresExportCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
12731	gensupport.SetOptions(c.urlParams_, opts...)
12732	res, err := c.doRequest("json")
12733	if res != nil && res.StatusCode == http.StatusNotModified {
12734		if res.Body != nil {
12735			res.Body.Close()
12736		}
12737		return nil, &googleapi.Error{
12738			Code:   res.StatusCode,
12739			Header: res.Header,
12740		}
12741	}
12742	if err != nil {
12743		return nil, err
12744	}
12745	defer googleapi.CloseBody(res)
12746	if err := googleapi.CheckResponse(res); err != nil {
12747		return nil, err
12748	}
12749	ret := &Operation{
12750		ServerResponse: googleapi.ServerResponse{
12751			Header:         res.Header,
12752			HTTPStatusCode: res.StatusCode,
12753		},
12754	}
12755	target := &ret
12756	if err := gensupport.DecodeResponse(target, res); err != nil {
12757		return nil, err
12758	}
12759	return ret, nil
12760	// {
12761	//   "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.",
12762	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}:export",
12763	//   "httpMethod": "POST",
12764	//   "id": "healthcare.projects.locations.datasets.fhirStores.export",
12765	//   "parameterOrder": [
12766	//     "name"
12767	//   ],
12768	//   "parameters": {
12769	//     "name": {
12770	//       "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}`.",
12771	//       "location": "path",
12772	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
12773	//       "required": true,
12774	//       "type": "string"
12775	//     }
12776	//   },
12777	//   "path": "v1alpha2/{+name}:export",
12778	//   "request": {
12779	//     "$ref": "ExportResourcesRequest"
12780	//   },
12781	//   "response": {
12782	//     "$ref": "Operation"
12783	//   },
12784	//   "scopes": [
12785	//     "https://www.googleapis.com/auth/cloud-platform"
12786	//   ]
12787	// }
12788
12789}
12790
12791// method id "healthcare.projects.locations.datasets.fhirStores.get":
12792
12793type ProjectsLocationsDatasetsFhirStoresGetCall struct {
12794	s            *Service
12795	name         string
12796	urlParams_   gensupport.URLParams
12797	ifNoneMatch_ string
12798	ctx_         context.Context
12799	header_      http.Header
12800}
12801
12802// Get: Gets the configuration of the specified FHIR store.
12803func (r *ProjectsLocationsDatasetsFhirStoresService) Get(name string) *ProjectsLocationsDatasetsFhirStoresGetCall {
12804	c := &ProjectsLocationsDatasetsFhirStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12805	c.name = name
12806	return c
12807}
12808
12809// Fields allows partial responses to be retrieved. See
12810// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12811// for more information.
12812func (c *ProjectsLocationsDatasetsFhirStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresGetCall {
12813	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12814	return c
12815}
12816
12817// IfNoneMatch sets the optional parameter which makes the operation
12818// fail if the object's ETag matches the given value. This is useful for
12819// getting updates only after the object has changed since the last
12820// request. Use googleapi.IsNotModified to check whether the response
12821// error from Do is the result of In-None-Match.
12822func (c *ProjectsLocationsDatasetsFhirStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresGetCall {
12823	c.ifNoneMatch_ = entityTag
12824	return c
12825}
12826
12827// Context sets the context to be used in this call's Do method. Any
12828// pending HTTP request will be aborted if the provided context is
12829// canceled.
12830func (c *ProjectsLocationsDatasetsFhirStoresGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresGetCall {
12831	c.ctx_ = ctx
12832	return c
12833}
12834
12835// Header returns an http.Header that can be modified by the caller to
12836// add HTTP headers to the request.
12837func (c *ProjectsLocationsDatasetsFhirStoresGetCall) Header() http.Header {
12838	if c.header_ == nil {
12839		c.header_ = make(http.Header)
12840	}
12841	return c.header_
12842}
12843
12844func (c *ProjectsLocationsDatasetsFhirStoresGetCall) doRequest(alt string) (*http.Response, error) {
12845	reqHeaders := make(http.Header)
12846	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
12847	for k, v := range c.header_ {
12848		reqHeaders[k] = v
12849	}
12850	reqHeaders.Set("User-Agent", c.s.userAgent())
12851	if c.ifNoneMatch_ != "" {
12852		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12853	}
12854	var body io.Reader = nil
12855	c.urlParams_.Set("alt", alt)
12856	c.urlParams_.Set("prettyPrint", "false")
12857	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
12858	urls += "?" + c.urlParams_.Encode()
12859	req, err := http.NewRequest("GET", urls, body)
12860	if err != nil {
12861		return nil, err
12862	}
12863	req.Header = reqHeaders
12864	googleapi.Expand(req.URL, map[string]string{
12865		"name": c.name,
12866	})
12867	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12868}
12869
12870// Do executes the "healthcare.projects.locations.datasets.fhirStores.get" call.
12871// Exactly one of *FhirStore or error will be non-nil. Any non-2xx
12872// status code is an error. Response headers are in either
12873// *FhirStore.ServerResponse.Header or (if a response was returned at
12874// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
12875// to check whether the returned error was because
12876// http.StatusNotModified was returned.
12877func (c *ProjectsLocationsDatasetsFhirStoresGetCall) Do(opts ...googleapi.CallOption) (*FhirStore, error) {
12878	gensupport.SetOptions(c.urlParams_, opts...)
12879	res, err := c.doRequest("json")
12880	if res != nil && res.StatusCode == http.StatusNotModified {
12881		if res.Body != nil {
12882			res.Body.Close()
12883		}
12884		return nil, &googleapi.Error{
12885			Code:   res.StatusCode,
12886			Header: res.Header,
12887		}
12888	}
12889	if err != nil {
12890		return nil, err
12891	}
12892	defer googleapi.CloseBody(res)
12893	if err := googleapi.CheckResponse(res); err != nil {
12894		return nil, err
12895	}
12896	ret := &FhirStore{
12897		ServerResponse: googleapi.ServerResponse{
12898			Header:         res.Header,
12899			HTTPStatusCode: res.StatusCode,
12900		},
12901	}
12902	target := &ret
12903	if err := gensupport.DecodeResponse(target, res); err != nil {
12904		return nil, err
12905	}
12906	return ret, nil
12907	// {
12908	//   "description": "Gets the configuration of the specified FHIR store.",
12909	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}",
12910	//   "httpMethod": "GET",
12911	//   "id": "healthcare.projects.locations.datasets.fhirStores.get",
12912	//   "parameterOrder": [
12913	//     "name"
12914	//   ],
12915	//   "parameters": {
12916	//     "name": {
12917	//       "description": "The resource name of the FHIR store to get.",
12918	//       "location": "path",
12919	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
12920	//       "required": true,
12921	//       "type": "string"
12922	//     }
12923	//   },
12924	//   "path": "v1alpha2/{+name}",
12925	//   "response": {
12926	//     "$ref": "FhirStore"
12927	//   },
12928	//   "scopes": [
12929	//     "https://www.googleapis.com/auth/cloud-platform"
12930	//   ]
12931	// }
12932
12933}
12934
12935// method id "healthcare.projects.locations.datasets.fhirStores.getIamPolicy":
12936
12937type ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall struct {
12938	s            *Service
12939	resource     string
12940	urlParams_   gensupport.URLParams
12941	ifNoneMatch_ string
12942	ctx_         context.Context
12943	header_      http.Header
12944}
12945
12946// GetIamPolicy: Gets the access control policy for a resource.
12947// Returns an empty policy if the resource exists and does not have a
12948// policy
12949// set.
12950func (r *ProjectsLocationsDatasetsFhirStoresService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall {
12951	c := &ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12952	c.resource = resource
12953	return c
12954}
12955
12956// OptionsRequestedPolicyVersion sets the optional parameter
12957// "options.requestedPolicyVersion": The policy format version to be
12958// returned.
12959// Acceptable values are 0, 1, and 3.
12960// If the value is 0, or the field is omitted, policy format version 1
12961// will be
12962// returned.
12963func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall {
12964	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
12965	return c
12966}
12967
12968// Fields allows partial responses to be retrieved. See
12969// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12970// for more information.
12971func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall {
12972	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12973	return c
12974}
12975
12976// IfNoneMatch sets the optional parameter which makes the operation
12977// fail if the object's ETag matches the given value. This is useful for
12978// getting updates only after the object has changed since the last
12979// request. Use googleapi.IsNotModified to check whether the response
12980// error from Do is the result of In-None-Match.
12981func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall {
12982	c.ifNoneMatch_ = entityTag
12983	return c
12984}
12985
12986// Context sets the context to be used in this call's Do method. Any
12987// pending HTTP request will be aborted if the provided context is
12988// canceled.
12989func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall {
12990	c.ctx_ = ctx
12991	return c
12992}
12993
12994// Header returns an http.Header that can be modified by the caller to
12995// add HTTP headers to the request.
12996func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) Header() http.Header {
12997	if c.header_ == nil {
12998		c.header_ = make(http.Header)
12999	}
13000	return c.header_
13001}
13002
13003func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
13004	reqHeaders := make(http.Header)
13005	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
13006	for k, v := range c.header_ {
13007		reqHeaders[k] = v
13008	}
13009	reqHeaders.Set("User-Agent", c.s.userAgent())
13010	if c.ifNoneMatch_ != "" {
13011		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13012	}
13013	var body io.Reader = nil
13014	c.urlParams_.Set("alt", alt)
13015	c.urlParams_.Set("prettyPrint", "false")
13016	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:getIamPolicy")
13017	urls += "?" + c.urlParams_.Encode()
13018	req, err := http.NewRequest("GET", urls, body)
13019	if err != nil {
13020		return nil, err
13021	}
13022	req.Header = reqHeaders
13023	googleapi.Expand(req.URL, map[string]string{
13024		"resource": c.resource,
13025	})
13026	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13027}
13028
13029// Do executes the "healthcare.projects.locations.datasets.fhirStores.getIamPolicy" call.
13030// Exactly one of *Policy or error will be non-nil. Any non-2xx status
13031// code is an error. Response headers are in either
13032// *Policy.ServerResponse.Header or (if a response was returned at all)
13033// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
13034// check whether the returned error was because http.StatusNotModified
13035// was returned.
13036func (c *ProjectsLocationsDatasetsFhirStoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
13037	gensupport.SetOptions(c.urlParams_, opts...)
13038	res, err := c.doRequest("json")
13039	if res != nil && res.StatusCode == http.StatusNotModified {
13040		if res.Body != nil {
13041			res.Body.Close()
13042		}
13043		return nil, &googleapi.Error{
13044			Code:   res.StatusCode,
13045			Header: res.Header,
13046		}
13047	}
13048	if err != nil {
13049		return nil, err
13050	}
13051	defer googleapi.CloseBody(res)
13052	if err := googleapi.CheckResponse(res); err != nil {
13053		return nil, err
13054	}
13055	ret := &Policy{
13056		ServerResponse: googleapi.ServerResponse{
13057			Header:         res.Header,
13058			HTTPStatusCode: res.StatusCode,
13059		},
13060	}
13061	target := &ret
13062	if err := gensupport.DecodeResponse(target, res); err != nil {
13063		return nil, err
13064	}
13065	return ret, nil
13066	// {
13067	//   "description": "Gets the access control policy for a resource.\nReturns an empty policy if the resource exists and does not have a policy\nset.",
13068	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}:getIamPolicy",
13069	//   "httpMethod": "GET",
13070	//   "id": "healthcare.projects.locations.datasets.fhirStores.getIamPolicy",
13071	//   "parameterOrder": [
13072	//     "resource"
13073	//   ],
13074	//   "parameters": {
13075	//     "options.requestedPolicyVersion": {
13076	//       "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.",
13077	//       "format": "int32",
13078	//       "location": "query",
13079	//       "type": "integer"
13080	//     },
13081	//     "resource": {
13082	//       "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.",
13083	//       "location": "path",
13084	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
13085	//       "required": true,
13086	//       "type": "string"
13087	//     }
13088	//   },
13089	//   "path": "v1alpha2/{+resource}:getIamPolicy",
13090	//   "response": {
13091	//     "$ref": "Policy"
13092	//   },
13093	//   "scopes": [
13094	//     "https://www.googleapis.com/auth/cloud-platform"
13095	//   ]
13096	// }
13097
13098}
13099
13100// method id "healthcare.projects.locations.datasets.fhirStores.import":
13101
13102type ProjectsLocationsDatasetsFhirStoresImportCall struct {
13103	s                      *Service
13104	name                   string
13105	importresourcesrequest *ImportResourcesRequest
13106	urlParams_             gensupport.URLParams
13107	ctx_                   context.Context
13108	header_                http.Header
13109}
13110
13111// Import: Import resources to the FHIR store by loading data from the
13112// specified
13113// sources. This method is optimized to load large quantities of data
13114// using
13115// import semantics that ignore some FHIR store configuration options
13116// and are
13117// not suitable for all use cases. It is primarily intended to load data
13118// into
13119// an empty FHIR store that is not being used by other clients. In
13120// cases
13121// where this method is not appropriate, consider using ExecuteBundle
13122// to
13123// load data.
13124//
13125// Every resource in the input must contain a client-supplied ID, and
13126// will be
13127// stored using that ID regardless of the
13128// enable_update_create setting on the FHIR
13129// store.
13130//
13131// The import process does not enforce referential integrity, regardless
13132// of
13133// the
13134// disable_referential_integrity
13135// setting on the FHIR store. This allows the import of resources
13136// with
13137// arbitrary interdependencies without considering grouping or ordering,
13138// but
13139// if the input data contains invalid references or if some resources
13140// fail to
13141// be imported, the FHIR store might be left in a state that
13142// violates
13143// referential integrity.
13144//
13145// If a resource with the specified ID already exists, the most
13146// recent
13147// version of the resource is overwritten without creating a new
13148// historical
13149// version, regardless of the
13150// disable_resource_versioning
13151// setting on the FHIR store. If transient failures occur during the
13152// import,
13153// it is possible that successfully imported resources will be
13154// overwritten
13155// more than once.
13156//
13157// The import operation is idempotent unless the input data contains
13158// multiple
13159// valid resources with the same ID but different contents. In that
13160// case,
13161// after the import completes, the store will contain exactly one
13162// resource
13163// with that ID but there is no ordering guarantee on which version of
13164// the
13165// contents it will have. The operation result counters do not
13166// count
13167// duplicate IDs as an error and will count one success for each
13168// resource in
13169// the input, which might result in a success count larger than the
13170// number
13171// of resources in the FHIR store. This often occurs when importing
13172// data
13173// organized in bundles produced by Patient-everything
13174// where each bundle contains its own copy of a resource such as
13175// Practitioner
13176// that might be referred to by many patients.
13177//
13178// If some resources fail to import, for example due to parsing
13179// errors,
13180// successfully imported resources are not rolled back.
13181//
13182// The location and format of the input data is specified by the
13183// parameters
13184// below. Note that if no format is specified, this method assumes
13185// the
13186// `BUNDLE` format. When using the `BUNDLE` format this method ignores
13187// the
13188// `Bundle.type` field, except for the special case of `history`, and
13189// does
13190// not apply any of the bundle processing semantics for batch or
13191// transaction
13192// bundles. Unlike in ExecuteBundle, transaction bundles are not
13193// executed
13194// as a single transaction and bundle-internal references are not
13195// rewritten.
13196// The bundle is treated as a collection of resources to be written
13197// as
13198// provided in `Bundle.entry.resource`, ignoring `Bundle.entry.request`.
13199// As
13200// an example, this allows the import of `searchset` bundles produced by
13201// a
13202// FHIR search or
13203// Patient-everything operation.
13204//
13205// If history imports are enabled by setting
13206// enable_history_import in the FHIR
13207// store's configuration, this method can import historical versions
13208// of a resource by supplying a bundle of type `history` and using
13209// the
13210// `BUNDLE` format. The historical versions in the bundle must
13211// have
13212// `lastUpdated` timestamps, and the resulting resource history on the
13213// server
13214// will appear as if the versions had been created at those timestamps.
13215// If a
13216// current or historical version with the supplied resource ID
13217// already
13218// exists, the bundle is rejected to avoid creating an inconsistent
13219// sequence
13220// of resource versions.
13221//
13222// This method returns an Operation that can
13223// be used to track the status of the import by
13224// calling
13225// GetOperation.
13226//
13227// Immediate fatal errors appear in the
13228// error field, errors are also logged
13229// to Stackdriver (see
13230// [Viewing
13231// logs](/healthcare/docs/how-tos/stackdriver-logging)). Otherwise, when
13232// the
13233// operation finishes, a detailed response of type
13234// ImportResourcesResponse
13235// is returned in the response field.
13236// The metadata field type for this
13237// operation is OperationMetadata.
13238func (r *ProjectsLocationsDatasetsFhirStoresService) Import(name string, importresourcesrequest *ImportResourcesRequest) *ProjectsLocationsDatasetsFhirStoresImportCall {
13239	c := &ProjectsLocationsDatasetsFhirStoresImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13240	c.name = name
13241	c.importresourcesrequest = importresourcesrequest
13242	return c
13243}
13244
13245// Fields allows partial responses to be retrieved. See
13246// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13247// for more information.
13248func (c *ProjectsLocationsDatasetsFhirStoresImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresImportCall {
13249	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13250	return c
13251}
13252
13253// Context sets the context to be used in this call's Do method. Any
13254// pending HTTP request will be aborted if the provided context is
13255// canceled.
13256func (c *ProjectsLocationsDatasetsFhirStoresImportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresImportCall {
13257	c.ctx_ = ctx
13258	return c
13259}
13260
13261// Header returns an http.Header that can be modified by the caller to
13262// add HTTP headers to the request.
13263func (c *ProjectsLocationsDatasetsFhirStoresImportCall) Header() http.Header {
13264	if c.header_ == nil {
13265		c.header_ = make(http.Header)
13266	}
13267	return c.header_
13268}
13269
13270func (c *ProjectsLocationsDatasetsFhirStoresImportCall) doRequest(alt string) (*http.Response, error) {
13271	reqHeaders := make(http.Header)
13272	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
13273	for k, v := range c.header_ {
13274		reqHeaders[k] = v
13275	}
13276	reqHeaders.Set("User-Agent", c.s.userAgent())
13277	var body io.Reader = nil
13278	body, err := googleapi.WithoutDataWrapper.JSONReader(c.importresourcesrequest)
13279	if err != nil {
13280		return nil, err
13281	}
13282	reqHeaders.Set("Content-Type", "application/json")
13283	c.urlParams_.Set("alt", alt)
13284	c.urlParams_.Set("prettyPrint", "false")
13285	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}:import")
13286	urls += "?" + c.urlParams_.Encode()
13287	req, err := http.NewRequest("POST", urls, body)
13288	if err != nil {
13289		return nil, err
13290	}
13291	req.Header = reqHeaders
13292	googleapi.Expand(req.URL, map[string]string{
13293		"name": c.name,
13294	})
13295	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13296}
13297
13298// Do executes the "healthcare.projects.locations.datasets.fhirStores.import" call.
13299// Exactly one of *Operation or error will be non-nil. Any non-2xx
13300// status code is an error. Response headers are in either
13301// *Operation.ServerResponse.Header or (if a response was returned at
13302// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
13303// to check whether the returned error was because
13304// http.StatusNotModified was returned.
13305func (c *ProjectsLocationsDatasetsFhirStoresImportCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
13306	gensupport.SetOptions(c.urlParams_, opts...)
13307	res, err := c.doRequest("json")
13308	if res != nil && res.StatusCode == http.StatusNotModified {
13309		if res.Body != nil {
13310			res.Body.Close()
13311		}
13312		return nil, &googleapi.Error{
13313			Code:   res.StatusCode,
13314			Header: res.Header,
13315		}
13316	}
13317	if err != nil {
13318		return nil, err
13319	}
13320	defer googleapi.CloseBody(res)
13321	if err := googleapi.CheckResponse(res); err != nil {
13322		return nil, err
13323	}
13324	ret := &Operation{
13325		ServerResponse: googleapi.ServerResponse{
13326			Header:         res.Header,
13327			HTTPStatusCode: res.StatusCode,
13328		},
13329	}
13330	target := &ret
13331	if err := gensupport.DecodeResponse(target, res); err != nil {
13332		return nil, err
13333	}
13334	return ret, nil
13335	// {
13336	//   "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.",
13337	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}:import",
13338	//   "httpMethod": "POST",
13339	//   "id": "healthcare.projects.locations.datasets.fhirStores.import",
13340	//   "parameterOrder": [
13341	//     "name"
13342	//   ],
13343	//   "parameters": {
13344	//     "name": {
13345	//       "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}`.",
13346	//       "location": "path",
13347	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
13348	//       "required": true,
13349	//       "type": "string"
13350	//     }
13351	//   },
13352	//   "path": "v1alpha2/{+name}:import",
13353	//   "request": {
13354	//     "$ref": "ImportResourcesRequest"
13355	//   },
13356	//   "response": {
13357	//     "$ref": "Operation"
13358	//   },
13359	//   "scopes": [
13360	//     "https://www.googleapis.com/auth/cloud-platform"
13361	//   ]
13362	// }
13363
13364}
13365
13366// method id "healthcare.projects.locations.datasets.fhirStores.list":
13367
13368type ProjectsLocationsDatasetsFhirStoresListCall struct {
13369	s            *Service
13370	parent       string
13371	urlParams_   gensupport.URLParams
13372	ifNoneMatch_ string
13373	ctx_         context.Context
13374	header_      http.Header
13375}
13376
13377// List: Lists the FHIR stores in the given dataset.
13378func (r *ProjectsLocationsDatasetsFhirStoresService) List(parent string) *ProjectsLocationsDatasetsFhirStoresListCall {
13379	c := &ProjectsLocationsDatasetsFhirStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13380	c.parent = parent
13381	return c
13382}
13383
13384// Filter sets the optional parameter "filter": Restricts stores
13385// returned to those matching a filter.
13386// Syntax:
13387// https://cloud.google.com/appengine/docs/standard/python/search
13388// /query_strings
13389// Only filtering on labels is supported, for example
13390// `labels.key=value`.
13391func (c *ProjectsLocationsDatasetsFhirStoresListCall) Filter(filter string) *ProjectsLocationsDatasetsFhirStoresListCall {
13392	c.urlParams_.Set("filter", filter)
13393	return c
13394}
13395
13396// PageSize sets the optional parameter "pageSize": Limit on the number
13397// of FHIR stores to return in a single response.  If zero
13398// the default page size of 100 is used.
13399func (c *ProjectsLocationsDatasetsFhirStoresListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsFhirStoresListCall {
13400	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
13401	return c
13402}
13403
13404// PageToken sets the optional parameter "pageToken": The
13405// next_page_token value returned from the previous List request, if
13406// any.
13407func (c *ProjectsLocationsDatasetsFhirStoresListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsFhirStoresListCall {
13408	c.urlParams_.Set("pageToken", pageToken)
13409	return c
13410}
13411
13412// Fields allows partial responses to be retrieved. See
13413// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13414// for more information.
13415func (c *ProjectsLocationsDatasetsFhirStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresListCall {
13416	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13417	return c
13418}
13419
13420// IfNoneMatch sets the optional parameter which makes the operation
13421// fail if the object's ETag matches the given value. This is useful for
13422// getting updates only after the object has changed since the last
13423// request. Use googleapi.IsNotModified to check whether the response
13424// error from Do is the result of In-None-Match.
13425func (c *ProjectsLocationsDatasetsFhirStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresListCall {
13426	c.ifNoneMatch_ = entityTag
13427	return c
13428}
13429
13430// Context sets the context to be used in this call's Do method. Any
13431// pending HTTP request will be aborted if the provided context is
13432// canceled.
13433func (c *ProjectsLocationsDatasetsFhirStoresListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresListCall {
13434	c.ctx_ = ctx
13435	return c
13436}
13437
13438// Header returns an http.Header that can be modified by the caller to
13439// add HTTP headers to the request.
13440func (c *ProjectsLocationsDatasetsFhirStoresListCall) Header() http.Header {
13441	if c.header_ == nil {
13442		c.header_ = make(http.Header)
13443	}
13444	return c.header_
13445}
13446
13447func (c *ProjectsLocationsDatasetsFhirStoresListCall) doRequest(alt string) (*http.Response, error) {
13448	reqHeaders := make(http.Header)
13449	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
13450	for k, v := range c.header_ {
13451		reqHeaders[k] = v
13452	}
13453	reqHeaders.Set("User-Agent", c.s.userAgent())
13454	if c.ifNoneMatch_ != "" {
13455		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13456	}
13457	var body io.Reader = nil
13458	c.urlParams_.Set("alt", alt)
13459	c.urlParams_.Set("prettyPrint", "false")
13460	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhirStores")
13461	urls += "?" + c.urlParams_.Encode()
13462	req, err := http.NewRequest("GET", urls, body)
13463	if err != nil {
13464		return nil, err
13465	}
13466	req.Header = reqHeaders
13467	googleapi.Expand(req.URL, map[string]string{
13468		"parent": c.parent,
13469	})
13470	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13471}
13472
13473// Do executes the "healthcare.projects.locations.datasets.fhirStores.list" call.
13474// Exactly one of *ListFhirStoresResponse or error will be non-nil. Any
13475// non-2xx status code is an error. Response headers are in either
13476// *ListFhirStoresResponse.ServerResponse.Header or (if a response was
13477// returned at all) in error.(*googleapi.Error).Header. Use
13478// googleapi.IsNotModified to check whether the returned error was
13479// because http.StatusNotModified was returned.
13480func (c *ProjectsLocationsDatasetsFhirStoresListCall) Do(opts ...googleapi.CallOption) (*ListFhirStoresResponse, error) {
13481	gensupport.SetOptions(c.urlParams_, opts...)
13482	res, err := c.doRequest("json")
13483	if res != nil && res.StatusCode == http.StatusNotModified {
13484		if res.Body != nil {
13485			res.Body.Close()
13486		}
13487		return nil, &googleapi.Error{
13488			Code:   res.StatusCode,
13489			Header: res.Header,
13490		}
13491	}
13492	if err != nil {
13493		return nil, err
13494	}
13495	defer googleapi.CloseBody(res)
13496	if err := googleapi.CheckResponse(res); err != nil {
13497		return nil, err
13498	}
13499	ret := &ListFhirStoresResponse{
13500		ServerResponse: googleapi.ServerResponse{
13501			Header:         res.Header,
13502			HTTPStatusCode: res.StatusCode,
13503		},
13504	}
13505	target := &ret
13506	if err := gensupport.DecodeResponse(target, res); err != nil {
13507		return nil, err
13508	}
13509	return ret, nil
13510	// {
13511	//   "description": "Lists the FHIR stores in the given dataset.",
13512	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores",
13513	//   "httpMethod": "GET",
13514	//   "id": "healthcare.projects.locations.datasets.fhirStores.list",
13515	//   "parameterOrder": [
13516	//     "parent"
13517	//   ],
13518	//   "parameters": {
13519	//     "filter": {
13520	//       "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`.",
13521	//       "location": "query",
13522	//       "type": "string"
13523	//     },
13524	//     "pageSize": {
13525	//       "description": "Limit on the number of FHIR stores to return in a single response.  If zero\nthe default page size of 100 is used.",
13526	//       "format": "int32",
13527	//       "location": "query",
13528	//       "type": "integer"
13529	//     },
13530	//     "pageToken": {
13531	//       "description": "The next_page_token value returned from the previous List request, if any.",
13532	//       "location": "query",
13533	//       "type": "string"
13534	//     },
13535	//     "parent": {
13536	//       "description": "Name of the dataset.",
13537	//       "location": "path",
13538	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
13539	//       "required": true,
13540	//       "type": "string"
13541	//     }
13542	//   },
13543	//   "path": "v1alpha2/{+parent}/fhirStores",
13544	//   "response": {
13545	//     "$ref": "ListFhirStoresResponse"
13546	//   },
13547	//   "scopes": [
13548	//     "https://www.googleapis.com/auth/cloud-platform"
13549	//   ]
13550	// }
13551
13552}
13553
13554// Pages invokes f for each page of results.
13555// A non-nil error returned from f will halt the iteration.
13556// The provided context supersedes any context provided to the Context method.
13557func (c *ProjectsLocationsDatasetsFhirStoresListCall) Pages(ctx context.Context, f func(*ListFhirStoresResponse) error) error {
13558	c.ctx_ = ctx
13559	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
13560	for {
13561		x, err := c.Do()
13562		if err != nil {
13563			return err
13564		}
13565		if err := f(x); err != nil {
13566			return err
13567		}
13568		if x.NextPageToken == "" {
13569			return nil
13570		}
13571		c.PageToken(x.NextPageToken)
13572	}
13573}
13574
13575// method id "healthcare.projects.locations.datasets.fhirStores.patch":
13576
13577type ProjectsLocationsDatasetsFhirStoresPatchCall struct {
13578	s          *Service
13579	name       string
13580	fhirstore  *FhirStore
13581	urlParams_ gensupport.URLParams
13582	ctx_       context.Context
13583	header_    http.Header
13584}
13585
13586// Patch: Updates the configuration of the specified FHIR store.
13587func (r *ProjectsLocationsDatasetsFhirStoresService) Patch(name string, fhirstore *FhirStore) *ProjectsLocationsDatasetsFhirStoresPatchCall {
13588	c := &ProjectsLocationsDatasetsFhirStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13589	c.name = name
13590	c.fhirstore = fhirstore
13591	return c
13592}
13593
13594// UpdateMask sets the optional parameter "updateMask": The update mask
13595// applies to the resource. For the `FieldMask`
13596// definition,
13597// see
13598// https://developers.google.com/protocol-buffers/docs/re
13599// ference/google.protobuf#fieldmask
13600func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsFhirStoresPatchCall {
13601	c.urlParams_.Set("updateMask", updateMask)
13602	return c
13603}
13604
13605// Fields allows partial responses to be retrieved. See
13606// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13607// for more information.
13608func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresPatchCall {
13609	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13610	return c
13611}
13612
13613// Context sets the context to be used in this call's Do method. Any
13614// pending HTTP request will be aborted if the provided context is
13615// canceled.
13616func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresPatchCall {
13617	c.ctx_ = ctx
13618	return c
13619}
13620
13621// Header returns an http.Header that can be modified by the caller to
13622// add HTTP headers to the request.
13623func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) Header() http.Header {
13624	if c.header_ == nil {
13625		c.header_ = make(http.Header)
13626	}
13627	return c.header_
13628}
13629
13630func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) doRequest(alt string) (*http.Response, error) {
13631	reqHeaders := make(http.Header)
13632	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
13633	for k, v := range c.header_ {
13634		reqHeaders[k] = v
13635	}
13636	reqHeaders.Set("User-Agent", c.s.userAgent())
13637	var body io.Reader = nil
13638	body, err := googleapi.WithoutDataWrapper.JSONReader(c.fhirstore)
13639	if err != nil {
13640		return nil, err
13641	}
13642	reqHeaders.Set("Content-Type", "application/json")
13643	c.urlParams_.Set("alt", alt)
13644	c.urlParams_.Set("prettyPrint", "false")
13645	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
13646	urls += "?" + c.urlParams_.Encode()
13647	req, err := http.NewRequest("PATCH", urls, body)
13648	if err != nil {
13649		return nil, err
13650	}
13651	req.Header = reqHeaders
13652	googleapi.Expand(req.URL, map[string]string{
13653		"name": c.name,
13654	})
13655	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13656}
13657
13658// Do executes the "healthcare.projects.locations.datasets.fhirStores.patch" call.
13659// Exactly one of *FhirStore or error will be non-nil. Any non-2xx
13660// status code is an error. Response headers are in either
13661// *FhirStore.ServerResponse.Header or (if a response was returned at
13662// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
13663// to check whether the returned error was because
13664// http.StatusNotModified was returned.
13665func (c *ProjectsLocationsDatasetsFhirStoresPatchCall) Do(opts ...googleapi.CallOption) (*FhirStore, error) {
13666	gensupport.SetOptions(c.urlParams_, opts...)
13667	res, err := c.doRequest("json")
13668	if res != nil && res.StatusCode == http.StatusNotModified {
13669		if res.Body != nil {
13670			res.Body.Close()
13671		}
13672		return nil, &googleapi.Error{
13673			Code:   res.StatusCode,
13674			Header: res.Header,
13675		}
13676	}
13677	if err != nil {
13678		return nil, err
13679	}
13680	defer googleapi.CloseBody(res)
13681	if err := googleapi.CheckResponse(res); err != nil {
13682		return nil, err
13683	}
13684	ret := &FhirStore{
13685		ServerResponse: googleapi.ServerResponse{
13686			Header:         res.Header,
13687			HTTPStatusCode: res.StatusCode,
13688		},
13689	}
13690	target := &ret
13691	if err := gensupport.DecodeResponse(target, res); err != nil {
13692		return nil, err
13693	}
13694	return ret, nil
13695	// {
13696	//   "description": "Updates the configuration of the specified FHIR store.",
13697	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}",
13698	//   "httpMethod": "PATCH",
13699	//   "id": "healthcare.projects.locations.datasets.fhirStores.patch",
13700	//   "parameterOrder": [
13701	//     "name"
13702	//   ],
13703	//   "parameters": {
13704	//     "name": {
13705	//       "description": "Output only. Resource name of the FHIR store, of the form\n`projects/{project_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}`.",
13706	//       "location": "path",
13707	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
13708	//       "required": true,
13709	//       "type": "string"
13710	//     },
13711	//     "updateMask": {
13712	//       "description": "The update mask applies to the resource. For the `FieldMask` definition,\nsee\nhttps://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask",
13713	//       "format": "google-fieldmask",
13714	//       "location": "query",
13715	//       "type": "string"
13716	//     }
13717	//   },
13718	//   "path": "v1alpha2/{+name}",
13719	//   "request": {
13720	//     "$ref": "FhirStore"
13721	//   },
13722	//   "response": {
13723	//     "$ref": "FhirStore"
13724	//   },
13725	//   "scopes": [
13726	//     "https://www.googleapis.com/auth/cloud-platform"
13727	//   ]
13728	// }
13729
13730}
13731
13732// method id "healthcare.projects.locations.datasets.fhirStores.setIamPolicy":
13733
13734type ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall struct {
13735	s                   *Service
13736	resource            string
13737	setiampolicyrequest *SetIamPolicyRequest
13738	urlParams_          gensupport.URLParams
13739	ctx_                context.Context
13740	header_             http.Header
13741}
13742
13743// SetIamPolicy: Sets the access control policy on the specified
13744// resource. Replaces any
13745// existing policy.
13746func (r *ProjectsLocationsDatasetsFhirStoresService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall {
13747	c := &ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13748	c.resource = resource
13749	c.setiampolicyrequest = setiampolicyrequest
13750	return c
13751}
13752
13753// Fields allows partial responses to be retrieved. See
13754// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13755// for more information.
13756func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall {
13757	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13758	return c
13759}
13760
13761// Context sets the context to be used in this call's Do method. Any
13762// pending HTTP request will be aborted if the provided context is
13763// canceled.
13764func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall {
13765	c.ctx_ = ctx
13766	return c
13767}
13768
13769// Header returns an http.Header that can be modified by the caller to
13770// add HTTP headers to the request.
13771func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) Header() http.Header {
13772	if c.header_ == nil {
13773		c.header_ = make(http.Header)
13774	}
13775	return c.header_
13776}
13777
13778func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
13779	reqHeaders := make(http.Header)
13780	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
13781	for k, v := range c.header_ {
13782		reqHeaders[k] = v
13783	}
13784	reqHeaders.Set("User-Agent", c.s.userAgent())
13785	var body io.Reader = nil
13786	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
13787	if err != nil {
13788		return nil, err
13789	}
13790	reqHeaders.Set("Content-Type", "application/json")
13791	c.urlParams_.Set("alt", alt)
13792	c.urlParams_.Set("prettyPrint", "false")
13793	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:setIamPolicy")
13794	urls += "?" + c.urlParams_.Encode()
13795	req, err := http.NewRequest("POST", urls, body)
13796	if err != nil {
13797		return nil, err
13798	}
13799	req.Header = reqHeaders
13800	googleapi.Expand(req.URL, map[string]string{
13801		"resource": c.resource,
13802	})
13803	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13804}
13805
13806// Do executes the "healthcare.projects.locations.datasets.fhirStores.setIamPolicy" call.
13807// Exactly one of *Policy or error will be non-nil. Any non-2xx status
13808// code is an error. Response headers are in either
13809// *Policy.ServerResponse.Header or (if a response was returned at all)
13810// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
13811// check whether the returned error was because http.StatusNotModified
13812// was returned.
13813func (c *ProjectsLocationsDatasetsFhirStoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
13814	gensupport.SetOptions(c.urlParams_, opts...)
13815	res, err := c.doRequest("json")
13816	if res != nil && res.StatusCode == http.StatusNotModified {
13817		if res.Body != nil {
13818			res.Body.Close()
13819		}
13820		return nil, &googleapi.Error{
13821			Code:   res.StatusCode,
13822			Header: res.Header,
13823		}
13824	}
13825	if err != nil {
13826		return nil, err
13827	}
13828	defer googleapi.CloseBody(res)
13829	if err := googleapi.CheckResponse(res); err != nil {
13830		return nil, err
13831	}
13832	ret := &Policy{
13833		ServerResponse: googleapi.ServerResponse{
13834			Header:         res.Header,
13835			HTTPStatusCode: res.StatusCode,
13836		},
13837	}
13838	target := &ret
13839	if err := gensupport.DecodeResponse(target, res); err != nil {
13840		return nil, err
13841	}
13842	return ret, nil
13843	// {
13844	//   "description": "Sets the access control policy on the specified resource. Replaces any\nexisting policy.",
13845	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}:setIamPolicy",
13846	//   "httpMethod": "POST",
13847	//   "id": "healthcare.projects.locations.datasets.fhirStores.setIamPolicy",
13848	//   "parameterOrder": [
13849	//     "resource"
13850	//   ],
13851	//   "parameters": {
13852	//     "resource": {
13853	//       "description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.",
13854	//       "location": "path",
13855	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
13856	//       "required": true,
13857	//       "type": "string"
13858	//     }
13859	//   },
13860	//   "path": "v1alpha2/{+resource}:setIamPolicy",
13861	//   "request": {
13862	//     "$ref": "SetIamPolicyRequest"
13863	//   },
13864	//   "response": {
13865	//     "$ref": "Policy"
13866	//   },
13867	//   "scopes": [
13868	//     "https://www.googleapis.com/auth/cloud-platform"
13869	//   ]
13870	// }
13871
13872}
13873
13874// method id "healthcare.projects.locations.datasets.fhirStores.testIamPermissions":
13875
13876type ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall struct {
13877	s                         *Service
13878	resource                  string
13879	testiampermissionsrequest *TestIamPermissionsRequest
13880	urlParams_                gensupport.URLParams
13881	ctx_                      context.Context
13882	header_                   http.Header
13883}
13884
13885// TestIamPermissions: Returns permissions that a caller has on the
13886// specified resource.
13887// If the resource does not exist, this will return an empty set
13888// of
13889// permissions, not a NOT_FOUND error.
13890//
13891// Note: This operation is designed to be used for building
13892// permission-aware
13893// UIs and command-line tools, not for authorization checking. This
13894// operation
13895// may "fail open" without warning.
13896func (r *ProjectsLocationsDatasetsFhirStoresService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall {
13897	c := &ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13898	c.resource = resource
13899	c.testiampermissionsrequest = testiampermissionsrequest
13900	return c
13901}
13902
13903// Fields allows partial responses to be retrieved. See
13904// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13905// for more information.
13906func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall {
13907	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13908	return c
13909}
13910
13911// Context sets the context to be used in this call's Do method. Any
13912// pending HTTP request will be aborted if the provided context is
13913// canceled.
13914func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall {
13915	c.ctx_ = ctx
13916	return c
13917}
13918
13919// Header returns an http.Header that can be modified by the caller to
13920// add HTTP headers to the request.
13921func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) Header() http.Header {
13922	if c.header_ == nil {
13923		c.header_ = make(http.Header)
13924	}
13925	return c.header_
13926}
13927
13928func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
13929	reqHeaders := make(http.Header)
13930	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
13931	for k, v := range c.header_ {
13932		reqHeaders[k] = v
13933	}
13934	reqHeaders.Set("User-Agent", c.s.userAgent())
13935	var body io.Reader = nil
13936	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
13937	if err != nil {
13938		return nil, err
13939	}
13940	reqHeaders.Set("Content-Type", "application/json")
13941	c.urlParams_.Set("alt", alt)
13942	c.urlParams_.Set("prettyPrint", "false")
13943	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:testIamPermissions")
13944	urls += "?" + c.urlParams_.Encode()
13945	req, err := http.NewRequest("POST", urls, body)
13946	if err != nil {
13947		return nil, err
13948	}
13949	req.Header = reqHeaders
13950	googleapi.Expand(req.URL, map[string]string{
13951		"resource": c.resource,
13952	})
13953	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13954}
13955
13956// Do executes the "healthcare.projects.locations.datasets.fhirStores.testIamPermissions" call.
13957// Exactly one of *TestIamPermissionsResponse or error will be non-nil.
13958// Any non-2xx status code is an error. Response headers are in either
13959// *TestIamPermissionsResponse.ServerResponse.Header or (if a response
13960// was returned at all) in error.(*googleapi.Error).Header. Use
13961// googleapi.IsNotModified to check whether the returned error was
13962// because http.StatusNotModified was returned.
13963func (c *ProjectsLocationsDatasetsFhirStoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
13964	gensupport.SetOptions(c.urlParams_, opts...)
13965	res, err := c.doRequest("json")
13966	if res != nil && res.StatusCode == http.StatusNotModified {
13967		if res.Body != nil {
13968			res.Body.Close()
13969		}
13970		return nil, &googleapi.Error{
13971			Code:   res.StatusCode,
13972			Header: res.Header,
13973		}
13974	}
13975	if err != nil {
13976		return nil, err
13977	}
13978	defer googleapi.CloseBody(res)
13979	if err := googleapi.CheckResponse(res); err != nil {
13980		return nil, err
13981	}
13982	ret := &TestIamPermissionsResponse{
13983		ServerResponse: googleapi.ServerResponse{
13984			Header:         res.Header,
13985			HTTPStatusCode: res.StatusCode,
13986		},
13987	}
13988	target := &ret
13989	if err := gensupport.DecodeResponse(target, res); err != nil {
13990		return nil, err
13991	}
13992	return ret, nil
13993	// {
13994	//   "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.",
13995	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}:testIamPermissions",
13996	//   "httpMethod": "POST",
13997	//   "id": "healthcare.projects.locations.datasets.fhirStores.testIamPermissions",
13998	//   "parameterOrder": [
13999	//     "resource"
14000	//   ],
14001	//   "parameters": {
14002	//     "resource": {
14003	//       "description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.",
14004	//       "location": "path",
14005	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
14006	//       "required": true,
14007	//       "type": "string"
14008	//     }
14009	//   },
14010	//   "path": "v1alpha2/{+resource}:testIamPermissions",
14011	//   "request": {
14012	//     "$ref": "TestIamPermissionsRequest"
14013	//   },
14014	//   "response": {
14015	//     "$ref": "TestIamPermissionsResponse"
14016	//   },
14017	//   "scopes": [
14018	//     "https://www.googleapis.com/auth/cloud-platform"
14019	//   ]
14020	// }
14021
14022}
14023
14024// method id "healthcare.projects.locations.datasets.fhirStores.fhir.Observation-lastn":
14025
14026type ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall struct {
14027	s            *Service
14028	parent       string
14029	urlParams_   gensupport.URLParams
14030	ifNoneMatch_ string
14031	ctx_         context.Context
14032	header_      http.Header
14033}
14034
14035// ObservationLastn: Retrieves the N most recent `Observation` resources
14036// for a subject matching
14037// search criteria specified as query parameters, grouped
14038// by
14039// `Observation.code`, sorted from most recent to oldest.
14040//
14041// Implements the FHIR extended operation
14042// Observation-lastn
14043// ([STU3](http://hl7.org/implement/standards/fhir/STU3
14044// /observation-operations.html#lastn)).
14045//
14046// DSTU2 doesn't define the Observation-lastn method, but the server
14047// supports
14048// it the same way it supports STU3.
14049//
14050// Search terms are provided as query parameters following the same
14051// pattern as
14052// the search method. This operation accepts an additional
14053// query parameter `max`, which specifies N, the maximum number
14054// of
14055// Observations to return from each group, with a default of 1.
14056//
14057// On success, the response body will contain a JSON-encoded
14058// representation
14059// of a `Bundle` resource of type `searchset`, containing the results of
14060// the
14061// operation.
14062// Errors generated by the FHIR store will contain a
14063// JSON-encoded
14064// `OperationOutcome` resource describing the reason for the error. If
14065// the
14066// request cannot be mapped to a valid API method on a FHIR store, a
14067// generic
14068// GCP error might be returned instead.
14069func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ObservationLastn(parent string) *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall {
14070	c := &ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14071	c.parent = parent
14072	return c
14073}
14074
14075// Fields allows partial responses to be retrieved. See
14076// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14077// for more information.
14078func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall {
14079	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14080	return c
14081}
14082
14083// IfNoneMatch sets the optional parameter which makes the operation
14084// fail if the object's ETag matches the given value. This is useful for
14085// getting updates only after the object has changed since the last
14086// request. Use googleapi.IsNotModified to check whether the response
14087// error from Do is the result of In-None-Match.
14088func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall {
14089	c.ifNoneMatch_ = entityTag
14090	return c
14091}
14092
14093// Context sets the context to be used in this call's Do method. Any
14094// pending HTTP request will be aborted if the provided context is
14095// canceled.
14096func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall {
14097	c.ctx_ = ctx
14098	return c
14099}
14100
14101// Header returns an http.Header that can be modified by the caller to
14102// add HTTP headers to the request.
14103func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) Header() http.Header {
14104	if c.header_ == nil {
14105		c.header_ = make(http.Header)
14106	}
14107	return c.header_
14108}
14109
14110func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) doRequest(alt string) (*http.Response, error) {
14111	reqHeaders := make(http.Header)
14112	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
14113	for k, v := range c.header_ {
14114		reqHeaders[k] = v
14115	}
14116	reqHeaders.Set("User-Agent", c.s.userAgent())
14117	if c.ifNoneMatch_ != "" {
14118		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14119	}
14120	var body io.Reader = nil
14121	c.urlParams_.Set("alt", alt)
14122	c.urlParams_.Set("prettyPrint", "false")
14123	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhir/Observation/$lastn")
14124	urls += "?" + c.urlParams_.Encode()
14125	req, err := http.NewRequest("GET", urls, body)
14126	if err != nil {
14127		return nil, err
14128	}
14129	req.Header = reqHeaders
14130	googleapi.Expand(req.URL, map[string]string{
14131		"parent": c.parent,
14132	})
14133	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14134}
14135
14136// Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Observation-lastn" call.
14137func (c *ProjectsLocationsDatasetsFhirStoresFhirObservationLastnCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
14138	gensupport.SetOptions(c.urlParams_, opts...)
14139	return c.doRequest("")
14140	// {
14141	//   "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.",
14142	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/Observation/$lastn",
14143	//   "httpMethod": "GET",
14144	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.Observation-lastn",
14145	//   "parameterOrder": [
14146	//     "parent"
14147	//   ],
14148	//   "parameters": {
14149	//     "parent": {
14150	//       "description": "Name of the FHIR store to retrieve resources from.",
14151	//       "location": "path",
14152	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
14153	//       "required": true,
14154	//       "type": "string"
14155	//     }
14156	//   },
14157	//   "path": "v1alpha2/{+parent}/fhir/Observation/$lastn",
14158	//   "response": {
14159	//     "$ref": "HttpBody"
14160	//   },
14161	//   "scopes": [
14162	//     "https://www.googleapis.com/auth/cloud-platform"
14163	//   ]
14164	// }
14165
14166}
14167
14168// method id "healthcare.projects.locations.datasets.fhirStores.fhir.Patient-everything":
14169
14170type ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall struct {
14171	s            *Service
14172	name         string
14173	urlParams_   gensupport.URLParams
14174	ifNoneMatch_ string
14175	ctx_         context.Context
14176	header_      http.Header
14177}
14178
14179// PatientEverything: Retrieves all the resources directly referenced by
14180// a patient, as well as
14181// all of the resources in the patient compartment.
14182//
14183// Implements the FHIR extended operation
14184// Patient-everything
14185// ([DSTU2](http://hl7.org/implement/standards/fhir/DS
14186// TU2/patient-operations.html#everything),
14187// [STU3](http://hl7.org/impleme
14188// nt/standards/fhir/STU3/patient-operations.html#everything)).
14189//
14190// On success, the response body will contain a JSON-encoded
14191// representation
14192// of a `Bundle` resource of type `searchset`, containing the results of
14193// the
14194// operation.
14195// Errors generated by the FHIR store will contain a
14196// JSON-encoded
14197// `OperationOutcome` resource describing the reason for the error. If
14198// the
14199// request cannot be mapped to a valid API method on a FHIR store, a
14200// generic
14201// GCP error might be returned instead.
14202func (r *ProjectsLocationsDatasetsFhirStoresFhirService) PatientEverything(name string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
14203	c := &ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14204	c.name = name
14205	return c
14206}
14207
14208// Count sets the optional parameter "_count": Maximum number of
14209// resources in a page. Defaults to 100.
14210func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Count(Count int64) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
14211	c.urlParams_.Set("_count", fmt.Sprint(Count))
14212	return c
14213}
14214
14215// End sets the optional parameter "end": The response includes records
14216// prior to the end date. If no end date is
14217// provided, all records subsequent to the start date are in scope.
14218func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) End(end string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
14219	c.urlParams_.Set("end", end)
14220	return c
14221}
14222
14223// PageToken sets the optional parameter "pageToken": Used to retrieve
14224// the next or previous page of results
14225// when using pagination. Value should be set to the value of page_token
14226// set
14227// in next or previous page links' url. Next and previous page are
14228// returned
14229// in the response bundle's links field, where `link.relation` is
14230// "previous"
14231// or "next".
14232//
14233// Omit `page_token` if no previous request has been made.
14234func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) PageToken(pageToken string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
14235	c.urlParams_.Set("pageToken", pageToken)
14236	return c
14237}
14238
14239// Start sets the optional parameter "start": The response includes
14240// records subsequent to the start date. If no start
14241// date is provided, all records prior to the end date are in scope.
14242func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Start(start string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
14243	c.urlParams_.Set("start", start)
14244	return c
14245}
14246
14247// Fields allows partial responses to be retrieved. See
14248// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14249// for more information.
14250func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
14251	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14252	return c
14253}
14254
14255// IfNoneMatch sets the optional parameter which makes the operation
14256// fail if the object's ETag matches the given value. This is useful for
14257// getting updates only after the object has changed since the last
14258// request. Use googleapi.IsNotModified to check whether the response
14259// error from Do is the result of In-None-Match.
14260func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
14261	c.ifNoneMatch_ = entityTag
14262	return c
14263}
14264
14265// Context sets the context to be used in this call's Do method. Any
14266// pending HTTP request will be aborted if the provided context is
14267// canceled.
14268func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall {
14269	c.ctx_ = ctx
14270	return c
14271}
14272
14273// Header returns an http.Header that can be modified by the caller to
14274// add HTTP headers to the request.
14275func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Header() http.Header {
14276	if c.header_ == nil {
14277		c.header_ = make(http.Header)
14278	}
14279	return c.header_
14280}
14281
14282func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) doRequest(alt string) (*http.Response, error) {
14283	reqHeaders := make(http.Header)
14284	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
14285	for k, v := range c.header_ {
14286		reqHeaders[k] = v
14287	}
14288	reqHeaders.Set("User-Agent", c.s.userAgent())
14289	if c.ifNoneMatch_ != "" {
14290		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14291	}
14292	var body io.Reader = nil
14293	c.urlParams_.Set("alt", alt)
14294	c.urlParams_.Set("prettyPrint", "false")
14295	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}/$everything")
14296	urls += "?" + c.urlParams_.Encode()
14297	req, err := http.NewRequest("GET", urls, body)
14298	if err != nil {
14299		return nil, err
14300	}
14301	req.Header = reqHeaders
14302	googleapi.Expand(req.URL, map[string]string{
14303		"name": c.name,
14304	})
14305	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14306}
14307
14308// Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Patient-everything" call.
14309func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
14310	gensupport.SetOptions(c.urlParams_, opts...)
14311	return c.doRequest("")
14312	// {
14313	//   "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.",
14314	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/Patient/{PatientId}/$everything",
14315	//   "httpMethod": "GET",
14316	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.Patient-everything",
14317	//   "parameterOrder": [
14318	//     "name"
14319	//   ],
14320	//   "parameters": {
14321	//     "_count": {
14322	//       "description": "Maximum number of resources in a page. Defaults to 100.",
14323	//       "format": "int32",
14324	//       "location": "query",
14325	//       "type": "integer"
14326	//     },
14327	//     "end": {
14328	//       "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.",
14329	//       "location": "query",
14330	//       "type": "string"
14331	//     },
14332	//     "name": {
14333	//       "description": "Name of the `Patient` resource for which the information is required.",
14334	//       "location": "path",
14335	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+/fhir/Patient/[^/]+$",
14336	//       "required": true,
14337	//       "type": "string"
14338	//     },
14339	//     "pageToken": {
14340	//       "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.",
14341	//       "location": "query",
14342	//       "type": "string"
14343	//     },
14344	//     "start": {
14345	//       "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.",
14346	//       "location": "query",
14347	//       "type": "string"
14348	//     }
14349	//   },
14350	//   "path": "v1alpha2/{+name}/$everything",
14351	//   "response": {
14352	//     "$ref": "HttpBody"
14353	//   },
14354	//   "scopes": [
14355	//     "https://www.googleapis.com/auth/cloud-platform"
14356	//   ]
14357	// }
14358
14359}
14360
14361// method id "healthcare.projects.locations.datasets.fhirStores.fhir.Resource-purge":
14362
14363type ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall struct {
14364	s          *Service
14365	name       string
14366	urlParams_ gensupport.URLParams
14367	ctx_       context.Context
14368	header_    http.Header
14369}
14370
14371// ResourcePurge: Deletes all the historical versions of a resource
14372// (excluding the current
14373// version) from the FHIR store. To remove all versions of a resource,
14374// first
14375// delete the current version and then call this method.
14376//
14377// This is not a FHIR standard operation.
14378func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ResourcePurge(name string) *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall {
14379	c := &ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14380	c.name = name
14381	return c
14382}
14383
14384// Fields allows partial responses to be retrieved. See
14385// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14386// for more information.
14387func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall {
14388	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14389	return c
14390}
14391
14392// Context sets the context to be used in this call's Do method. Any
14393// pending HTTP request will be aborted if the provided context is
14394// canceled.
14395func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall {
14396	c.ctx_ = ctx
14397	return c
14398}
14399
14400// Header returns an http.Header that can be modified by the caller to
14401// add HTTP headers to the request.
14402func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) Header() http.Header {
14403	if c.header_ == nil {
14404		c.header_ = make(http.Header)
14405	}
14406	return c.header_
14407}
14408
14409func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) doRequest(alt string) (*http.Response, error) {
14410	reqHeaders := make(http.Header)
14411	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
14412	for k, v := range c.header_ {
14413		reqHeaders[k] = v
14414	}
14415	reqHeaders.Set("User-Agent", c.s.userAgent())
14416	var body io.Reader = nil
14417	c.urlParams_.Set("alt", alt)
14418	c.urlParams_.Set("prettyPrint", "false")
14419	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}/$purge")
14420	urls += "?" + c.urlParams_.Encode()
14421	req, err := http.NewRequest("DELETE", urls, body)
14422	if err != nil {
14423		return nil, err
14424	}
14425	req.Header = reqHeaders
14426	googleapi.Expand(req.URL, map[string]string{
14427		"name": c.name,
14428	})
14429	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14430}
14431
14432// Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Resource-purge" call.
14433// Exactly one of *Empty or error will be non-nil. Any non-2xx status
14434// code is an error. Response headers are in either
14435// *Empty.ServerResponse.Header or (if a response was returned at all)
14436// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
14437// check whether the returned error was because http.StatusNotModified
14438// was returned.
14439func (c *ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
14440	gensupport.SetOptions(c.urlParams_, opts...)
14441	res, err := c.doRequest("json")
14442	if res != nil && res.StatusCode == http.StatusNotModified {
14443		if res.Body != nil {
14444			res.Body.Close()
14445		}
14446		return nil, &googleapi.Error{
14447			Code:   res.StatusCode,
14448			Header: res.Header,
14449		}
14450	}
14451	if err != nil {
14452		return nil, err
14453	}
14454	defer googleapi.CloseBody(res)
14455	if err := googleapi.CheckResponse(res); err != nil {
14456		return nil, err
14457	}
14458	ret := &Empty{
14459		ServerResponse: googleapi.ServerResponse{
14460			Header:         res.Header,
14461			HTTPStatusCode: res.StatusCode,
14462		},
14463	}
14464	target := &ret
14465	if err := gensupport.DecodeResponse(target, res); err != nil {
14466		return nil, err
14467	}
14468	return ret, nil
14469	// {
14470	//   "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.",
14471	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}/$purge",
14472	//   "httpMethod": "DELETE",
14473	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.Resource-purge",
14474	//   "parameterOrder": [
14475	//     "name"
14476	//   ],
14477	//   "parameters": {
14478	//     "name": {
14479	//       "description": "The name of the resource to purge.",
14480	//       "location": "path",
14481	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+/fhir/[^/]+/[^/]+$",
14482	//       "required": true,
14483	//       "type": "string"
14484	//     }
14485	//   },
14486	//   "path": "v1alpha2/{+name}/$purge",
14487	//   "response": {
14488	//     "$ref": "Empty"
14489	//   },
14490	//   "scopes": [
14491	//     "https://www.googleapis.com/auth/cloud-platform"
14492	//   ]
14493	// }
14494
14495}
14496
14497// method id "healthcare.projects.locations.datasets.fhirStores.fhir.capabilities":
14498
14499type ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall struct {
14500	s            *Service
14501	name         string
14502	urlParams_   gensupport.URLParams
14503	ifNoneMatch_ string
14504	ctx_         context.Context
14505	header_      http.Header
14506}
14507
14508// Capabilities: Gets the FHIR capability
14509// statement
14510// ([STU3](http://hl7.org/implement/standards/fhir/STU3/capabil
14511// itystatement.html)),
14512// or the
14513// [conformance
14514// statement](http://hl7.org/implement/standards/fhir/DSTU2/
14515// conformance.html)
14516// in the DSTU2 case for the store, which contains a description
14517// of
14518// functionality supported by the server.
14519//
14520// Implements the FHIR standard capabilities
14521// interaction
14522// ([STU3](http://hl7.org/implement/standards/fhir/STU3/http.
14523// html#capabilities)),
14524// or the
14525// [conformance
14526// interaction](http://hl7.org/implement/standards/fhir/DSTU
14527// 2/http.html#conformance)
14528// in the DSTU2 case.
14529//
14530// On success, the response body will contain a JSON-encoded
14531// representation
14532// of a `CapabilityStatement` resource.
14533func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Capabilities(name string) *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall {
14534	c := &ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14535	c.name = name
14536	return c
14537}
14538
14539// Fields allows partial responses to be retrieved. See
14540// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14541// for more information.
14542func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall {
14543	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14544	return c
14545}
14546
14547// IfNoneMatch sets the optional parameter which makes the operation
14548// fail if the object's ETag matches the given value. This is useful for
14549// getting updates only after the object has changed since the last
14550// request. Use googleapi.IsNotModified to check whether the response
14551// error from Do is the result of In-None-Match.
14552func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall {
14553	c.ifNoneMatch_ = entityTag
14554	return c
14555}
14556
14557// Context sets the context to be used in this call's Do method. Any
14558// pending HTTP request will be aborted if the provided context is
14559// canceled.
14560func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall {
14561	c.ctx_ = ctx
14562	return c
14563}
14564
14565// Header returns an http.Header that can be modified by the caller to
14566// add HTTP headers to the request.
14567func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) Header() http.Header {
14568	if c.header_ == nil {
14569		c.header_ = make(http.Header)
14570	}
14571	return c.header_
14572}
14573
14574func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) doRequest(alt string) (*http.Response, error) {
14575	reqHeaders := make(http.Header)
14576	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
14577	for k, v := range c.header_ {
14578		reqHeaders[k] = v
14579	}
14580	reqHeaders.Set("User-Agent", c.s.userAgent())
14581	if c.ifNoneMatch_ != "" {
14582		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14583	}
14584	var body io.Reader = nil
14585	c.urlParams_.Set("alt", alt)
14586	c.urlParams_.Set("prettyPrint", "false")
14587	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}/fhir/metadata")
14588	urls += "?" + c.urlParams_.Encode()
14589	req, err := http.NewRequest("GET", urls, body)
14590	if err != nil {
14591		return nil, err
14592	}
14593	req.Header = reqHeaders
14594	googleapi.Expand(req.URL, map[string]string{
14595		"name": c.name,
14596	})
14597	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14598}
14599
14600// Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.capabilities" call.
14601func (c *ProjectsLocationsDatasetsFhirStoresFhirCapabilitiesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
14602	gensupport.SetOptions(c.urlParams_, opts...)
14603	return c.doRequest("")
14604	// {
14605	//   "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.",
14606	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/metadata",
14607	//   "httpMethod": "GET",
14608	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.capabilities",
14609	//   "parameterOrder": [
14610	//     "name"
14611	//   ],
14612	//   "parameters": {
14613	//     "name": {
14614	//       "description": "Name of the FHIR store to retrieve the capabilities for.",
14615	//       "location": "path",
14616	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
14617	//       "required": true,
14618	//       "type": "string"
14619	//     }
14620	//   },
14621	//   "path": "v1alpha2/{+name}/fhir/metadata",
14622	//   "response": {
14623	//     "$ref": "HttpBody"
14624	//   },
14625	//   "scopes": [
14626	//     "https://www.googleapis.com/auth/cloud-platform"
14627	//   ]
14628	// }
14629
14630}
14631
14632// method id "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalDelete":
14633
14634type ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall struct {
14635	s          *Service
14636	parent     string
14637	type_      string
14638	urlParams_ gensupport.URLParams
14639	ctx_       context.Context
14640	header_    http.Header
14641}
14642
14643// ConditionalDelete: Deletes FHIR resources that match a search
14644// query.
14645//
14646// Implements the FHIR standard conditional delete
14647// interaction
14648// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt
14649// p.html#2.1.0.12.1),
14650// [STU3](http://hl7.org/implement/standards/fhir/STU
14651// 3/http.html#2.21.0.13.1)).
14652// If multiple resources match, all of them will be deleted.
14653//
14654// Search terms are provided as query parameters following the same
14655// pattern as
14656// the search method.
14657//
14658// Note: Unless resource versioning is disabled by setting
14659// the
14660// disable_resource_versioning flag
14661// on the FHIR store, the deleted resources will be moved to a
14662// history
14663// repository that can still be retrieved through vread
14664// and related methods, unless they are removed by the
14665// purge method.
14666func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConditionalDelete(parent string, type_ string) *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall {
14667	c := &ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14668	c.parent = parent
14669	c.type_ = type_
14670	return c
14671}
14672
14673// Fields allows partial responses to be retrieved. See
14674// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14675// for more information.
14676func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall {
14677	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14678	return c
14679}
14680
14681// Context sets the context to be used in this call's Do method. Any
14682// pending HTTP request will be aborted if the provided context is
14683// canceled.
14684func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall {
14685	c.ctx_ = ctx
14686	return c
14687}
14688
14689// Header returns an http.Header that can be modified by the caller to
14690// add HTTP headers to the request.
14691func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) Header() http.Header {
14692	if c.header_ == nil {
14693		c.header_ = make(http.Header)
14694	}
14695	return c.header_
14696}
14697
14698func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) doRequest(alt string) (*http.Response, error) {
14699	reqHeaders := make(http.Header)
14700	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
14701	for k, v := range c.header_ {
14702		reqHeaders[k] = v
14703	}
14704	reqHeaders.Set("User-Agent", c.s.userAgent())
14705	var body io.Reader = nil
14706	c.urlParams_.Set("alt", alt)
14707	c.urlParams_.Set("prettyPrint", "false")
14708	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhir/{+type}")
14709	urls += "?" + c.urlParams_.Encode()
14710	req, err := http.NewRequest("DELETE", urls, body)
14711	if err != nil {
14712		return nil, err
14713	}
14714	req.Header = reqHeaders
14715	googleapi.Expand(req.URL, map[string]string{
14716		"parent": c.parent,
14717		"type":   c.type_,
14718	})
14719	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14720}
14721
14722// Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalDelete" call.
14723// Exactly one of *Empty or error will be non-nil. Any non-2xx status
14724// code is an error. Response headers are in either
14725// *Empty.ServerResponse.Header or (if a response was returned at all)
14726// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
14727// check whether the returned error was because http.StatusNotModified
14728// was returned.
14729func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
14730	gensupport.SetOptions(c.urlParams_, opts...)
14731	res, err := c.doRequest("json")
14732	if res != nil && res.StatusCode == http.StatusNotModified {
14733		if res.Body != nil {
14734			res.Body.Close()
14735		}
14736		return nil, &googleapi.Error{
14737			Code:   res.StatusCode,
14738			Header: res.Header,
14739		}
14740	}
14741	if err != nil {
14742		return nil, err
14743	}
14744	defer googleapi.CloseBody(res)
14745	if err := googleapi.CheckResponse(res); err != nil {
14746		return nil, err
14747	}
14748	ret := &Empty{
14749		ServerResponse: googleapi.ServerResponse{
14750			Header:         res.Header,
14751			HTTPStatusCode: res.StatusCode,
14752		},
14753	}
14754	target := &ret
14755	if err := gensupport.DecodeResponse(target, res); err != nil {
14756		return nil, err
14757	}
14758	return ret, nil
14759	// {
14760	//   "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.",
14761	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}",
14762	//   "httpMethod": "DELETE",
14763	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalDelete",
14764	//   "parameterOrder": [
14765	//     "parent",
14766	//     "type"
14767	//   ],
14768	//   "parameters": {
14769	//     "parent": {
14770	//       "description": "The name of the FHIR store this resource belongs to.",
14771	//       "location": "path",
14772	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
14773	//       "required": true,
14774	//       "type": "string"
14775	//     },
14776	//     "type": {
14777	//       "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)).",
14778	//       "location": "path",
14779	//       "pattern": "^[^/]+$",
14780	//       "required": true,
14781	//       "type": "string"
14782	//     }
14783	//   },
14784	//   "path": "v1alpha2/{+parent}/fhir/{+type}",
14785	//   "response": {
14786	//     "$ref": "Empty"
14787	//   },
14788	//   "scopes": [
14789	//     "https://www.googleapis.com/auth/cloud-platform"
14790	//   ]
14791	// }
14792
14793}
14794
14795// method id "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalPatch":
14796
14797type ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall struct {
14798	s          *Service
14799	parent     string
14800	type_      string
14801	body_      io.Reader
14802	urlParams_ gensupport.URLParams
14803	ctx_       context.Context
14804	header_    http.Header
14805}
14806
14807// ConditionalPatch: If a resource is found based on the search criteria
14808// specified in the query
14809// parameters, updates part of that resource by applying the
14810// operations
14811// specified in a [JSON Patch](http://jsonpatch.com/)
14812// document.
14813//
14814// Implements the FHIR standard conditional patch
14815// interaction
14816// ([STU3](http://hl7.org/implement/standards/fhir/STU3/http.
14817// html#patch)).
14818//
14819// DSTU2 doesn't define a conditional patch method, but the server
14820// supports it
14821// in the same way it supports STU3.
14822//
14823// Search terms are provided as query parameters following the same
14824// pattern as
14825// the search method.
14826//
14827// If the search criteria identify more than one match, the request
14828// will
14829// return a `412 Precondition Failed` error.
14830//
14831// The request body must contain a JSON Patch document, and the
14832// request
14833// headers must contain `Content-Type: application/json-patch+json`.
14834//
14835// On success, the response body will contain a JSON-encoded
14836// representation
14837// of the updated resource, including the server-assigned version
14838// ID.
14839// Errors generated by the FHIR store will contain a
14840// JSON-encoded
14841// `OperationOutcome` resource describing the reason for the error. If
14842// the
14843// request cannot be mapped to a valid API method on a FHIR store, a
14844// generic
14845// GCP error might be returned instead.
14846func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConditionalPatch(parent string, type_ string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall {
14847	c := &ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14848	c.parent = parent
14849	c.type_ = type_
14850	c.body_ = body_
14851	return c
14852}
14853
14854// Fields allows partial responses to be retrieved. See
14855// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14856// for more information.
14857func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall {
14858	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14859	return c
14860}
14861
14862// Context sets the context to be used in this call's Do method. Any
14863// pending HTTP request will be aborted if the provided context is
14864// canceled.
14865func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall {
14866	c.ctx_ = ctx
14867	return c
14868}
14869
14870// Header returns an http.Header that can be modified by the caller to
14871// add HTTP headers to the request.
14872func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) Header() http.Header {
14873	if c.header_ == nil {
14874		c.header_ = make(http.Header)
14875	}
14876	return c.header_
14877}
14878
14879func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) doRequest(alt string) (*http.Response, error) {
14880	reqHeaders := make(http.Header)
14881	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
14882	for k, v := range c.header_ {
14883		reqHeaders[k] = v
14884	}
14885	reqHeaders.Set("User-Agent", c.s.userAgent())
14886	var body io.Reader = nil
14887	body = c.body_
14888	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhir/{+type}")
14889	urls += "?" + c.urlParams_.Encode()
14890	req, err := http.NewRequest("PATCH", urls, body)
14891	if err != nil {
14892		return nil, err
14893	}
14894	req.Header = reqHeaders
14895	googleapi.Expand(req.URL, map[string]string{
14896		"parent": c.parent,
14897		"type":   c.type_,
14898	})
14899	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14900}
14901
14902// Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalPatch" call.
14903func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalPatchCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
14904	gensupport.SetOptions(c.urlParams_, opts...)
14905	return c.doRequest("")
14906	// {
14907	//   "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.",
14908	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}",
14909	//   "httpMethod": "PATCH",
14910	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalPatch",
14911	//   "parameterOrder": [
14912	//     "parent",
14913	//     "type"
14914	//   ],
14915	//   "parameters": {
14916	//     "parent": {
14917	//       "description": "The name of the FHIR store this resource belongs to.",
14918	//       "location": "path",
14919	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
14920	//       "required": true,
14921	//       "type": "string"
14922	//     },
14923	//     "type": {
14924	//       "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)).",
14925	//       "location": "path",
14926	//       "pattern": "^[^/]+$",
14927	//       "required": true,
14928	//       "type": "string"
14929	//     }
14930	//   },
14931	//   "path": "v1alpha2/{+parent}/fhir/{+type}",
14932	//   "request": {
14933	//     "$ref": "HttpBody"
14934	//   },
14935	//   "response": {
14936	//     "$ref": "HttpBody"
14937	//   },
14938	//   "scopes": [
14939	//     "https://www.googleapis.com/auth/cloud-platform"
14940	//   ]
14941	// }
14942
14943}
14944
14945// method id "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalUpdate":
14946
14947type ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall struct {
14948	s          *Service
14949	parent     string
14950	type_      string
14951	body_      io.Reader
14952	urlParams_ gensupport.URLParams
14953	ctx_       context.Context
14954	header_    http.Header
14955}
14956
14957// ConditionalUpdate: If a resource is found based on the search
14958// criteria specified in the query
14959// parameters, updates the entire contents of that resource.
14960//
14961// Implements the FHIR standard conditional update
14962// interaction
14963// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt
14964// p.html#2.1.0.10.2),
14965// [STU3](http://hl7.org/implement/standards/fhir/STU
14966// 3/http.html#cond-update)).
14967//
14968// Search terms are provided as query parameters following the same
14969// pattern as
14970// the search method.
14971//
14972// If the search criteria identify more than one match, the request
14973// will
14974// return a `412 Precondition Failed` error.
14975// If the search criteria identify zero matches, and the supplied
14976// resource
14977// body contains an `id`, and the FHIR store has
14978// enable_update_create set, creates the
14979// resource with the client-specified ID. If the search criteria
14980// identify zero
14981// matches, and the supplied resource body does not contain an `id`,
14982// the
14983// resource will be created with a server-assigned ID as per the
14984// create method.
14985//
14986// The request body must contain a JSON-encoded FHIR resource, and the
14987// request
14988// headers must contain `Content-Type: application/fhir+json`.
14989//
14990// On success, the response body will contain a JSON-encoded
14991// representation
14992// of the updated resource, including the server-assigned version
14993// ID.
14994// Errors generated by the FHIR store will contain a
14995// JSON-encoded
14996// `OperationOutcome` resource describing the reason for the error. If
14997// the
14998// request cannot be mapped to a valid API method on a FHIR store, a
14999// generic
15000// GCP error might be returned instead.
15001func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ConditionalUpdate(parent string, type_ string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall {
15002	c := &ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15003	c.parent = parent
15004	c.type_ = type_
15005	c.body_ = body_
15006	return c
15007}
15008
15009// Fields allows partial responses to be retrieved. See
15010// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15011// for more information.
15012func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall {
15013	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15014	return c
15015}
15016
15017// Context sets the context to be used in this call's Do method. Any
15018// pending HTTP request will be aborted if the provided context is
15019// canceled.
15020func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall {
15021	c.ctx_ = ctx
15022	return c
15023}
15024
15025// Header returns an http.Header that can be modified by the caller to
15026// add HTTP headers to the request.
15027func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) Header() http.Header {
15028	if c.header_ == nil {
15029		c.header_ = make(http.Header)
15030	}
15031	return c.header_
15032}
15033
15034func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) doRequest(alt string) (*http.Response, error) {
15035	reqHeaders := make(http.Header)
15036	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
15037	for k, v := range c.header_ {
15038		reqHeaders[k] = v
15039	}
15040	reqHeaders.Set("User-Agent", c.s.userAgent())
15041	var body io.Reader = nil
15042	body = c.body_
15043	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhir/{+type}")
15044	urls += "?" + c.urlParams_.Encode()
15045	req, err := http.NewRequest("PUT", urls, body)
15046	if err != nil {
15047		return nil, err
15048	}
15049	req.Header = reqHeaders
15050	googleapi.Expand(req.URL, map[string]string{
15051		"parent": c.parent,
15052		"type":   c.type_,
15053	})
15054	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15055}
15056
15057// Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalUpdate" call.
15058func (c *ProjectsLocationsDatasetsFhirStoresFhirConditionalUpdateCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
15059	gensupport.SetOptions(c.urlParams_, opts...)
15060	return c.doRequest("")
15061	// {
15062	//   "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.",
15063	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}",
15064	//   "httpMethod": "PUT",
15065	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.conditionalUpdate",
15066	//   "parameterOrder": [
15067	//     "parent",
15068	//     "type"
15069	//   ],
15070	//   "parameters": {
15071	//     "parent": {
15072	//       "description": "The name of the FHIR store this resource belongs to.",
15073	//       "location": "path",
15074	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
15075	//       "required": true,
15076	//       "type": "string"
15077	//     },
15078	//     "type": {
15079	//       "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.",
15080	//       "location": "path",
15081	//       "pattern": "^[^/]+$",
15082	//       "required": true,
15083	//       "type": "string"
15084	//     }
15085	//   },
15086	//   "path": "v1alpha2/{+parent}/fhir/{+type}",
15087	//   "request": {
15088	//     "$ref": "HttpBody"
15089	//   },
15090	//   "response": {
15091	//     "$ref": "HttpBody"
15092	//   },
15093	//   "scopes": [
15094	//     "https://www.googleapis.com/auth/cloud-platform"
15095	//   ]
15096	// }
15097
15098}
15099
15100// method id "healthcare.projects.locations.datasets.fhirStores.fhir.create":
15101
15102type ProjectsLocationsDatasetsFhirStoresFhirCreateCall struct {
15103	s          *Service
15104	parent     string
15105	type_      string
15106	body_      io.Reader
15107	urlParams_ gensupport.URLParams
15108	ctx_       context.Context
15109	header_    http.Header
15110}
15111
15112// Create: Creates a FHIR resource.
15113//
15114// Implements the FHIR standard create
15115// interaction
15116// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt
15117// p.html#create),
15118// [STU3](http://hl7.org/implement/standards/fhir/STU3/ht
15119// tp.html#create)),
15120// which creates a new resource with a server-assigned resource
15121// ID.
15122//
15123// Also supports the FHIR standard conditional create
15124// interaction
15125// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt
15126// p.html#ccreate),
15127// [STU3](http://hl7.org/implement/standards/fhir/STU3/h
15128// ttp.html#ccreate)),
15129// specified by supplying an `If-None-Exist` header containing a FHIR
15130// search
15131// query. If no resources match this search query, the server processes
15132// the
15133// create operation as normal.
15134//
15135// The request body must contain a JSON-encoded FHIR resource, and the
15136// request
15137// headers must contain `Content-Type: application/fhir+json`.
15138//
15139// On success, the response body will contain a JSON-encoded
15140// representation
15141// of the resource as it was created on the server, including
15142// the
15143// server-assigned resource ID and version ID.
15144// Errors generated by the FHIR store will contain a
15145// JSON-encoded
15146// `OperationOutcome` resource describing the reason for the error. If
15147// the
15148// request cannot be mapped to a valid API method on a FHIR store, a
15149// generic
15150// GCP error might be returned instead.
15151func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Create(parent string, type_ string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirCreateCall {
15152	c := &ProjectsLocationsDatasetsFhirStoresFhirCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15153	c.parent = parent
15154	c.type_ = type_
15155	c.body_ = body_
15156	return c
15157}
15158
15159// Fields allows partial responses to be retrieved. See
15160// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15161// for more information.
15162func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirCreateCall {
15163	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15164	return c
15165}
15166
15167// Context sets the context to be used in this call's Do method. Any
15168// pending HTTP request will be aborted if the provided context is
15169// canceled.
15170func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirCreateCall {
15171	c.ctx_ = ctx
15172	return c
15173}
15174
15175// Header returns an http.Header that can be modified by the caller to
15176// add HTTP headers to the request.
15177func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) Header() http.Header {
15178	if c.header_ == nil {
15179		c.header_ = make(http.Header)
15180	}
15181	return c.header_
15182}
15183
15184func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) doRequest(alt string) (*http.Response, error) {
15185	reqHeaders := make(http.Header)
15186	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
15187	for k, v := range c.header_ {
15188		reqHeaders[k] = v
15189	}
15190	reqHeaders.Set("User-Agent", c.s.userAgent())
15191	var body io.Reader = nil
15192	body = c.body_
15193	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhir/{+type}")
15194	urls += "?" + c.urlParams_.Encode()
15195	req, err := http.NewRequest("POST", urls, body)
15196	if err != nil {
15197		return nil, err
15198	}
15199	req.Header = reqHeaders
15200	googleapi.Expand(req.URL, map[string]string{
15201		"parent": c.parent,
15202		"type":   c.type_,
15203	})
15204	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15205}
15206
15207// Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.create" call.
15208func (c *ProjectsLocationsDatasetsFhirStoresFhirCreateCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
15209	gensupport.SetOptions(c.urlParams_, opts...)
15210	return c.doRequest("")
15211	// {
15212	//   "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.",
15213	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}",
15214	//   "httpMethod": "POST",
15215	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.create",
15216	//   "parameterOrder": [
15217	//     "parent",
15218	//     "type"
15219	//   ],
15220	//   "parameters": {
15221	//     "parent": {
15222	//       "description": "The name of the FHIR store this resource belongs to.",
15223	//       "location": "path",
15224	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
15225	//       "required": true,
15226	//       "type": "string"
15227	//     },
15228	//     "type": {
15229	//       "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.",
15230	//       "location": "path",
15231	//       "pattern": "^[^/]+$",
15232	//       "required": true,
15233	//       "type": "string"
15234	//     }
15235	//   },
15236	//   "path": "v1alpha2/{+parent}/fhir/{+type}",
15237	//   "request": {
15238	//     "$ref": "HttpBody"
15239	//   },
15240	//   "response": {
15241	//     "$ref": "HttpBody"
15242	//   },
15243	//   "scopes": [
15244	//     "https://www.googleapis.com/auth/cloud-platform"
15245	//   ]
15246	// }
15247
15248}
15249
15250// method id "healthcare.projects.locations.datasets.fhirStores.fhir.delete":
15251
15252type ProjectsLocationsDatasetsFhirStoresFhirDeleteCall struct {
15253	s          *Service
15254	name       string
15255	urlParams_ gensupport.URLParams
15256	ctx_       context.Context
15257	header_    http.Header
15258}
15259
15260// Delete: Deletes a FHIR resource.
15261//
15262// Implements the FHIR standard delete
15263// interaction
15264// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt
15265// p.html#delete),
15266// [STU3](http://hl7.org/implement/standards/fhir/STU3/ht
15267// tp.html#delete)).
15268//
15269// Note: Unless resource versioning is disabled by setting
15270// the
15271// disable_resource_versioning flag
15272// on the FHIR store, the deleted resources will be moved to a
15273// history
15274// repository that can still be retrieved through vread
15275// and related methods, unless they are removed by the
15276// purge method.
15277func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Delete(name string) *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall {
15278	c := &ProjectsLocationsDatasetsFhirStoresFhirDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15279	c.name = name
15280	return c
15281}
15282
15283// Fields allows partial responses to be retrieved. See
15284// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15285// for more information.
15286func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall {
15287	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15288	return c
15289}
15290
15291// Context sets the context to be used in this call's Do method. Any
15292// pending HTTP request will be aborted if the provided context is
15293// canceled.
15294func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall {
15295	c.ctx_ = ctx
15296	return c
15297}
15298
15299// Header returns an http.Header that can be modified by the caller to
15300// add HTTP headers to the request.
15301func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) Header() http.Header {
15302	if c.header_ == nil {
15303		c.header_ = make(http.Header)
15304	}
15305	return c.header_
15306}
15307
15308func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) doRequest(alt string) (*http.Response, error) {
15309	reqHeaders := make(http.Header)
15310	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
15311	for k, v := range c.header_ {
15312		reqHeaders[k] = v
15313	}
15314	reqHeaders.Set("User-Agent", c.s.userAgent())
15315	var body io.Reader = nil
15316	c.urlParams_.Set("alt", alt)
15317	c.urlParams_.Set("prettyPrint", "false")
15318	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
15319	urls += "?" + c.urlParams_.Encode()
15320	req, err := http.NewRequest("DELETE", urls, body)
15321	if err != nil {
15322		return nil, err
15323	}
15324	req.Header = reqHeaders
15325	googleapi.Expand(req.URL, map[string]string{
15326		"name": c.name,
15327	})
15328	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15329}
15330
15331// Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.delete" call.
15332func (c *ProjectsLocationsDatasetsFhirStoresFhirDeleteCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
15333	gensupport.SetOptions(c.urlParams_, opts...)
15334	return c.doRequest("")
15335	// {
15336	//   "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.",
15337	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}",
15338	//   "httpMethod": "DELETE",
15339	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.delete",
15340	//   "parameterOrder": [
15341	//     "name"
15342	//   ],
15343	//   "parameters": {
15344	//     "name": {
15345	//       "description": "The name of the resource to delete.",
15346	//       "location": "path",
15347	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+/fhir/[^/]+/[^/]+$",
15348	//       "required": true,
15349	//       "type": "string"
15350	//     }
15351	//   },
15352	//   "path": "v1alpha2/{+name}",
15353	//   "response": {
15354	//     "$ref": "HttpBody"
15355	//   },
15356	//   "scopes": [
15357	//     "https://www.googleapis.com/auth/cloud-platform"
15358	//   ]
15359	// }
15360
15361}
15362
15363// method id "healthcare.projects.locations.datasets.fhirStores.fhir.executeBundle":
15364
15365type ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall struct {
15366	s          *Service
15367	parent     string
15368	body_      io.Reader
15369	urlParams_ gensupport.URLParams
15370	ctx_       context.Context
15371	header_    http.Header
15372}
15373
15374// ExecuteBundle: Executes all the requests in the given
15375// Bundle.
15376//
15377// Implements the FHIR standard batch/transaction
15378// interaction
15379// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt
15380// p.html#transaction),
15381// [STU3](http://hl7.org/implement/standards/fhir/ST
15382// U3/http.html#transaction)).
15383//
15384// Supports all interactions within a bundle, except search. This
15385// method
15386// accepts Bundles of type `batch` and `transaction`, processing
15387// them
15388// according to the batch processing
15389// rules
15390// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html
15391// #2.1.0.16.1),
15392// [STU3](http://hl7.org/implement/standards/fhir/STU3/http
15393// .html#2.21.0.17.1))
15394// and transaction processing
15395// rules
15396// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html
15397// #2.1.0.16.2),
15398// [STU3](http://hl7.org/implement/standards/fhir/STU3/http
15399// .html#2.21.0.17.2)).
15400//
15401// The request body must contain a JSON-encoded FHIR `Bundle` resource,
15402// and
15403// the request headers must contain `Content-Type:
15404// application/fhir+json`.
15405//
15406// For a batch bundle or a successful transaction the response body
15407// will
15408// contain a JSON-encoded representation of a `Bundle` resource of
15409// type
15410// `batch-response` or `transaction-response` containing one entry for
15411// each
15412// entry in the request, with the outcome of processing the entry. In
15413// the
15414// case of an error for a transaction bundle, the response body will
15415// contain
15416// a JSON-encoded `OperationOutcome` resource describing the reason for
15417// the
15418// error. If the request cannot be mapped to a valid API method on a
15419// FHIR
15420// store, a generic GCP error might be returned instead.
15421func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ExecuteBundle(parent string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall {
15422	c := &ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15423	c.parent = parent
15424	c.body_ = body_
15425	return c
15426}
15427
15428// Fields allows partial responses to be retrieved. See
15429// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15430// for more information.
15431func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall {
15432	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15433	return c
15434}
15435
15436// Context sets the context to be used in this call's Do method. Any
15437// pending HTTP request will be aborted if the provided context is
15438// canceled.
15439func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall {
15440	c.ctx_ = ctx
15441	return c
15442}
15443
15444// Header returns an http.Header that can be modified by the caller to
15445// add HTTP headers to the request.
15446func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) Header() http.Header {
15447	if c.header_ == nil {
15448		c.header_ = make(http.Header)
15449	}
15450	return c.header_
15451}
15452
15453func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) doRequest(alt string) (*http.Response, error) {
15454	reqHeaders := make(http.Header)
15455	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
15456	for k, v := range c.header_ {
15457		reqHeaders[k] = v
15458	}
15459	reqHeaders.Set("User-Agent", c.s.userAgent())
15460	var body io.Reader = nil
15461	body = c.body_
15462	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhir")
15463	urls += "?" + c.urlParams_.Encode()
15464	req, err := http.NewRequest("POST", urls, body)
15465	if err != nil {
15466		return nil, err
15467	}
15468	req.Header = reqHeaders
15469	googleapi.Expand(req.URL, map[string]string{
15470		"parent": c.parent,
15471	})
15472	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15473}
15474
15475// Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.executeBundle" call.
15476func (c *ProjectsLocationsDatasetsFhirStoresFhirExecuteBundleCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
15477	gensupport.SetOptions(c.urlParams_, opts...)
15478	return c.doRequest("")
15479	// {
15480	//   "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.",
15481	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir",
15482	//   "httpMethod": "POST",
15483	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.executeBundle",
15484	//   "parameterOrder": [
15485	//     "parent"
15486	//   ],
15487	//   "parameters": {
15488	//     "parent": {
15489	//       "description": "Name of the FHIR store in which this bundle will be executed.",
15490	//       "location": "path",
15491	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
15492	//       "required": true,
15493	//       "type": "string"
15494	//     }
15495	//   },
15496	//   "path": "v1alpha2/{+parent}/fhir",
15497	//   "request": {
15498	//     "$ref": "HttpBody"
15499	//   },
15500	//   "response": {
15501	//     "$ref": "HttpBody"
15502	//   },
15503	//   "scopes": [
15504	//     "https://www.googleapis.com/auth/cloud-platform"
15505	//   ]
15506	// }
15507
15508}
15509
15510// method id "healthcare.projects.locations.datasets.fhirStores.fhir.history":
15511
15512type ProjectsLocationsDatasetsFhirStoresFhirHistoryCall struct {
15513	s            *Service
15514	name         string
15515	urlParams_   gensupport.URLParams
15516	ifNoneMatch_ string
15517	ctx_         context.Context
15518	header_      http.Header
15519}
15520
15521// History: Lists all the versions of a resource (including the current
15522// version and
15523// deleted versions) from the FHIR store.
15524//
15525// Implements the per-resource form of the FHIR standard history
15526// interaction
15527// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt
15528// p.html#history),
15529// [STU3](http://hl7.org/implement/standards/fhir/STU3/h
15530// ttp.html#history)).
15531//
15532// On success, the response body will contain a JSON-encoded
15533// representation
15534// of a `Bundle` resource of type `history`, containing the version
15535// history
15536// sorted from most recent to oldest versions.
15537// Errors generated by the FHIR store will contain a
15538// JSON-encoded
15539// `OperationOutcome` resource describing the reason for the error. If
15540// the
15541// request cannot be mapped to a valid API method on a FHIR store, a
15542// generic
15543// GCP error might be returned instead.
15544func (r *ProjectsLocationsDatasetsFhirStoresFhirService) History(name string) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
15545	c := &ProjectsLocationsDatasetsFhirStoresFhirHistoryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15546	c.name = name
15547	return c
15548}
15549
15550// At sets the optional parameter "at": Only include resource versions
15551// that were current at some point during the
15552// time period specified in the date time value. The date parameter
15553// format is
15554// yyyy-mm-ddThh:mm:ss[Z|(+|-)hh:mm]
15555//
15556// Clients may specify any of the following:
15557//
15558// *  An entire year: `_at=2019`
15559// *  An entire month: `_at=2019-01`
15560// *  A specific day: `_at=2019-01-20`
15561// *  A specific second: `_at=2018-12-31T23:59:58Z`
15562func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) At(at string) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
15563	c.urlParams_.Set("at", at)
15564	return c
15565}
15566
15567// Count sets the optional parameter "count": The maximum number of
15568// search results on a page. Defaults to 1000.
15569func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Count(count int64) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
15570	c.urlParams_.Set("count", fmt.Sprint(count))
15571	return c
15572}
15573
15574// Page sets the optional parameter "page": Used to retrieve the first,
15575// previous, next, or last page of resource
15576// versions when using pagination. Value should be set to the value of
15577// the
15578// `link.url` field returned in the response to the previous request,
15579// where
15580// `link.relation` is "first", "previous", "next" or "last".
15581//
15582// Omit `page` if no previous request has been made.
15583func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Page(page string) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
15584	c.urlParams_.Set("page", page)
15585	return c
15586}
15587
15588// Since sets the optional parameter "since": Only include resource
15589// versions that were created at or after the given
15590// instant in time. The instant in time uses the
15591// format
15592// YYYY-MM-DDThh:mm:ss.sss+zz:zz (for example
15593// 2015-02-07T13:28:17.239+02:00 or
15594// 2017-01-01T00:00:00Z). The time must be specified to the second
15595// and
15596// include a time zone.
15597func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Since(since string) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
15598	c.urlParams_.Set("since", since)
15599	return c
15600}
15601
15602// Fields allows partial responses to be retrieved. See
15603// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15604// for more information.
15605func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
15606	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15607	return c
15608}
15609
15610// IfNoneMatch sets the optional parameter which makes the operation
15611// fail if the object's ETag matches the given value. This is useful for
15612// getting updates only after the object has changed since the last
15613// request. Use googleapi.IsNotModified to check whether the response
15614// error from Do is the result of In-None-Match.
15615func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
15616	c.ifNoneMatch_ = entityTag
15617	return c
15618}
15619
15620// Context sets the context to be used in this call's Do method. Any
15621// pending HTTP request will be aborted if the provided context is
15622// canceled.
15623func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall {
15624	c.ctx_ = ctx
15625	return c
15626}
15627
15628// Header returns an http.Header that can be modified by the caller to
15629// add HTTP headers to the request.
15630func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Header() http.Header {
15631	if c.header_ == nil {
15632		c.header_ = make(http.Header)
15633	}
15634	return c.header_
15635}
15636
15637func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) doRequest(alt string) (*http.Response, error) {
15638	reqHeaders := make(http.Header)
15639	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
15640	for k, v := range c.header_ {
15641		reqHeaders[k] = v
15642	}
15643	reqHeaders.Set("User-Agent", c.s.userAgent())
15644	if c.ifNoneMatch_ != "" {
15645		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15646	}
15647	var body io.Reader = nil
15648	c.urlParams_.Set("alt", alt)
15649	c.urlParams_.Set("prettyPrint", "false")
15650	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}/_history")
15651	urls += "?" + c.urlParams_.Encode()
15652	req, err := http.NewRequest("GET", urls, body)
15653	if err != nil {
15654		return nil, err
15655	}
15656	req.Header = reqHeaders
15657	googleapi.Expand(req.URL, map[string]string{
15658		"name": c.name,
15659	})
15660	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15661}
15662
15663// Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.history" call.
15664func (c *ProjectsLocationsDatasetsFhirStoresFhirHistoryCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
15665	gensupport.SetOptions(c.urlParams_, opts...)
15666	return c.doRequest("")
15667	// {
15668	//   "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.",
15669	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}/_history",
15670	//   "httpMethod": "GET",
15671	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.history",
15672	//   "parameterOrder": [
15673	//     "name"
15674	//   ],
15675	//   "parameters": {
15676	//     "at": {
15677	//       "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`",
15678	//       "location": "query",
15679	//       "type": "string"
15680	//     },
15681	//     "count": {
15682	//       "description": "The maximum number of search results on a page. Defaults to 1000.",
15683	//       "format": "int32",
15684	//       "location": "query",
15685	//       "type": "integer"
15686	//     },
15687	//     "name": {
15688	//       "description": "The name of the resource to retrieve.",
15689	//       "location": "path",
15690	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+/fhir/[^/]+/[^/]+$",
15691	//       "required": true,
15692	//       "type": "string"
15693	//     },
15694	//     "page": {
15695	//       "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.",
15696	//       "location": "query",
15697	//       "type": "string"
15698	//     },
15699	//     "since": {
15700	//       "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.",
15701	//       "location": "query",
15702	//       "type": "string"
15703	//     }
15704	//   },
15705	//   "path": "v1alpha2/{+name}/_history",
15706	//   "response": {
15707	//     "$ref": "HttpBody"
15708	//   },
15709	//   "scopes": [
15710	//     "https://www.googleapis.com/auth/cloud-platform"
15711	//   ]
15712	// }
15713
15714}
15715
15716// method id "healthcare.projects.locations.datasets.fhirStores.fhir.patch":
15717
15718type ProjectsLocationsDatasetsFhirStoresFhirPatchCall struct {
15719	s          *Service
15720	name       string
15721	body_      io.Reader
15722	urlParams_ gensupport.URLParams
15723	ctx_       context.Context
15724	header_    http.Header
15725}
15726
15727// Patch: Updates part of an existing resource by applying the
15728// operations specified
15729// in a [JSON Patch](http://jsonpatch.com/) document.
15730//
15731// Implements the FHIR standard patch
15732// interaction
15733// ([STU3](http://hl7.org/implement/standards/fhir/STU3/http.
15734// html#patch)).
15735//
15736// DSTU2 doesn't define a patch method, but the server supports it in
15737// the same
15738// way it supports STU3.
15739//
15740// The request body must contain a JSON Patch document, and the
15741// request
15742// headers must contain `Content-Type: application/json-patch+json`.
15743//
15744// On success, the response body will contain a JSON-encoded
15745// representation
15746// of the updated resource, including the server-assigned version
15747// ID.
15748// Errors generated by the FHIR store will contain a
15749// JSON-encoded
15750// `OperationOutcome` resource describing the reason for the error. If
15751// the
15752// request cannot be mapped to a valid API method on a FHIR store, a
15753// generic
15754// GCP error might be returned instead.
15755func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Patch(name string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirPatchCall {
15756	c := &ProjectsLocationsDatasetsFhirStoresFhirPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15757	c.name = name
15758	c.body_ = body_
15759	return c
15760}
15761
15762// Fields allows partial responses to be retrieved. See
15763// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15764// for more information.
15765func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirPatchCall {
15766	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15767	return c
15768}
15769
15770// Context sets the context to be used in this call's Do method. Any
15771// pending HTTP request will be aborted if the provided context is
15772// canceled.
15773func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirPatchCall {
15774	c.ctx_ = ctx
15775	return c
15776}
15777
15778// Header returns an http.Header that can be modified by the caller to
15779// add HTTP headers to the request.
15780func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) Header() http.Header {
15781	if c.header_ == nil {
15782		c.header_ = make(http.Header)
15783	}
15784	return c.header_
15785}
15786
15787func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) doRequest(alt string) (*http.Response, error) {
15788	reqHeaders := make(http.Header)
15789	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
15790	for k, v := range c.header_ {
15791		reqHeaders[k] = v
15792	}
15793	reqHeaders.Set("User-Agent", c.s.userAgent())
15794	var body io.Reader = nil
15795	body = c.body_
15796	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
15797	urls += "?" + c.urlParams_.Encode()
15798	req, err := http.NewRequest("PATCH", urls, body)
15799	if err != nil {
15800		return nil, err
15801	}
15802	req.Header = reqHeaders
15803	googleapi.Expand(req.URL, map[string]string{
15804		"name": c.name,
15805	})
15806	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15807}
15808
15809// Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.patch" call.
15810func (c *ProjectsLocationsDatasetsFhirStoresFhirPatchCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
15811	gensupport.SetOptions(c.urlParams_, opts...)
15812	return c.doRequest("")
15813	// {
15814	//   "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.",
15815	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}",
15816	//   "httpMethod": "PATCH",
15817	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.patch",
15818	//   "parameterOrder": [
15819	//     "name"
15820	//   ],
15821	//   "parameters": {
15822	//     "name": {
15823	//       "description": "The name of the resource to update.",
15824	//       "location": "path",
15825	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+/fhir/[^/]+/[^/]+$",
15826	//       "required": true,
15827	//       "type": "string"
15828	//     }
15829	//   },
15830	//   "path": "v1alpha2/{+name}",
15831	//   "request": {
15832	//     "$ref": "HttpBody"
15833	//   },
15834	//   "response": {
15835	//     "$ref": "HttpBody"
15836	//   },
15837	//   "scopes": [
15838	//     "https://www.googleapis.com/auth/cloud-platform"
15839	//   ]
15840	// }
15841
15842}
15843
15844// method id "healthcare.projects.locations.datasets.fhirStores.fhir.read":
15845
15846type ProjectsLocationsDatasetsFhirStoresFhirReadCall struct {
15847	s            *Service
15848	name         string
15849	urlParams_   gensupport.URLParams
15850	ifNoneMatch_ string
15851	ctx_         context.Context
15852	header_      http.Header
15853}
15854
15855// Read: Gets the contents of a FHIR resource.
15856//
15857// Implements the FHIR standard read
15858// interaction
15859// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt
15860// p.html#read),
15861// [STU3](http://hl7.org/implement/standards/fhir/STU3/http
15862// .html#read)).
15863//
15864// Also supports the FHIR standard conditional read
15865// interaction
15866// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt
15867// p.html#cread),
15868// [STU3](http://hl7.org/implement/standards/fhir/STU3/htt
15869// p.html#cread))
15870// specified by supplying an `If-Modified-Since` header with a date/time
15871// value
15872// or an `If-None-Match` header with an ETag value.
15873//
15874// On success, the response body will contain a JSON-encoded
15875// representation
15876// of the resource.
15877// Errors generated by the FHIR store will contain a
15878// JSON-encoded
15879// `OperationOutcome` resource describing the reason for the error. If
15880// the
15881// request cannot be mapped to a valid API method on a FHIR store, a
15882// generic
15883// GCP error might be returned instead.
15884func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Read(name string) *ProjectsLocationsDatasetsFhirStoresFhirReadCall {
15885	c := &ProjectsLocationsDatasetsFhirStoresFhirReadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15886	c.name = name
15887	return c
15888}
15889
15890// Fields allows partial responses to be retrieved. See
15891// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15892// for more information.
15893func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirReadCall {
15894	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15895	return c
15896}
15897
15898// IfNoneMatch sets the optional parameter which makes the operation
15899// fail if the object's ETag matches the given value. This is useful for
15900// getting updates only after the object has changed since the last
15901// request. Use googleapi.IsNotModified to check whether the response
15902// error from Do is the result of In-None-Match.
15903func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirReadCall {
15904	c.ifNoneMatch_ = entityTag
15905	return c
15906}
15907
15908// Context sets the context to be used in this call's Do method. Any
15909// pending HTTP request will be aborted if the provided context is
15910// canceled.
15911func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirReadCall {
15912	c.ctx_ = ctx
15913	return c
15914}
15915
15916// Header returns an http.Header that can be modified by the caller to
15917// add HTTP headers to the request.
15918func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) Header() http.Header {
15919	if c.header_ == nil {
15920		c.header_ = make(http.Header)
15921	}
15922	return c.header_
15923}
15924
15925func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) doRequest(alt string) (*http.Response, error) {
15926	reqHeaders := make(http.Header)
15927	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
15928	for k, v := range c.header_ {
15929		reqHeaders[k] = v
15930	}
15931	reqHeaders.Set("User-Agent", c.s.userAgent())
15932	if c.ifNoneMatch_ != "" {
15933		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15934	}
15935	var body io.Reader = nil
15936	c.urlParams_.Set("alt", alt)
15937	c.urlParams_.Set("prettyPrint", "false")
15938	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
15939	urls += "?" + c.urlParams_.Encode()
15940	req, err := http.NewRequest("GET", urls, body)
15941	if err != nil {
15942		return nil, err
15943	}
15944	req.Header = reqHeaders
15945	googleapi.Expand(req.URL, map[string]string{
15946		"name": c.name,
15947	})
15948	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15949}
15950
15951// Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.read" call.
15952func (c *ProjectsLocationsDatasetsFhirStoresFhirReadCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
15953	gensupport.SetOptions(c.urlParams_, opts...)
15954	return c.doRequest("")
15955	// {
15956	//   "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.",
15957	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}",
15958	//   "httpMethod": "GET",
15959	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.read",
15960	//   "parameterOrder": [
15961	//     "name"
15962	//   ],
15963	//   "parameters": {
15964	//     "name": {
15965	//       "description": "The name of the resource to retrieve.",
15966	//       "location": "path",
15967	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+/fhir/[^/]+/[^/]+$",
15968	//       "required": true,
15969	//       "type": "string"
15970	//     }
15971	//   },
15972	//   "path": "v1alpha2/{+name}",
15973	//   "response": {
15974	//     "$ref": "HttpBody"
15975	//   },
15976	//   "scopes": [
15977	//     "https://www.googleapis.com/auth/cloud-platform"
15978	//   ]
15979	// }
15980
15981}
15982
15983// method id "healthcare.projects.locations.datasets.fhirStores.fhir.search":
15984
15985type ProjectsLocationsDatasetsFhirStoresFhirSearchCall struct {
15986	s                      *Service
15987	parent                 string
15988	searchresourcesrequest *SearchResourcesRequest
15989	urlParams_             gensupport.URLParams
15990	ctx_                   context.Context
15991	header_                http.Header
15992}
15993
15994// Search: Searches for resources in the given FHIR store according to
15995// criteria
15996// specified as query parameters.
15997//
15998// Implements the FHIR standard search
15999// interaction
16000// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt
16001// p.html#search),
16002// [STU3](http://hl7.org/implement/standards/fhir/STU3/ht
16003// tp.html#search))
16004// using the search semantics described in the FHIR Search
16005// specification
16006// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/s
16007// earch.html),
16008// [STU3](http://hl7.org/implement/standards/fhir/STU3/searc
16009// h.html)).
16010//
16011// Supports three methods of search defined by the specification:
16012//
16013// *  `GET [base]?[parameters]` to search across all resources.
16014// *  `GET [base]/[type]?[parameters]` to search resources of a
16015// specified
16016// type.
16017// *  `POST [base]/[type]/_search?[parameters]` as an alternate form
16018// having
16019// the same semantics as the `GET` method.
16020//
16021// The `GET` methods do not support compartment searches. The `POST`
16022// method
16023// does not support `application/x-www-form-urlencoded` search
16024// parameters.
16025//
16026// On success, the response body will contain a JSON-encoded
16027// representation
16028// of a `Bundle` resource of type `searchset`, containing the results of
16029// the
16030// search.
16031// Errors generated by the FHIR store will contain a
16032// JSON-encoded
16033// `OperationOutcome` resource describing the reason for the error. If
16034// the
16035// request cannot be mapped to a valid API method on a FHIR store, a
16036// generic
16037// GCP error might be returned instead.
16038//
16039// The server's capability statement, retrieved through
16040// capabilities, indicates what search parameters
16041// are supported on each FHIR resource. A list of all search
16042// parameters
16043// defined by the specification can be found in the FHIR Search
16044// Parameter
16045// Registry
16046// ([STU3](http://hl7.org/implement/standards/fhir/STU
16047// 3/searchparameter-registry.html)).
16048// FHIR search parameters for DSTU2 can be found on each resource's
16049// definition
16050// page.
16051//
16052// Supported search modifiers: `:missing`, `:exact`, `:contains`,
16053// `:text`,
16054// `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and
16055// `:recurse`.
16056//
16057// Supported search result parameters: `_sort`, `_count`,
16058// `_include`,
16059// `_revinclude`, `_summary=text`, `_summary=data`, and
16060// `_elements`.
16061//
16062// The maximum number of search results returned defaults to 100, which
16063// can
16064// be overridden by the `_count` parameter up to a maximum limit of
16065// 1000. If
16066// there are additional results, the returned `Bundle` will
16067// contain
16068// pagination links.
16069//
16070// Resources with a total size larger than 5MB or a field count larger
16071// than
16072// 50,000 might not be fully searchable as the server might trim its
16073// generated
16074// search index in those cases.
16075//
16076// Note: FHIR resources are indexed asynchronously, so there might be a
16077// slight
16078// delay between the time a resource is created or changes and when the
16079// change
16080// is reflected in search results.
16081func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Search(parent string, searchresourcesrequest *SearchResourcesRequest) *ProjectsLocationsDatasetsFhirStoresFhirSearchCall {
16082	c := &ProjectsLocationsDatasetsFhirStoresFhirSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16083	c.parent = parent
16084	c.searchresourcesrequest = searchresourcesrequest
16085	return c
16086}
16087
16088// Fields allows partial responses to be retrieved. See
16089// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16090// for more information.
16091func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirSearchCall {
16092	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16093	return c
16094}
16095
16096// Context sets the context to be used in this call's Do method. Any
16097// pending HTTP request will be aborted if the provided context is
16098// canceled.
16099func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirSearchCall {
16100	c.ctx_ = ctx
16101	return c
16102}
16103
16104// Header returns an http.Header that can be modified by the caller to
16105// add HTTP headers to the request.
16106func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) Header() http.Header {
16107	if c.header_ == nil {
16108		c.header_ = make(http.Header)
16109	}
16110	return c.header_
16111}
16112
16113func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) doRequest(alt string) (*http.Response, error) {
16114	reqHeaders := make(http.Header)
16115	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
16116	for k, v := range c.header_ {
16117		reqHeaders[k] = v
16118	}
16119	reqHeaders.Set("User-Agent", c.s.userAgent())
16120	var body io.Reader = nil
16121	body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchresourcesrequest)
16122	if err != nil {
16123		return nil, err
16124	}
16125	reqHeaders.Set("Content-Type", "application/json")
16126	c.urlParams_.Set("alt", alt)
16127	c.urlParams_.Set("prettyPrint", "false")
16128	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/fhir/_search")
16129	urls += "?" + c.urlParams_.Encode()
16130	req, err := http.NewRequest("POST", urls, body)
16131	if err != nil {
16132		return nil, err
16133	}
16134	req.Header = reqHeaders
16135	googleapi.Expand(req.URL, map[string]string{
16136		"parent": c.parent,
16137	})
16138	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16139}
16140
16141// Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.search" call.
16142func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
16143	gensupport.SetOptions(c.urlParams_, opts...)
16144	return c.doRequest("")
16145	// {
16146	//   "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.",
16147	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/_search",
16148	//   "httpMethod": "POST",
16149	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.search",
16150	//   "parameterOrder": [
16151	//     "parent"
16152	//   ],
16153	//   "parameters": {
16154	//     "parent": {
16155	//       "description": "Name of the FHIR store to retrieve resources from.",
16156	//       "location": "path",
16157	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$",
16158	//       "required": true,
16159	//       "type": "string"
16160	//     }
16161	//   },
16162	//   "path": "v1alpha2/{+parent}/fhir/_search",
16163	//   "request": {
16164	//     "$ref": "SearchResourcesRequest"
16165	//   },
16166	//   "response": {
16167	//     "$ref": "HttpBody"
16168	//   },
16169	//   "scopes": [
16170	//     "https://www.googleapis.com/auth/cloud-platform"
16171	//   ]
16172	// }
16173
16174}
16175
16176// method id "healthcare.projects.locations.datasets.fhirStores.fhir.update":
16177
16178type ProjectsLocationsDatasetsFhirStoresFhirUpdateCall struct {
16179	s          *Service
16180	name       string
16181	body_      io.Reader
16182	urlParams_ gensupport.URLParams
16183	ctx_       context.Context
16184	header_    http.Header
16185}
16186
16187// Update: Updates the entire contents of a resource.
16188//
16189// Implements the FHIR standard update
16190// interaction
16191// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt
16192// p.html#update),
16193// [STU3](http://hl7.org/implement/standards/fhir/STU3/ht
16194// tp.html#update)).
16195//
16196// If the specified resource does
16197// not exist and the FHIR store has
16198// enable_update_create set, creates the
16199// resource with the client-specified ID.
16200//
16201// The request body must contain a JSON-encoded FHIR resource, and the
16202// request
16203// headers must contain `Content-Type: application/fhir+json`. The
16204// resource
16205// must contain an `id` element having an identical value to the ID in
16206// the
16207// REST path of the request.
16208//
16209// On success, the response body will contain a JSON-encoded
16210// representation
16211// of the updated resource, including the server-assigned version
16212// ID.
16213// Errors generated by the FHIR store will contain a
16214// JSON-encoded
16215// `OperationOutcome` resource describing the reason for the error. If
16216// the
16217// request cannot be mapped to a valid API method on a FHIR store, a
16218// generic
16219// GCP error might be returned instead.
16220func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Update(name string, body_ io.Reader) *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall {
16221	c := &ProjectsLocationsDatasetsFhirStoresFhirUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16222	c.name = name
16223	c.body_ = body_
16224	return c
16225}
16226
16227// Fields allows partial responses to be retrieved. See
16228// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16229// for more information.
16230func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall {
16231	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16232	return c
16233}
16234
16235// Context sets the context to be used in this call's Do method. Any
16236// pending HTTP request will be aborted if the provided context is
16237// canceled.
16238func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall {
16239	c.ctx_ = ctx
16240	return c
16241}
16242
16243// Header returns an http.Header that can be modified by the caller to
16244// add HTTP headers to the request.
16245func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) Header() http.Header {
16246	if c.header_ == nil {
16247		c.header_ = make(http.Header)
16248	}
16249	return c.header_
16250}
16251
16252func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) doRequest(alt string) (*http.Response, error) {
16253	reqHeaders := make(http.Header)
16254	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
16255	for k, v := range c.header_ {
16256		reqHeaders[k] = v
16257	}
16258	reqHeaders.Set("User-Agent", c.s.userAgent())
16259	var body io.Reader = nil
16260	body = c.body_
16261	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
16262	urls += "?" + c.urlParams_.Encode()
16263	req, err := http.NewRequest("PUT", urls, body)
16264	if err != nil {
16265		return nil, err
16266	}
16267	req.Header = reqHeaders
16268	googleapi.Expand(req.URL, map[string]string{
16269		"name": c.name,
16270	})
16271	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16272}
16273
16274// Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.update" call.
16275func (c *ProjectsLocationsDatasetsFhirStoresFhirUpdateCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
16276	gensupport.SetOptions(c.urlParams_, opts...)
16277	return c.doRequest("")
16278	// {
16279	//   "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.",
16280	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}",
16281	//   "httpMethod": "PUT",
16282	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.update",
16283	//   "parameterOrder": [
16284	//     "name"
16285	//   ],
16286	//   "parameters": {
16287	//     "name": {
16288	//       "description": "The name of the resource to update.",
16289	//       "location": "path",
16290	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+/fhir/[^/]+/[^/]+$",
16291	//       "required": true,
16292	//       "type": "string"
16293	//     }
16294	//   },
16295	//   "path": "v1alpha2/{+name}",
16296	//   "request": {
16297	//     "$ref": "HttpBody"
16298	//   },
16299	//   "response": {
16300	//     "$ref": "HttpBody"
16301	//   },
16302	//   "scopes": [
16303	//     "https://www.googleapis.com/auth/cloud-platform"
16304	//   ]
16305	// }
16306
16307}
16308
16309// method id "healthcare.projects.locations.datasets.fhirStores.fhir.vread":
16310
16311type ProjectsLocationsDatasetsFhirStoresFhirVreadCall struct {
16312	s            *Service
16313	name         string
16314	urlParams_   gensupport.URLParams
16315	ifNoneMatch_ string
16316	ctx_         context.Context
16317	header_      http.Header
16318}
16319
16320// Vread: Gets the contents of a version (current or historical) of a
16321// FHIR resource
16322// by version ID.
16323//
16324// Implements the FHIR standard vread
16325// interaction
16326// ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/htt
16327// p.html#vread),
16328// [STU3](http://hl7.org/implement/standards/fhir/STU3/htt
16329// p.html#vread).
16330//
16331// On success, the response body will contain a JSON-encoded
16332// representation
16333// of the resource.
16334// Errors generated by the FHIR store will contain a
16335// JSON-encoded
16336// `OperationOutcome` resource describing the reason for the error. If
16337// the
16338// request cannot be mapped to a valid API method on a FHIR store, a
16339// generic
16340// GCP error might be returned instead.
16341func (r *ProjectsLocationsDatasetsFhirStoresFhirService) Vread(name string) *ProjectsLocationsDatasetsFhirStoresFhirVreadCall {
16342	c := &ProjectsLocationsDatasetsFhirStoresFhirVreadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16343	c.name = name
16344	return c
16345}
16346
16347// Fields allows partial responses to be retrieved. See
16348// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16349// for more information.
16350func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirVreadCall {
16351	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16352	return c
16353}
16354
16355// IfNoneMatch sets the optional parameter which makes the operation
16356// fail if the object's ETag matches the given value. This is useful for
16357// getting updates only after the object has changed since the last
16358// request. Use googleapi.IsNotModified to check whether the response
16359// error from Do is the result of In-None-Match.
16360func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirVreadCall {
16361	c.ifNoneMatch_ = entityTag
16362	return c
16363}
16364
16365// Context sets the context to be used in this call's Do method. Any
16366// pending HTTP request will be aborted if the provided context is
16367// canceled.
16368func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirVreadCall {
16369	c.ctx_ = ctx
16370	return c
16371}
16372
16373// Header returns an http.Header that can be modified by the caller to
16374// add HTTP headers to the request.
16375func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) Header() http.Header {
16376	if c.header_ == nil {
16377		c.header_ = make(http.Header)
16378	}
16379	return c.header_
16380}
16381
16382func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) doRequest(alt string) (*http.Response, error) {
16383	reqHeaders := make(http.Header)
16384	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
16385	for k, v := range c.header_ {
16386		reqHeaders[k] = v
16387	}
16388	reqHeaders.Set("User-Agent", c.s.userAgent())
16389	if c.ifNoneMatch_ != "" {
16390		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16391	}
16392	var body io.Reader = nil
16393	c.urlParams_.Set("alt", alt)
16394	c.urlParams_.Set("prettyPrint", "false")
16395	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
16396	urls += "?" + c.urlParams_.Encode()
16397	req, err := http.NewRequest("GET", urls, body)
16398	if err != nil {
16399		return nil, err
16400	}
16401	req.Header = reqHeaders
16402	googleapi.Expand(req.URL, map[string]string{
16403		"name": c.name,
16404	})
16405	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16406}
16407
16408// Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.vread" call.
16409func (c *ProjectsLocationsDatasetsFhirStoresFhirVreadCall) Do(opts ...googleapi.CallOption) (*http.Response, error) {
16410	gensupport.SetOptions(c.urlParams_, opts...)
16411	return c.doRequest("")
16412	// {
16413	//   "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.",
16414	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}/_history/{_historyId}",
16415	//   "httpMethod": "GET",
16416	//   "id": "healthcare.projects.locations.datasets.fhirStores.fhir.vread",
16417	//   "parameterOrder": [
16418	//     "name"
16419	//   ],
16420	//   "parameters": {
16421	//     "name": {
16422	//       "description": "The name of the resource version to retrieve.",
16423	//       "location": "path",
16424	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+/fhir/[^/]+/[^/]+/_history/[^/]+$",
16425	//       "required": true,
16426	//       "type": "string"
16427	//     }
16428	//   },
16429	//   "path": "v1alpha2/{+name}",
16430	//   "response": {
16431	//     "$ref": "HttpBody"
16432	//   },
16433	//   "scopes": [
16434	//     "https://www.googleapis.com/auth/cloud-platform"
16435	//   ]
16436	// }
16437
16438}
16439
16440// method id "healthcare.projects.locations.datasets.hl7V2Stores.create":
16441
16442type ProjectsLocationsDatasetsHl7V2StoresCreateCall struct {
16443	s          *Service
16444	parent     string
16445	hl7v2store *Hl7V2Store
16446	urlParams_ gensupport.URLParams
16447	ctx_       context.Context
16448	header_    http.Header
16449}
16450
16451// Create: Creates a new HL7v2 store within the parent dataset.
16452func (r *ProjectsLocationsDatasetsHl7V2StoresService) Create(parent string, hl7v2store *Hl7V2Store) *ProjectsLocationsDatasetsHl7V2StoresCreateCall {
16453	c := &ProjectsLocationsDatasetsHl7V2StoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16454	c.parent = parent
16455	c.hl7v2store = hl7v2store
16456	return c
16457}
16458
16459// Hl7V2StoreId sets the optional parameter "hl7V2StoreId": The ID of
16460// the HL7v2 store that is being created.
16461// The string must match the following regex:
16462// `[\p{L}\p{N}_\-\.]{1,256}`.
16463func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Hl7V2StoreId(hl7V2StoreId string) *ProjectsLocationsDatasetsHl7V2StoresCreateCall {
16464	c.urlParams_.Set("hl7V2StoreId", hl7V2StoreId)
16465	return c
16466}
16467
16468// Fields allows partial responses to be retrieved. See
16469// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16470// for more information.
16471func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresCreateCall {
16472	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16473	return c
16474}
16475
16476// Context sets the context to be used in this call's Do method. Any
16477// pending HTTP request will be aborted if the provided context is
16478// canceled.
16479func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresCreateCall {
16480	c.ctx_ = ctx
16481	return c
16482}
16483
16484// Header returns an http.Header that can be modified by the caller to
16485// add HTTP headers to the request.
16486func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Header() http.Header {
16487	if c.header_ == nil {
16488		c.header_ = make(http.Header)
16489	}
16490	return c.header_
16491}
16492
16493func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) doRequest(alt string) (*http.Response, error) {
16494	reqHeaders := make(http.Header)
16495	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
16496	for k, v := range c.header_ {
16497		reqHeaders[k] = v
16498	}
16499	reqHeaders.Set("User-Agent", c.s.userAgent())
16500	var body io.Reader = nil
16501	body, err := googleapi.WithoutDataWrapper.JSONReader(c.hl7v2store)
16502	if err != nil {
16503		return nil, err
16504	}
16505	reqHeaders.Set("Content-Type", "application/json")
16506	c.urlParams_.Set("alt", alt)
16507	c.urlParams_.Set("prettyPrint", "false")
16508	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/hl7V2Stores")
16509	urls += "?" + c.urlParams_.Encode()
16510	req, err := http.NewRequest("POST", urls, body)
16511	if err != nil {
16512		return nil, err
16513	}
16514	req.Header = reqHeaders
16515	googleapi.Expand(req.URL, map[string]string{
16516		"parent": c.parent,
16517	})
16518	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16519}
16520
16521// Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.create" call.
16522// Exactly one of *Hl7V2Store or error will be non-nil. Any non-2xx
16523// status code is an error. Response headers are in either
16524// *Hl7V2Store.ServerResponse.Header or (if a response was returned at
16525// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
16526// to check whether the returned error was because
16527// http.StatusNotModified was returned.
16528func (c *ProjectsLocationsDatasetsHl7V2StoresCreateCall) Do(opts ...googleapi.CallOption) (*Hl7V2Store, error) {
16529	gensupport.SetOptions(c.urlParams_, opts...)
16530	res, err := c.doRequest("json")
16531	if res != nil && res.StatusCode == http.StatusNotModified {
16532		if res.Body != nil {
16533			res.Body.Close()
16534		}
16535		return nil, &googleapi.Error{
16536			Code:   res.StatusCode,
16537			Header: res.Header,
16538		}
16539	}
16540	if err != nil {
16541		return nil, err
16542	}
16543	defer googleapi.CloseBody(res)
16544	if err := googleapi.CheckResponse(res); err != nil {
16545		return nil, err
16546	}
16547	ret := &Hl7V2Store{
16548		ServerResponse: googleapi.ServerResponse{
16549			Header:         res.Header,
16550			HTTPStatusCode: res.StatusCode,
16551		},
16552	}
16553	target := &ret
16554	if err := gensupport.DecodeResponse(target, res); err != nil {
16555		return nil, err
16556	}
16557	return ret, nil
16558	// {
16559	//   "description": "Creates a new HL7v2 store within the parent dataset.",
16560	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores",
16561	//   "httpMethod": "POST",
16562	//   "id": "healthcare.projects.locations.datasets.hl7V2Stores.create",
16563	//   "parameterOrder": [
16564	//     "parent"
16565	//   ],
16566	//   "parameters": {
16567	//     "hl7V2StoreId": {
16568	//       "description": "The ID of the HL7v2 store that is being created.\nThe string must match the following regex: `[\\p{L}\\p{N}_\\-\\.]{1,256}`.",
16569	//       "location": "query",
16570	//       "type": "string"
16571	//     },
16572	//     "parent": {
16573	//       "description": "The name of the dataset this HL7v2 store belongs to.",
16574	//       "location": "path",
16575	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
16576	//       "required": true,
16577	//       "type": "string"
16578	//     }
16579	//   },
16580	//   "path": "v1alpha2/{+parent}/hl7V2Stores",
16581	//   "request": {
16582	//     "$ref": "Hl7V2Store"
16583	//   },
16584	//   "response": {
16585	//     "$ref": "Hl7V2Store"
16586	//   },
16587	//   "scopes": [
16588	//     "https://www.googleapis.com/auth/cloud-platform"
16589	//   ]
16590	// }
16591
16592}
16593
16594// method id "healthcare.projects.locations.datasets.hl7V2Stores.delete":
16595
16596type ProjectsLocationsDatasetsHl7V2StoresDeleteCall struct {
16597	s          *Service
16598	name       string
16599	urlParams_ gensupport.URLParams
16600	ctx_       context.Context
16601	header_    http.Header
16602}
16603
16604// Delete: Deletes the specified HL7v2 store and removes all messages
16605// that are
16606// contained within it.
16607func (r *ProjectsLocationsDatasetsHl7V2StoresService) Delete(name string) *ProjectsLocationsDatasetsHl7V2StoresDeleteCall {
16608	c := &ProjectsLocationsDatasetsHl7V2StoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16609	c.name = name
16610	return c
16611}
16612
16613// Fields allows partial responses to be retrieved. See
16614// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16615// for more information.
16616func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresDeleteCall {
16617	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16618	return c
16619}
16620
16621// Context sets the context to be used in this call's Do method. Any
16622// pending HTTP request will be aborted if the provided context is
16623// canceled.
16624func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresDeleteCall {
16625	c.ctx_ = ctx
16626	return c
16627}
16628
16629// Header returns an http.Header that can be modified by the caller to
16630// add HTTP headers to the request.
16631func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) Header() http.Header {
16632	if c.header_ == nil {
16633		c.header_ = make(http.Header)
16634	}
16635	return c.header_
16636}
16637
16638func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) doRequest(alt string) (*http.Response, error) {
16639	reqHeaders := make(http.Header)
16640	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
16641	for k, v := range c.header_ {
16642		reqHeaders[k] = v
16643	}
16644	reqHeaders.Set("User-Agent", c.s.userAgent())
16645	var body io.Reader = nil
16646	c.urlParams_.Set("alt", alt)
16647	c.urlParams_.Set("prettyPrint", "false")
16648	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
16649	urls += "?" + c.urlParams_.Encode()
16650	req, err := http.NewRequest("DELETE", urls, body)
16651	if err != nil {
16652		return nil, err
16653	}
16654	req.Header = reqHeaders
16655	googleapi.Expand(req.URL, map[string]string{
16656		"name": c.name,
16657	})
16658	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16659}
16660
16661// Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.delete" call.
16662// Exactly one of *Empty or error will be non-nil. Any non-2xx status
16663// code is an error. Response headers are in either
16664// *Empty.ServerResponse.Header or (if a response was returned at all)
16665// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
16666// check whether the returned error was because http.StatusNotModified
16667// was returned.
16668func (c *ProjectsLocationsDatasetsHl7V2StoresDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
16669	gensupport.SetOptions(c.urlParams_, opts...)
16670	res, err := c.doRequest("json")
16671	if res != nil && res.StatusCode == http.StatusNotModified {
16672		if res.Body != nil {
16673			res.Body.Close()
16674		}
16675		return nil, &googleapi.Error{
16676			Code:   res.StatusCode,
16677			Header: res.Header,
16678		}
16679	}
16680	if err != nil {
16681		return nil, err
16682	}
16683	defer googleapi.CloseBody(res)
16684	if err := googleapi.CheckResponse(res); err != nil {
16685		return nil, err
16686	}
16687	ret := &Empty{
16688		ServerResponse: googleapi.ServerResponse{
16689			Header:         res.Header,
16690			HTTPStatusCode: res.StatusCode,
16691		},
16692	}
16693	target := &ret
16694	if err := gensupport.DecodeResponse(target, res); err != nil {
16695		return nil, err
16696	}
16697	return ret, nil
16698	// {
16699	//   "description": "Deletes the specified HL7v2 store and removes all messages that are\ncontained within it.",
16700	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}",
16701	//   "httpMethod": "DELETE",
16702	//   "id": "healthcare.projects.locations.datasets.hl7V2Stores.delete",
16703	//   "parameterOrder": [
16704	//     "name"
16705	//   ],
16706	//   "parameters": {
16707	//     "name": {
16708	//       "description": "The resource name of the HL7v2 store to delete.",
16709	//       "location": "path",
16710	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$",
16711	//       "required": true,
16712	//       "type": "string"
16713	//     }
16714	//   },
16715	//   "path": "v1alpha2/{+name}",
16716	//   "response": {
16717	//     "$ref": "Empty"
16718	//   },
16719	//   "scopes": [
16720	//     "https://www.googleapis.com/auth/cloud-platform"
16721	//   ]
16722	// }
16723
16724}
16725
16726// method id "healthcare.projects.locations.datasets.hl7V2Stores.get":
16727
16728type ProjectsLocationsDatasetsHl7V2StoresGetCall struct {
16729	s            *Service
16730	name         string
16731	urlParams_   gensupport.URLParams
16732	ifNoneMatch_ string
16733	ctx_         context.Context
16734	header_      http.Header
16735}
16736
16737// Get: Gets the specified HL7v2 store.
16738func (r *ProjectsLocationsDatasetsHl7V2StoresService) Get(name string) *ProjectsLocationsDatasetsHl7V2StoresGetCall {
16739	c := &ProjectsLocationsDatasetsHl7V2StoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16740	c.name = name
16741	return c
16742}
16743
16744// Fields allows partial responses to be retrieved. See
16745// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16746// for more information.
16747func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresGetCall {
16748	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16749	return c
16750}
16751
16752// IfNoneMatch sets the optional parameter which makes the operation
16753// fail if the object's ETag matches the given value. This is useful for
16754// getting updates only after the object has changed since the last
16755// request. Use googleapi.IsNotModified to check whether the response
16756// error from Do is the result of In-None-Match.
16757func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresGetCall {
16758	c.ifNoneMatch_ = entityTag
16759	return c
16760}
16761
16762// Context sets the context to be used in this call's Do method. Any
16763// pending HTTP request will be aborted if the provided context is
16764// canceled.
16765func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresGetCall {
16766	c.ctx_ = ctx
16767	return c
16768}
16769
16770// Header returns an http.Header that can be modified by the caller to
16771// add HTTP headers to the request.
16772func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) Header() http.Header {
16773	if c.header_ == nil {
16774		c.header_ = make(http.Header)
16775	}
16776	return c.header_
16777}
16778
16779func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) doRequest(alt string) (*http.Response, error) {
16780	reqHeaders := make(http.Header)
16781	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
16782	for k, v := range c.header_ {
16783		reqHeaders[k] = v
16784	}
16785	reqHeaders.Set("User-Agent", c.s.userAgent())
16786	if c.ifNoneMatch_ != "" {
16787		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16788	}
16789	var body io.Reader = nil
16790	c.urlParams_.Set("alt", alt)
16791	c.urlParams_.Set("prettyPrint", "false")
16792	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
16793	urls += "?" + c.urlParams_.Encode()
16794	req, err := http.NewRequest("GET", urls, body)
16795	if err != nil {
16796		return nil, err
16797	}
16798	req.Header = reqHeaders
16799	googleapi.Expand(req.URL, map[string]string{
16800		"name": c.name,
16801	})
16802	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16803}
16804
16805// Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.get" call.
16806// Exactly one of *Hl7V2Store or error will be non-nil. Any non-2xx
16807// status code is an error. Response headers are in either
16808// *Hl7V2Store.ServerResponse.Header or (if a response was returned at
16809// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
16810// to check whether the returned error was because
16811// http.StatusNotModified was returned.
16812func (c *ProjectsLocationsDatasetsHl7V2StoresGetCall) Do(opts ...googleapi.CallOption) (*Hl7V2Store, error) {
16813	gensupport.SetOptions(c.urlParams_, opts...)
16814	res, err := c.doRequest("json")
16815	if res != nil && res.StatusCode == http.StatusNotModified {
16816		if res.Body != nil {
16817			res.Body.Close()
16818		}
16819		return nil, &googleapi.Error{
16820			Code:   res.StatusCode,
16821			Header: res.Header,
16822		}
16823	}
16824	if err != nil {
16825		return nil, err
16826	}
16827	defer googleapi.CloseBody(res)
16828	if err := googleapi.CheckResponse(res); err != nil {
16829		return nil, err
16830	}
16831	ret := &Hl7V2Store{
16832		ServerResponse: googleapi.ServerResponse{
16833			Header:         res.Header,
16834			HTTPStatusCode: res.StatusCode,
16835		},
16836	}
16837	target := &ret
16838	if err := gensupport.DecodeResponse(target, res); err != nil {
16839		return nil, err
16840	}
16841	return ret, nil
16842	// {
16843	//   "description": "Gets the specified HL7v2 store.",
16844	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}",
16845	//   "httpMethod": "GET",
16846	//   "id": "healthcare.projects.locations.datasets.hl7V2Stores.get",
16847	//   "parameterOrder": [
16848	//     "name"
16849	//   ],
16850	//   "parameters": {
16851	//     "name": {
16852	//       "description": "The resource name of the HL7v2 store to get.",
16853	//       "location": "path",
16854	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$",
16855	//       "required": true,
16856	//       "type": "string"
16857	//     }
16858	//   },
16859	//   "path": "v1alpha2/{+name}",
16860	//   "response": {
16861	//     "$ref": "Hl7V2Store"
16862	//   },
16863	//   "scopes": [
16864	//     "https://www.googleapis.com/auth/cloud-platform"
16865	//   ]
16866	// }
16867
16868}
16869
16870// method id "healthcare.projects.locations.datasets.hl7V2Stores.getIamPolicy":
16871
16872type ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall struct {
16873	s            *Service
16874	resource     string
16875	urlParams_   gensupport.URLParams
16876	ifNoneMatch_ string
16877	ctx_         context.Context
16878	header_      http.Header
16879}
16880
16881// GetIamPolicy: Gets the access control policy for a resource.
16882// Returns an empty policy if the resource exists and does not have a
16883// policy
16884// set.
16885func (r *ProjectsLocationsDatasetsHl7V2StoresService) GetIamPolicy(resource string) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall {
16886	c := &ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16887	c.resource = resource
16888	return c
16889}
16890
16891// OptionsRequestedPolicyVersion sets the optional parameter
16892// "options.requestedPolicyVersion": The policy format version to be
16893// returned.
16894// Acceptable values are 0, 1, and 3.
16895// If the value is 0, or the field is omitted, policy format version 1
16896// will be
16897// returned.
16898func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall {
16899	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
16900	return c
16901}
16902
16903// Fields allows partial responses to be retrieved. See
16904// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16905// for more information.
16906func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall {
16907	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16908	return c
16909}
16910
16911// IfNoneMatch sets the optional parameter which makes the operation
16912// fail if the object's ETag matches the given value. This is useful for
16913// getting updates only after the object has changed since the last
16914// request. Use googleapi.IsNotModified to check whether the response
16915// error from Do is the result of In-None-Match.
16916func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall {
16917	c.ifNoneMatch_ = entityTag
16918	return c
16919}
16920
16921// Context sets the context to be used in this call's Do method. Any
16922// pending HTTP request will be aborted if the provided context is
16923// canceled.
16924func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall {
16925	c.ctx_ = ctx
16926	return c
16927}
16928
16929// Header returns an http.Header that can be modified by the caller to
16930// add HTTP headers to the request.
16931func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Header() http.Header {
16932	if c.header_ == nil {
16933		c.header_ = make(http.Header)
16934	}
16935	return c.header_
16936}
16937
16938func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
16939	reqHeaders := make(http.Header)
16940	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
16941	for k, v := range c.header_ {
16942		reqHeaders[k] = v
16943	}
16944	reqHeaders.Set("User-Agent", c.s.userAgent())
16945	if c.ifNoneMatch_ != "" {
16946		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16947	}
16948	var body io.Reader = nil
16949	c.urlParams_.Set("alt", alt)
16950	c.urlParams_.Set("prettyPrint", "false")
16951	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:getIamPolicy")
16952	urls += "?" + c.urlParams_.Encode()
16953	req, err := http.NewRequest("GET", urls, body)
16954	if err != nil {
16955		return nil, err
16956	}
16957	req.Header = reqHeaders
16958	googleapi.Expand(req.URL, map[string]string{
16959		"resource": c.resource,
16960	})
16961	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16962}
16963
16964// Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.getIamPolicy" call.
16965// Exactly one of *Policy or error will be non-nil. Any non-2xx status
16966// code is an error. Response headers are in either
16967// *Policy.ServerResponse.Header or (if a response was returned at all)
16968// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
16969// check whether the returned error was because http.StatusNotModified
16970// was returned.
16971func (c *ProjectsLocationsDatasetsHl7V2StoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
16972	gensupport.SetOptions(c.urlParams_, opts...)
16973	res, err := c.doRequest("json")
16974	if res != nil && res.StatusCode == http.StatusNotModified {
16975		if res.Body != nil {
16976			res.Body.Close()
16977		}
16978		return nil, &googleapi.Error{
16979			Code:   res.StatusCode,
16980			Header: res.Header,
16981		}
16982	}
16983	if err != nil {
16984		return nil, err
16985	}
16986	defer googleapi.CloseBody(res)
16987	if err := googleapi.CheckResponse(res); err != nil {
16988		return nil, err
16989	}
16990	ret := &Policy{
16991		ServerResponse: googleapi.ServerResponse{
16992			Header:         res.Header,
16993			HTTPStatusCode: res.StatusCode,
16994		},
16995	}
16996	target := &ret
16997	if err := gensupport.DecodeResponse(target, res); err != nil {
16998		return nil, err
16999	}
17000	return ret, nil
17001	// {
17002	//   "description": "Gets the access control policy for a resource.\nReturns an empty policy if the resource exists and does not have a policy\nset.",
17003	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}:getIamPolicy",
17004	//   "httpMethod": "GET",
17005	//   "id": "healthcare.projects.locations.datasets.hl7V2Stores.getIamPolicy",
17006	//   "parameterOrder": [
17007	//     "resource"
17008	//   ],
17009	//   "parameters": {
17010	//     "options.requestedPolicyVersion": {
17011	//       "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.",
17012	//       "format": "int32",
17013	//       "location": "query",
17014	//       "type": "integer"
17015	//     },
17016	//     "resource": {
17017	//       "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.",
17018	//       "location": "path",
17019	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$",
17020	//       "required": true,
17021	//       "type": "string"
17022	//     }
17023	//   },
17024	//   "path": "v1alpha2/{+resource}:getIamPolicy",
17025	//   "response": {
17026	//     "$ref": "Policy"
17027	//   },
17028	//   "scopes": [
17029	//     "https://www.googleapis.com/auth/cloud-platform"
17030	//   ]
17031	// }
17032
17033}
17034
17035// method id "healthcare.projects.locations.datasets.hl7V2Stores.list":
17036
17037type ProjectsLocationsDatasetsHl7V2StoresListCall struct {
17038	s            *Service
17039	parent       string
17040	urlParams_   gensupport.URLParams
17041	ifNoneMatch_ string
17042	ctx_         context.Context
17043	header_      http.Header
17044}
17045
17046// List: Lists the HL7v2 stores in the given dataset.
17047func (r *ProjectsLocationsDatasetsHl7V2StoresService) List(parent string) *ProjectsLocationsDatasetsHl7V2StoresListCall {
17048	c := &ProjectsLocationsDatasetsHl7V2StoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17049	c.parent = parent
17050	return c
17051}
17052
17053// Filter sets the optional parameter "filter": Restricts stores
17054// returned to those matching a filter.
17055// Syntax:
17056// https://cloud.google.com/appengine/docs/standard/python/search
17057// /query_strings
17058// Only filtering on labels is supported, for example
17059// `labels.key=value`.
17060func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Filter(filter string) *ProjectsLocationsDatasetsHl7V2StoresListCall {
17061	c.urlParams_.Set("filter", filter)
17062	return c
17063}
17064
17065// PageSize sets the optional parameter "pageSize": Limit on the number
17066// of HL7v2 stores to return in a single response.
17067// If zero the default page size of 100 is used.
17068func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsHl7V2StoresListCall {
17069	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
17070	return c
17071}
17072
17073// PageToken sets the optional parameter "pageToken": The
17074// next_page_token value returned from the previous List request, if
17075// any.
17076func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsHl7V2StoresListCall {
17077	c.urlParams_.Set("pageToken", pageToken)
17078	return c
17079}
17080
17081// Fields allows partial responses to be retrieved. See
17082// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17083// for more information.
17084func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresListCall {
17085	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17086	return c
17087}
17088
17089// IfNoneMatch sets the optional parameter which makes the operation
17090// fail if the object's ETag matches the given value. This is useful for
17091// getting updates only after the object has changed since the last
17092// request. Use googleapi.IsNotModified to check whether the response
17093// error from Do is the result of In-None-Match.
17094func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresListCall {
17095	c.ifNoneMatch_ = entityTag
17096	return c
17097}
17098
17099// Context sets the context to be used in this call's Do method. Any
17100// pending HTTP request will be aborted if the provided context is
17101// canceled.
17102func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresListCall {
17103	c.ctx_ = ctx
17104	return c
17105}
17106
17107// Header returns an http.Header that can be modified by the caller to
17108// add HTTP headers to the request.
17109func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Header() http.Header {
17110	if c.header_ == nil {
17111		c.header_ = make(http.Header)
17112	}
17113	return c.header_
17114}
17115
17116func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) doRequest(alt string) (*http.Response, error) {
17117	reqHeaders := make(http.Header)
17118	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
17119	for k, v := range c.header_ {
17120		reqHeaders[k] = v
17121	}
17122	reqHeaders.Set("User-Agent", c.s.userAgent())
17123	if c.ifNoneMatch_ != "" {
17124		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17125	}
17126	var body io.Reader = nil
17127	c.urlParams_.Set("alt", alt)
17128	c.urlParams_.Set("prettyPrint", "false")
17129	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/hl7V2Stores")
17130	urls += "?" + c.urlParams_.Encode()
17131	req, err := http.NewRequest("GET", urls, body)
17132	if err != nil {
17133		return nil, err
17134	}
17135	req.Header = reqHeaders
17136	googleapi.Expand(req.URL, map[string]string{
17137		"parent": c.parent,
17138	})
17139	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17140}
17141
17142// Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.list" call.
17143// Exactly one of *ListHl7V2StoresResponse or error will be non-nil. Any
17144// non-2xx status code is an error. Response headers are in either
17145// *ListHl7V2StoresResponse.ServerResponse.Header or (if a response was
17146// returned at all) in error.(*googleapi.Error).Header. Use
17147// googleapi.IsNotModified to check whether the returned error was
17148// because http.StatusNotModified was returned.
17149func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Do(opts ...googleapi.CallOption) (*ListHl7V2StoresResponse, error) {
17150	gensupport.SetOptions(c.urlParams_, opts...)
17151	res, err := c.doRequest("json")
17152	if res != nil && res.StatusCode == http.StatusNotModified {
17153		if res.Body != nil {
17154			res.Body.Close()
17155		}
17156		return nil, &googleapi.Error{
17157			Code:   res.StatusCode,
17158			Header: res.Header,
17159		}
17160	}
17161	if err != nil {
17162		return nil, err
17163	}
17164	defer googleapi.CloseBody(res)
17165	if err := googleapi.CheckResponse(res); err != nil {
17166		return nil, err
17167	}
17168	ret := &ListHl7V2StoresResponse{
17169		ServerResponse: googleapi.ServerResponse{
17170			Header:         res.Header,
17171			HTTPStatusCode: res.StatusCode,
17172		},
17173	}
17174	target := &ret
17175	if err := gensupport.DecodeResponse(target, res); err != nil {
17176		return nil, err
17177	}
17178	return ret, nil
17179	// {
17180	//   "description": "Lists the HL7v2 stores in the given dataset.",
17181	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores",
17182	//   "httpMethod": "GET",
17183	//   "id": "healthcare.projects.locations.datasets.hl7V2Stores.list",
17184	//   "parameterOrder": [
17185	//     "parent"
17186	//   ],
17187	//   "parameters": {
17188	//     "filter": {
17189	//       "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`.",
17190	//       "location": "query",
17191	//       "type": "string"
17192	//     },
17193	//     "pageSize": {
17194	//       "description": "Limit on the number of HL7v2 stores to return in a single response.\nIf zero the default page size of 100 is used.",
17195	//       "format": "int32",
17196	//       "location": "query",
17197	//       "type": "integer"
17198	//     },
17199	//     "pageToken": {
17200	//       "description": "The next_page_token value returned from the previous List request, if any.",
17201	//       "location": "query",
17202	//       "type": "string"
17203	//     },
17204	//     "parent": {
17205	//       "description": "Name of the dataset.",
17206	//       "location": "path",
17207	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
17208	//       "required": true,
17209	//       "type": "string"
17210	//     }
17211	//   },
17212	//   "path": "v1alpha2/{+parent}/hl7V2Stores",
17213	//   "response": {
17214	//     "$ref": "ListHl7V2StoresResponse"
17215	//   },
17216	//   "scopes": [
17217	//     "https://www.googleapis.com/auth/cloud-platform"
17218	//   ]
17219	// }
17220
17221}
17222
17223// Pages invokes f for each page of results.
17224// A non-nil error returned from f will halt the iteration.
17225// The provided context supersedes any context provided to the Context method.
17226func (c *ProjectsLocationsDatasetsHl7V2StoresListCall) Pages(ctx context.Context, f func(*ListHl7V2StoresResponse) error) error {
17227	c.ctx_ = ctx
17228	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
17229	for {
17230		x, err := c.Do()
17231		if err != nil {
17232			return err
17233		}
17234		if err := f(x); err != nil {
17235			return err
17236		}
17237		if x.NextPageToken == "" {
17238			return nil
17239		}
17240		c.PageToken(x.NextPageToken)
17241	}
17242}
17243
17244// method id "healthcare.projects.locations.datasets.hl7V2Stores.patch":
17245
17246type ProjectsLocationsDatasetsHl7V2StoresPatchCall struct {
17247	s          *Service
17248	name       string
17249	hl7v2store *Hl7V2Store
17250	urlParams_ gensupport.URLParams
17251	ctx_       context.Context
17252	header_    http.Header
17253}
17254
17255// Patch: Updates the HL7v2 store.
17256func (r *ProjectsLocationsDatasetsHl7V2StoresService) Patch(name string, hl7v2store *Hl7V2Store) *ProjectsLocationsDatasetsHl7V2StoresPatchCall {
17257	c := &ProjectsLocationsDatasetsHl7V2StoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17258	c.name = name
17259	c.hl7v2store = hl7v2store
17260	return c
17261}
17262
17263// UpdateMask sets the optional parameter "updateMask": The update mask
17264// applies to the resource. For the `FieldMask`
17265// definition,
17266// see
17267// https://developers.google.com/protocol-buffers/docs/re
17268// ference/google.protobuf#fieldmask
17269func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsHl7V2StoresPatchCall {
17270	c.urlParams_.Set("updateMask", updateMask)
17271	return c
17272}
17273
17274// Fields allows partial responses to be retrieved. See
17275// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17276// for more information.
17277func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresPatchCall {
17278	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17279	return c
17280}
17281
17282// Context sets the context to be used in this call's Do method. Any
17283// pending HTTP request will be aborted if the provided context is
17284// canceled.
17285func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresPatchCall {
17286	c.ctx_ = ctx
17287	return c
17288}
17289
17290// Header returns an http.Header that can be modified by the caller to
17291// add HTTP headers to the request.
17292func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) Header() http.Header {
17293	if c.header_ == nil {
17294		c.header_ = make(http.Header)
17295	}
17296	return c.header_
17297}
17298
17299func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) doRequest(alt string) (*http.Response, error) {
17300	reqHeaders := make(http.Header)
17301	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
17302	for k, v := range c.header_ {
17303		reqHeaders[k] = v
17304	}
17305	reqHeaders.Set("User-Agent", c.s.userAgent())
17306	var body io.Reader = nil
17307	body, err := googleapi.WithoutDataWrapper.JSONReader(c.hl7v2store)
17308	if err != nil {
17309		return nil, err
17310	}
17311	reqHeaders.Set("Content-Type", "application/json")
17312	c.urlParams_.Set("alt", alt)
17313	c.urlParams_.Set("prettyPrint", "false")
17314	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
17315	urls += "?" + c.urlParams_.Encode()
17316	req, err := http.NewRequest("PATCH", urls, body)
17317	if err != nil {
17318		return nil, err
17319	}
17320	req.Header = reqHeaders
17321	googleapi.Expand(req.URL, map[string]string{
17322		"name": c.name,
17323	})
17324	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17325}
17326
17327// Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.patch" call.
17328// Exactly one of *Hl7V2Store or error will be non-nil. Any non-2xx
17329// status code is an error. Response headers are in either
17330// *Hl7V2Store.ServerResponse.Header or (if a response was returned at
17331// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
17332// to check whether the returned error was because
17333// http.StatusNotModified was returned.
17334func (c *ProjectsLocationsDatasetsHl7V2StoresPatchCall) Do(opts ...googleapi.CallOption) (*Hl7V2Store, error) {
17335	gensupport.SetOptions(c.urlParams_, opts...)
17336	res, err := c.doRequest("json")
17337	if res != nil && res.StatusCode == http.StatusNotModified {
17338		if res.Body != nil {
17339			res.Body.Close()
17340		}
17341		return nil, &googleapi.Error{
17342			Code:   res.StatusCode,
17343			Header: res.Header,
17344		}
17345	}
17346	if err != nil {
17347		return nil, err
17348	}
17349	defer googleapi.CloseBody(res)
17350	if err := googleapi.CheckResponse(res); err != nil {
17351		return nil, err
17352	}
17353	ret := &Hl7V2Store{
17354		ServerResponse: googleapi.ServerResponse{
17355			Header:         res.Header,
17356			HTTPStatusCode: res.StatusCode,
17357		},
17358	}
17359	target := &ret
17360	if err := gensupport.DecodeResponse(target, res); err != nil {
17361		return nil, err
17362	}
17363	return ret, nil
17364	// {
17365	//   "description": "Updates the HL7v2 store.",
17366	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}",
17367	//   "httpMethod": "PATCH",
17368	//   "id": "healthcare.projects.locations.datasets.hl7V2Stores.patch",
17369	//   "parameterOrder": [
17370	//     "name"
17371	//   ],
17372	//   "parameters": {
17373	//     "name": {
17374	//       "description": "Output only. Resource name of the HL7v2 store, of the form\n`projects/{project_id}/datasets/{dataset_id}/hl7V2Stores/{hl7v2_store_id}`.",
17375	//       "location": "path",
17376	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$",
17377	//       "required": true,
17378	//       "type": "string"
17379	//     },
17380	//     "updateMask": {
17381	//       "description": "The update mask applies to the resource. For the `FieldMask` definition,\nsee\nhttps://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask",
17382	//       "format": "google-fieldmask",
17383	//       "location": "query",
17384	//       "type": "string"
17385	//     }
17386	//   },
17387	//   "path": "v1alpha2/{+name}",
17388	//   "request": {
17389	//     "$ref": "Hl7V2Store"
17390	//   },
17391	//   "response": {
17392	//     "$ref": "Hl7V2Store"
17393	//   },
17394	//   "scopes": [
17395	//     "https://www.googleapis.com/auth/cloud-platform"
17396	//   ]
17397	// }
17398
17399}
17400
17401// method id "healthcare.projects.locations.datasets.hl7V2Stores.setIamPolicy":
17402
17403type ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall struct {
17404	s                   *Service
17405	resource            string
17406	setiampolicyrequest *SetIamPolicyRequest
17407	urlParams_          gensupport.URLParams
17408	ctx_                context.Context
17409	header_             http.Header
17410}
17411
17412// SetIamPolicy: Sets the access control policy on the specified
17413// resource. Replaces any
17414// existing policy.
17415func (r *ProjectsLocationsDatasetsHl7V2StoresService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall {
17416	c := &ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17417	c.resource = resource
17418	c.setiampolicyrequest = setiampolicyrequest
17419	return c
17420}
17421
17422// Fields allows partial responses to be retrieved. See
17423// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17424// for more information.
17425func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall {
17426	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17427	return c
17428}
17429
17430// Context sets the context to be used in this call's Do method. Any
17431// pending HTTP request will be aborted if the provided context is
17432// canceled.
17433func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall {
17434	c.ctx_ = ctx
17435	return c
17436}
17437
17438// Header returns an http.Header that can be modified by the caller to
17439// add HTTP headers to the request.
17440func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Header() http.Header {
17441	if c.header_ == nil {
17442		c.header_ = make(http.Header)
17443	}
17444	return c.header_
17445}
17446
17447func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
17448	reqHeaders := make(http.Header)
17449	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
17450	for k, v := range c.header_ {
17451		reqHeaders[k] = v
17452	}
17453	reqHeaders.Set("User-Agent", c.s.userAgent())
17454	var body io.Reader = nil
17455	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
17456	if err != nil {
17457		return nil, err
17458	}
17459	reqHeaders.Set("Content-Type", "application/json")
17460	c.urlParams_.Set("alt", alt)
17461	c.urlParams_.Set("prettyPrint", "false")
17462	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:setIamPolicy")
17463	urls += "?" + c.urlParams_.Encode()
17464	req, err := http.NewRequest("POST", urls, body)
17465	if err != nil {
17466		return nil, err
17467	}
17468	req.Header = reqHeaders
17469	googleapi.Expand(req.URL, map[string]string{
17470		"resource": c.resource,
17471	})
17472	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17473}
17474
17475// Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.setIamPolicy" call.
17476// Exactly one of *Policy or error will be non-nil. Any non-2xx status
17477// code is an error. Response headers are in either
17478// *Policy.ServerResponse.Header or (if a response was returned at all)
17479// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
17480// check whether the returned error was because http.StatusNotModified
17481// was returned.
17482func (c *ProjectsLocationsDatasetsHl7V2StoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
17483	gensupport.SetOptions(c.urlParams_, opts...)
17484	res, err := c.doRequest("json")
17485	if res != nil && res.StatusCode == http.StatusNotModified {
17486		if res.Body != nil {
17487			res.Body.Close()
17488		}
17489		return nil, &googleapi.Error{
17490			Code:   res.StatusCode,
17491			Header: res.Header,
17492		}
17493	}
17494	if err != nil {
17495		return nil, err
17496	}
17497	defer googleapi.CloseBody(res)
17498	if err := googleapi.CheckResponse(res); err != nil {
17499		return nil, err
17500	}
17501	ret := &Policy{
17502		ServerResponse: googleapi.ServerResponse{
17503			Header:         res.Header,
17504			HTTPStatusCode: res.StatusCode,
17505		},
17506	}
17507	target := &ret
17508	if err := gensupport.DecodeResponse(target, res); err != nil {
17509		return nil, err
17510	}
17511	return ret, nil
17512	// {
17513	//   "description": "Sets the access control policy on the specified resource. Replaces any\nexisting policy.",
17514	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}:setIamPolicy",
17515	//   "httpMethod": "POST",
17516	//   "id": "healthcare.projects.locations.datasets.hl7V2Stores.setIamPolicy",
17517	//   "parameterOrder": [
17518	//     "resource"
17519	//   ],
17520	//   "parameters": {
17521	//     "resource": {
17522	//       "description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.",
17523	//       "location": "path",
17524	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$",
17525	//       "required": true,
17526	//       "type": "string"
17527	//     }
17528	//   },
17529	//   "path": "v1alpha2/{+resource}:setIamPolicy",
17530	//   "request": {
17531	//     "$ref": "SetIamPolicyRequest"
17532	//   },
17533	//   "response": {
17534	//     "$ref": "Policy"
17535	//   },
17536	//   "scopes": [
17537	//     "https://www.googleapis.com/auth/cloud-platform"
17538	//   ]
17539	// }
17540
17541}
17542
17543// method id "healthcare.projects.locations.datasets.hl7V2Stores.testIamPermissions":
17544
17545type ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall struct {
17546	s                         *Service
17547	resource                  string
17548	testiampermissionsrequest *TestIamPermissionsRequest
17549	urlParams_                gensupport.URLParams
17550	ctx_                      context.Context
17551	header_                   http.Header
17552}
17553
17554// TestIamPermissions: Returns permissions that a caller has on the
17555// specified resource.
17556// If the resource does not exist, this will return an empty set
17557// of
17558// permissions, not a NOT_FOUND error.
17559//
17560// Note: This operation is designed to be used for building
17561// permission-aware
17562// UIs and command-line tools, not for authorization checking. This
17563// operation
17564// may "fail open" without warning.
17565func (r *ProjectsLocationsDatasetsHl7V2StoresService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall {
17566	c := &ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17567	c.resource = resource
17568	c.testiampermissionsrequest = testiampermissionsrequest
17569	return c
17570}
17571
17572// Fields allows partial responses to be retrieved. See
17573// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17574// for more information.
17575func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall {
17576	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17577	return c
17578}
17579
17580// Context sets the context to be used in this call's Do method. Any
17581// pending HTTP request will be aborted if the provided context is
17582// canceled.
17583func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall {
17584	c.ctx_ = ctx
17585	return c
17586}
17587
17588// Header returns an http.Header that can be modified by the caller to
17589// add HTTP headers to the request.
17590func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Header() http.Header {
17591	if c.header_ == nil {
17592		c.header_ = make(http.Header)
17593	}
17594	return c.header_
17595}
17596
17597func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
17598	reqHeaders := make(http.Header)
17599	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
17600	for k, v := range c.header_ {
17601		reqHeaders[k] = v
17602	}
17603	reqHeaders.Set("User-Agent", c.s.userAgent())
17604	var body io.Reader = nil
17605	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
17606	if err != nil {
17607		return nil, err
17608	}
17609	reqHeaders.Set("Content-Type", "application/json")
17610	c.urlParams_.Set("alt", alt)
17611	c.urlParams_.Set("prettyPrint", "false")
17612	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+resource}:testIamPermissions")
17613	urls += "?" + c.urlParams_.Encode()
17614	req, err := http.NewRequest("POST", urls, body)
17615	if err != nil {
17616		return nil, err
17617	}
17618	req.Header = reqHeaders
17619	googleapi.Expand(req.URL, map[string]string{
17620		"resource": c.resource,
17621	})
17622	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17623}
17624
17625// Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.testIamPermissions" call.
17626// Exactly one of *TestIamPermissionsResponse or error will be non-nil.
17627// Any non-2xx status code is an error. Response headers are in either
17628// *TestIamPermissionsResponse.ServerResponse.Header or (if a response
17629// was returned at all) in error.(*googleapi.Error).Header. Use
17630// googleapi.IsNotModified to check whether the returned error was
17631// because http.StatusNotModified was returned.
17632func (c *ProjectsLocationsDatasetsHl7V2StoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
17633	gensupport.SetOptions(c.urlParams_, opts...)
17634	res, err := c.doRequest("json")
17635	if res != nil && res.StatusCode == http.StatusNotModified {
17636		if res.Body != nil {
17637			res.Body.Close()
17638		}
17639		return nil, &googleapi.Error{
17640			Code:   res.StatusCode,
17641			Header: res.Header,
17642		}
17643	}
17644	if err != nil {
17645		return nil, err
17646	}
17647	defer googleapi.CloseBody(res)
17648	if err := googleapi.CheckResponse(res); err != nil {
17649		return nil, err
17650	}
17651	ret := &TestIamPermissionsResponse{
17652		ServerResponse: googleapi.ServerResponse{
17653			Header:         res.Header,
17654			HTTPStatusCode: res.StatusCode,
17655		},
17656	}
17657	target := &ret
17658	if err := gensupport.DecodeResponse(target, res); err != nil {
17659		return nil, err
17660	}
17661	return ret, nil
17662	// {
17663	//   "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.",
17664	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}:testIamPermissions",
17665	//   "httpMethod": "POST",
17666	//   "id": "healthcare.projects.locations.datasets.hl7V2Stores.testIamPermissions",
17667	//   "parameterOrder": [
17668	//     "resource"
17669	//   ],
17670	//   "parameters": {
17671	//     "resource": {
17672	//       "description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.",
17673	//       "location": "path",
17674	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$",
17675	//       "required": true,
17676	//       "type": "string"
17677	//     }
17678	//   },
17679	//   "path": "v1alpha2/{+resource}:testIamPermissions",
17680	//   "request": {
17681	//     "$ref": "TestIamPermissionsRequest"
17682	//   },
17683	//   "response": {
17684	//     "$ref": "TestIamPermissionsResponse"
17685	//   },
17686	//   "scopes": [
17687	//     "https://www.googleapis.com/auth/cloud-platform"
17688	//   ]
17689	// }
17690
17691}
17692
17693// method id "healthcare.projects.locations.datasets.hl7V2Stores.messages.create":
17694
17695type ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall struct {
17696	s                    *Service
17697	parent               string
17698	createmessagerequest *CreateMessageRequest
17699	urlParams_           gensupport.URLParams
17700	ctx_                 context.Context
17701	header_              http.Header
17702}
17703
17704// Create: Creates a message and sends a notification to the Cloud
17705// Pub/Sub topic. If
17706// configured, the MLLP adapter listens to messages created by this
17707// method and
17708// sends those back to the hospital. A successful response indicates
17709// the
17710// message has been persisted to storage and a Cloud Pub/Sub
17711// notification has
17712// been sent. Sending to the hospital by the MLLP adapter
17713// happens
17714// asynchronously.
17715func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Create(parent string, createmessagerequest *CreateMessageRequest) *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall {
17716	c := &ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17717	c.parent = parent
17718	c.createmessagerequest = createmessagerequest
17719	return c
17720}
17721
17722// Fields allows partial responses to be retrieved. See
17723// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17724// for more information.
17725func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall {
17726	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17727	return c
17728}
17729
17730// Context sets the context to be used in this call's Do method. Any
17731// pending HTTP request will be aborted if the provided context is
17732// canceled.
17733func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall {
17734	c.ctx_ = ctx
17735	return c
17736}
17737
17738// Header returns an http.Header that can be modified by the caller to
17739// add HTTP headers to the request.
17740func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) Header() http.Header {
17741	if c.header_ == nil {
17742		c.header_ = make(http.Header)
17743	}
17744	return c.header_
17745}
17746
17747func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) doRequest(alt string) (*http.Response, error) {
17748	reqHeaders := make(http.Header)
17749	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
17750	for k, v := range c.header_ {
17751		reqHeaders[k] = v
17752	}
17753	reqHeaders.Set("User-Agent", c.s.userAgent())
17754	var body io.Reader = nil
17755	body, err := googleapi.WithoutDataWrapper.JSONReader(c.createmessagerequest)
17756	if err != nil {
17757		return nil, err
17758	}
17759	reqHeaders.Set("Content-Type", "application/json")
17760	c.urlParams_.Set("alt", alt)
17761	c.urlParams_.Set("prettyPrint", "false")
17762	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/messages")
17763	urls += "?" + c.urlParams_.Encode()
17764	req, err := http.NewRequest("POST", urls, body)
17765	if err != nil {
17766		return nil, err
17767	}
17768	req.Header = reqHeaders
17769	googleapi.Expand(req.URL, map[string]string{
17770		"parent": c.parent,
17771	})
17772	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17773}
17774
17775// Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.create" call.
17776// Exactly one of *Message or error will be non-nil. Any non-2xx status
17777// code is an error. Response headers are in either
17778// *Message.ServerResponse.Header or (if a response was returned at all)
17779// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
17780// check whether the returned error was because http.StatusNotModified
17781// was returned.
17782func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) Do(opts ...googleapi.CallOption) (*Message, error) {
17783	gensupport.SetOptions(c.urlParams_, opts...)
17784	res, err := c.doRequest("json")
17785	if res != nil && res.StatusCode == http.StatusNotModified {
17786		if res.Body != nil {
17787			res.Body.Close()
17788		}
17789		return nil, &googleapi.Error{
17790			Code:   res.StatusCode,
17791			Header: res.Header,
17792		}
17793	}
17794	if err != nil {
17795		return nil, err
17796	}
17797	defer googleapi.CloseBody(res)
17798	if err := googleapi.CheckResponse(res); err != nil {
17799		return nil, err
17800	}
17801	ret := &Message{
17802		ServerResponse: googleapi.ServerResponse{
17803			Header:         res.Header,
17804			HTTPStatusCode: res.StatusCode,
17805		},
17806	}
17807	target := &ret
17808	if err := gensupport.DecodeResponse(target, res); err != nil {
17809		return nil, err
17810	}
17811	return ret, nil
17812	// {
17813	//   "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.",
17814	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}/messages",
17815	//   "httpMethod": "POST",
17816	//   "id": "healthcare.projects.locations.datasets.hl7V2Stores.messages.create",
17817	//   "parameterOrder": [
17818	//     "parent"
17819	//   ],
17820	//   "parameters": {
17821	//     "parent": {
17822	//       "description": "The name of the dataset this message belongs to.",
17823	//       "location": "path",
17824	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$",
17825	//       "required": true,
17826	//       "type": "string"
17827	//     }
17828	//   },
17829	//   "path": "v1alpha2/{+parent}/messages",
17830	//   "request": {
17831	//     "$ref": "CreateMessageRequest"
17832	//   },
17833	//   "response": {
17834	//     "$ref": "Message"
17835	//   },
17836	//   "scopes": [
17837	//     "https://www.googleapis.com/auth/cloud-platform"
17838	//   ]
17839	// }
17840
17841}
17842
17843// method id "healthcare.projects.locations.datasets.hl7V2Stores.messages.delete":
17844
17845type ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall struct {
17846	s          *Service
17847	name       string
17848	urlParams_ gensupport.URLParams
17849	ctx_       context.Context
17850	header_    http.Header
17851}
17852
17853// Delete: Deletes an HL7v2 message.
17854func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Delete(name string) *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall {
17855	c := &ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17856	c.name = name
17857	return c
17858}
17859
17860// Fields allows partial responses to be retrieved. See
17861// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17862// for more information.
17863func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall {
17864	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17865	return c
17866}
17867
17868// Context sets the context to be used in this call's Do method. Any
17869// pending HTTP request will be aborted if the provided context is
17870// canceled.
17871func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall {
17872	c.ctx_ = ctx
17873	return c
17874}
17875
17876// Header returns an http.Header that can be modified by the caller to
17877// add HTTP headers to the request.
17878func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) Header() http.Header {
17879	if c.header_ == nil {
17880		c.header_ = make(http.Header)
17881	}
17882	return c.header_
17883}
17884
17885func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) doRequest(alt string) (*http.Response, error) {
17886	reqHeaders := make(http.Header)
17887	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
17888	for k, v := range c.header_ {
17889		reqHeaders[k] = v
17890	}
17891	reqHeaders.Set("User-Agent", c.s.userAgent())
17892	var body io.Reader = nil
17893	c.urlParams_.Set("alt", alt)
17894	c.urlParams_.Set("prettyPrint", "false")
17895	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
17896	urls += "?" + c.urlParams_.Encode()
17897	req, err := http.NewRequest("DELETE", urls, body)
17898	if err != nil {
17899		return nil, err
17900	}
17901	req.Header = reqHeaders
17902	googleapi.Expand(req.URL, map[string]string{
17903		"name": c.name,
17904	})
17905	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17906}
17907
17908// Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.delete" call.
17909// Exactly one of *Empty or error will be non-nil. Any non-2xx status
17910// code is an error. Response headers are in either
17911// *Empty.ServerResponse.Header or (if a response was returned at all)
17912// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
17913// check whether the returned error was because http.StatusNotModified
17914// was returned.
17915func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
17916	gensupport.SetOptions(c.urlParams_, opts...)
17917	res, err := c.doRequest("json")
17918	if res != nil && res.StatusCode == http.StatusNotModified {
17919		if res.Body != nil {
17920			res.Body.Close()
17921		}
17922		return nil, &googleapi.Error{
17923			Code:   res.StatusCode,
17924			Header: res.Header,
17925		}
17926	}
17927	if err != nil {
17928		return nil, err
17929	}
17930	defer googleapi.CloseBody(res)
17931	if err := googleapi.CheckResponse(res); err != nil {
17932		return nil, err
17933	}
17934	ret := &Empty{
17935		ServerResponse: googleapi.ServerResponse{
17936			Header:         res.Header,
17937			HTTPStatusCode: res.StatusCode,
17938		},
17939	}
17940	target := &ret
17941	if err := gensupport.DecodeResponse(target, res); err != nil {
17942		return nil, err
17943	}
17944	return ret, nil
17945	// {
17946	//   "description": "Deletes an HL7v2 message.",
17947	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}/messages/{messagesId}",
17948	//   "httpMethod": "DELETE",
17949	//   "id": "healthcare.projects.locations.datasets.hl7V2Stores.messages.delete",
17950	//   "parameterOrder": [
17951	//     "name"
17952	//   ],
17953	//   "parameters": {
17954	//     "name": {
17955	//       "description": "The resource name of the HL7v2 message to delete.",
17956	//       "location": "path",
17957	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+/messages/[^/]+$",
17958	//       "required": true,
17959	//       "type": "string"
17960	//     }
17961	//   },
17962	//   "path": "v1alpha2/{+name}",
17963	//   "response": {
17964	//     "$ref": "Empty"
17965	//   },
17966	//   "scopes": [
17967	//     "https://www.googleapis.com/auth/cloud-platform"
17968	//   ]
17969	// }
17970
17971}
17972
17973// method id "healthcare.projects.locations.datasets.hl7V2Stores.messages.get":
17974
17975type ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall struct {
17976	s            *Service
17977	name         string
17978	urlParams_   gensupport.URLParams
17979	ifNoneMatch_ string
17980	ctx_         context.Context
17981	header_      http.Header
17982}
17983
17984// Get: Gets an HL7v2 message.
17985func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Get(name string) *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall {
17986	c := &ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17987	c.name = name
17988	return c
17989}
17990
17991// View sets the optional parameter "view": Specifies which parts of the
17992// Message resource should be returned
17993// in the response.
17994//
17995// Possible values:
17996//   "MESSAGE_VIEW_UNSPECIFIED"
17997//   "RAW_ONLY"
17998//   "PARSED_ONLY"
17999//   "FULL"
18000func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) View(view string) *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall {
18001	c.urlParams_.Set("view", view)
18002	return c
18003}
18004
18005// Fields allows partial responses to be retrieved. See
18006// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18007// for more information.
18008func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall {
18009	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18010	return c
18011}
18012
18013// IfNoneMatch sets the optional parameter which makes the operation
18014// fail if the object's ETag matches the given value. This is useful for
18015// getting updates only after the object has changed since the last
18016// request. Use googleapi.IsNotModified to check whether the response
18017// error from Do is the result of In-None-Match.
18018func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall {
18019	c.ifNoneMatch_ = entityTag
18020	return c
18021}
18022
18023// Context sets the context to be used in this call's Do method. Any
18024// pending HTTP request will be aborted if the provided context is
18025// canceled.
18026func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall {
18027	c.ctx_ = ctx
18028	return c
18029}
18030
18031// Header returns an http.Header that can be modified by the caller to
18032// add HTTP headers to the request.
18033func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) Header() http.Header {
18034	if c.header_ == nil {
18035		c.header_ = make(http.Header)
18036	}
18037	return c.header_
18038}
18039
18040func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) doRequest(alt string) (*http.Response, error) {
18041	reqHeaders := make(http.Header)
18042	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
18043	for k, v := range c.header_ {
18044		reqHeaders[k] = v
18045	}
18046	reqHeaders.Set("User-Agent", c.s.userAgent())
18047	if c.ifNoneMatch_ != "" {
18048		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18049	}
18050	var body io.Reader = nil
18051	c.urlParams_.Set("alt", alt)
18052	c.urlParams_.Set("prettyPrint", "false")
18053	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
18054	urls += "?" + c.urlParams_.Encode()
18055	req, err := http.NewRequest("GET", urls, body)
18056	if err != nil {
18057		return nil, err
18058	}
18059	req.Header = reqHeaders
18060	googleapi.Expand(req.URL, map[string]string{
18061		"name": c.name,
18062	})
18063	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18064}
18065
18066// Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.get" call.
18067// Exactly one of *Message or error will be non-nil. Any non-2xx status
18068// code is an error. Response headers are in either
18069// *Message.ServerResponse.Header or (if a response was returned at all)
18070// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
18071// check whether the returned error was because http.StatusNotModified
18072// was returned.
18073func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesGetCall) Do(opts ...googleapi.CallOption) (*Message, error) {
18074	gensupport.SetOptions(c.urlParams_, opts...)
18075	res, err := c.doRequest("json")
18076	if res != nil && res.StatusCode == http.StatusNotModified {
18077		if res.Body != nil {
18078			res.Body.Close()
18079		}
18080		return nil, &googleapi.Error{
18081			Code:   res.StatusCode,
18082			Header: res.Header,
18083		}
18084	}
18085	if err != nil {
18086		return nil, err
18087	}
18088	defer googleapi.CloseBody(res)
18089	if err := googleapi.CheckResponse(res); err != nil {
18090		return nil, err
18091	}
18092	ret := &Message{
18093		ServerResponse: googleapi.ServerResponse{
18094			Header:         res.Header,
18095			HTTPStatusCode: res.StatusCode,
18096		},
18097	}
18098	target := &ret
18099	if err := gensupport.DecodeResponse(target, res); err != nil {
18100		return nil, err
18101	}
18102	return ret, nil
18103	// {
18104	//   "description": "Gets an HL7v2 message.",
18105	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}/messages/{messagesId}",
18106	//   "httpMethod": "GET",
18107	//   "id": "healthcare.projects.locations.datasets.hl7V2Stores.messages.get",
18108	//   "parameterOrder": [
18109	//     "name"
18110	//   ],
18111	//   "parameters": {
18112	//     "name": {
18113	//       "description": "The resource name of the HL7v2 message to retrieve.",
18114	//       "location": "path",
18115	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+/messages/[^/]+$",
18116	//       "required": true,
18117	//       "type": "string"
18118	//     },
18119	//     "view": {
18120	//       "description": "Specifies which parts of the Message resource should be returned\nin the response.",
18121	//       "enum": [
18122	//         "MESSAGE_VIEW_UNSPECIFIED",
18123	//         "RAW_ONLY",
18124	//         "PARSED_ONLY",
18125	//         "FULL"
18126	//       ],
18127	//       "location": "query",
18128	//       "type": "string"
18129	//     }
18130	//   },
18131	//   "path": "v1alpha2/{+name}",
18132	//   "response": {
18133	//     "$ref": "Message"
18134	//   },
18135	//   "scopes": [
18136	//     "https://www.googleapis.com/auth/cloud-platform"
18137	//   ]
18138	// }
18139
18140}
18141
18142// method id "healthcare.projects.locations.datasets.hl7V2Stores.messages.ingest":
18143
18144type ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall struct {
18145	s                    *Service
18146	parent               string
18147	ingestmessagerequest *IngestMessageRequest
18148	urlParams_           gensupport.URLParams
18149	ctx_                 context.Context
18150	header_              http.Header
18151}
18152
18153// Ingest: Ingests a new HL7v2 message from the hospital and sends a
18154// notification to
18155// the Cloud Pub/Sub topic. Return is an HL7v2 ACK message if the
18156// message was
18157// successfully stored. Otherwise an error is returned.  If an
18158// identical
18159// HL7v2 message is created twice only one resource is created on the
18160// server
18161// and no error is reported.
18162func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Ingest(parent string, ingestmessagerequest *IngestMessageRequest) *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall {
18163	c := &ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18164	c.parent = parent
18165	c.ingestmessagerequest = ingestmessagerequest
18166	return c
18167}
18168
18169// Fields allows partial responses to be retrieved. See
18170// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18171// for more information.
18172func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall {
18173	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18174	return c
18175}
18176
18177// Context sets the context to be used in this call's Do method. Any
18178// pending HTTP request will be aborted if the provided context is
18179// canceled.
18180func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall {
18181	c.ctx_ = ctx
18182	return c
18183}
18184
18185// Header returns an http.Header that can be modified by the caller to
18186// add HTTP headers to the request.
18187func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) Header() http.Header {
18188	if c.header_ == nil {
18189		c.header_ = make(http.Header)
18190	}
18191	return c.header_
18192}
18193
18194func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) doRequest(alt string) (*http.Response, error) {
18195	reqHeaders := make(http.Header)
18196	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
18197	for k, v := range c.header_ {
18198		reqHeaders[k] = v
18199	}
18200	reqHeaders.Set("User-Agent", c.s.userAgent())
18201	var body io.Reader = nil
18202	body, err := googleapi.WithoutDataWrapper.JSONReader(c.ingestmessagerequest)
18203	if err != nil {
18204		return nil, err
18205	}
18206	reqHeaders.Set("Content-Type", "application/json")
18207	c.urlParams_.Set("alt", alt)
18208	c.urlParams_.Set("prettyPrint", "false")
18209	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/messages:ingest")
18210	urls += "?" + c.urlParams_.Encode()
18211	req, err := http.NewRequest("POST", urls, body)
18212	if err != nil {
18213		return nil, err
18214	}
18215	req.Header = reqHeaders
18216	googleapi.Expand(req.URL, map[string]string{
18217		"parent": c.parent,
18218	})
18219	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18220}
18221
18222// Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.ingest" call.
18223// Exactly one of *IngestMessageResponse or error will be non-nil. Any
18224// non-2xx status code is an error. Response headers are in either
18225// *IngestMessageResponse.ServerResponse.Header or (if a response was
18226// returned at all) in error.(*googleapi.Error).Header. Use
18227// googleapi.IsNotModified to check whether the returned error was
18228// because http.StatusNotModified was returned.
18229func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesIngestCall) Do(opts ...googleapi.CallOption) (*IngestMessageResponse, error) {
18230	gensupport.SetOptions(c.urlParams_, opts...)
18231	res, err := c.doRequest("json")
18232	if res != nil && res.StatusCode == http.StatusNotModified {
18233		if res.Body != nil {
18234			res.Body.Close()
18235		}
18236		return nil, &googleapi.Error{
18237			Code:   res.StatusCode,
18238			Header: res.Header,
18239		}
18240	}
18241	if err != nil {
18242		return nil, err
18243	}
18244	defer googleapi.CloseBody(res)
18245	if err := googleapi.CheckResponse(res); err != nil {
18246		return nil, err
18247	}
18248	ret := &IngestMessageResponse{
18249		ServerResponse: googleapi.ServerResponse{
18250			Header:         res.Header,
18251			HTTPStatusCode: res.StatusCode,
18252		},
18253	}
18254	target := &ret
18255	if err := gensupport.DecodeResponse(target, res); err != nil {
18256		return nil, err
18257	}
18258	return ret, nil
18259	// {
18260	//   "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.",
18261	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}/messages:ingest",
18262	//   "httpMethod": "POST",
18263	//   "id": "healthcare.projects.locations.datasets.hl7V2Stores.messages.ingest",
18264	//   "parameterOrder": [
18265	//     "parent"
18266	//   ],
18267	//   "parameters": {
18268	//     "parent": {
18269	//       "description": "The name of the HL7v2 store this message belongs to.",
18270	//       "location": "path",
18271	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$",
18272	//       "required": true,
18273	//       "type": "string"
18274	//     }
18275	//   },
18276	//   "path": "v1alpha2/{+parent}/messages:ingest",
18277	//   "request": {
18278	//     "$ref": "IngestMessageRequest"
18279	//   },
18280	//   "response": {
18281	//     "$ref": "IngestMessageResponse"
18282	//   },
18283	//   "scopes": [
18284	//     "https://www.googleapis.com/auth/cloud-platform"
18285	//   ]
18286	// }
18287
18288}
18289
18290// method id "healthcare.projects.locations.datasets.hl7V2Stores.messages.list":
18291
18292type ProjectsLocationsDatasetsHl7V2StoresMessagesListCall struct {
18293	s            *Service
18294	parent       string
18295	urlParams_   gensupport.URLParams
18296	ifNoneMatch_ string
18297	ctx_         context.Context
18298	header_      http.Header
18299}
18300
18301// List: Lists all the messages in the given HL7v2 store with support
18302// for filtering.
18303//
18304// Note: HL7v2 messages are indexed asynchronously, so there might be a
18305// slight
18306// delay between the time a message is created and when it can be
18307// found
18308// through a filter.
18309func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) List(parent string) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
18310	c := &ProjectsLocationsDatasetsHl7V2StoresMessagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18311	c.parent = parent
18312	return c
18313}
18314
18315// Filter sets the optional parameter "filter": Restricts messages
18316// returned to those matching a filter.
18317// Syntax:
18318// https://cloud.google.com/appengine/docs/standard/python/search
18319// /query_strings
18320//
18321// Fields/functions available for filtering are:
18322//
18323// *  `message_type`, from the MSH-9 segment; for example
18324// `NOT message_type = "ADT"
18325// *  `send_date` or `sendDate`, the YYYY-MM-DD date the message was
18326// sent in
18327// the dataset's time_zone, from the MSH-7 segment; for
18328// example
18329// `send_date < "2017-01-02"
18330// *  `send_time`, the timestamp when the message was sent, using
18331// the
18332// RFC3339 time format for comparisons, from the MSH-7 segment; for
18333// example
18334// `send_time < "2017-01-02T00:00:00-05:00"
18335// *  `send_facility`, the care center that the message came from, from
18336// the
18337// MSH-4 segment; for example `send_facility = "ABC"
18338// *  `HL7RegExp(expr)`, which does regular expression matching of
18339// `expr`
18340// against the message payload using re2
18341// (http://code.google.com/p/re2/)
18342// syntax; for example `HL7RegExp("^.*\|.*\|EMERG")`
18343// *  `PatientId(value, type)`, which matches if the message lists a
18344// patient
18345// having an ID of the given value and type in the PID-2, PID-3, or
18346// PID-4
18347// segments; for example `PatientId("123456", "MRN")`
18348// *  `labels.x`, a string value of the label with key `x` as set using
18349// the
18350// Message.labels
18351// map, for example `labels."priority"="high". The operator `:*` can be
18352// used
18353// to assert the existence of a label, for example
18354// `labels."priority":*`.
18355//
18356// Limitations on conjunctions:
18357//
18358// *  Negation on the patient ID function or the labels field is
18359// not
18360// supported, for example these queries are invalid:
18361// `NOT PatientId("123456", "MRN")`, `NOT labels."tag1":*`,
18362// `NOT labels."tag2"="val2".
18363// *  Conjunction of multiple patient ID functions is not supported,
18364// for
18365// example this query is invalid:
18366// `PatientId("123456", "MRN") AND PatientId("456789", "MRN")`.
18367// *  Conjunction of multiple labels fields is also not supported,
18368// for
18369// example this query is invalid: `labels."tag1":* AND
18370// labels."tag2"="val2".
18371// *  Conjunction of one patient ID function, one labels field and
18372// conditions
18373// on other fields is supported, for example this query is
18374// valid:
18375// `PatientId("123456", "MRN") AND labels."tag1":* AND message_type =
18376// "ADT".
18377//
18378// The HasLabel(x) and Label(x) syntax from previous API versions
18379// are
18380// deprecated; replaced by the `labels.x` syntax.
18381func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Filter(filter string) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
18382	c.urlParams_.Set("filter", filter)
18383	return c
18384}
18385
18386// OrderBy sets the optional parameter "orderBy": Orders messages
18387// returned by the specified order_by clause.
18388// Syntax:
18389// https://cloud.google.com/apis/design/design_patterns#sorting_order
18390//
18391// Fi
18392// elds available for ordering are:
18393//
18394// *  `send_time`
18395func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) OrderBy(orderBy string) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
18396	c.urlParams_.Set("orderBy", orderBy)
18397	return c
18398}
18399
18400// PageSize sets the optional parameter "pageSize": Limit on the number
18401// of messages to return in a single response.
18402// If zero the default page size of 100 is used.
18403func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
18404	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
18405	return c
18406}
18407
18408// PageToken sets the optional parameter "pageToken": The
18409// next_page_token value returned from the previous List request, if
18410// any.
18411func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
18412	c.urlParams_.Set("pageToken", pageToken)
18413	return c
18414}
18415
18416// Fields allows partial responses to be retrieved. See
18417// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18418// for more information.
18419func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
18420	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18421	return c
18422}
18423
18424// IfNoneMatch sets the optional parameter which makes the operation
18425// fail if the object's ETag matches the given value. This is useful for
18426// getting updates only after the object has changed since the last
18427// request. Use googleapi.IsNotModified to check whether the response
18428// error from Do is the result of In-None-Match.
18429func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
18430	c.ifNoneMatch_ = entityTag
18431	return c
18432}
18433
18434// Context sets the context to be used in this call's Do method. Any
18435// pending HTTP request will be aborted if the provided context is
18436// canceled.
18437func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall {
18438	c.ctx_ = ctx
18439	return c
18440}
18441
18442// Header returns an http.Header that can be modified by the caller to
18443// add HTTP headers to the request.
18444func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Header() http.Header {
18445	if c.header_ == nil {
18446		c.header_ = make(http.Header)
18447	}
18448	return c.header_
18449}
18450
18451func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) doRequest(alt string) (*http.Response, error) {
18452	reqHeaders := make(http.Header)
18453	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
18454	for k, v := range c.header_ {
18455		reqHeaders[k] = v
18456	}
18457	reqHeaders.Set("User-Agent", c.s.userAgent())
18458	if c.ifNoneMatch_ != "" {
18459		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18460	}
18461	var body io.Reader = nil
18462	c.urlParams_.Set("alt", alt)
18463	c.urlParams_.Set("prettyPrint", "false")
18464	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+parent}/messages")
18465	urls += "?" + c.urlParams_.Encode()
18466	req, err := http.NewRequest("GET", urls, body)
18467	if err != nil {
18468		return nil, err
18469	}
18470	req.Header = reqHeaders
18471	googleapi.Expand(req.URL, map[string]string{
18472		"parent": c.parent,
18473	})
18474	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18475}
18476
18477// Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.list" call.
18478// Exactly one of *ListMessagesResponse or error will be non-nil. Any
18479// non-2xx status code is an error. Response headers are in either
18480// *ListMessagesResponse.ServerResponse.Header or (if a response was
18481// returned at all) in error.(*googleapi.Error).Header. Use
18482// googleapi.IsNotModified to check whether the returned error was
18483// because http.StatusNotModified was returned.
18484func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Do(opts ...googleapi.CallOption) (*ListMessagesResponse, error) {
18485	gensupport.SetOptions(c.urlParams_, opts...)
18486	res, err := c.doRequest("json")
18487	if res != nil && res.StatusCode == http.StatusNotModified {
18488		if res.Body != nil {
18489			res.Body.Close()
18490		}
18491		return nil, &googleapi.Error{
18492			Code:   res.StatusCode,
18493			Header: res.Header,
18494		}
18495	}
18496	if err != nil {
18497		return nil, err
18498	}
18499	defer googleapi.CloseBody(res)
18500	if err := googleapi.CheckResponse(res); err != nil {
18501		return nil, err
18502	}
18503	ret := &ListMessagesResponse{
18504		ServerResponse: googleapi.ServerResponse{
18505			Header:         res.Header,
18506			HTTPStatusCode: res.StatusCode,
18507		},
18508	}
18509	target := &ret
18510	if err := gensupport.DecodeResponse(target, res); err != nil {
18511		return nil, err
18512	}
18513	return ret, nil
18514	// {
18515	//   "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.",
18516	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}/messages",
18517	//   "httpMethod": "GET",
18518	//   "id": "healthcare.projects.locations.datasets.hl7V2Stores.messages.list",
18519	//   "parameterOrder": [
18520	//     "parent"
18521	//   ],
18522	//   "parameters": {
18523	//     "filter": {
18524	//       "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.",
18525	//       "location": "query",
18526	//       "type": "string"
18527	//     },
18528	//     "orderBy": {
18529	//       "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`",
18530	//       "location": "query",
18531	//       "type": "string"
18532	//     },
18533	//     "pageSize": {
18534	//       "description": "Limit on the number of messages to return in a single response.\nIf zero the default page size of 100 is used.",
18535	//       "format": "int32",
18536	//       "location": "query",
18537	//       "type": "integer"
18538	//     },
18539	//     "pageToken": {
18540	//       "description": "The next_page_token value returned from the previous List request, if any.",
18541	//       "location": "query",
18542	//       "type": "string"
18543	//     },
18544	//     "parent": {
18545	//       "description": "Name of the HL7v2 store to retrieve messages from.",
18546	//       "location": "path",
18547	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$",
18548	//       "required": true,
18549	//       "type": "string"
18550	//     }
18551	//   },
18552	//   "path": "v1alpha2/{+parent}/messages",
18553	//   "response": {
18554	//     "$ref": "ListMessagesResponse"
18555	//   },
18556	//   "scopes": [
18557	//     "https://www.googleapis.com/auth/cloud-platform"
18558	//   ]
18559	// }
18560
18561}
18562
18563// Pages invokes f for each page of results.
18564// A non-nil error returned from f will halt the iteration.
18565// The provided context supersedes any context provided to the Context method.
18566func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesListCall) Pages(ctx context.Context, f func(*ListMessagesResponse) error) error {
18567	c.ctx_ = ctx
18568	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
18569	for {
18570		x, err := c.Do()
18571		if err != nil {
18572			return err
18573		}
18574		if err := f(x); err != nil {
18575			return err
18576		}
18577		if x.NextPageToken == "" {
18578			return nil
18579		}
18580		c.PageToken(x.NextPageToken)
18581	}
18582}
18583
18584// method id "healthcare.projects.locations.datasets.hl7V2Stores.messages.patch":
18585
18586type ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall struct {
18587	s          *Service
18588	name       string
18589	message    *Message
18590	urlParams_ gensupport.URLParams
18591	ctx_       context.Context
18592	header_    http.Header
18593}
18594
18595// Patch: Update the message.
18596func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Patch(name string, message *Message) *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall {
18597	c := &ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18598	c.name = name
18599	c.message = message
18600	return c
18601}
18602
18603// UpdateMask sets the optional parameter "updateMask": The update mask
18604// applies to the resource. For the `FieldMask`
18605// definition,
18606// see
18607// https://developers.google.com/protocol-buffers/docs/re
18608// ference/google.protobuf#fieldmask
18609// Only the `labels` field is allowed to be updated.
18610// The labels in the request will be merged with the existing set of
18611// labels.
18612// Existing labels with the same keys will be updated.
18613func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall {
18614	c.urlParams_.Set("updateMask", updateMask)
18615	return c
18616}
18617
18618// Fields allows partial responses to be retrieved. See
18619// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18620// for more information.
18621func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall {
18622	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18623	return c
18624}
18625
18626// Context sets the context to be used in this call's Do method. Any
18627// pending HTTP request will be aborted if the provided context is
18628// canceled.
18629func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall {
18630	c.ctx_ = ctx
18631	return c
18632}
18633
18634// Header returns an http.Header that can be modified by the caller to
18635// add HTTP headers to the request.
18636func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) Header() http.Header {
18637	if c.header_ == nil {
18638		c.header_ = make(http.Header)
18639	}
18640	return c.header_
18641}
18642
18643func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) doRequest(alt string) (*http.Response, error) {
18644	reqHeaders := make(http.Header)
18645	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
18646	for k, v := range c.header_ {
18647		reqHeaders[k] = v
18648	}
18649	reqHeaders.Set("User-Agent", c.s.userAgent())
18650	var body io.Reader = nil
18651	body, err := googleapi.WithoutDataWrapper.JSONReader(c.message)
18652	if err != nil {
18653		return nil, err
18654	}
18655	reqHeaders.Set("Content-Type", "application/json")
18656	c.urlParams_.Set("alt", alt)
18657	c.urlParams_.Set("prettyPrint", "false")
18658	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
18659	urls += "?" + c.urlParams_.Encode()
18660	req, err := http.NewRequest("PATCH", urls, body)
18661	if err != nil {
18662		return nil, err
18663	}
18664	req.Header = reqHeaders
18665	googleapi.Expand(req.URL, map[string]string{
18666		"name": c.name,
18667	})
18668	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18669}
18670
18671// Do executes the "healthcare.projects.locations.datasets.hl7V2Stores.messages.patch" call.
18672// Exactly one of *Message or error will be non-nil. Any non-2xx status
18673// code is an error. Response headers are in either
18674// *Message.ServerResponse.Header or (if a response was returned at all)
18675// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
18676// check whether the returned error was because http.StatusNotModified
18677// was returned.
18678func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesPatchCall) Do(opts ...googleapi.CallOption) (*Message, error) {
18679	gensupport.SetOptions(c.urlParams_, opts...)
18680	res, err := c.doRequest("json")
18681	if res != nil && res.StatusCode == http.StatusNotModified {
18682		if res.Body != nil {
18683			res.Body.Close()
18684		}
18685		return nil, &googleapi.Error{
18686			Code:   res.StatusCode,
18687			Header: res.Header,
18688		}
18689	}
18690	if err != nil {
18691		return nil, err
18692	}
18693	defer googleapi.CloseBody(res)
18694	if err := googleapi.CheckResponse(res); err != nil {
18695		return nil, err
18696	}
18697	ret := &Message{
18698		ServerResponse: googleapi.ServerResponse{
18699			Header:         res.Header,
18700			HTTPStatusCode: res.StatusCode,
18701		},
18702	}
18703	target := &ret
18704	if err := gensupport.DecodeResponse(target, res); err != nil {
18705		return nil, err
18706	}
18707	return ret, nil
18708	// {
18709	//   "description": "Update the message.",
18710	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/hl7V2Stores/{hl7V2StoresId}/messages/{messagesId}",
18711	//   "httpMethod": "PATCH",
18712	//   "id": "healthcare.projects.locations.datasets.hl7V2Stores.messages.patch",
18713	//   "parameterOrder": [
18714	//     "name"
18715	//   ],
18716	//   "parameters": {
18717	//     "name": {
18718	//       "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.",
18719	//       "location": "path",
18720	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+/messages/[^/]+$",
18721	//       "required": true,
18722	//       "type": "string"
18723	//     },
18724	//     "updateMask": {
18725	//       "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.",
18726	//       "format": "google-fieldmask",
18727	//       "location": "query",
18728	//       "type": "string"
18729	//     }
18730	//   },
18731	//   "path": "v1alpha2/{+name}",
18732	//   "request": {
18733	//     "$ref": "Message"
18734	//   },
18735	//   "response": {
18736	//     "$ref": "Message"
18737	//   },
18738	//   "scopes": [
18739	//     "https://www.googleapis.com/auth/cloud-platform"
18740	//   ]
18741	// }
18742
18743}
18744
18745// method id "healthcare.projects.locations.datasets.operations.get":
18746
18747type ProjectsLocationsDatasetsOperationsGetCall struct {
18748	s            *Service
18749	name         string
18750	urlParams_   gensupport.URLParams
18751	ifNoneMatch_ string
18752	ctx_         context.Context
18753	header_      http.Header
18754}
18755
18756// Get: Gets the latest state of a long-running operation.  Clients can
18757// use this
18758// method to poll the operation result at intervals as recommended by
18759// the API
18760// service.
18761func (r *ProjectsLocationsDatasetsOperationsService) Get(name string) *ProjectsLocationsDatasetsOperationsGetCall {
18762	c := &ProjectsLocationsDatasetsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18763	c.name = name
18764	return c
18765}
18766
18767// Fields allows partial responses to be retrieved. See
18768// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18769// for more information.
18770func (c *ProjectsLocationsDatasetsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsGetCall {
18771	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18772	return c
18773}
18774
18775// IfNoneMatch sets the optional parameter which makes the operation
18776// fail if the object's ETag matches the given value. This is useful for
18777// getting updates only after the object has changed since the last
18778// request. Use googleapi.IsNotModified to check whether the response
18779// error from Do is the result of In-None-Match.
18780func (c *ProjectsLocationsDatasetsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsOperationsGetCall {
18781	c.ifNoneMatch_ = entityTag
18782	return c
18783}
18784
18785// Context sets the context to be used in this call's Do method. Any
18786// pending HTTP request will be aborted if the provided context is
18787// canceled.
18788func (c *ProjectsLocationsDatasetsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsGetCall {
18789	c.ctx_ = ctx
18790	return c
18791}
18792
18793// Header returns an http.Header that can be modified by the caller to
18794// add HTTP headers to the request.
18795func (c *ProjectsLocationsDatasetsOperationsGetCall) Header() http.Header {
18796	if c.header_ == nil {
18797		c.header_ = make(http.Header)
18798	}
18799	return c.header_
18800}
18801
18802func (c *ProjectsLocationsDatasetsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
18803	reqHeaders := make(http.Header)
18804	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
18805	for k, v := range c.header_ {
18806		reqHeaders[k] = v
18807	}
18808	reqHeaders.Set("User-Agent", c.s.userAgent())
18809	if c.ifNoneMatch_ != "" {
18810		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18811	}
18812	var body io.Reader = nil
18813	c.urlParams_.Set("alt", alt)
18814	c.urlParams_.Set("prettyPrint", "false")
18815	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}")
18816	urls += "?" + c.urlParams_.Encode()
18817	req, err := http.NewRequest("GET", urls, body)
18818	if err != nil {
18819		return nil, err
18820	}
18821	req.Header = reqHeaders
18822	googleapi.Expand(req.URL, map[string]string{
18823		"name": c.name,
18824	})
18825	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18826}
18827
18828// Do executes the "healthcare.projects.locations.datasets.operations.get" call.
18829// Exactly one of *Operation or error will be non-nil. Any non-2xx
18830// status code is an error. Response headers are in either
18831// *Operation.ServerResponse.Header or (if a response was returned at
18832// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
18833// to check whether the returned error was because
18834// http.StatusNotModified was returned.
18835func (c *ProjectsLocationsDatasetsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
18836	gensupport.SetOptions(c.urlParams_, opts...)
18837	res, err := c.doRequest("json")
18838	if res != nil && res.StatusCode == http.StatusNotModified {
18839		if res.Body != nil {
18840			res.Body.Close()
18841		}
18842		return nil, &googleapi.Error{
18843			Code:   res.StatusCode,
18844			Header: res.Header,
18845		}
18846	}
18847	if err != nil {
18848		return nil, err
18849	}
18850	defer googleapi.CloseBody(res)
18851	if err := googleapi.CheckResponse(res); err != nil {
18852		return nil, err
18853	}
18854	ret := &Operation{
18855		ServerResponse: googleapi.ServerResponse{
18856			Header:         res.Header,
18857			HTTPStatusCode: res.StatusCode,
18858		},
18859	}
18860	target := &ret
18861	if err := gensupport.DecodeResponse(target, res); err != nil {
18862		return nil, err
18863	}
18864	return ret, nil
18865	// {
18866	//   "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.",
18867	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/operations/{operationsId}",
18868	//   "httpMethod": "GET",
18869	//   "id": "healthcare.projects.locations.datasets.operations.get",
18870	//   "parameterOrder": [
18871	//     "name"
18872	//   ],
18873	//   "parameters": {
18874	//     "name": {
18875	//       "description": "The name of the operation resource.",
18876	//       "location": "path",
18877	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$",
18878	//       "required": true,
18879	//       "type": "string"
18880	//     }
18881	//   },
18882	//   "path": "v1alpha2/{+name}",
18883	//   "response": {
18884	//     "$ref": "Operation"
18885	//   },
18886	//   "scopes": [
18887	//     "https://www.googleapis.com/auth/cloud-platform"
18888	//   ]
18889	// }
18890
18891}
18892
18893// method id "healthcare.projects.locations.datasets.operations.list":
18894
18895type ProjectsLocationsDatasetsOperationsListCall struct {
18896	s            *Service
18897	name         string
18898	urlParams_   gensupport.URLParams
18899	ifNoneMatch_ string
18900	ctx_         context.Context
18901	header_      http.Header
18902}
18903
18904// List: Lists operations that match the specified filter in the
18905// request. If the
18906// server doesn't support this method, it returns
18907// `UNIMPLEMENTED`.
18908//
18909// NOTE: the `name` binding allows API services to override the
18910// binding
18911// to use different resource name schemes, such as `users/*/operations`.
18912// To
18913// override the binding, API services can add a binding such
18914// as
18915// "/v1/{name=users/*}/operations" to their service configuration.
18916// For backwards compatibility, the default name includes the
18917// operations
18918// collection id, however overriding users must ensure the name
18919// binding
18920// is the parent resource, without the operations collection id.
18921func (r *ProjectsLocationsDatasetsOperationsService) List(name string) *ProjectsLocationsDatasetsOperationsListCall {
18922	c := &ProjectsLocationsDatasetsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18923	c.name = name
18924	return c
18925}
18926
18927// Filter sets the optional parameter "filter": The standard list
18928// filter.
18929func (c *ProjectsLocationsDatasetsOperationsListCall) Filter(filter string) *ProjectsLocationsDatasetsOperationsListCall {
18930	c.urlParams_.Set("filter", filter)
18931	return c
18932}
18933
18934// PageSize sets the optional parameter "pageSize": The standard list
18935// page size.
18936func (c *ProjectsLocationsDatasetsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsOperationsListCall {
18937	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
18938	return c
18939}
18940
18941// PageToken sets the optional parameter "pageToken": The standard list
18942// page token.
18943func (c *ProjectsLocationsDatasetsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsOperationsListCall {
18944	c.urlParams_.Set("pageToken", pageToken)
18945	return c
18946}
18947
18948// Fields allows partial responses to be retrieved. See
18949// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18950// for more information.
18951func (c *ProjectsLocationsDatasetsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsListCall {
18952	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18953	return c
18954}
18955
18956// IfNoneMatch sets the optional parameter which makes the operation
18957// fail if the object's ETag matches the given value. This is useful for
18958// getting updates only after the object has changed since the last
18959// request. Use googleapi.IsNotModified to check whether the response
18960// error from Do is the result of In-None-Match.
18961func (c *ProjectsLocationsDatasetsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsOperationsListCall {
18962	c.ifNoneMatch_ = entityTag
18963	return c
18964}
18965
18966// Context sets the context to be used in this call's Do method. Any
18967// pending HTTP request will be aborted if the provided context is
18968// canceled.
18969func (c *ProjectsLocationsDatasetsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsListCall {
18970	c.ctx_ = ctx
18971	return c
18972}
18973
18974// Header returns an http.Header that can be modified by the caller to
18975// add HTTP headers to the request.
18976func (c *ProjectsLocationsDatasetsOperationsListCall) Header() http.Header {
18977	if c.header_ == nil {
18978		c.header_ = make(http.Header)
18979	}
18980	return c.header_
18981}
18982
18983func (c *ProjectsLocationsDatasetsOperationsListCall) doRequest(alt string) (*http.Response, error) {
18984	reqHeaders := make(http.Header)
18985	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
18986	for k, v := range c.header_ {
18987		reqHeaders[k] = v
18988	}
18989	reqHeaders.Set("User-Agent", c.s.userAgent())
18990	if c.ifNoneMatch_ != "" {
18991		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18992	}
18993	var body io.Reader = nil
18994	c.urlParams_.Set("alt", alt)
18995	c.urlParams_.Set("prettyPrint", "false")
18996	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha2/{+name}/operations")
18997	urls += "?" + c.urlParams_.Encode()
18998	req, err := http.NewRequest("GET", urls, body)
18999	if err != nil {
19000		return nil, err
19001	}
19002	req.Header = reqHeaders
19003	googleapi.Expand(req.URL, map[string]string{
19004		"name": c.name,
19005	})
19006	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19007}
19008
19009// Do executes the "healthcare.projects.locations.datasets.operations.list" call.
19010// Exactly one of *ListOperationsResponse or error will be non-nil. Any
19011// non-2xx status code is an error. Response headers are in either
19012// *ListOperationsResponse.ServerResponse.Header or (if a response was
19013// returned at all) in error.(*googleapi.Error).Header. Use
19014// googleapi.IsNotModified to check whether the returned error was
19015// because http.StatusNotModified was returned.
19016func (c *ProjectsLocationsDatasetsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) {
19017	gensupport.SetOptions(c.urlParams_, opts...)
19018	res, err := c.doRequest("json")
19019	if res != nil && res.StatusCode == http.StatusNotModified {
19020		if res.Body != nil {
19021			res.Body.Close()
19022		}
19023		return nil, &googleapi.Error{
19024			Code:   res.StatusCode,
19025			Header: res.Header,
19026		}
19027	}
19028	if err != nil {
19029		return nil, err
19030	}
19031	defer googleapi.CloseBody(res)
19032	if err := googleapi.CheckResponse(res); err != nil {
19033		return nil, err
19034	}
19035	ret := &ListOperationsResponse{
19036		ServerResponse: googleapi.ServerResponse{
19037			Header:         res.Header,
19038			HTTPStatusCode: res.StatusCode,
19039		},
19040	}
19041	target := &ret
19042	if err := gensupport.DecodeResponse(target, res); err != nil {
19043		return nil, err
19044	}
19045	return ret, nil
19046	// {
19047	//   "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.",
19048	//   "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/operations",
19049	//   "httpMethod": "GET",
19050	//   "id": "healthcare.projects.locations.datasets.operations.list",
19051	//   "parameterOrder": [
19052	//     "name"
19053	//   ],
19054	//   "parameters": {
19055	//     "filter": {
19056	//       "description": "The standard list filter.",
19057	//       "location": "query",
19058	//       "type": "string"
19059	//     },
19060	//     "name": {
19061	//       "description": "The name of the operation's parent resource.",
19062	//       "location": "path",
19063	//       "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$",
19064	//       "required": true,
19065	//       "type": "string"
19066	//     },
19067	//     "pageSize": {
19068	//       "description": "The standard list page size.",
19069	//       "format": "int32",
19070	//       "location": "query",
19071	//       "type": "integer"
19072	//     },
19073	//     "pageToken": {
19074	//       "description": "The standard list page token.",
19075	//       "location": "query",
19076	//       "type": "string"
19077	//     }
19078	//   },
19079	//   "path": "v1alpha2/{+name}/operations",
19080	//   "response": {
19081	//     "$ref": "ListOperationsResponse"
19082	//   },
19083	//   "scopes": [
19084	//     "https://www.googleapis.com/auth/cloud-platform"
19085	//   ]
19086	// }
19087
19088}
19089
19090// Pages invokes f for each page of results.
19091// A non-nil error returned from f will halt the iteration.
19092// The provided context supersedes any context provided to the Context method.
19093func (c *ProjectsLocationsDatasetsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error {
19094	c.ctx_ = ctx
19095	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
19096	for {
19097		x, err := c.Do()
19098		if err != nil {
19099			return err
19100		}
19101		if err := f(x); err != nil {
19102			return err
19103		}
19104		if x.NextPageToken == "" {
19105			return nil
19106		}
19107		c.PageToken(x.NextPageToken)
19108	}
19109}
19110