1// Copyright 2016 Google Inc.
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        v3.12.2
19// source: google/genomics/v1/position.proto
20
21package genomics
22
23import (
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
32const (
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// An abstraction for referring to a genomic position, in relation to some
40// already known reference. For now, represents a genomic position as a
41// reference name, a base number on that reference (0-based), and a
42// determination of forward or reverse strand.
43type Position struct {
44	state         protoimpl.MessageState
45	sizeCache     protoimpl.SizeCache
46	unknownFields protoimpl.UnknownFields
47
48	// The name of the reference in whatever reference set is being used.
49	ReferenceName string `protobuf:"bytes,1,opt,name=reference_name,json=referenceName,proto3" json:"reference_name,omitempty"`
50	// The 0-based offset from the start of the forward strand for that reference.
51	Position int64 `protobuf:"varint,2,opt,name=position,proto3" json:"position,omitempty"`
52	// Whether this position is on the reverse strand, as opposed to the forward
53	// strand.
54	ReverseStrand bool `protobuf:"varint,3,opt,name=reverse_strand,json=reverseStrand,proto3" json:"reverse_strand,omitempty"`
55}
56
57func (x *Position) Reset() {
58	*x = Position{}
59	if protoimpl.UnsafeEnabled {
60		mi := &file_google_genomics_v1_position_proto_msgTypes[0]
61		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
62		ms.StoreMessageInfo(mi)
63	}
64}
65
66func (x *Position) String() string {
67	return protoimpl.X.MessageStringOf(x)
68}
69
70func (*Position) ProtoMessage() {}
71
72func (x *Position) ProtoReflect() protoreflect.Message {
73	mi := &file_google_genomics_v1_position_proto_msgTypes[0]
74	if protoimpl.UnsafeEnabled && x != nil {
75		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
76		if ms.LoadMessageInfo() == nil {
77			ms.StoreMessageInfo(mi)
78		}
79		return ms
80	}
81	return mi.MessageOf(x)
82}
83
84// Deprecated: Use Position.ProtoReflect.Descriptor instead.
85func (*Position) Descriptor() ([]byte, []int) {
86	return file_google_genomics_v1_position_proto_rawDescGZIP(), []int{0}
87}
88
89func (x *Position) GetReferenceName() string {
90	if x != nil {
91		return x.ReferenceName
92	}
93	return ""
94}
95
96func (x *Position) GetPosition() int64 {
97	if x != nil {
98		return x.Position
99	}
100	return 0
101}
102
103func (x *Position) GetReverseStrand() bool {
104	if x != nil {
105		return x.ReverseStrand
106	}
107	return false
108}
109
110var File_google_genomics_v1_position_proto protoreflect.FileDescriptor
111
112var file_google_genomics_v1_position_proto_rawDesc = []byte{
113	0x0a, 0x21, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x6f, 0x6d, 0x69, 0x63,
114	0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72,
115	0x6f, 0x74, 0x6f, 0x12, 0x12, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x65, 0x6e, 0x6f,
116	0x6d, 0x69, 0x63, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
117	0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e,
118	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x74, 0x0a, 0x08, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f,
119	0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x6e,
120	0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x66, 0x65, 0x72,
121	0x65, 0x6e, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6f, 0x73, 0x69,
122	0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x69,
123	0x74, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x5f,
124	0x73, 0x74, 0x72, 0x61, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x72, 0x65,
125	0x76, 0x65, 0x72, 0x73, 0x65, 0x53, 0x74, 0x72, 0x61, 0x6e, 0x64, 0x42, 0x68, 0x0a, 0x16, 0x63,
126	0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x65, 0x6e, 0x6f, 0x6d, 0x69,
127	0x63, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x50,
128	0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67,
129	0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f,
130	0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x67, 0x65,
131	0x6e, 0x6f, 0x6d, 0x69, 0x63, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x67, 0x65, 0x6e, 0x6f, 0x6d, 0x69,
132	0x63, 0x73, 0xf8, 0x01, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
133}
134
135var (
136	file_google_genomics_v1_position_proto_rawDescOnce sync.Once
137	file_google_genomics_v1_position_proto_rawDescData = file_google_genomics_v1_position_proto_rawDesc
138)
139
140func file_google_genomics_v1_position_proto_rawDescGZIP() []byte {
141	file_google_genomics_v1_position_proto_rawDescOnce.Do(func() {
142		file_google_genomics_v1_position_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_genomics_v1_position_proto_rawDescData)
143	})
144	return file_google_genomics_v1_position_proto_rawDescData
145}
146
147var file_google_genomics_v1_position_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
148var file_google_genomics_v1_position_proto_goTypes = []interface{}{
149	(*Position)(nil), // 0: google.genomics.v1.Position
150}
151var file_google_genomics_v1_position_proto_depIdxs = []int32{
152	0, // [0:0] is the sub-list for method output_type
153	0, // [0:0] is the sub-list for method input_type
154	0, // [0:0] is the sub-list for extension type_name
155	0, // [0:0] is the sub-list for extension extendee
156	0, // [0:0] is the sub-list for field type_name
157}
158
159func init() { file_google_genomics_v1_position_proto_init() }
160func file_google_genomics_v1_position_proto_init() {
161	if File_google_genomics_v1_position_proto != nil {
162		return
163	}
164	if !protoimpl.UnsafeEnabled {
165		file_google_genomics_v1_position_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
166			switch v := v.(*Position); i {
167			case 0:
168				return &v.state
169			case 1:
170				return &v.sizeCache
171			case 2:
172				return &v.unknownFields
173			default:
174				return nil
175			}
176		}
177	}
178	type x struct{}
179	out := protoimpl.TypeBuilder{
180		File: protoimpl.DescBuilder{
181			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
182			RawDescriptor: file_google_genomics_v1_position_proto_rawDesc,
183			NumEnums:      0,
184			NumMessages:   1,
185			NumExtensions: 0,
186			NumServices:   0,
187		},
188		GoTypes:           file_google_genomics_v1_position_proto_goTypes,
189		DependencyIndexes: file_google_genomics_v1_position_proto_depIdxs,
190		MessageInfos:      file_google_genomics_v1_position_proto_msgTypes,
191	}.Build()
192	File_google_genomics_v1_position_proto = out.File
193	file_google_genomics_v1_position_proto_rawDesc = nil
194	file_google_genomics_v1_position_proto_goTypes = nil
195	file_google_genomics_v1_position_proto_depIdxs = nil
196}
197