1// Copyright 2018 The Bazel Authors. 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.31.0 18// protoc v3.15.0 19// source: build/bazel/semver/semver.proto 20 21package semver 22 23import ( 24 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 25 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 26 reflect "reflect" 27 sync "sync" 28) 29 30const ( 31 // Verify that this generated code is sufficiently up-to-date. 32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 33 // Verify that runtime/protoimpl is sufficiently up-to-date. 34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 35) 36 37// The full version of a given tool. 38type SemVer struct { 39 state protoimpl.MessageState 40 sizeCache protoimpl.SizeCache 41 unknownFields protoimpl.UnknownFields 42 43 // The major version, e.g 10 for 10.2.3. 44 Major int32 `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"` 45 // The minor version, e.g. 2 for 10.2.3. 46 Minor int32 `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"` 47 // The patch version, e.g 3 for 10.2.3. 48 Patch int32 `protobuf:"varint,3,opt,name=patch,proto3" json:"patch,omitempty"` 49 // The pre-release version. Either this field or major/minor/patch fields 50 // must be filled. They are mutually exclusive. Pre-release versions are 51 // assumed to be earlier than any released versions. 52 Prerelease string `protobuf:"bytes,4,opt,name=prerelease,proto3" json:"prerelease,omitempty"` 53} 54 55func (x *SemVer) Reset() { 56 *x = SemVer{} 57 if protoimpl.UnsafeEnabled { 58 mi := &file_build_bazel_semver_semver_proto_msgTypes[0] 59 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 60 ms.StoreMessageInfo(mi) 61 } 62} 63 64func (x *SemVer) String() string { 65 return protoimpl.X.MessageStringOf(x) 66} 67 68func (*SemVer) ProtoMessage() {} 69 70func (x *SemVer) ProtoReflect() protoreflect.Message { 71 mi := &file_build_bazel_semver_semver_proto_msgTypes[0] 72 if protoimpl.UnsafeEnabled && x != nil { 73 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 74 if ms.LoadMessageInfo() == nil { 75 ms.StoreMessageInfo(mi) 76 } 77 return ms 78 } 79 return mi.MessageOf(x) 80} 81 82// Deprecated: Use SemVer.ProtoReflect.Descriptor instead. 83func (*SemVer) Descriptor() ([]byte, []int) { 84 return file_build_bazel_semver_semver_proto_rawDescGZIP(), []int{0} 85} 86 87func (x *SemVer) GetMajor() int32 { 88 if x != nil { 89 return x.Major 90 } 91 return 0 92} 93 94func (x *SemVer) GetMinor() int32 { 95 if x != nil { 96 return x.Minor 97 } 98 return 0 99} 100 101func (x *SemVer) GetPatch() int32 { 102 if x != nil { 103 return x.Patch 104 } 105 return 0 106} 107 108func (x *SemVer) GetPrerelease() string { 109 if x != nil { 110 return x.Prerelease 111 } 112 return "" 113} 114 115var File_build_bazel_semver_semver_proto protoreflect.FileDescriptor 116 117var file_build_bazel_semver_semver_proto_rawDesc = []byte{ 118 0x0a, 0x1f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x62, 0x61, 0x7a, 0x65, 0x6c, 0x2f, 0x73, 0x65, 119 0x6d, 0x76, 0x65, 0x72, 0x2f, 0x73, 0x65, 0x6d, 0x76, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 120 0x6f, 0x12, 0x12, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2e, 0x62, 0x61, 0x7a, 0x65, 0x6c, 0x2e, 0x73, 121 0x65, 0x6d, 0x76, 0x65, 0x72, 0x22, 0x6a, 0x0a, 0x06, 0x53, 0x65, 0x6d, 0x56, 0x65, 0x72, 0x12, 122 0x14, 0x0a, 0x05, 0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 123 0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x18, 0x02, 124 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x70, 125 0x61, 0x74, 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x70, 0x61, 0x74, 0x63, 126 0x68, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x72, 0x65, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x18, 127 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 128 0x65, 0x42, 0x74, 0x0a, 0x12, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2e, 0x62, 0x61, 0x7a, 0x65, 0x6c, 129 0x2e, 0x73, 0x65, 0x6d, 0x76, 0x65, 0x72, 0x42, 0x0b, 0x53, 0x65, 0x6d, 0x76, 0x65, 0x72, 0x50, 130 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 131 0x6f, 0x6d, 0x2f, 0x62, 0x61, 0x7a, 0x65, 0x6c, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x72, 0x65, 132 0x6d, 0x6f, 0x74, 0x65, 0x2d, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 133 0x62, 0x61, 0x7a, 0x65, 0x6c, 0x2f, 0x73, 0x65, 0x6d, 0x76, 0x65, 0x72, 0xa2, 0x02, 0x03, 0x53, 134 0x4d, 0x56, 0xaa, 0x02, 0x12, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x2e, 0x42, 0x61, 0x7a, 0x65, 0x6c, 135 0x2e, 0x53, 0x65, 0x6d, 0x76, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 136} 137 138var ( 139 file_build_bazel_semver_semver_proto_rawDescOnce sync.Once 140 file_build_bazel_semver_semver_proto_rawDescData = file_build_bazel_semver_semver_proto_rawDesc 141) 142 143func file_build_bazel_semver_semver_proto_rawDescGZIP() []byte { 144 file_build_bazel_semver_semver_proto_rawDescOnce.Do(func() { 145 file_build_bazel_semver_semver_proto_rawDescData = protoimpl.X.CompressGZIP(file_build_bazel_semver_semver_proto_rawDescData) 146 }) 147 return file_build_bazel_semver_semver_proto_rawDescData 148} 149 150var file_build_bazel_semver_semver_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 151var file_build_bazel_semver_semver_proto_goTypes = []interface{}{ 152 (*SemVer)(nil), // 0: build.bazel.semver.SemVer 153} 154var file_build_bazel_semver_semver_proto_depIdxs = []int32{ 155 0, // [0:0] is the sub-list for method output_type 156 0, // [0:0] is the sub-list for method input_type 157 0, // [0:0] is the sub-list for extension type_name 158 0, // [0:0] is the sub-list for extension extendee 159 0, // [0:0] is the sub-list for field type_name 160} 161 162func init() { file_build_bazel_semver_semver_proto_init() } 163func file_build_bazel_semver_semver_proto_init() { 164 if File_build_bazel_semver_semver_proto != nil { 165 return 166 } 167 if !protoimpl.UnsafeEnabled { 168 file_build_bazel_semver_semver_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 169 switch v := v.(*SemVer); i { 170 case 0: 171 return &v.state 172 case 1: 173 return &v.sizeCache 174 case 2: 175 return &v.unknownFields 176 default: 177 return nil 178 } 179 } 180 } 181 type x struct{} 182 out := protoimpl.TypeBuilder{ 183 File: protoimpl.DescBuilder{ 184 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 185 RawDescriptor: file_build_bazel_semver_semver_proto_rawDesc, 186 NumEnums: 0, 187 NumMessages: 1, 188 NumExtensions: 0, 189 NumServices: 0, 190 }, 191 GoTypes: file_build_bazel_semver_semver_proto_goTypes, 192 DependencyIndexes: file_build_bazel_semver_semver_proto_depIdxs, 193 MessageInfos: file_build_bazel_semver_semver_proto_msgTypes, 194 }.Build() 195 File_build_bazel_semver_semver_proto = out.File 196 file_build_bazel_semver_semver_proto_rawDesc = nil 197 file_build_bazel_semver_semver_proto_goTypes = nil 198 file_build_bazel_semver_semver_proto_depIdxs = nil 199} 200