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 PackageNoteOrBuilder 23 extends 24 // @@protoc_insertion_point(interface_extends:grafeas.v1.PackageNote) 25 com.google.protobuf.MessageOrBuilder { 26 27 /** 28 * 29 * 30 * <pre> 31 * The name of the package. 32 * </pre> 33 * 34 * <code> 35 * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; 36 * </code> 37 * 38 * @return The name. 39 */ getName()40 java.lang.String getName(); 41 /** 42 * 43 * 44 * <pre> 45 * The name of the package. 46 * </pre> 47 * 48 * <code> 49 * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; 50 * </code> 51 * 52 * @return The bytes for name. 53 */ getNameBytes()54 com.google.protobuf.ByteString getNameBytes(); 55 56 /** 57 * 58 * 59 * <pre> 60 * Deprecated. 61 * The various channels by which a package is distributed. 62 * </pre> 63 * 64 * <code>repeated .grafeas.v1.Distribution distribution = 10;</code> 65 */ getDistributionList()66 java.util.List<io.grafeas.v1.Distribution> getDistributionList(); 67 /** 68 * 69 * 70 * <pre> 71 * Deprecated. 72 * The various channels by which a package is distributed. 73 * </pre> 74 * 75 * <code>repeated .grafeas.v1.Distribution distribution = 10;</code> 76 */ getDistribution(int index)77 io.grafeas.v1.Distribution getDistribution(int index); 78 /** 79 * 80 * 81 * <pre> 82 * Deprecated. 83 * The various channels by which a package is distributed. 84 * </pre> 85 * 86 * <code>repeated .grafeas.v1.Distribution distribution = 10;</code> 87 */ getDistributionCount()88 int getDistributionCount(); 89 /** 90 * 91 * 92 * <pre> 93 * Deprecated. 94 * The various channels by which a package is distributed. 95 * </pre> 96 * 97 * <code>repeated .grafeas.v1.Distribution distribution = 10;</code> 98 */ getDistributionOrBuilderList()99 java.util.List<? extends io.grafeas.v1.DistributionOrBuilder> getDistributionOrBuilderList(); 100 /** 101 * 102 * 103 * <pre> 104 * Deprecated. 105 * The various channels by which a package is distributed. 106 * </pre> 107 * 108 * <code>repeated .grafeas.v1.Distribution distribution = 10;</code> 109 */ getDistributionOrBuilder(int index)110 io.grafeas.v1.DistributionOrBuilder getDistributionOrBuilder(int index); 111 112 /** 113 * 114 * 115 * <pre> 116 * The type of package; whether native or non native (e.g., ruby gems, 117 * node.js packages, etc.). 118 * </pre> 119 * 120 * <code>string package_type = 11;</code> 121 * 122 * @return The packageType. 123 */ getPackageType()124 java.lang.String getPackageType(); 125 /** 126 * 127 * 128 * <pre> 129 * The type of package; whether native or non native (e.g., ruby gems, 130 * node.js packages, etc.). 131 * </pre> 132 * 133 * <code>string package_type = 11;</code> 134 * 135 * @return The bytes for packageType. 136 */ getPackageTypeBytes()137 com.google.protobuf.ByteString getPackageTypeBytes(); 138 139 /** 140 * 141 * 142 * <pre> 143 * The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) 144 * denoting the package manager version distributing a package. 145 * The cpe_uri will be blank for language packages. 146 * </pre> 147 * 148 * <code>string cpe_uri = 12;</code> 149 * 150 * @return The cpeUri. 151 */ getCpeUri()152 java.lang.String getCpeUri(); 153 /** 154 * 155 * 156 * <pre> 157 * The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) 158 * denoting the package manager version distributing a package. 159 * The cpe_uri will be blank for language packages. 160 * </pre> 161 * 162 * <code>string cpe_uri = 12;</code> 163 * 164 * @return The bytes for cpeUri. 165 */ getCpeUriBytes()166 com.google.protobuf.ByteString getCpeUriBytes(); 167 168 /** 169 * 170 * 171 * <pre> 172 * The CPU architecture for which packages in this distribution channel were 173 * built. Architecture will be blank for language packages. 174 * </pre> 175 * 176 * <code>.grafeas.v1.Architecture architecture = 13;</code> 177 * 178 * @return The enum numeric value on the wire for architecture. 179 */ getArchitectureValue()180 int getArchitectureValue(); 181 /** 182 * 183 * 184 * <pre> 185 * The CPU architecture for which packages in this distribution channel were 186 * built. Architecture will be blank for language packages. 187 * </pre> 188 * 189 * <code>.grafeas.v1.Architecture architecture = 13;</code> 190 * 191 * @return The architecture. 192 */ getArchitecture()193 io.grafeas.v1.Architecture getArchitecture(); 194 195 /** 196 * 197 * 198 * <pre> 199 * The version of the package. 200 * </pre> 201 * 202 * <code>.grafeas.v1.Version version = 14;</code> 203 * 204 * @return Whether the version field is set. 205 */ hasVersion()206 boolean hasVersion(); 207 /** 208 * 209 * 210 * <pre> 211 * The version of the package. 212 * </pre> 213 * 214 * <code>.grafeas.v1.Version version = 14;</code> 215 * 216 * @return The version. 217 */ getVersion()218 io.grafeas.v1.Version getVersion(); 219 /** 220 * 221 * 222 * <pre> 223 * The version of the package. 224 * </pre> 225 * 226 * <code>.grafeas.v1.Version version = 14;</code> 227 */ getVersionOrBuilder()228 io.grafeas.v1.VersionOrBuilder getVersionOrBuilder(); 229 230 /** 231 * 232 * 233 * <pre> 234 * A freeform text denoting the maintainer of this package. 235 * </pre> 236 * 237 * <code>string maintainer = 15;</code> 238 * 239 * @return The maintainer. 240 */ getMaintainer()241 java.lang.String getMaintainer(); 242 /** 243 * 244 * 245 * <pre> 246 * A freeform text denoting the maintainer of this package. 247 * </pre> 248 * 249 * <code>string maintainer = 15;</code> 250 * 251 * @return The bytes for maintainer. 252 */ getMaintainerBytes()253 com.google.protobuf.ByteString getMaintainerBytes(); 254 255 /** 256 * 257 * 258 * <pre> 259 * The homepage for this package. 260 * </pre> 261 * 262 * <code>string url = 16;</code> 263 * 264 * @return The url. 265 */ getUrl()266 java.lang.String getUrl(); 267 /** 268 * 269 * 270 * <pre> 271 * The homepage for this package. 272 * </pre> 273 * 274 * <code>string url = 16;</code> 275 * 276 * @return The bytes for url. 277 */ getUrlBytes()278 com.google.protobuf.ByteString getUrlBytes(); 279 280 /** 281 * 282 * 283 * <pre> 284 * The description of this package. 285 * </pre> 286 * 287 * <code>string description = 17;</code> 288 * 289 * @return The description. 290 */ getDescription()291 java.lang.String getDescription(); 292 /** 293 * 294 * 295 * <pre> 296 * The description of this package. 297 * </pre> 298 * 299 * <code>string description = 17;</code> 300 * 301 * @return The bytes for description. 302 */ getDescriptionBytes()303 com.google.protobuf.ByteString getDescriptionBytes(); 304 305 /** 306 * 307 * 308 * <pre> 309 * Licenses that have been declared by the authors of the package. 310 * </pre> 311 * 312 * <code>.grafeas.v1.License license = 18;</code> 313 * 314 * @return Whether the license field is set. 315 */ hasLicense()316 boolean hasLicense(); 317 /** 318 * 319 * 320 * <pre> 321 * Licenses that have been declared by the authors of the package. 322 * </pre> 323 * 324 * <code>.grafeas.v1.License license = 18;</code> 325 * 326 * @return The license. 327 */ getLicense()328 io.grafeas.v1.License getLicense(); 329 /** 330 * 331 * 332 * <pre> 333 * Licenses that have been declared by the authors of the package. 334 * </pre> 335 * 336 * <code>.grafeas.v1.License license = 18;</code> 337 */ getLicenseOrBuilder()338 io.grafeas.v1.LicenseOrBuilder getLicenseOrBuilder(); 339 340 /** 341 * 342 * 343 * <pre> 344 * Hash value, typically a file digest, that allows unique 345 * identification a specific package. 346 * </pre> 347 * 348 * <code>repeated .grafeas.v1.Digest digest = 19;</code> 349 */ getDigestList()350 java.util.List<io.grafeas.v1.Digest> getDigestList(); 351 /** 352 * 353 * 354 * <pre> 355 * Hash value, typically a file digest, that allows unique 356 * identification a specific package. 357 * </pre> 358 * 359 * <code>repeated .grafeas.v1.Digest digest = 19;</code> 360 */ getDigest(int index)361 io.grafeas.v1.Digest getDigest(int index); 362 /** 363 * 364 * 365 * <pre> 366 * Hash value, typically a file digest, that allows unique 367 * identification a specific package. 368 * </pre> 369 * 370 * <code>repeated .grafeas.v1.Digest digest = 19;</code> 371 */ getDigestCount()372 int getDigestCount(); 373 /** 374 * 375 * 376 * <pre> 377 * Hash value, typically a file digest, that allows unique 378 * identification a specific package. 379 * </pre> 380 * 381 * <code>repeated .grafeas.v1.Digest digest = 19;</code> 382 */ getDigestOrBuilderList()383 java.util.List<? extends io.grafeas.v1.DigestOrBuilder> getDigestOrBuilderList(); 384 /** 385 * 386 * 387 * <pre> 388 * Hash value, typically a file digest, that allows unique 389 * identification a specific package. 390 * </pre> 391 * 392 * <code>repeated .grafeas.v1.Digest digest = 19;</code> 393 */ getDigestOrBuilder(int index)394 io.grafeas.v1.DigestOrBuilder getDigestOrBuilder(int index); 395 } 396