1 /* 2 * Copyright 2020 Google LLC 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 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/devtools/containeranalysis/v1beta1/grafeas/grafeas.proto 18 19 package io.grafeas.v1beta1; 20 21 public interface NoteOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:grafeas.v1beta1.Note) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * Output only. The name of the note in the form of 31 * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. 32 * </pre> 33 * 34 * <code>string name = 1;</code> 35 * 36 * @return The name. 37 */ getName()38 java.lang.String getName(); 39 /** 40 * 41 * 42 * <pre> 43 * Output only. The name of the note in the form of 44 * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. 45 * </pre> 46 * 47 * <code>string name = 1;</code> 48 * 49 * @return The bytes for name. 50 */ getNameBytes()51 com.google.protobuf.ByteString getNameBytes(); 52 53 /** 54 * 55 * 56 * <pre> 57 * A one sentence description of this note. 58 * </pre> 59 * 60 * <code>string short_description = 2;</code> 61 * 62 * @return The shortDescription. 63 */ getShortDescription()64 java.lang.String getShortDescription(); 65 /** 66 * 67 * 68 * <pre> 69 * A one sentence description of this note. 70 * </pre> 71 * 72 * <code>string short_description = 2;</code> 73 * 74 * @return The bytes for shortDescription. 75 */ getShortDescriptionBytes()76 com.google.protobuf.ByteString getShortDescriptionBytes(); 77 78 /** 79 * 80 * 81 * <pre> 82 * A detailed description of this note. 83 * </pre> 84 * 85 * <code>string long_description = 3;</code> 86 * 87 * @return The longDescription. 88 */ getLongDescription()89 java.lang.String getLongDescription(); 90 /** 91 * 92 * 93 * <pre> 94 * A detailed description of this note. 95 * </pre> 96 * 97 * <code>string long_description = 3;</code> 98 * 99 * @return The bytes for longDescription. 100 */ getLongDescriptionBytes()101 com.google.protobuf.ByteString getLongDescriptionBytes(); 102 103 /** 104 * 105 * 106 * <pre> 107 * Output only. The type of analysis. This field can be used as a filter in 108 * list requests. 109 * </pre> 110 * 111 * <code>.grafeas.v1beta1.NoteKind kind = 4;</code> 112 * 113 * @return The enum numeric value on the wire for kind. 114 */ getKindValue()115 int getKindValue(); 116 /** 117 * 118 * 119 * <pre> 120 * Output only. The type of analysis. This field can be used as a filter in 121 * list requests. 122 * </pre> 123 * 124 * <code>.grafeas.v1beta1.NoteKind kind = 4;</code> 125 * 126 * @return The kind. 127 */ getKind()128 io.grafeas.v1beta1.common.NoteKind getKind(); 129 130 /** 131 * 132 * 133 * <pre> 134 * URLs associated with this note. 135 * </pre> 136 * 137 * <code>repeated .grafeas.v1beta1.RelatedUrl related_url = 5;</code> 138 */ getRelatedUrlList()139 java.util.List<io.grafeas.v1beta1.common.RelatedUrl> getRelatedUrlList(); 140 /** 141 * 142 * 143 * <pre> 144 * URLs associated with this note. 145 * </pre> 146 * 147 * <code>repeated .grafeas.v1beta1.RelatedUrl related_url = 5;</code> 148 */ getRelatedUrl(int index)149 io.grafeas.v1beta1.common.RelatedUrl getRelatedUrl(int index); 150 /** 151 * 152 * 153 * <pre> 154 * URLs associated with this note. 155 * </pre> 156 * 157 * <code>repeated .grafeas.v1beta1.RelatedUrl related_url = 5;</code> 158 */ getRelatedUrlCount()159 int getRelatedUrlCount(); 160 /** 161 * 162 * 163 * <pre> 164 * URLs associated with this note. 165 * </pre> 166 * 167 * <code>repeated .grafeas.v1beta1.RelatedUrl related_url = 5;</code> 168 */ 169 java.util.List<? extends io.grafeas.v1beta1.common.RelatedUrlOrBuilder> getRelatedUrlOrBuilderList()170 getRelatedUrlOrBuilderList(); 171 /** 172 * 173 * 174 * <pre> 175 * URLs associated with this note. 176 * </pre> 177 * 178 * <code>repeated .grafeas.v1beta1.RelatedUrl related_url = 5;</code> 179 */ getRelatedUrlOrBuilder(int index)180 io.grafeas.v1beta1.common.RelatedUrlOrBuilder getRelatedUrlOrBuilder(int index); 181 182 /** 183 * 184 * 185 * <pre> 186 * Time of expiration for this note. Empty if note does not expire. 187 * </pre> 188 * 189 * <code>.google.protobuf.Timestamp expiration_time = 6;</code> 190 * 191 * @return Whether the expirationTime field is set. 192 */ hasExpirationTime()193 boolean hasExpirationTime(); 194 /** 195 * 196 * 197 * <pre> 198 * Time of expiration for this note. Empty if note does not expire. 199 * </pre> 200 * 201 * <code>.google.protobuf.Timestamp expiration_time = 6;</code> 202 * 203 * @return The expirationTime. 204 */ getExpirationTime()205 com.google.protobuf.Timestamp getExpirationTime(); 206 /** 207 * 208 * 209 * <pre> 210 * Time of expiration for this note. Empty if note does not expire. 211 * </pre> 212 * 213 * <code>.google.protobuf.Timestamp expiration_time = 6;</code> 214 */ getExpirationTimeOrBuilder()215 com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder(); 216 217 /** 218 * 219 * 220 * <pre> 221 * Output only. The time this note was created. This field can be used as a 222 * filter in list requests. 223 * </pre> 224 * 225 * <code>.google.protobuf.Timestamp create_time = 7;</code> 226 * 227 * @return Whether the createTime field is set. 228 */ hasCreateTime()229 boolean hasCreateTime(); 230 /** 231 * 232 * 233 * <pre> 234 * Output only. The time this note was created. This field can be used as a 235 * filter in list requests. 236 * </pre> 237 * 238 * <code>.google.protobuf.Timestamp create_time = 7;</code> 239 * 240 * @return The createTime. 241 */ getCreateTime()242 com.google.protobuf.Timestamp getCreateTime(); 243 /** 244 * 245 * 246 * <pre> 247 * Output only. The time this note was created. This field can be used as a 248 * filter in list requests. 249 * </pre> 250 * 251 * <code>.google.protobuf.Timestamp create_time = 7;</code> 252 */ getCreateTimeOrBuilder()253 com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); 254 255 /** 256 * 257 * 258 * <pre> 259 * Output only. The time this note was last updated. This field can be used as 260 * a filter in list requests. 261 * </pre> 262 * 263 * <code>.google.protobuf.Timestamp update_time = 8;</code> 264 * 265 * @return Whether the updateTime field is set. 266 */ hasUpdateTime()267 boolean hasUpdateTime(); 268 /** 269 * 270 * 271 * <pre> 272 * Output only. The time this note was last updated. This field can be used as 273 * a filter in list requests. 274 * </pre> 275 * 276 * <code>.google.protobuf.Timestamp update_time = 8;</code> 277 * 278 * @return The updateTime. 279 */ getUpdateTime()280 com.google.protobuf.Timestamp getUpdateTime(); 281 /** 282 * 283 * 284 * <pre> 285 * Output only. The time this note was last updated. This field can be used as 286 * a filter in list requests. 287 * </pre> 288 * 289 * <code>.google.protobuf.Timestamp update_time = 8;</code> 290 */ getUpdateTimeOrBuilder()291 com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); 292 293 /** 294 * 295 * 296 * <pre> 297 * Other notes related to this note. 298 * </pre> 299 * 300 * <code>repeated string related_note_names = 9;</code> 301 * 302 * @return A list containing the relatedNoteNames. 303 */ getRelatedNoteNamesList()304 java.util.List<java.lang.String> getRelatedNoteNamesList(); 305 /** 306 * 307 * 308 * <pre> 309 * Other notes related to this note. 310 * </pre> 311 * 312 * <code>repeated string related_note_names = 9;</code> 313 * 314 * @return The count of relatedNoteNames. 315 */ getRelatedNoteNamesCount()316 int getRelatedNoteNamesCount(); 317 /** 318 * 319 * 320 * <pre> 321 * Other notes related to this note. 322 * </pre> 323 * 324 * <code>repeated string related_note_names = 9;</code> 325 * 326 * @param index The index of the element to return. 327 * @return The relatedNoteNames at the given index. 328 */ getRelatedNoteNames(int index)329 java.lang.String getRelatedNoteNames(int index); 330 /** 331 * 332 * 333 * <pre> 334 * Other notes related to this note. 335 * </pre> 336 * 337 * <code>repeated string related_note_names = 9;</code> 338 * 339 * @param index The index of the value to return. 340 * @return The bytes of the relatedNoteNames at the given index. 341 */ getRelatedNoteNamesBytes(int index)342 com.google.protobuf.ByteString getRelatedNoteNamesBytes(int index); 343 344 /** 345 * 346 * 347 * <pre> 348 * A note describing a package vulnerability. 349 * </pre> 350 * 351 * <code>.grafeas.v1beta1.vulnerability.Vulnerability vulnerability = 10;</code> 352 * 353 * @return Whether the vulnerability field is set. 354 */ hasVulnerability()355 boolean hasVulnerability(); 356 /** 357 * 358 * 359 * <pre> 360 * A note describing a package vulnerability. 361 * </pre> 362 * 363 * <code>.grafeas.v1beta1.vulnerability.Vulnerability vulnerability = 10;</code> 364 * 365 * @return The vulnerability. 366 */ getVulnerability()367 io.grafeas.v1beta1.vulnerability.Vulnerability getVulnerability(); 368 /** 369 * 370 * 371 * <pre> 372 * A note describing a package vulnerability. 373 * </pre> 374 * 375 * <code>.grafeas.v1beta1.vulnerability.Vulnerability vulnerability = 10;</code> 376 */ getVulnerabilityOrBuilder()377 io.grafeas.v1beta1.vulnerability.VulnerabilityOrBuilder getVulnerabilityOrBuilder(); 378 379 /** 380 * 381 * 382 * <pre> 383 * A note describing build provenance for a verifiable build. 384 * </pre> 385 * 386 * <code>.grafeas.v1beta1.build.Build build = 11;</code> 387 * 388 * @return Whether the build field is set. 389 */ hasBuild()390 boolean hasBuild(); 391 /** 392 * 393 * 394 * <pre> 395 * A note describing build provenance for a verifiable build. 396 * </pre> 397 * 398 * <code>.grafeas.v1beta1.build.Build build = 11;</code> 399 * 400 * @return The build. 401 */ getBuild()402 io.grafeas.v1beta1.build.Build getBuild(); 403 /** 404 * 405 * 406 * <pre> 407 * A note describing build provenance for a verifiable build. 408 * </pre> 409 * 410 * <code>.grafeas.v1beta1.build.Build build = 11;</code> 411 */ getBuildOrBuilder()412 io.grafeas.v1beta1.build.BuildOrBuilder getBuildOrBuilder(); 413 414 /** 415 * 416 * 417 * <pre> 418 * A note describing a base image. 419 * </pre> 420 * 421 * <code>.grafeas.v1beta1.image.Basis base_image = 12;</code> 422 * 423 * @return Whether the baseImage field is set. 424 */ hasBaseImage()425 boolean hasBaseImage(); 426 /** 427 * 428 * 429 * <pre> 430 * A note describing a base image. 431 * </pre> 432 * 433 * <code>.grafeas.v1beta1.image.Basis base_image = 12;</code> 434 * 435 * @return The baseImage. 436 */ getBaseImage()437 io.grafeas.v1beta1.image.Basis getBaseImage(); 438 /** 439 * 440 * 441 * <pre> 442 * A note describing a base image. 443 * </pre> 444 * 445 * <code>.grafeas.v1beta1.image.Basis base_image = 12;</code> 446 */ getBaseImageOrBuilder()447 io.grafeas.v1beta1.image.BasisOrBuilder getBaseImageOrBuilder(); 448 449 /** 450 * 451 * 452 * <pre> 453 * A note describing a package hosted by various package managers. 454 * </pre> 455 * 456 * <code>.grafeas.v1beta1.package.Package package = 13;</code> 457 * 458 * @return Whether the package field is set. 459 */ hasPackage()460 boolean hasPackage(); 461 /** 462 * 463 * 464 * <pre> 465 * A note describing a package hosted by various package managers. 466 * </pre> 467 * 468 * <code>.grafeas.v1beta1.package.Package package = 13;</code> 469 * 470 * @return The package. 471 */ getPackage()472 io.grafeas.v1beta1.pkg.Package getPackage(); 473 /** 474 * 475 * 476 * <pre> 477 * A note describing a package hosted by various package managers. 478 * </pre> 479 * 480 * <code>.grafeas.v1beta1.package.Package package = 13;</code> 481 */ getPackageOrBuilder()482 io.grafeas.v1beta1.pkg.PackageOrBuilder getPackageOrBuilder(); 483 484 /** 485 * 486 * 487 * <pre> 488 * A note describing something that can be deployed. 489 * </pre> 490 * 491 * <code>.grafeas.v1beta1.deployment.Deployable deployable = 14;</code> 492 * 493 * @return Whether the deployable field is set. 494 */ hasDeployable()495 boolean hasDeployable(); 496 /** 497 * 498 * 499 * <pre> 500 * A note describing something that can be deployed. 501 * </pre> 502 * 503 * <code>.grafeas.v1beta1.deployment.Deployable deployable = 14;</code> 504 * 505 * @return The deployable. 506 */ getDeployable()507 io.grafeas.v1beta1.deployment.Deployable getDeployable(); 508 /** 509 * 510 * 511 * <pre> 512 * A note describing something that can be deployed. 513 * </pre> 514 * 515 * <code>.grafeas.v1beta1.deployment.Deployable deployable = 14;</code> 516 */ getDeployableOrBuilder()517 io.grafeas.v1beta1.deployment.DeployableOrBuilder getDeployableOrBuilder(); 518 519 /** 520 * 521 * 522 * <pre> 523 * A note describing the initial analysis of a resource. 524 * </pre> 525 * 526 * <code>.grafeas.v1beta1.discovery.Discovery discovery = 15;</code> 527 * 528 * @return Whether the discovery field is set. 529 */ hasDiscovery()530 boolean hasDiscovery(); 531 /** 532 * 533 * 534 * <pre> 535 * A note describing the initial analysis of a resource. 536 * </pre> 537 * 538 * <code>.grafeas.v1beta1.discovery.Discovery discovery = 15;</code> 539 * 540 * @return The discovery. 541 */ getDiscovery()542 io.grafeas.v1beta1.discovery.Discovery getDiscovery(); 543 /** 544 * 545 * 546 * <pre> 547 * A note describing the initial analysis of a resource. 548 * </pre> 549 * 550 * <code>.grafeas.v1beta1.discovery.Discovery discovery = 15;</code> 551 */ getDiscoveryOrBuilder()552 io.grafeas.v1beta1.discovery.DiscoveryOrBuilder getDiscoveryOrBuilder(); 553 554 /** 555 * 556 * 557 * <pre> 558 * A note describing an attestation role. 559 * </pre> 560 * 561 * <code>.grafeas.v1beta1.attestation.Authority attestation_authority = 16;</code> 562 * 563 * @return Whether the attestationAuthority field is set. 564 */ hasAttestationAuthority()565 boolean hasAttestationAuthority(); 566 /** 567 * 568 * 569 * <pre> 570 * A note describing an attestation role. 571 * </pre> 572 * 573 * <code>.grafeas.v1beta1.attestation.Authority attestation_authority = 16;</code> 574 * 575 * @return The attestationAuthority. 576 */ getAttestationAuthority()577 io.grafeas.v1beta1.attestation.Authority getAttestationAuthority(); 578 /** 579 * 580 * 581 * <pre> 582 * A note describing an attestation role. 583 * </pre> 584 * 585 * <code>.grafeas.v1beta1.attestation.Authority attestation_authority = 16;</code> 586 */ getAttestationAuthorityOrBuilder()587 io.grafeas.v1beta1.attestation.AuthorityOrBuilder getAttestationAuthorityOrBuilder(); 588 getTypeCase()589 public io.grafeas.v1beta1.Note.TypeCase getTypeCase(); 590 } 591