forked from distribution/distribution
-
Notifications
You must be signed in to change notification settings - Fork 0
/
genomics-gen.go
7958 lines (7183 loc) · 274 KB
/
genomics-gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Package genomics provides access to the Genomics API.
//
// Usage example:
//
// import "google.golang.org/api/genomics/v1"
// ...
// genomicsService, err := genomics.New(oauthHttpClient)
package genomics // import "google.golang.org/api/genomics/v1"
import (
"bytes"
"encoding/json"
"errors"
"fmt"
"golang.org/x/net/context"
"golang.org/x/net/context/ctxhttp"
"google.golang.org/api/googleapi"
"google.golang.org/api/internal"
"io"
"net/http"
"net/url"
"strconv"
"strings"
)
// Always reference these packages, just in case the auto-generated code
// below doesn't.
var _ = bytes.NewBuffer
var _ = strconv.Itoa
var _ = fmt.Sprintf
var _ = json.NewDecoder
var _ = io.Copy
var _ = url.Parse
var _ = googleapi.Version
var _ = errors.New
var _ = strings.Replace
var _ = internal.MarshalJSON
var _ = context.Canceled
var _ = ctxhttp.Do
const apiId = "genomics:v1"
const apiName = "genomics"
const apiVersion = "v1"
const basePath = "https://genomics.googleapis.com/"
// OAuth2 scopes used by this API.
const (
// View and manage your data in Google BigQuery
BigqueryScope = "https://www.googleapis.com/auth/bigquery"
// View and manage your data across Google Cloud Platform services
CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
// Manage your data in Google Cloud Storage
DevstorageReadWriteScope = "https://www.googleapis.com/auth/devstorage.read_write"
// View and manage Genomics data
GenomicsScope = "https://www.googleapis.com/auth/genomics"
// View Genomics data
GenomicsReadonlyScope = "https://www.googleapis.com/auth/genomics.readonly"
)
func New(client *http.Client) (*Service, error) {
if client == nil {
return nil, errors.New("client is nil")
}
s := &Service{client: client, BasePath: basePath}
s.Callsets = NewCallsetsService(s)
s.Datasets = NewDatasetsService(s)
s.Operations = NewOperationsService(s)
s.Readgroupsets = NewReadgroupsetsService(s)
s.Reads = NewReadsService(s)
s.References = NewReferencesService(s)
s.Referencesets = NewReferencesetsService(s)
s.Variants = NewVariantsService(s)
s.Variantsets = NewVariantsetsService(s)
return s, nil
}
type Service struct {
client *http.Client
BasePath string // API endpoint base URL
UserAgent string // optional additional User-Agent fragment
Callsets *CallsetsService
Datasets *DatasetsService
Operations *OperationsService
Readgroupsets *ReadgroupsetsService
Reads *ReadsService
References *ReferencesService
Referencesets *ReferencesetsService
Variants *VariantsService
Variantsets *VariantsetsService
}
func (s *Service) userAgent() string {
if s.UserAgent == "" {
return googleapi.UserAgent
}
return googleapi.UserAgent + " " + s.UserAgent
}
func NewCallsetsService(s *Service) *CallsetsService {
rs := &CallsetsService{s: s}
return rs
}
type CallsetsService struct {
s *Service
}
func NewDatasetsService(s *Service) *DatasetsService {
rs := &DatasetsService{s: s}
return rs
}
type DatasetsService struct {
s *Service
}
func NewOperationsService(s *Service) *OperationsService {
rs := &OperationsService{s: s}
return rs
}
type OperationsService struct {
s *Service
}
func NewReadgroupsetsService(s *Service) *ReadgroupsetsService {
rs := &ReadgroupsetsService{s: s}
rs.Coveragebuckets = NewReadgroupsetsCoveragebucketsService(s)
return rs
}
type ReadgroupsetsService struct {
s *Service
Coveragebuckets *ReadgroupsetsCoveragebucketsService
}
func NewReadgroupsetsCoveragebucketsService(s *Service) *ReadgroupsetsCoveragebucketsService {
rs := &ReadgroupsetsCoveragebucketsService{s: s}
return rs
}
type ReadgroupsetsCoveragebucketsService struct {
s *Service
}
func NewReadsService(s *Service) *ReadsService {
rs := &ReadsService{s: s}
return rs
}
type ReadsService struct {
s *Service
}
func NewReferencesService(s *Service) *ReferencesService {
rs := &ReferencesService{s: s}
rs.Bases = NewReferencesBasesService(s)
return rs
}
type ReferencesService struct {
s *Service
Bases *ReferencesBasesService
}
func NewReferencesBasesService(s *Service) *ReferencesBasesService {
rs := &ReferencesBasesService{s: s}
return rs
}
type ReferencesBasesService struct {
s *Service
}
func NewReferencesetsService(s *Service) *ReferencesetsService {
rs := &ReferencesetsService{s: s}
return rs
}
type ReferencesetsService struct {
s *Service
}
func NewVariantsService(s *Service) *VariantsService {
rs := &VariantsService{s: s}
return rs
}
type VariantsService struct {
s *Service
}
func NewVariantsetsService(s *Service) *VariantsetsService {
rs := &VariantsetsService{s: s}
return rs
}
type VariantsetsService struct {
s *Service
}
// Binding: Associates `members` with a `role`.
type Binding struct {
// Members: Specifies the identities requesting access for a Cloud
// Platform resource. `members` can have the following formats: *
// `allUsers`: A special identifier that represents anyone who is on the
// internet; with or without a Google account. *
// `allAuthenticatedUsers`: A special identifier that represents anyone
// who is authenticated with a Google account or a service account. *
// `user:{emailid}`: An email address that represents a specific Google
// account. For example, `alice@gmail.com` or `joe@example.com`. *
// `serviceAccount:{emailid}`: An email address that represents a
// service account. For example,
// `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An
// email address that represents a Google group. For example,
// `admins@example.com`. * `domain:{domain}`: A Google Apps domain name
// that represents all the users of that domain. For example,
// `google.com` or `example.com`.
Members []string `json:"members,omitempty"`
// Role: Role that is assigned to `members`. For example,
// `roles/viewer`, `roles/editor`, or `roles/owner`. Required
Role string `json:"role,omitempty"`
// ForceSendFields is a list of field names (e.g. "Members") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *Binding) MarshalJSON() ([]byte, error) {
type noMethod Binding
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
// CallSet: A call set is a collection of variant calls, typically for
// one sample. It belongs to a variant set.
type CallSet struct {
// Created: The date this call set was created in milliseconds from the
// epoch.
Created int64 `json:"created,omitempty,string"`
// Id: The server-generated call set ID, unique across all call sets.
Id string `json:"id,omitempty"`
// Info: A map of additional call set information. This must be of the
// form map (string key mapping to a list of string values).
Info *CallSetInfo `json:"info,omitempty"`
// Name: The call set name.
Name string `json:"name,omitempty"`
// SampleId: The sample ID this call set corresponds to.
SampleId string `json:"sampleId,omitempty"`
// VariantSetIds: The IDs of the variant sets this call set belongs to.
// This field must have exactly length one, as a call set belongs to a
// single variant set. This field is repeated for compatibility with the
// [GA4GH 0.5.1
// API](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/a
// vro/variants.avdl#L76).
VariantSetIds []string `json:"variantSetIds,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Created") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *CallSet) MarshalJSON() ([]byte, error) {
type noMethod CallSet
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
// CallSetInfo: A map of additional call set information. This must be
// of the form map (string key mapping to a list of string values).
type CallSetInfo struct {
}
// CancelOperationRequest: The request message for
// Operations.CancelOperation.
type CancelOperationRequest struct {
}
// CigarUnit: A single CIGAR operation.
type CigarUnit struct {
// Possible values:
// "OPERATION_UNSPECIFIED"
// "ALIGNMENT_MATCH"
// "INSERT"
// "DELETE"
// "SKIP"
// "CLIP_SOFT"
// "CLIP_HARD"
// "PAD"
// "SEQUENCE_MATCH"
// "SEQUENCE_MISMATCH"
Operation string `json:"operation,omitempty"`
// OperationLength: The number of genomic bases that the operation runs
// for. Required.
OperationLength int64 `json:"operationLength,omitempty,string"`
// ReferenceSequence: `referenceSequence` is only used at mismatches
// (`SEQUENCE_MISMATCH`) and deletions (`DELETE`). Filling this field
// replaces SAM's MD tag. If the relevant information is not available,
// this field is unset.
ReferenceSequence string `json:"referenceSequence,omitempty"`
// ForceSendFields is a list of field names (e.g. "Operation") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *CigarUnit) MarshalJSON() ([]byte, error) {
type noMethod CigarUnit
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
// CoverageBucket: A bucket over which read coverage has been
// precomputed. A bucket corresponds to a specific range of the
// reference sequence.
type CoverageBucket struct {
// MeanCoverage: The average number of reads which are aligned to each
// individual reference base in this bucket.
MeanCoverage float64 `json:"meanCoverage,omitempty"`
// Range: The genomic coordinate range spanned by this bucket.
Range *Range `json:"range,omitempty"`
// ForceSendFields is a list of field names (e.g. "MeanCoverage") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *CoverageBucket) MarshalJSON() ([]byte, error) {
type noMethod CoverageBucket
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
// Dataset: A Dataset is a collection of genomic data.
type Dataset struct {
// CreateTime: The time this dataset was created, in seconds from the
// epoch.
CreateTime string `json:"createTime,omitempty"`
// Id: The server-generated dataset ID, unique across all datasets.
Id string `json:"id,omitempty"`
// Name: The dataset name.
Name string `json:"name,omitempty"`
// ProjectId: The Google Developers Console project ID that this dataset
// belongs to.
ProjectId string `json:"projectId,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "CreateTime") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *Dataset) MarshalJSON() ([]byte, error) {
type noMethod Dataset
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
// Empty: A generic empty message that you can re-use to avoid defining
// duplicated empty messages in your APIs. A typical example is to use
// it as the request or the response type of an API method. For
// instance: service Foo { rpc Bar(google.protobuf.Empty) returns
// (google.protobuf.Empty); } The JSON representation for `Empty` is
// empty JSON object `{}`.
type Empty struct {
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
}
type Experiment struct {
// InstrumentModel: The instrument model used as part of this
// experiment. This maps to sequencing technology in BAM.
InstrumentModel string `json:"instrumentModel,omitempty"`
// LibraryId: The library used as part of this experiment. Note: This is
// not an actual ID within this repository, but rather an identifier for
// a library which may be meaningful to some external system.
LibraryId string `json:"libraryId,omitempty"`
// PlatformUnit: The platform unit used as part of this experiment e.g.
// flowcell-barcode.lane for Illumina or slide for SOLiD. Corresponds to
// the @RG PU field in the SAM spec.
PlatformUnit string `json:"platformUnit,omitempty"`
// SequencingCenter: The sequencing center used as part of this
// experiment.
SequencingCenter string `json:"sequencingCenter,omitempty"`
// ForceSendFields is a list of field names (e.g. "InstrumentModel") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *Experiment) MarshalJSON() ([]byte, error) {
type noMethod Experiment
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
// ExportReadGroupSetRequest: The read group set export request.
type ExportReadGroupSetRequest struct {
// ExportUri: Required. A Google Cloud Storage URI for the exported BAM
// file. The currently authenticated user must have write access to the
// new file. An error will be returned if the URI already contains data.
ExportUri string `json:"exportUri,omitempty"`
// ProjectId: Required. The Google Developers Console project ID that
// owns this export.
ProjectId string `json:"projectId,omitempty"`
// ReferenceNames: The reference names to export. If this is not
// specified, all reference sequences, including unmapped reads, are
// exported. Use `*` to export only unmapped reads.
ReferenceNames []string `json:"referenceNames,omitempty"`
// ForceSendFields is a list of field names (e.g. "ExportUri") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *ExportReadGroupSetRequest) MarshalJSON() ([]byte, error) {
type noMethod ExportReadGroupSetRequest
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
// ExportVariantSetRequest: The variant data export request.
type ExportVariantSetRequest struct {
// BigqueryDataset: Required. The BigQuery dataset to export data to.
// This dataset must already exist. Note that this is distinct from the
// Genomics concept of "dataset".
BigqueryDataset string `json:"bigqueryDataset,omitempty"`
// BigqueryTable: Required. The BigQuery table to export data to. If the
// table doesn't exist, it will be created. If it already exists, it
// will be overwritten.
BigqueryTable string `json:"bigqueryTable,omitempty"`
// CallSetIds: If provided, only variant call information from the
// specified call sets will be exported. By default all variant calls
// are exported.
CallSetIds []string `json:"callSetIds,omitempty"`
// Format: The format for the exported data.
//
// Possible values:
// "FORMAT_UNSPECIFIED"
// "FORMAT_BIGQUERY"
Format string `json:"format,omitempty"`
// ProjectId: Required. The Google Cloud project ID that owns the
// destination BigQuery dataset. The caller must have WRITE access to
// this project. This project will also own the resulting export job.
ProjectId string `json:"projectId,omitempty"`
// ForceSendFields is a list of field names (e.g. "BigqueryDataset") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *ExportVariantSetRequest) MarshalJSON() ([]byte, error) {
type noMethod ExportVariantSetRequest
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
// GetIamPolicyRequest: Request message for `GetIamPolicy` method.
type GetIamPolicyRequest struct {
}
// ImportReadGroupSetsRequest: The read group set import request.
type ImportReadGroupSetsRequest struct {
// DatasetId: Required. The ID of the dataset these read group sets will
// belong to. The caller must have WRITE permissions to this dataset.
DatasetId string `json:"datasetId,omitempty"`
// PartitionStrategy: The partition strategy describes how read groups
// are partitioned into read group sets.
//
// Possible values:
// "PARTITION_STRATEGY_UNSPECIFIED"
// "PER_FILE_PER_SAMPLE"
// "MERGE_ALL"
PartitionStrategy string `json:"partitionStrategy,omitempty"`
// ReferenceSetId: The reference set to which the imported read group
// sets are aligned to, if any. The reference names of this reference
// set must be a superset of those found in the imported file headers.
// If no reference set id is provided, a best effort is made to
// associate with a matching reference set.
ReferenceSetId string `json:"referenceSetId,omitempty"`
// SourceUris: A list of URIs pointing at [BAM
// files](https://samtools.github.io/hts-specs/SAMv1.pdf) in Google
// Cloud Storage.
SourceUris []string `json:"sourceUris,omitempty"`
// ForceSendFields is a list of field names (e.g. "DatasetId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *ImportReadGroupSetsRequest) MarshalJSON() ([]byte, error) {
type noMethod ImportReadGroupSetsRequest
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
// ImportReadGroupSetsResponse: The read group set import response.
type ImportReadGroupSetsResponse struct {
// ReadGroupSetIds: IDs of the read group sets that were created.
ReadGroupSetIds []string `json:"readGroupSetIds,omitempty"`
// ForceSendFields is a list of field names (e.g. "ReadGroupSetIds") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *ImportReadGroupSetsResponse) MarshalJSON() ([]byte, error) {
type noMethod ImportReadGroupSetsResponse
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
// ImportVariantsRequest: The variant data import request.
type ImportVariantsRequest struct {
// Format: The format of the variant data being imported. If
// unspecified, defaults to to `VCF`.
//
// Possible values:
// "FORMAT_UNSPECIFIED"
// "FORMAT_VCF"
// "FORMAT_COMPLETE_GENOMICS"
Format string `json:"format,omitempty"`
// NormalizeReferenceNames: Convert reference names to the canonical
// representation. hg19 haploytypes (those reference names containing
// "_hap") are not modified in any way. All other reference names are
// modified according to the following rules: The reference name is
// capitalized. The "chr" prefix is dropped for all autosomes and sex
// chromsomes. For example "chr17" becomes "17" and "chrX" becomes "X".
// All mitochondrial chromosomes ("chrM", "chrMT", etc) become "MT".
NormalizeReferenceNames bool `json:"normalizeReferenceNames,omitempty"`
// SourceUris: A list of URIs referencing variant files in Google Cloud
// Storage. URIs can include wildcards [as described
// here](https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNa
// mes). Note that recursive wildcards ('**') are not supported.
SourceUris []string `json:"sourceUris,omitempty"`
// VariantSetId: Required. The variant set to which variant data should
// be imported.
VariantSetId string `json:"variantSetId,omitempty"`
// ForceSendFields is a list of field names (e.g. "Format") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *ImportVariantsRequest) MarshalJSON() ([]byte, error) {
type noMethod ImportVariantsRequest
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
// ImportVariantsResponse: The variant data import response.
type ImportVariantsResponse struct {
// CallSetIds: IDs of the call sets that were created.
CallSetIds []string `json:"callSetIds,omitempty"`
// ForceSendFields is a list of field names (e.g. "CallSetIds") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *ImportVariantsResponse) MarshalJSON() ([]byte, error) {
type noMethod ImportVariantsResponse
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
// LinearAlignment: A linear alignment can be represented by one CIGAR
// string. Describes the mapped position and local alignment of the read
// to the reference.
type LinearAlignment struct {
// Cigar: Represents the local alignment of this sequence (alignment
// matches, indels, etc) against the reference.
Cigar []*CigarUnit `json:"cigar,omitempty"`
// MappingQuality: The mapping quality of this alignment. Represents how
// likely the read maps to this position as opposed to other locations.
MappingQuality int64 `json:"mappingQuality,omitempty"`
// Position: The position of this alignment.
Position *Position `json:"position,omitempty"`
// ForceSendFields is a list of field names (e.g. "Cigar") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *LinearAlignment) MarshalJSON() ([]byte, error) {
type noMethod LinearAlignment
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
type ListBasesResponse struct {
// NextPageToken: The continuation token, which is used to page through
// large result sets. Provide this value in a subsequent request to
// return the next page of results. This field will be empty if there
// aren't any additional results.
NextPageToken string `json:"nextPageToken,omitempty"`
// Offset: The offset position (0-based) of the given `sequence` from
// the start of this `Reference`. This value will differ for each page
// in a paginated request.
Offset int64 `json:"offset,omitempty,string"`
// Sequence: A substring of the bases that make up this reference.
Sequence string `json:"sequence,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "NextPageToken") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *ListBasesResponse) MarshalJSON() ([]byte, error) {
type noMethod ListBasesResponse
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
type ListCoverageBucketsResponse struct {
// BucketWidth: The length of each coverage bucket in base pairs. Note
// that buckets at the end of a reference sequence may be shorter. This
// value is omitted if the bucket width is infinity (the default
// behaviour, with no range or `targetBucketWidth`).
BucketWidth int64 `json:"bucketWidth,omitempty,string"`
// CoverageBuckets: The coverage buckets. The list of buckets is sparse;
// a bucket with 0 overlapping reads is not returned. A bucket never
// crosses more than one reference sequence. Each bucket has width
// `bucketWidth`, unless its end is the end of the reference sequence.
CoverageBuckets []*CoverageBucket `json:"coverageBuckets,omitempty"`
// NextPageToken: The continuation token, which is used to page through
// large result sets. Provide this value in a subsequent request to
// return the next page of results. This field will be empty if there
// aren't any additional results.
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "BucketWidth") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *ListCoverageBucketsResponse) MarshalJSON() ([]byte, error) {
type noMethod ListCoverageBucketsResponse
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
// ListDatasetsResponse: The dataset list response.
type ListDatasetsResponse struct {
// Datasets: The list of matching Datasets.
Datasets []*Dataset `json:"datasets,omitempty"`
// NextPageToken: The continuation token, which is used to page through
// large result sets. Provide this value in a subsequent request to
// return the next page of results. This field will be empty if there
// aren't any additional results.
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Datasets") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *ListDatasetsResponse) MarshalJSON() ([]byte, error) {
type noMethod ListDatasetsResponse
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
// ListOperationsResponse: The response message for
// Operations.ListOperations.
type ListOperationsResponse struct {
// NextPageToken: The standard List next-page token.
NextPageToken string `json:"nextPageToken,omitempty"`
// Operations: A list of operations that matches the specified filter in
// the request.
Operations []*Operation `json:"operations,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "NextPageToken") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
type noMethod ListOperationsResponse
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
// Operation: This resource represents a long-running operation that is
// the result of a network API call.
type Operation struct {
// Done: If the value is `false`, it means the operation is still in
// progress. If true, the operation is completed, and either `error` or
// `response` is available.
Done bool `json:"done,omitempty"`
// Error: The error result of the operation in case of failure.
Error *Status `json:"error,omitempty"`
// Metadata: An OperationMetadata object. This will always be returned
// with the Operation.
Metadata OperationMetadata `json:"metadata,omitempty"`
// Name: The server-assigned name, which is only unique within the same
// service that originally returns it. For example:
// `operations/CJHU7Oi_ChDrveSpBRjfuL-qzoWAgEw`
Name string `json:"name,omitempty"`
// Response: If importing ReadGroupSets, an ImportReadGroupSetsResponse
// is returned. If importing Variants, an ImportVariantsResponse is
// returned. For exports, an empty response is returned.
Response OperationResponse `json:"response,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Done") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *Operation) MarshalJSON() ([]byte, error) {
type noMethod Operation
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
type OperationMetadata interface{}
type OperationResponse interface{}
// OperationEvent: An event that occurred during an Operation.
type OperationEvent struct {
// Description: Required description of event.
Description string `json:"description,omitempty"`
// ForceSendFields is a list of field names (e.g. "Description") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *OperationEvent) MarshalJSON() ([]byte, error) {
type noMethod OperationEvent
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
// OperationMetadata1: Metadata describing an Operation.
type OperationMetadata1 struct {
// CreateTime: The time at which the job was submitted to the Genomics
// service.
CreateTime string `json:"createTime,omitempty"`
// Events: Optional event messages that were generated during the job's
// execution. This also contains any warnings that were generated during
// import or export.
Events []*OperationEvent `json:"events,omitempty"`
// ProjectId: The Google Cloud Project in which the job is scoped.
ProjectId string `json:"projectId,omitempty"`
// Request: The original request that started the operation. Note that
// this will be in current version of the API. If the operation was
// started with v1beta2 API and a GetOperation is performed on v1 API, a
// v1 request will be returned.
Request OperationMetadataRequest `json:"request,omitempty"`
// ForceSendFields is a list of field names (e.g. "CreateTime") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *OperationMetadata1) MarshalJSON() ([]byte, error) {
type noMethod OperationMetadata1
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
type OperationMetadataRequest interface{}
// Policy: Defines an Identity and Access Management (IAM) policy. It is
// used to specify access control policies for Cloud Platform resources.
// A `Policy` consists of a list of `bindings`. A `Binding` binds a list
// of `members` to a `role`, where the members can be user accounts,
// Google groups, Google domains, and service accounts. A `role` is a
// named list of permissions defined by IAM. **Example** { "bindings": [
// { "role": "roles/owner", "members": [ "user:mike@example.com",
// "group:admins@example.com", "domain:google.com",
// "serviceAccount:my-other-app@appspot.gserviceaccount.com"] }, {
// "role": "roles/viewer", "members": ["user:sean@example.com"] } ] }
// For a description of IAM and its features, see the [IAM developer's
// guide](https://cloud.google.com/iam).
type Policy struct {
// Bindings: Associates a list of `members` to a `role`. Multiple
// `bindings` must not be specified for the same `role`. `bindings` with
// no members will result in an error.
Bindings []*Binding `json:"bindings,omitempty"`
// Etag: Can be used to perform a read-modify-write.
Etag string `json:"etag,omitempty"`
// Version: Version of the `Policy`. The default version is 0.
Version int64 `json:"version,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Bindings") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *Policy) MarshalJSON() ([]byte, error) {
type noMethod Policy
raw := noMethod(*s)
return internal.MarshalJSON(raw, s.ForceSendFields)
}
// Position: An abstraction for referring to a genomic position, in
// relation to some already known reference. For now, represents a
// genomic position as a reference name, a base number on that reference
// (0-based), and a determination of forward or reverse strand.
type Position struct {
// Position: The 0-based offset from the start of the forward strand for
// that reference.
Position int64 `json:"position,omitempty,string"`
// ReferenceName: The name of the reference in whatever reference set is
// being used.
ReferenceName string `json:"referenceName,omitempty"`
// ReverseStrand: Whether this position is on the reverse strand, as
// opposed to the forward strand.
ReverseStrand bool `json:"reverseStrand,omitempty"`
// ForceSendFields is a list of field names (e.g. "Position") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
}
func (s *Position) MarshalJSON() ([]byte, error) {