1 /* 2 * Copyright 2019 The Grafeas Authors. All rights reserved. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 // Generated by the protocol buffer compiler. DO NOT EDIT! 18 // source: grafeas/v1/package.proto 19 20 package io.grafeas.v1; 21 22 public interface VersionOrBuilder 23 extends 24 // @@protoc_insertion_point(interface_extends:grafeas.v1.Version) 25 com.google.protobuf.MessageOrBuilder { 26 27 /** 28 * 29 * 30 * <pre> 31 * Used to correct mistakes in the version numbering scheme. 32 * </pre> 33 * 34 * <code>int32 epoch = 1;</code> 35 * 36 * @return The epoch. 37 */ getEpoch()38 int getEpoch(); 39 40 /** 41 * 42 * 43 * <pre> 44 * Required only when version kind is NORMAL. The main part of the version 45 * name. 46 * </pre> 47 * 48 * <code>string name = 2;</code> 49 * 50 * @return The name. 51 */ getName()52 java.lang.String getName(); 53 /** 54 * 55 * 56 * <pre> 57 * Required only when version kind is NORMAL. The main part of the version 58 * name. 59 * </pre> 60 * 61 * <code>string name = 2;</code> 62 * 63 * @return The bytes for name. 64 */ getNameBytes()65 com.google.protobuf.ByteString getNameBytes(); 66 67 /** 68 * 69 * 70 * <pre> 71 * The iteration of the package build from the above version. 72 * </pre> 73 * 74 * <code>string revision = 3;</code> 75 * 76 * @return The revision. 77 */ getRevision()78 java.lang.String getRevision(); 79 /** 80 * 81 * 82 * <pre> 83 * The iteration of the package build from the above version. 84 * </pre> 85 * 86 * <code>string revision = 3;</code> 87 * 88 * @return The bytes for revision. 89 */ getRevisionBytes()90 com.google.protobuf.ByteString getRevisionBytes(); 91 92 /** 93 * 94 * 95 * <pre> 96 * Whether this version is specifying part of an inclusive range. Grafeas 97 * does not have the capability to specify version ranges; instead we have 98 * fields that specify start version and end versions. At times this is 99 * insufficient - we also need to specify whether the version is included in 100 * the range or is excluded from the range. This boolean is expected to be set 101 * to true when the version is included in a range. 102 * </pre> 103 * 104 * <code>bool inclusive = 6;</code> 105 * 106 * @return The inclusive. 107 */ getInclusive()108 boolean getInclusive(); 109 110 /** 111 * 112 * 113 * <pre> 114 * Required. Distinguishes between sentinel MIN/MAX versions and normal 115 * versions. 116 * </pre> 117 * 118 * <code>.grafeas.v1.Version.VersionKind kind = 4;</code> 119 * 120 * @return The enum numeric value on the wire for kind. 121 */ getKindValue()122 int getKindValue(); 123 /** 124 * 125 * 126 * <pre> 127 * Required. Distinguishes between sentinel MIN/MAX versions and normal 128 * versions. 129 * </pre> 130 * 131 * <code>.grafeas.v1.Version.VersionKind kind = 4;</code> 132 * 133 * @return The kind. 134 */ getKind()135 io.grafeas.v1.Version.VersionKind getKind(); 136 137 /** 138 * 139 * 140 * <pre> 141 * Human readable version string. This string is of the form 142 * <epoch>:<name>-<revision> and is only set when kind is NORMAL. 143 * </pre> 144 * 145 * <code>string full_name = 5;</code> 146 * 147 * @return The fullName. 148 */ getFullName()149 java.lang.String getFullName(); 150 /** 151 * 152 * 153 * <pre> 154 * Human readable version string. This string is of the form 155 * <epoch>:<name>-<revision> and is only set when kind is NORMAL. 156 * </pre> 157 * 158 * <code>string full_name = 5;</code> 159 * 160 * @return The bytes for fullName. 161 */ getFullNameBytes()162 com.google.protobuf.ByteString getFullNameBytes(); 163 } 164