Debian Codegraph @

googleapis/genomics/v1/range.pb.go

raw
1 // Copyright 2025 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.26.0
18 // protoc v4.24.4
19 // source: google/genomics/v1/range.proto
20
21 package genomics
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 _ "google.golang.org/genproto/googleapis/api/annotations"
28 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
29 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
30 )
31
32 const (
33 // Verify that this generated code is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35 // Verify that runtime/protoimpl is sufficiently up-to-date.
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39 // A 0-based half-open genomic coordinate range for search requests.
40 type Range struct {
41 state protoimpl.MessageState
42 sizeCache protoimpl.SizeCache
43 unknownFields protoimpl.UnknownFields
44
45 // The reference sequence name, for example `chr1`,
46 // `1`, or `chrX`.
47 ReferenceName string `protobuf:"bytes,1,opt,name=reference_name,json=referenceName,proto3" json:"reference_name,omitempty"`
48 // The start position of the range on the reference, 0-based inclusive.
49 Start int64 `protobuf:"varint,2,opt,name=start,proto3" json:"start,omitempty"`
50 // The end position of the range on the reference, 0-based exclusive.
51 End int64 `protobuf:"varint,3,opt,name=end,proto3" json:"end,omitempty"`
52 }
53
54 func (x *Range) Reset() {
55 *x = Range{}
56 if protoimpl.UnsafeEnabled {
57 mi := &file_google_genomics_v1_range_proto_msgTypes[0]
58 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
59 ms.StoreMessageInfo(mi)
60 }
61 }
62
63 func (x *Range) String() string {
64 return protoimpl.X.MessageStringOf(x)
65 }
66
67 func (*Range) ProtoMessage() {}
68
69 func (x *Range) ProtoReflect() protoreflect.Message {
70 mi := &file_google_genomics_v1_range_proto_msgTypes[0]
71 if protoimpl.UnsafeEnabled && x != nil {
72 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
73 if ms.LoadMessageInfo() == nil {
74 ms.StoreMessageInfo(mi)
75 }
76 return ms
77 }
78 return mi.MessageOf(x)
79 }
80
81 // Deprecated: Use Range.ProtoReflect.Descriptor instead.
82 func (*Range) Descriptor() ([]byte, []int) {
83 return file_google_genomics_v1_range_proto_rawDescGZIP(), []int{0}
84 }
85
86 func (x *Range) GetReferenceName() string {
87 if x != nil {
88 return x.ReferenceName
89 }
90 return ""
91 }
92
93 func (x *Range) GetStart() int64 {
94 if x != nil {
95 return x.Start
96 }
97 return 0
98 }
99
100 func (x *Range) GetEnd() int64 {
101 if x != nil {
102 return x.End
103 }
104 return 0
105 }
106
107 var File_google_genomics_v1_range_proto protoreflect.FileDescriptor
108
109 var file_google_genomics_v1_range_proto_rawDesc = []byte{
110 0x0a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63,
111 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
112 0x12, 0x12, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63,
113 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
114 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f,
115 0x74, 0x6f, 0x22, 0x56, 0x0a, 0x05, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x72,
116 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
117 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x4e, 0x61,
118 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28,
119 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18,
120 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x42, 0x65, 0x0a, 0x16, 0x63, 0x6f,
121 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63,
122 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f,
123 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e,
124 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67,
125 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x6f, 0x6d, 0x69,
126 0x63, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x67, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73, 0xf8, 0x01,
127 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
128 }
129
130 var (
131 file_google_genomics_v1_range_proto_rawDescOnce sync.Once
132 file_google_genomics_v1_range_proto_rawDescData = file_google_genomics_v1_range_proto_rawDesc
133 )
134
135 func file_google_genomics_v1_range_proto_rawDescGZIP() []byte {
136 file_google_genomics_v1_range_proto_rawDescOnce.Do(func() {
137 file_google_genomics_v1_range_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_genomics_v1_range_proto_rawDescData)
138 })
139 return file_google_genomics_v1_range_proto_rawDescData
140 }
141
142 var file_google_genomics_v1_range_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
143 var file_google_genomics_v1_range_proto_goTypes = []interface{}{
144 (*Range)(nil), // 0: google.genomics.v1.Range
145 }
146 var file_google_genomics_v1_range_proto_depIdxs = []int32{
147 0, // [0:0] is the sub-list for method output_type
148 0, // [0:0] is the sub-list for method input_type
149 0, // [0:0] is the sub-list for extension type_name
150 0, // [0:0] is the sub-list for extension extendee
151 0, // [0:0] is the sub-list for field type_name
152 }
153
154 func init() { file_google_genomics_v1_range_proto_init() }
155 func file_google_genomics_v1_range_proto_init() {
156 if File_google_genomics_v1_range_proto != nil {
157 return
158 }
159 if !protoimpl.UnsafeEnabled {
160 file_google_genomics_v1_range_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
161 switch v := v.(*Range); i {
162 case 0:
163 return &v.state
164 case 1:
165 return &v.sizeCache
166 case 2:
167 return &v.unknownFields
168 default:
169 return nil
170 }
171 }
172 }
173 type x struct{}
174 out := protoimpl.TypeBuilder{
175 File: protoimpl.DescBuilder{
176 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
177 RawDescriptor: file_google_genomics_v1_range_proto_rawDesc,
178 NumEnums: 0,
179 NumMessages: 1,
180 NumExtensions: 0,
181 NumServices: 0,
182 },
183 GoTypes: file_google_genomics_v1_range_proto_goTypes,
184 DependencyIndexes: file_google_genomics_v1_range_proto_depIdxs,
185 MessageInfos: file_google_genomics_v1_range_proto_msgTypes,
186 }.Build()
187 File_google_genomics_v1_range_proto = out.File
188 file_google_genomics_v1_range_proto_rawDesc = nil
189 file_google_genomics_v1_range_proto_goTypes = nil
190 file_google_genomics_v1_range_proto_depIdxs = nil
191 }