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 15syntax = "proto3"; 16 17package build.bazel.semver; 18 19option csharp_namespace = "Build.Bazel.Semver"; 20option go_package = "github.com/bazelbuild/remote-apis/build/bazel/semver"; 21option java_multiple_files = true; 22option java_outer_classname = "SemverProto"; 23option java_package = "build.bazel.semver"; 24option objc_class_prefix = "SMV"; 25 26// The full version of a given tool. 27message SemVer { 28 // The major version, e.g 10 for 10.2.3. 29 int32 major = 1; 30 31 // The minor version, e.g. 2 for 10.2.3. 32 int32 minor = 2; 33 34 // The patch version, e.g 3 for 10.2.3. 35 int32 patch = 3; 36 37 // The pre-release version. Either this field or major/minor/patch fields 38 // must be filled. They are mutually exclusive. Pre-release versions are 39 // assumed to be earlier than any released versions. 40 string prerelease = 4; 41} 42