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/grafeas.proto 19 20 package io.grafeas.v1; 21 22 public interface OccurrenceOrBuilder 23 extends 24 // @@protoc_insertion_point(interface_extends:grafeas.v1.Occurrence) 25 com.google.protobuf.MessageOrBuilder { 26 27 /** 28 * 29 * 30 * <pre> 31 * Output only. The name of the occurrence in the form of 32 * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. 33 * </pre> 34 * 35 * <code>string name = 1;</code> 36 * 37 * @return The name. 38 */ getName()39 java.lang.String getName(); 40 /** 41 * 42 * 43 * <pre> 44 * Output only. The name of the occurrence in the form of 45 * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. 46 * </pre> 47 * 48 * <code>string name = 1;</code> 49 * 50 * @return The bytes for name. 51 */ getNameBytes()52 com.google.protobuf.ByteString getNameBytes(); 53 54 /** 55 * 56 * 57 * <pre> 58 * Required. Immutable. A URI that represents the resource for which the 59 * occurrence applies. For example, 60 * `https://gcr.io/project/image@sha256:123abc` for a Docker image. 61 * </pre> 62 * 63 * <code>string resource_uri = 2;</code> 64 * 65 * @return The resourceUri. 66 */ getResourceUri()67 java.lang.String getResourceUri(); 68 /** 69 * 70 * 71 * <pre> 72 * Required. Immutable. A URI that represents the resource for which the 73 * occurrence applies. For example, 74 * `https://gcr.io/project/image@sha256:123abc` for a Docker image. 75 * </pre> 76 * 77 * <code>string resource_uri = 2;</code> 78 * 79 * @return The bytes for resourceUri. 80 */ getResourceUriBytes()81 com.google.protobuf.ByteString getResourceUriBytes(); 82 83 /** 84 * 85 * 86 * <pre> 87 * Required. Immutable. The analysis note associated with this occurrence, in 88 * the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be 89 * used as a filter in list requests. 90 * </pre> 91 * 92 * <code>string note_name = 3;</code> 93 * 94 * @return The noteName. 95 */ getNoteName()96 java.lang.String getNoteName(); 97 /** 98 * 99 * 100 * <pre> 101 * Required. Immutable. The analysis note associated with this occurrence, in 102 * the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be 103 * used as a filter in list requests. 104 * </pre> 105 * 106 * <code>string note_name = 3;</code> 107 * 108 * @return The bytes for noteName. 109 */ getNoteNameBytes()110 com.google.protobuf.ByteString getNoteNameBytes(); 111 112 /** 113 * 114 * 115 * <pre> 116 * Output only. This explicitly denotes which of the occurrence details are 117 * specified. This field can be used as a filter in list requests. 118 * </pre> 119 * 120 * <code>.grafeas.v1.NoteKind kind = 4;</code> 121 * 122 * @return The enum numeric value on the wire for kind. 123 */ getKindValue()124 int getKindValue(); 125 /** 126 * 127 * 128 * <pre> 129 * Output only. This explicitly denotes which of the occurrence details are 130 * specified. This field can be used as a filter in list requests. 131 * </pre> 132 * 133 * <code>.grafeas.v1.NoteKind kind = 4;</code> 134 * 135 * @return The kind. 136 */ getKind()137 io.grafeas.v1.NoteKind getKind(); 138 139 /** 140 * 141 * 142 * <pre> 143 * A description of actions that can be taken to remedy the note. 144 * </pre> 145 * 146 * <code>string remediation = 5;</code> 147 * 148 * @return The remediation. 149 */ getRemediation()150 java.lang.String getRemediation(); 151 /** 152 * 153 * 154 * <pre> 155 * A description of actions that can be taken to remedy the note. 156 * </pre> 157 * 158 * <code>string remediation = 5;</code> 159 * 160 * @return The bytes for remediation. 161 */ getRemediationBytes()162 com.google.protobuf.ByteString getRemediationBytes(); 163 164 /** 165 * 166 * 167 * <pre> 168 * Output only. The time this occurrence was created. 169 * </pre> 170 * 171 * <code>.google.protobuf.Timestamp create_time = 6;</code> 172 * 173 * @return Whether the createTime field is set. 174 */ hasCreateTime()175 boolean hasCreateTime(); 176 /** 177 * 178 * 179 * <pre> 180 * Output only. The time this occurrence was created. 181 * </pre> 182 * 183 * <code>.google.protobuf.Timestamp create_time = 6;</code> 184 * 185 * @return The createTime. 186 */ getCreateTime()187 com.google.protobuf.Timestamp getCreateTime(); 188 /** 189 * 190 * 191 * <pre> 192 * Output only. The time this occurrence was created. 193 * </pre> 194 * 195 * <code>.google.protobuf.Timestamp create_time = 6;</code> 196 */ getCreateTimeOrBuilder()197 com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); 198 199 /** 200 * 201 * 202 * <pre> 203 * Output only. The time this occurrence was last updated. 204 * </pre> 205 * 206 * <code>.google.protobuf.Timestamp update_time = 7;</code> 207 * 208 * @return Whether the updateTime field is set. 209 */ hasUpdateTime()210 boolean hasUpdateTime(); 211 /** 212 * 213 * 214 * <pre> 215 * Output only. The time this occurrence was last updated. 216 * </pre> 217 * 218 * <code>.google.protobuf.Timestamp update_time = 7;</code> 219 * 220 * @return The updateTime. 221 */ getUpdateTime()222 com.google.protobuf.Timestamp getUpdateTime(); 223 /** 224 * 225 * 226 * <pre> 227 * Output only. The time this occurrence was last updated. 228 * </pre> 229 * 230 * <code>.google.protobuf.Timestamp update_time = 7;</code> 231 */ getUpdateTimeOrBuilder()232 com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); 233 234 /** 235 * 236 * 237 * <pre> 238 * Describes a security vulnerability. 239 * </pre> 240 * 241 * <code>.grafeas.v1.VulnerabilityOccurrence vulnerability = 8;</code> 242 * 243 * @return Whether the vulnerability field is set. 244 */ hasVulnerability()245 boolean hasVulnerability(); 246 /** 247 * 248 * 249 * <pre> 250 * Describes a security vulnerability. 251 * </pre> 252 * 253 * <code>.grafeas.v1.VulnerabilityOccurrence vulnerability = 8;</code> 254 * 255 * @return The vulnerability. 256 */ getVulnerability()257 io.grafeas.v1.VulnerabilityOccurrence getVulnerability(); 258 /** 259 * 260 * 261 * <pre> 262 * Describes a security vulnerability. 263 * </pre> 264 * 265 * <code>.grafeas.v1.VulnerabilityOccurrence vulnerability = 8;</code> 266 */ getVulnerabilityOrBuilder()267 io.grafeas.v1.VulnerabilityOccurrenceOrBuilder getVulnerabilityOrBuilder(); 268 269 /** 270 * 271 * 272 * <pre> 273 * Describes a verifiable build. 274 * </pre> 275 * 276 * <code>.grafeas.v1.BuildOccurrence build = 9;</code> 277 * 278 * @return Whether the build field is set. 279 */ hasBuild()280 boolean hasBuild(); 281 /** 282 * 283 * 284 * <pre> 285 * Describes a verifiable build. 286 * </pre> 287 * 288 * <code>.grafeas.v1.BuildOccurrence build = 9;</code> 289 * 290 * @return The build. 291 */ getBuild()292 io.grafeas.v1.BuildOccurrence getBuild(); 293 /** 294 * 295 * 296 * <pre> 297 * Describes a verifiable build. 298 * </pre> 299 * 300 * <code>.grafeas.v1.BuildOccurrence build = 9;</code> 301 */ getBuildOrBuilder()302 io.grafeas.v1.BuildOccurrenceOrBuilder getBuildOrBuilder(); 303 304 /** 305 * 306 * 307 * <pre> 308 * Describes how this resource derives from the basis in the associated 309 * note. 310 * </pre> 311 * 312 * <code>.grafeas.v1.ImageOccurrence image = 10;</code> 313 * 314 * @return Whether the image field is set. 315 */ hasImage()316 boolean hasImage(); 317 /** 318 * 319 * 320 * <pre> 321 * Describes how this resource derives from the basis in the associated 322 * note. 323 * </pre> 324 * 325 * <code>.grafeas.v1.ImageOccurrence image = 10;</code> 326 * 327 * @return The image. 328 */ getImage()329 io.grafeas.v1.ImageOccurrence getImage(); 330 /** 331 * 332 * 333 * <pre> 334 * Describes how this resource derives from the basis in the associated 335 * note. 336 * </pre> 337 * 338 * <code>.grafeas.v1.ImageOccurrence image = 10;</code> 339 */ getImageOrBuilder()340 io.grafeas.v1.ImageOccurrenceOrBuilder getImageOrBuilder(); 341 342 /** 343 * 344 * 345 * <pre> 346 * Describes the installation of a package on the linked resource. 347 * </pre> 348 * 349 * <code>.grafeas.v1.PackageOccurrence package = 11;</code> 350 * 351 * @return Whether the package field is set. 352 */ hasPackage()353 boolean hasPackage(); 354 /** 355 * 356 * 357 * <pre> 358 * Describes the installation of a package on the linked resource. 359 * </pre> 360 * 361 * <code>.grafeas.v1.PackageOccurrence package = 11;</code> 362 * 363 * @return The package. 364 */ getPackage()365 io.grafeas.v1.PackageOccurrence getPackage(); 366 /** 367 * 368 * 369 * <pre> 370 * Describes the installation of a package on the linked resource. 371 * </pre> 372 * 373 * <code>.grafeas.v1.PackageOccurrence package = 11;</code> 374 */ getPackageOrBuilder()375 io.grafeas.v1.PackageOccurrenceOrBuilder getPackageOrBuilder(); 376 377 /** 378 * 379 * 380 * <pre> 381 * Describes the deployment of an artifact on a runtime. 382 * </pre> 383 * 384 * <code>.grafeas.v1.DeploymentOccurrence deployment = 12;</code> 385 * 386 * @return Whether the deployment field is set. 387 */ hasDeployment()388 boolean hasDeployment(); 389 /** 390 * 391 * 392 * <pre> 393 * Describes the deployment of an artifact on a runtime. 394 * </pre> 395 * 396 * <code>.grafeas.v1.DeploymentOccurrence deployment = 12;</code> 397 * 398 * @return The deployment. 399 */ getDeployment()400 io.grafeas.v1.DeploymentOccurrence getDeployment(); 401 /** 402 * 403 * 404 * <pre> 405 * Describes the deployment of an artifact on a runtime. 406 * </pre> 407 * 408 * <code>.grafeas.v1.DeploymentOccurrence deployment = 12;</code> 409 */ getDeploymentOrBuilder()410 io.grafeas.v1.DeploymentOccurrenceOrBuilder getDeploymentOrBuilder(); 411 412 /** 413 * 414 * 415 * <pre> 416 * Describes when a resource was discovered. 417 * </pre> 418 * 419 * <code>.grafeas.v1.DiscoveryOccurrence discovery = 13;</code> 420 * 421 * @return Whether the discovery field is set. 422 */ hasDiscovery()423 boolean hasDiscovery(); 424 /** 425 * 426 * 427 * <pre> 428 * Describes when a resource was discovered. 429 * </pre> 430 * 431 * <code>.grafeas.v1.DiscoveryOccurrence discovery = 13;</code> 432 * 433 * @return The discovery. 434 */ getDiscovery()435 io.grafeas.v1.DiscoveryOccurrence getDiscovery(); 436 /** 437 * 438 * 439 * <pre> 440 * Describes when a resource was discovered. 441 * </pre> 442 * 443 * <code>.grafeas.v1.DiscoveryOccurrence discovery = 13;</code> 444 */ getDiscoveryOrBuilder()445 io.grafeas.v1.DiscoveryOccurrenceOrBuilder getDiscoveryOrBuilder(); 446 447 /** 448 * 449 * 450 * <pre> 451 * Describes an attestation of an artifact. 452 * </pre> 453 * 454 * <code>.grafeas.v1.AttestationOccurrence attestation = 14;</code> 455 * 456 * @return Whether the attestation field is set. 457 */ hasAttestation()458 boolean hasAttestation(); 459 /** 460 * 461 * 462 * <pre> 463 * Describes an attestation of an artifact. 464 * </pre> 465 * 466 * <code>.grafeas.v1.AttestationOccurrence attestation = 14;</code> 467 * 468 * @return The attestation. 469 */ getAttestation()470 io.grafeas.v1.AttestationOccurrence getAttestation(); 471 /** 472 * 473 * 474 * <pre> 475 * Describes an attestation of an artifact. 476 * </pre> 477 * 478 * <code>.grafeas.v1.AttestationOccurrence attestation = 14;</code> 479 */ getAttestationOrBuilder()480 io.grafeas.v1.AttestationOccurrenceOrBuilder getAttestationOrBuilder(); 481 482 /** 483 * 484 * 485 * <pre> 486 * Describes an available package upgrade on the linked resource. 487 * </pre> 488 * 489 * <code>.grafeas.v1.UpgradeOccurrence upgrade = 15;</code> 490 * 491 * @return Whether the upgrade field is set. 492 */ hasUpgrade()493 boolean hasUpgrade(); 494 /** 495 * 496 * 497 * <pre> 498 * Describes an available package upgrade on the linked resource. 499 * </pre> 500 * 501 * <code>.grafeas.v1.UpgradeOccurrence upgrade = 15;</code> 502 * 503 * @return The upgrade. 504 */ getUpgrade()505 io.grafeas.v1.UpgradeOccurrence getUpgrade(); 506 /** 507 * 508 * 509 * <pre> 510 * Describes an available package upgrade on the linked resource. 511 * </pre> 512 * 513 * <code>.grafeas.v1.UpgradeOccurrence upgrade = 15;</code> 514 */ getUpgradeOrBuilder()515 io.grafeas.v1.UpgradeOccurrenceOrBuilder getUpgradeOrBuilder(); 516 517 /** 518 * 519 * 520 * <pre> 521 * Describes a compliance violation on a linked resource. 522 * </pre> 523 * 524 * <code>.grafeas.v1.ComplianceOccurrence compliance = 16;</code> 525 * 526 * @return Whether the compliance field is set. 527 */ hasCompliance()528 boolean hasCompliance(); 529 /** 530 * 531 * 532 * <pre> 533 * Describes a compliance violation on a linked resource. 534 * </pre> 535 * 536 * <code>.grafeas.v1.ComplianceOccurrence compliance = 16;</code> 537 * 538 * @return The compliance. 539 */ getCompliance()540 io.grafeas.v1.ComplianceOccurrence getCompliance(); 541 /** 542 * 543 * 544 * <pre> 545 * Describes a compliance violation on a linked resource. 546 * </pre> 547 * 548 * <code>.grafeas.v1.ComplianceOccurrence compliance = 16;</code> 549 */ getComplianceOrBuilder()550 io.grafeas.v1.ComplianceOccurrenceOrBuilder getComplianceOrBuilder(); 551 552 /** 553 * 554 * 555 * <pre> 556 * Describes an attestation of an artifact using dsse. 557 * </pre> 558 * 559 * <code>.grafeas.v1.DSSEAttestationOccurrence dsse_attestation = 17;</code> 560 * 561 * @return Whether the dsseAttestation field is set. 562 */ hasDsseAttestation()563 boolean hasDsseAttestation(); 564 /** 565 * 566 * 567 * <pre> 568 * Describes an attestation of an artifact using dsse. 569 * </pre> 570 * 571 * <code>.grafeas.v1.DSSEAttestationOccurrence dsse_attestation = 17;</code> 572 * 573 * @return The dsseAttestation. 574 */ getDsseAttestation()575 io.grafeas.v1.DSSEAttestationOccurrence getDsseAttestation(); 576 /** 577 * 578 * 579 * <pre> 580 * Describes an attestation of an artifact using dsse. 581 * </pre> 582 * 583 * <code>.grafeas.v1.DSSEAttestationOccurrence dsse_attestation = 17;</code> 584 */ getDsseAttestationOrBuilder()585 io.grafeas.v1.DSSEAttestationOccurrenceOrBuilder getDsseAttestationOrBuilder(); 586 587 /** 588 * 589 * 590 * <pre> 591 * https://github.com/secure-systems-lab/dsse 592 * </pre> 593 * 594 * <code>.grafeas.v1.Envelope envelope = 18;</code> 595 * 596 * @return Whether the envelope field is set. 597 */ hasEnvelope()598 boolean hasEnvelope(); 599 /** 600 * 601 * 602 * <pre> 603 * https://github.com/secure-systems-lab/dsse 604 * </pre> 605 * 606 * <code>.grafeas.v1.Envelope envelope = 18;</code> 607 * 608 * @return The envelope. 609 */ getEnvelope()610 io.grafeas.v1.Envelope getEnvelope(); 611 /** 612 * 613 * 614 * <pre> 615 * https://github.com/secure-systems-lab/dsse 616 * </pre> 617 * 618 * <code>.grafeas.v1.Envelope envelope = 18;</code> 619 */ getEnvelopeOrBuilder()620 io.grafeas.v1.EnvelopeOrBuilder getEnvelopeOrBuilder(); 621 getDetailsCase()622 public io.grafeas.v1.Occurrence.DetailsCase getDetailsCase(); 623 } 624