From a9de007a763594ff2df4e162edcc5c1b9dc08385 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Sat, 14 Feb 2026 03:06:17 +0000 Subject: [PATCH 1/2] feat: A new field `registry` is added to message `.grafeas.v1.BaseImage` feat: A new field `advisory_publish_time` is added to message `.grafeas.v1.VulnerabilityNote` PiperOrigin-RevId: 869922618 Source-Link: https://github.com/googleapis/googleapis/commit/67810511a5a40daa3402d796e44f77ccbcdd7d31 Source-Link: https://github.com/googleapis/googleapis-gen/commit/73d60f746adfb35717fe7cc607e95272d6ef16a2 Copy-Tag: eyJwIjoiR3JhZmVhcy8uT3dsQm90LnlhbWwiLCJoIjoiNzNkNjBmNzQ2YWRmYjM1NzE3ZmU3Y2M2MDdlOTUyNzJkNmVmMTZhMiJ9 --- .../GPBMetadata/Grafeas/V1/Attestation.php | 40 + .../src/GPBMetadata/Grafeas/V1/Build.php | 40 + .../src/GPBMetadata/Grafeas/V1/Common.php | Bin 0 -> 1537 bytes .../src/GPBMetadata/Grafeas/V1/Compliance.php | Bin 0 -> 1402 bytes .../proto/src/GPBMetadata/Grafeas/V1/Cvss.php | Bin 0 -> 3425 bytes .../src/GPBMetadata/Grafeas/V1/Deployment.php | Bin 0 -> 1084 bytes .../src/GPBMetadata/Grafeas/V1/Discovery.php | Bin 0 -> 2683 bytes .../Grafeas/V1/DsseAttestation.php | Bin 0 -> 1079 bytes .../src/GPBMetadata/Grafeas/V1/Grafeas.php | Bin 0 -> 9429 bytes .../src/GPBMetadata/Grafeas/V1/Image.php | 44 + .../Grafeas/V1/IntotoProvenance.php | 54 + .../Grafeas/V1/IntotoStatement.php | Bin 0 -> 3174 bytes .../src/GPBMetadata/Grafeas/V1/Package.php | Bin 0 -> 1945 bytes .../src/GPBMetadata/Grafeas/V1/Provenance.php | Bin 0 -> 2688 bytes .../proto/src/GPBMetadata/Grafeas/V1/Risk.php | 37 + .../proto/src/GPBMetadata/Grafeas/V1/Sbom.php | 51 + .../src/GPBMetadata/Grafeas/V1/Secret.php | Bin 0 -> 2441 bytes .../src/GPBMetadata/Grafeas/V1/Severity.php | Bin 0 -> 744 bytes .../GPBMetadata/Grafeas/V1/SlsaProvenance.php | 61 + .../Grafeas/V1/SlsaProvenanceZeroTwo.php | 71 ++ .../src/GPBMetadata/Grafeas/V1/Upgrade.php | 60 + .../proto/src/GPBMetadata/Grafeas/V1/Vex.php | Bin 0 -> 2425 bytes .../GPBMetadata/Grafeas/V1/Vulnerability.php | 112 ++ .../v1/proto/src/Grafeas/V1/AliasContext.php | 101 ++ .../src/Grafeas/V1/AliasContext/Kind.php | 72 ++ .../v1/proto/src/Grafeas/V1/Architecture.php | 61 + .../v1/proto/src/Grafeas/V1/Artifact.php | 159 +++ .../proto/src/Grafeas/V1/AttestationNote.php | 84 ++ .../src/Grafeas/V1/AttestationNote/Hint.php | 80 ++ .../src/Grafeas/V1/AttestationOccurrence.php | 190 +++ .../v1/proto/src/Grafeas/V1/BaseImage.php | 169 +++ .../Grafeas/V1/BatchCreateNotesRequest.php | 122 ++ .../Grafeas/V1/BatchCreateNotesResponse.php | 67 + .../V1/BatchCreateOccurrencesRequest.php | 122 ++ .../V1/BatchCreateOccurrencesResponse.php | 67 + .../v1/proto/src/Grafeas/V1/BuildNote.php | 68 + .../proto/src/Grafeas/V1/BuildOccurrence.php | 307 +++++ .../proto/src/Grafeas/V1/BuildProvenance.php | 528 ++++++++ .../v1/proto/src/Grafeas/V1/BuilderConfig.php | 58 + .../V1/CISAKnownExploitedVulnerabilities.php | 69 + .../Grafeas/v1/proto/src/Grafeas/V1/CVSS.php | 382 ++++++ .../src/Grafeas/V1/CVSS/AttackComplexity.php | 61 + .../src/Grafeas/V1/CVSS/AttackVector.php | 66 + .../src/Grafeas/V1/CVSS/Authentication.php | 61 + .../v1/proto/src/Grafeas/V1/CVSS/Impact.php | 71 ++ .../Grafeas/V1/CVSS/PrivilegesRequired.php | 61 + .../v1/proto/src/Grafeas/V1/CVSS/Scope.php | 56 + .../src/Grafeas/V1/CVSS/UserInteraction.php | 56 + .../v1/proto/src/Grafeas/V1/CVSSVersion.php | 55 + .../v1/proto/src/Grafeas/V1/CVSSv3.php | 353 ++++++ .../Grafeas/V1/CVSSv3/AttackComplexity.php | 56 + .../src/Grafeas/V1/CVSSv3/AttackVector.php | 66 + .../v1/proto/src/Grafeas/V1/CVSSv3/Impact.php | 61 + .../Grafeas/V1/CVSSv3/PrivilegesRequired.php | 61 + .../v1/proto/src/Grafeas/V1/CVSSv3/Scope.php | 56 + .../src/Grafeas/V1/CVSSv3/UserInteraction.php | 56 + .../src/Grafeas/V1/CloudRepoSourceContext.php | 153 +++ .../v1/proto/src/Grafeas/V1/Command.php | 249 ++++ .../v1/proto/src/Grafeas/V1/Completeness.php | 148 +++ .../proto/src/Grafeas/V1/ComplianceNote.php | 309 +++++ .../V1/ComplianceNote/CisBenchmark.php | 90 ++ .../src/Grafeas/V1/ComplianceOccurrence.php | 132 ++ .../src/Grafeas/V1/ComplianceVersion.php | 148 +++ .../src/Grafeas/V1/CreateNoteRequest.php | 168 +++ .../Grafeas/V1/CreateOccurrenceRequest.php | 132 ++ .../src/Grafeas/V1/DSSEAttestationNote.php | 75 ++ .../V1/DSSEAttestationNote/DSSEHint.php | 80 ++ .../Grafeas/V1/DSSEAttestationOccurrence.php | 119 ++ .../src/Grafeas/V1/DeleteNoteRequest.php | 86 ++ .../Grafeas/V1/DeleteOccurrenceRequest.php | 86 ++ .../proto/src/Grafeas/V1/DeploymentNote.php | 67 + .../src/Grafeas/V1/DeploymentOccurrence.php | 295 +++++ .../V1/DeploymentOccurrence/Platform.php | 71 ++ .../v1/proto/src/Grafeas/V1/Digest.php | 101 ++ .../v1/proto/src/Grafeas/V1/DiscoveryNote.php | 73 ++ .../src/Grafeas/V1/DiscoveryOccurrence.php | 516 ++++++++ .../DiscoveryOccurrence/AnalysisCompleted.php | 64 + .../V1/DiscoveryOccurrence/AnalysisStatus.php | 94 ++ .../ContinuousAnalysis.php | 64 + .../Grafeas/V1/DiscoveryOccurrence/File.php | 88 ++ .../V1/DiscoveryOccurrence/SBOMStatus.php | 108 ++ .../SBOMStatus/SBOMState.php | 64 + .../VulnerabilityAttestation.php | 148 +++ .../VulnerabilityAttestationState.php | 64 + .../v1/proto/src/Grafeas/V1/Distribution.php | 256 ++++ .../v1/proto/src/Grafeas/V1/Envelope.php | 116 ++ .../src/Grafeas/V1/EnvelopeSignature.php | 85 ++ .../V1/ExploitPredictionScoringSystem.php | 107 ++ .../v1/proto/src/Grafeas/V1/FileHashes.php | 68 + .../v1/proto/src/Grafeas/V1/FileLocation.php | 119 ++ .../v1/proto/src/Grafeas/V1/Fingerprint.php | 151 +++ .../src/Grafeas/V1/GerritSourceContext.php | 184 +++ .../proto/src/Grafeas/V1/GetNoteRequest.php | 86 ++ .../Grafeas/V1/GetOccurrenceNoteRequest.php | 86 ++ .../src/Grafeas/V1/GetOccurrenceRequest.php | 86 ++ .../proto/src/Grafeas/V1/GitSourceContext.php | 102 ++ .../Grafeas/v1/proto/src/Grafeas/V1/Hash.php | 101 ++ .../v1/proto/src/Grafeas/V1/ImageNote.php | 119 ++ .../proto/src/Grafeas/V1/ImageOccurrence.php | 197 +++ .../proto/src/Grafeas/V1/InTotoProvenance.php | 214 ++++ .../src/Grafeas/V1/InTotoSlsaProvenanceV1.php | 160 +++ .../BuildDefinition.php | 162 +++ .../InTotoSlsaProvenanceV1/BuildMetadata.php | 135 ++ .../ProvenanceBuilder.php | 115 ++ .../ResourceDescriptor.php | 223 ++++ .../V1/InTotoSlsaProvenanceV1/RunDetails.php | 135 ++ .../SlsaProvenanceV1.php | 112 ++ .../proto/src/Grafeas/V1/InTotoStatement.php | 224 ++++ .../Grafeas/v1/proto/src/Grafeas/V1/Jwt.php | 73 ++ .../Grafeas/v1/proto/src/Grafeas/V1/Layer.php | 105 ++ .../v1/proto/src/Grafeas/V1/LayerDetails.php | 211 ++++ .../v1/proto/src/Grafeas/V1/License.php | 117 ++ .../Grafeas/V1/ListNoteOccurrencesRequest.php | 190 +++ .../V1/ListNoteOccurrencesResponse.php | 101 ++ .../proto/src/Grafeas/V1/ListNotesRequest.php | 240 ++++ .../src/Grafeas/V1/ListNotesResponse.php | 151 +++ .../src/Grafeas/V1/ListOccurrencesRequest.php | 240 ++++ .../Grafeas/V1/ListOccurrencesResponse.php | 151 +++ .../v1/proto/src/Grafeas/V1/Location.php | 154 +++ .../v1/proto/src/Grafeas/V1/Metadata.php | 249 ++++ .../proto/src/Grafeas/V1/NonCompliantFile.php | 135 ++ .../Grafeas/v1/proto/src/Grafeas/V1/Note.php | 823 ++++++++++++ .../v1/proto/src/Grafeas/V1/NoteKind.php | 138 ++ .../v1/proto/src/Grafeas/V1/Occurrence.php | 767 ++++++++++++ .../v1/proto/src/Grafeas/V1/PackageNote.php | 451 +++++++ .../src/Grafeas/V1/PackageOccurrence.php | 311 +++++ .../v1/proto/src/Grafeas/V1/ProjectRepoId.php | 102 ++ .../v1/proto/src/Grafeas/V1/Recipe.php | 273 ++++ .../v1/proto/src/Grafeas/V1/RelatedUrl.php | 101 ++ .../v1/proto/src/Grafeas/V1/RepoId.php | 108 ++ .../Grafeas/v1/proto/src/Grafeas/V1/Risk.php | 127 ++ .../src/Grafeas/V1/SBOMReferenceNote.php | 105 ++ .../Grafeas/V1/SBOMReferenceOccurrence.php | 156 +++ .../Grafeas/V1/SbomReferenceIntotoPayload.php | 190 +++ .../V1/SbomReferenceIntotoPredicate.php | 169 +++ .../v1/proto/src/Grafeas/V1/SecretKind.php | 205 +++ .../proto/src/Grafeas/V1/SecretLocation.php | 75 ++ .../v1/proto/src/Grafeas/V1/SecretNote.php | 33 + .../proto/src/Grafeas/V1/SecretOccurrence.php | 227 ++++ .../v1/proto/src/Grafeas/V1/SecretStatus.php | 145 +++ .../src/Grafeas/V1/SecretStatus/Status.php | 71 ++ .../v1/proto/src/Grafeas/V1/Severity.php | 82 ++ .../v1/proto/src/Grafeas/V1/Signature.php | 192 +++ .../proto/src/Grafeas/V1/SlsaProvenance.php | 214 ++++ .../Grafeas/V1/SlsaProvenance/Material.php | 88 ++ .../Grafeas/V1/SlsaProvenance/SlsaBuilder.php | 61 + .../V1/SlsaProvenance/SlsaCompleteness.php | 151 +++ .../V1/SlsaProvenance/SlsaMetadata.php | 252 ++++ .../Grafeas/V1/SlsaProvenance/SlsaRecipe.php | 296 +++++ .../src/Grafeas/V1/SlsaProvenanceZeroTwo.php | 235 ++++ .../V1/SlsaProvenanceZeroTwo/SlsaBuilder.php | 64 + .../SlsaCompleteness.php | 118 ++ .../SlsaConfigSource.php | 118 ++ .../SlsaProvenanceZeroTwo/SlsaInvocation.php | 147 +++ .../V1/SlsaProvenanceZeroTwo/SlsaMaterial.php | 91 ++ .../V1/SlsaProvenanceZeroTwo/SlsaMetadata.php | 201 +++ .../v1/proto/src/Grafeas/V1/Source.php | 215 ++++ .../v1/proto/src/Grafeas/V1/SourceContext.php | 176 +++ .../v1/proto/src/Grafeas/V1/Subject.php | 104 ++ .../src/Grafeas/V1/UpdateNoteRequest.php | 178 +++ .../Grafeas/V1/UpdateOccurrenceRequest.php | 178 +++ .../src/Grafeas/V1/UpgradeDistribution.php | 187 +++ .../v1/proto/src/Grafeas/V1/UpgradeNote.php | 196 +++ .../src/Grafeas/V1/UpgradeOccurrence.php | 215 ++++ .../v1/proto/src/Grafeas/V1/Version.php | 269 ++++ .../src/Grafeas/V1/Version/VersionKind.php | 71 ++ .../V1/VulnerabilityAssessmentNote.php | 306 +++++ .../Assessment.php | 392 ++++++ .../Assessment/Justification.php | 105 ++ .../Justification/JustificationType.php | 94 ++ .../Assessment/Remediation.php | 148 +++ .../Remediation/RemediationType.php | 85 ++ .../Assessment/State.php | 79 ++ .../VulnerabilityAssessmentNote/Product.php | 160 +++ .../VulnerabilityAssessmentNote/Publisher.php | 165 +++ .../src/Grafeas/V1/VulnerabilityNote.php | 403 ++++++ .../Grafeas/V1/VulnerabilityNote/Detail.php | 645 ++++++++++ .../V1/VulnerabilityNote/WindowsDetail.php | 186 +++ .../WindowsDetail/KnowledgeBase.php | 106 ++ .../Grafeas/V1/VulnerabilityOccurrence.php | 628 ++++++++++ .../VulnerabilityOccurrence/PackageIssue.php | 429 +++++++ .../VulnerabilityOccurrence/VexAssessment.php | 366 ++++++ .../v1/proto/src/Grafeas/V1/WindowsUpdate.php | 298 +++++ .../src/Grafeas/V1/WindowsUpdate/Category.php | 104 ++ .../src/Grafeas/V1/WindowsUpdate/Identity.php | 104 ++ .../V1/GrafeasClient/batch_create_notes.php | 74 ++ .../batch_create_occurrences.php | 75 ++ .../samples/V1/GrafeasClient/create_note.php | 77 ++ .../V1/GrafeasClient/create_occurrence.php | 74 ++ .../samples/V1/GrafeasClient/delete_note.php | 70 ++ .../V1/GrafeasClient/delete_occurrence.php | 72 ++ .../v1/samples/V1/GrafeasClient/get_note.php | 72 ++ .../V1/GrafeasClient/get_occurrence.php | 72 ++ .../V1/GrafeasClient/get_occurrence_note.php | 73 ++ .../GrafeasClient/list_note_occurrences.php | 79 ++ .../samples/V1/GrafeasClient/list_notes.php | 77 ++ .../V1/GrafeasClient/list_occurrences.php | 77 ++ .../samples/V1/GrafeasClient/update_note.php | 74 ++ .../V1/GrafeasClient/update_occurrence.php | 74 ++ .../v1/src/V1/Client/GrafeasClient.php | 667 ++++++++++ .../Grafeas/v1/src/V1/gapic_metadata.json | 88 ++ .../V1/resources/grafeas_client_config.json | 115 ++ .../resources/grafeas_descriptor_config.php | 225 ++++ .../resources/grafeas_rest_client_config.php | 285 +++++ .../Unit/V1/Client/GrafeasClientTest.php | 1108 +++++++++++++++++ 205 files changed, 30731 insertions(+) create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Attestation.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Build.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Common.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Compliance.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Cvss.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Deployment.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Discovery.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/DsseAttestation.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Grafeas.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Image.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/IntotoProvenance.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/IntotoStatement.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Package.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Provenance.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Risk.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Sbom.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Secret.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Severity.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/SlsaProvenance.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/SlsaProvenanceZeroTwo.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Upgrade.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Vex.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Vulnerability.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AliasContext.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AliasContext/Kind.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Architecture.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Artifact.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AttestationNote.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AttestationNote/Hint.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AttestationOccurrence.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BaseImage.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateNotesRequest.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateNotesResponse.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateOccurrencesRequest.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateOccurrencesResponse.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuildNote.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuildOccurrence.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuildProvenance.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuilderConfig.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CISAKnownExploitedVulnerabilities.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/AttackComplexity.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/AttackVector.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/Authentication.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/Impact.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/PrivilegesRequired.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/Scope.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/UserInteraction.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSVersion.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/AttackComplexity.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/AttackVector.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/Impact.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/PrivilegesRequired.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/Scope.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/UserInteraction.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CloudRepoSourceContext.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Command.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Completeness.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceNote.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceNote/CisBenchmark.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceOccurrence.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceVersion.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CreateNoteRequest.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CreateOccurrenceRequest.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DSSEAttestationNote.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DSSEAttestationNote/DSSEHint.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DSSEAttestationOccurrence.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeleteNoteRequest.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeleteOccurrenceRequest.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeploymentNote.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeploymentOccurrence.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeploymentOccurrence/Platform.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Digest.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryNote.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/AnalysisCompleted.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/AnalysisStatus.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/ContinuousAnalysis.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/File.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/SBOMStatus.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/SBOMStatus/SBOMState.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/VulnerabilityAttestation.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/VulnerabilityAttestation/VulnerabilityAttestationState.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Distribution.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Envelope.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/EnvelopeSignature.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ExploitPredictionScoringSystem.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/FileHashes.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/FileLocation.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Fingerprint.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GerritSourceContext.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GetNoteRequest.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GetOccurrenceNoteRequest.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GetOccurrenceRequest.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GitSourceContext.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Hash.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ImageNote.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ImageOccurrence.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoProvenance.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/BuildDefinition.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/BuildMetadata.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/ProvenanceBuilder.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/ResourceDescriptor.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/RunDetails.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/SlsaProvenanceV1.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoStatement.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Jwt.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Layer.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/LayerDetails.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/License.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNoteOccurrencesRequest.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNoteOccurrencesResponse.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNotesRequest.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNotesResponse.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListOccurrencesRequest.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListOccurrencesResponse.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Location.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Metadata.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/NonCompliantFile.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Note.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/NoteKind.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Occurrence.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/PackageNote.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/PackageOccurrence.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ProjectRepoId.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Recipe.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/RelatedUrl.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/RepoId.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Risk.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SBOMReferenceNote.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SBOMReferenceOccurrence.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SbomReferenceIntotoPayload.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SbomReferenceIntotoPredicate.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretKind.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretLocation.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretNote.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretOccurrence.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretStatus.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretStatus/Status.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Severity.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Signature.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/Material.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaBuilder.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaCompleteness.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaMetadata.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaRecipe.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaBuilder.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaCompleteness.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaConfigSource.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaInvocation.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaMaterial.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaMetadata.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Source.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SourceContext.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Subject.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpdateNoteRequest.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpdateOccurrenceRequest.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpgradeDistribution.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpgradeNote.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpgradeOccurrence.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Version.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Version/VersionKind.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Justification.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Justification/JustificationType.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Remediation.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Remediation/RemediationType.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/State.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Product.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Publisher.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote/Detail.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote/WindowsDetail.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote/WindowsDetail/KnowledgeBase.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityOccurrence.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityOccurrence/PackageIssue.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityOccurrence/VexAssessment.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/WindowsUpdate.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/WindowsUpdate/Category.php create mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/WindowsUpdate/Identity.php create mode 100644 owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/batch_create_notes.php create mode 100644 owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/batch_create_occurrences.php create mode 100644 owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/create_note.php create mode 100644 owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/create_occurrence.php create mode 100644 owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/delete_note.php create mode 100644 owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/delete_occurrence.php create mode 100644 owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/get_note.php create mode 100644 owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/get_occurrence.php create mode 100644 owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/get_occurrence_note.php create mode 100644 owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/list_note_occurrences.php create mode 100644 owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/list_notes.php create mode 100644 owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/list_occurrences.php create mode 100644 owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/update_note.php create mode 100644 owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/update_occurrence.php create mode 100644 owl-bot-staging/Grafeas/v1/src/V1/Client/GrafeasClient.php create mode 100644 owl-bot-staging/Grafeas/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/Grafeas/v1/src/V1/resources/grafeas_client_config.json create mode 100644 owl-bot-staging/Grafeas/v1/src/V1/resources/grafeas_descriptor_config.php create mode 100644 owl-bot-staging/Grafeas/v1/src/V1/resources/grafeas_rest_client_config.php create mode 100644 owl-bot-staging/Grafeas/v1/tests/Unit/V1/Client/GrafeasClientTest.php diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Attestation.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Attestation.php new file mode 100644 index 000000000000..8db0f36078c4 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Attestation.php @@ -0,0 +1,40 @@ +internalAddGeneratedFile( + ' +ˆ +grafeas/v1/attestation.proto +grafeas.v1"f +AttestationNote. +hint ( 2 .grafeas.v1.AttestationNote.Hint# +Hint +human_readable_name ( " +Jwt + compact_jwt ( "} +AttestationOccurrence +serialized_payload ( ) + +signatures ( 2.grafeas.v1.Signature +jwts ( 2.grafeas.v1.JwtBQ + io.grafeas.v1PZ8google.golang.org/genproto/googleapis/grafeas/v1;grafeas¢GRAbproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Build.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Build.php new file mode 100644 index 000000000000..7f2b13ffa0c6 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Build.php @@ -0,0 +1,40 @@ +internalAddGeneratedFile( + ' +ü +grafeas/v1/build.proto +grafeas.v1!grafeas/v1/intoto_statement.protografeas/v1/provenance.proto"$ + BuildNote +builder_version ( "” +BuildOccurrence/ + +provenance ( 2.grafeas.v1.BuildProvenance +provenance_bytes ( 7 +intoto_provenance ( 2.grafeas.v1.InTotoProvenance5 +intoto_statement ( 2.grafeas.v1.InTotoStatementF +in_toto_slsa_provenance_v1 ( 2".grafeas.v1.InTotoSlsaProvenanceV1BQ + io.grafeas.v1PZ8google.golang.org/genproto/googleapis/grafeas/v1;grafeas¢GRAbproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Common.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Common.php new file mode 100644 index 0000000000000000000000000000000000000000..4cc4cb8a98439dc7a317fd2b9db88f688825f0be GIT binary patch literal 1537 zcmZ`(e{17L6s+Soj-TzTPQ6eUTG+Y==R2-8xl$-j(_&kS5%I5Dav;SZ*3w#8s_Y7B z9nLNJGX0!|c30BrT*CPuYghB;&CIUe&%Z`@5qyWngpn8v;-k$Ti93R#m<#Ul5N&qb zEs2rG?;{$LxQmc6N3*$uOv7@%m8A*a#UAOSAjVsQlitI5PlE3`>!ut44BwL^!X826 z#c)al_OZb0aRy)CoL>NVAx;uBO3UCcK=K#uHX-#;BCwEuFKOaZMg_$o{Zp#EL|Yst zM3z3qZgTFkWsMn#qi^En4l{z)O36&6UNZ2}3 z%l3~@vuVJv6iD>vP)j~6Qg}l@gJyOr?jL0DQa>;A;nZXgB;*m%KZk0B_aVoAUh@JP z`Gza@5y?vQbAW<8X_ZmAQ-AkO_oL|U2f{*6y9dvoY$`XBCvPR)NL_`jB{WoQ6Yj|y z#F;X*m1{S`;x6~!gJy{LBzApyD`}Xd>gw-Whe{?2U}W#x4%CJ?A=W((h~9u>b+vOY z9UvwVPpG^%``qRiP|x^1zGFiAEOjcn2B$FzXd)!+IL-YL8i!rfu~6od_bGElW$M%I zwg_A?cz2jGwNptCQbN=>hnb%?sp)T^zL7#*s+1z?^vV3aow{T)mNh?$YI1G4>lxOXy`|f5hWLI^o8gKq7!Rd?(axFdS zU%{E29j1G2%?x)nvlr&by0T0|`%Ios^JX=fnajb@npn=QR?=%w8Lq5}p&hA5YdRR4 zT3H@?buk!StHrVY48SlKllkq`oH<%WW>+&Tdo;f>m$%x9%&tCg9Mg6Njy0cYRaLxN zjF$t$)J|3LXg*y`tifz#YBl`@XohW@?qLb&UqkDE!rXzx*ml~mE+czp59d>NX+lxt+?H$ z5)sjhSV*Od&}jo*G_KJ5)3d9`rc{Yo5?VzaiQ5#b%FTYoCWj1jLfr%hfa4xj5hfJX zo3(SQaey`U>Vp#RdjAlBgjgwbGAf1dfXoxct&kC3#Ex_&Q%ez}5?=!ujlIec6 zIv!|TpUm_84NKV{2f>K!2V-1$1aF(|!mm6${D)%>q(9x8{nGC#SQ-0rAvATCVOBF8 z(qazf$_vgqEC#7sM)2ZP5_DnC5LPxYji$?s2ixu#)Exs}50ab$ESMEE>Db`T3~?px z(SRlK;%pLp2g}5)L5p(I?P2+~m^b0Y18?_kc+1y4VX8LF|9H=N00l)bH>;$KGs%{y z;+%n5a@HWvdS+8~ao%?OnAMLY-Hz&IR{}w6t%BQ)UY5+N10g7lIEFv|TG_8#c40g!!^4if1rj6Ey>}A$@HSWv3$<=ojrT@=-cDtZ>={L?4Tkxu&ubb zgWB(q`vxP+HeFLSb=2;6yVypmd0}ZfwsQy-s;E+x5nmAGZ9;X-zOCXs>e)&cE6)Dl zU|$_LPL4(ZFq8}ISc-~KQ9LbUSLrCO(k%MmX5-)pK-Cq;K^!5$dqCu4_1n6pBF9x+ z^7TM-TAHD`nxbpJkPJ^ySJ53zh*4~}Z>X+j8ptD54HfS_LVipS`@k~Ej!sasXqr78 zH$`ugWP?q?aItMDdb5BX)z&Q6v_%5V=X=;4md3N}Jqnif!f9Q!=jWKuN0K~2uHDC@ zt0QD%w{IIqG;c4!4hRdFjvhNLn9&H!?S%cNsdNUB1bAyBI-?K2o zHEOlNA;SQ)6$iH*)wFRYff9R3W)tq>x0Y^duF}?Y&3zYmlhk_`=CuoQZf;;rQR`D! zP+V70e`*b|N~)BZCg#P*_jA|F=KLjdEX6e_jCl^r0nckB9ls^ZWo9UMXCjvyLYY%o zv21NXO3}kk%f>(VH5+#_pV9~qVBoe zz&30Jfw*c}Eb%`G^6QByjzCJ)S7RxTxXy**c{-W>JpoKi!|cF)Q4$(Li7)cCmc+lT z3ld)lEx8GqI8dcp;mN9>!Frt6OUZiyW2rQ$RQ3Xv!aay!vtHw+mQay-iREOWS_x%C z&M1NiQX!`sab4|+)Zh%J{q|jjV^Nt&TZOE4GM=}r^OB0ym9>v9dCsi(4k&B2tXDz_$MPr@=bMPHV!@S8agi4XP{JUY?6}<8PEAs6r^84FY zWFo|ifneV|o^KjsKh2)+dU!!P}w%maq6?poOxfw9~XkNFrUcknDIHy9Pu?deP=HnkH zlGRJ3(pcU4UWUy%aOk>;l&I4;41gp?ImRhvp$3;4t40&n@?{w-ZLD6_muq`Z%ph}} zFOQyyS-3V@u%7TmO69+l4XC<;`z)w0Wj!CmGW9&IJgz^?F7EoMrap`|tVAJIzL3-U zvc_%f?V9sA%s*K)?HOU~2v&ZbjXG@F#|NX{@a$xKae8idj|RO#w^MsyEJLOLp<62% zE3ni%?tZG3bw<^ri}TU&q*gin2BgA0+|fu))732LDn+DOXTYJ>62oE>sT-1I%!PP0wq;)< zu_+(-5B3YTPy4(-v_CRw_xcU8k`TUN`<~~y=RD^**M9xRy>j6RYGNCEI>CL^n;>$9 zk?T3cF&qo^g24cL$Z$rkX zy$K)E0NDBn`>t+a)NI$zG12=v(YwtE(Y-u41~4q$_faE3!mohn&kcH(X&|5Ig#PWC zzGm7cF?GxQh30yK2D;^AivBQm5ZDGW9UCz~%Qo=dGZb;M*j?A5wVj}D({Y9t?zUOE zwA8L-6YSZ#)oozk@JyFDUYmwit3ymuk=T>HXYsa-&K#h%`x$*5#O73 zznDRpz4gOwewqi*0>7tg<$qUUD}}cVBk(*-eaN+7%W!OB+JO`JTEZ7o9nMnCLG$$# zD#V#^P1s0Sw5YIRHq47(M3zuQUFOb#ONrRPTbP~*#RrtDaCmTEF53MF$nC>=N{2nq z@rn;oj#6=a)Crz;f{(X8fX8WURD%{la^ddtAO*-7E-o(7fIN2y>+}F2ns4Z~#yVeI z4uPd)uf!I7Itbh=Sk*n_${gbev9btJ%l#wdxHnMnd(J44Iv=9;7s;d4TIX@CKf$Nt zz+wk(&$LW3(R4!CY_j932qE3kBD%|20%3~hUc&N#4w7Figj(+|B4Sg=)!>Uzy_;zT zE1bGXPD#}9GOntK`@hP59E-|+T z%aLu^0OZRx$WPZw@G-m56je|~ts^UKu`ZoTVq^0ot^g0(qTG<==4OUlg@^UldHYOM z#m#K#?<^E=Rr?h@3WZ}G9JwU&5i6i@c$f1qEVF*&cup@D)q30h{A~-&X)|iDA8x|XRQoLhOQE$^ zVTrx{!>;DJ?_i~G4yoB`MdE7SOy_GQZ<a%rc_H$ literal 0 HcmV?d00001 diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/DsseAttestation.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/DsseAttestation.php new file mode 100644 index 0000000000000000000000000000000000000000..ef80894effc944fe157dddad5b1351735c4cb183 GIT binary patch literal 1079 zcmah|(QeZ)6r~$NnO0@T7x0NVNtH&d6M0JPbB@pPJ$d&bnn&ar^iiOq8aS zh=-_bfbI~khZE>^2a{7njb)-3IuI!8BaQ3JM%{~JoKmeZ)>LyT>`aXiK^GWDlp*v- zozJMLM>Tc(Inn*rXcEFg8pqHz0__c-{3KwWD4B(vK_<%JoX1lxxaKtEKaBAf_%w{s zXxzs7iD0P_NC`v1(7J$JGsT`q(gbaR+m|v3(H*7PO>TD}G%7(uw~H}TJknB)4AgM~ z)WwaZE7ryO*i?@DVC5bi=a$J9Xq903bO41qQKFgoP6bxQo4fs<+>dgxkiu~`aW?F` zI3|pVH8vB$1q!{LoL$As_k10^?RiDcPiFj9;Vku8BY$?u>3`>5C2NSiY#f*2<`m;- zn%-4rDX+=dk{ou&<6de0*HUBk4Y@xzjH3!vtb;;Mv-h!5_OdvX=tVkLn3I zoF@w^rV35@W+6_~PG*|>XTK`s=|56K#uBB_G^YBT?4ej`56o5R>v8uI_anlSdvh>7h4`=uIf8*ZD#oa#>=HD&OA*Sv&1OhExQ$R6#vJ wk^Ncqe2Ydru5ZTCT)+O_+3kOA&mLsZ*R^7VFY+puntNw!Gh|+|6Zn`3TP6mf`h;7`aYUp>0JYPtuetsLTu?W*rr z^*w*}Rn6S`w!iJ8i~1UINnl2#t+#gdXq)JM;6XvJX4{O+%{4B+ z`Rv9rLY8BOp)Q8dE2P7Z-)lLxrH7Fj!LLhp*tA_cvQ5W+33{&RTc#5dz-DE)daf1O zo~u*9L)Rh;S9QK7mA&M9VAqPix#oEthitA>Q^Cy5du~Jm*K{^lNoWPOA9=w#h}LQy z5+x3zBMVo>wsbjrOJCqR)@m6gSM(_85qWoA4@lGt+-0UWU0^TyYg6$L*RJl{n|0Uq zs24mptkqJR(j^7~Z#y<|qhgr5HgVbwvTg3zUQi7Bh=^nuTFJ!sVELV{AMFmmVFG0e z-#5eO2f#kDAvGhj>korX5_Yp5MHEIOQViJW*-pC{)3>V@qa}Vk%%7JgwkY>BTY`Lqz-dV!5DX)x&WI^?&;W&33FQzmsrOIv z)w{qHeOo8+D5e7;@SbFvnby3Rot0)=w6MkaoHP#SCRDGOIHOL863v-xCv_+$=Otu2 zE;ccDL7sz(YQ9}lo7Rnh%Atb;nihwcIVCL`LIsFn*|d`{xX1-m7I7%xz5hQZ#G z_vI&)B7YejA?^-wJfCQoA(V2tBj##rZ|bWkW`~OHRnt}QH6YS2h!us^SK_a|s+SZo zjHdtWH73w_8}0(O6B@rcf)3Go>?`xrXgb{Xf~eUR{W!E+qSiHZ!tvaWGBbS1U!x`O z(CZG+hXW-)3e`O;JLnOgei}IV12jcm_%_^*VEY1eAoIt&>7b84I2pW+aOM$?ZAe%z z1UeW6e*CDPTX@|ob*yj;bw04l<(O4?-Jg;@!dNAh<9xzPU6EsaBIL>`lkn=ElUEc> zB4n>C9Kwql?B~rQCG3<#1fn9d2e0ST3Ls_=A-|;Z1}|oXIi*reEr=O|m#<=hV2soP zi7R*wDHfz$ArQ+sEWwLhr9qV?1o%^=DF;XsZqOtQY4a{he)Ed#4kh6AL{_Z!afWS9 zF%nR6MqwKPTu69kmI0J9;ylA8YahO;FQKV8qQD$<9G}nO3>PMVE$FYk#uz#j?fS&H zjb_$Jl(Nku@?{S$VfdQd8Z^$nu8;huJ~x1&j9-<|>}Pf;EfdD;l+l=P0?|gi$!N^8 zm1Yo@G+yWYhL5AME!%o{WUqPdK6p%1ry0#;6@MPu}JeayIv=2nSAB9bl>JEo9>chKBz);ML?DdONNLaDjT$$bQ!E>HCz zF@9G`UwDOXq8d9}`@u^{JFFDirD=WO(p!rqAUc!Y6xMb6^^>$6L0 zc*l)`T^9fOPY|Mk=R{dh8nX!k?O5mJe z7xBh*^*rM~QF@1T1D^Z$(YZm}A0XaKKbb}2YrMO}e<-123bSJ6_Nq(?&YmBjt3meb z?5X01fB)AnMn18sc)`XsTEG&*JFQdHjCxPhy=Vvc9=SO0211bt$=R$I9}W@NY{4R^nOjQ2u|yvmr%uyit&u|{~cOO{Mw0|}> z2cp2971Jjf_9;SN6w1RzpZcHz@-d7z-JWe>8$-^J@-Ym2)j$CN{M^jHt-GpMm)}V}8i&-x*|# zYJV%`>RPG1@f~BC)m8x)s4L)qLy-GhOEt*-v$5raIO3OJryWsUXd8#fHD zZ$>P~p&Ww$2_z!XdBFLLU)SLaJT5%8(@%fl8!o${ z9g5BgK93D6@NU`oK00Q5lF{p>jhmvm>UfUnb}C-bsdk79eQe}a`4mORU-tpdTo!L- zza1G}dsKf@U&wtu!$~Kcd`!?9W2=5}CHZ)Hk$-bW`l8LiFWE3j{$-dww1?1t0hf9o Ax&QzG literal 0 HcmV?d00001 diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Image.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Image.php new file mode 100644 index 000000000000..4756c06563d8 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Image.php @@ -0,0 +1,44 @@ +internalAddGeneratedFile( + ' +× +grafeas/v1/image.proto +grafeas.v1"- +Layer + directive (  + arguments ( "@ + Fingerprint +v1_name (  +v2_blob (  +v2_name ( "O + ImageNote + resource_url ( , + fingerprint ( 2.grafeas.v1.Fingerprint"“ +ImageOccurrence, + fingerprint ( 2.grafeas.v1.Fingerprint +distance (% + +layer_info ( 2.grafeas.v1.Layer +base_resource_url ( BQ + io.grafeas.v1PZ8google.golang.org/genproto/googleapis/grafeas/v1;grafeas¢GRAbproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/IntotoProvenance.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/IntotoProvenance.php new file mode 100644 index 000000000000..5861d7ce8a1b --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/IntotoProvenance.php @@ -0,0 +1,54 @@ +internalAddGeneratedFile( + ' +Î +"grafeas/v1/intoto_provenance.proto +grafeas.v1google/protobuf/timestamp.proto"œ +Recipe +type (  +defined_in_material ( + entry_point ( \' + arguments ( 2.google.protobuf.Any) + environment ( 2.google.protobuf.Any"I + Completeness + arguments ( + environment ( + materials ("Ú +Metadata +build_invocation_id ( 4 +build_started_on ( 2.google.protobuf.Timestamp5 +build_finished_on ( 2.google.protobuf.Timestamp. + completeness ( 2.grafeas.v1.Completeness + reproducible (" + BuilderConfig + +id ( "€ +InTotoProvenance1 +builder_config ( 2.grafeas.v1.BuilderConfig" +recipe ( 2.grafeas.v1.Recipe& +metadata ( 2.grafeas.v1.Metadata + materials ( Bh + io.grafeas.v1BInTotoProvenanceProtoPZ8google.golang.org/genproto/googleapis/grafeas/v1;grafeas¢GRAbproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/IntotoStatement.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/IntotoStatement.php new file mode 100644 index 0000000000000000000000000000000000000000..f7c025c02f990285e192970f0b5944aa3538b19a GIT binary patch literal 3174 zcmcIm-EJF26t3f>CTA0pZrWfhq)tLm9f_=o+e(!~K(X@EARr;Ja#1W<>)o-lu$fuy z&N`$h*SrHaNWk0h7ToX(Tykb+yE=;_!>W^J!=ivU^0nK5CG?-NVKTLL(lB4y}=HXm_X`ReGBh zj|oJ#B7uw-lnG0*0WkZ5MuF{6a&TP#iVEAch21>Rz~<4ow0SIJ$GDs51`V0*H+N~|gkB(cc#NjCT9=A6WAaUTJvmm=c^y*LKGteuPHqzs z#x#36At4oU$hMTBKq0XDle^$^Pz2$v&1IbEDExIdxa)ddY=|T&4~M9AQmkENvByMsRoVa} z^Jp57|DIkYWb-i7v;CMN7v`)s^(?pg#~dst0l3Ba9hx3ET4{l`*5bF#*v@ z%yu=X^j8iRMtMyD?d6~Y%qOr!f6ybL71$wGA0PT>zGvy4*8PM%ZRyb}QT;)ZMah0J zsyCt<@F1iS_j^<(Dxl1z%<*W1<&aJHbdm@WFK^Ysy;J%*59Z0(Yjar3sKq$+wD`<# zQeo%S!8^A)I4gZ~0SXSs(aMC<)|~l1+;jOQ^SSM|e2yanFIm;%vnH0|0>_B0XNYXu zS@T;kY{s~}z&VSG1?AWN?flvq5Z$IPOJBg^D8+Cuf0XTIqq;n%k~7)qvd2q*<^Tq& z#Q9ZF3Z!Au9#19+aWFWQplOH=@($`$ElEjtd@=!#Lid*|^AMZi3g@u)$s4`eHwvwN}PUR0ycG`E9 b>ElP~!t}A;Tr-RAjZ3bw)XV5KTm$?AbDZ=Z literal 0 HcmV?d00001 diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Package.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Package.php new file mode 100644 index 0000000000000000000000000000000000000000..b9aecb5e41fdafd83f6639fa2565ddefeb7d45e0 GIT binary patch literal 1945 zcmaJ?|85#b5H6ezX21?UN9whz)Gf6V+$117RTSYm)!AT*Vt$0!R#YLO4{IKd{>m#;F zMS%dgct!%TM^LkO+9n*2F~@^uWIwn*JO;2F90aHr`N5xn#Lo{$4z*CgF&B@08VspR zImHhBL*#jaCfEsx@V#$430;d*&qdOq>sq9IfFew3yYG9Vt`jt9dYRbl8lZJBRpj8vC3Nl z+$`P(EBr*+nLZtyQ{s$I$rR72$7;1@RZEan*9EnMGjBHY+|T?I!4xsl;%Mi{s4PQN%*46=40ar$-GC40garcE(1b_+XfNq; z9UbX9zzmC$#h)-^Lq^r}poPpaHq~Me^5eMw5-KA%OI_Hy@GK!jk@Tarr1gEs-UXJa zJ`lJ78$RY!m0Pa#UmEhU+&dm8f{6_|CNT{eLBp-NDVZ22_%Z-#0)B;wH9iaR><#%R zpBQ;nQ6k}j+E^!eTkL*`;6#Bt4;Q$~>?0K^X11snYs~JdO@S?@oVWoo^!wNs(UD$) z%$VAu#m1hZKu@-|u1-pSrC~Rwv};)*V?<2;XNlGHC$Qzj{S@+&q&`j}E_(e9tP(1P zrBtdVwX0MlwX5kb*R(4&^#y7prvwL5ZfgR%b&nY&RXZKM!oozkWr@7?YGT~ zVoFSAw%zKq+E?vjS}n{EYN7q~1_~>efWS2SXTP;B8)uhS{l*$*7PJqqUkO0@^6KYe z`t%)aQ!i0UFZKItTV1&o+jFpMS3G7{ZQ`nrST#DrJ`JkN+wC}h{X4BS`{pR4OkX}- Y+?&s%+duKKc<@7^ETilE25tcU2e*VT&;S4c literal 0 HcmV?d00001 diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Provenance.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Provenance.php new file mode 100644 index 0000000000000000000000000000000000000000..26eac47b31ced6d96f06119abcebb8a3b04a1c0e GIT binary patch literal 2688 zcma)8ZFAE`5XO#i;&n`nLa7_t>7l?73Q;D80%J;A0i0NN44WB56)% zw`qqz&`+J|@TDL7Gy3bgcPHDj6QKTL>F(LR-DjWO(>ITkqXd>on?+1e$$WBnLgW!6 ziHK$F#UVND_j*haFFsCq$b>`4_8xh$cR+TwI|o!YhV=WR0+G8|b8?3LP@qk4% z@|dIj07Uedr3v*IY42}7XOj9<(r(+BbYHJO1n@$dreuF)3cmxvU(!Dexkpk-CH`IG zsmmiSISu)580{m{qhZR>{4}=Lk37lah$w?S3})pfF+LUcS`uS+k4U#2$3e)tc(9By z*={G2Ohh#7ZnM-AJdv^3M`)`RFgc=0t*qS4j#ch>kF1y&Tdh+;J|a@|S^jiF1e1Lc zJ=Ae42X9AD-3f}OqC4P7q@>45t2It*>_um_`Yq3L*zo;P$WO3*E2BfykvHJqI$Zfc z-7Ls9ox!^OX9*TI`#ki=C9(jD+;0>}VWnc>3l{rl=1CXVihAuj%%O0OY2>Gk88Wj{ zZ7w=vm(G^ivsPi@5Iswm3dwualWC)*(UPG?<*xiAh=w=a03qE}YoqG=Ns zDau--0ot>bPw|!RB}JtaJP4RjR93Z%ZKx@Zd^b*%sME&0W@t5UK2;t^zwa6RP9(*N z^{HXnN6!N$Qgqa)Dfdfv;Nod?6=vSBldQfqI6t6apPACOiVq6*yCRgckeA`guy}5Y zEkgt5W+^Kgj7083wTCKnk7#iu?09axw?b|U}l`TVQR%lQb#hMJdkfboj843*w6Ya~MD zT+bV;MD1lLsefx8O7bLOXK_An{{*wcmO-4FsTmFfWzj$rT2U^j2u#COEZp+BzRxcEbyjVDnWw6)ccx8l!AyX7qm0id z@LW!VzlL&14_P==#PvLW0_;4~IIX~?RjB4(6{{cWjLphOu=XDXnBNFFO^4jvg3=ov znX!4H`9=QxJkEKFAXQ9VXU)6)7)pBe64ak|UTnMHzj(F3v(dddE)0GH3E9%VYKilruw>egy=Vlt^xb$sg+s0udV zYH*CEye?V|FJzhy+byd_<9)g9p4$YN8+x+e6=3m<(kh7_#i`VT)J%}eaKWfU4N`U2 zm}xW}my$x|thiJgRGa@duDeigPbo-MzAwV8Cl=43!+r(jjIFz{FuW2csht=@`z8}( zgF)Bugy9W}M3vMXYu|&~1a9iOHSAo3iauwon9c8?#^YQW_6t8g$S%qt4rvrPu?W@z z7Ga<=UNc)X;py7=yWnB=_)l@B{c_{5tf6;qjJ_pqo6nov*U)>vgf!B8uDpe}0RI8H Cun3p{ literal 0 HcmV?d00001 diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Risk.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Risk.php new file mode 100644 index 000000000000..408126caaa1e --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Risk.php @@ -0,0 +1,37 @@ +internalAddGeneratedFile( + ' +“ +grafeas/v1/risk.proto +grafeas.v1" +Risk? +cisa_kev ( 2-.grafeas.v1.CISAKnownExploitedVulnerabilities8 +epss ( 2*.grafeas.v1.ExploitPredictionScoringSystem"J +!CISAKnownExploitedVulnerabilities% +known_ransomware_campaign_use ( "C +ExploitPredictionScoringSystem + +percentile ( +score (BQ + io.grafeas.v1PZ8google.golang.org/genproto/googleapis/grafeas/v1;grafeas¢GRAbproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Sbom.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Sbom.php new file mode 100644 index 000000000000..d36bb8a06471 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Sbom.php @@ -0,0 +1,51 @@ +internalAddGeneratedFile( + ' +ô +grafeas/v1/sbom.proto +grafeas.v1!grafeas/v1/intoto_statement.proto"4 +SBOMReferenceNote +format (  +version ( "› +SBOMReferenceOccurrence7 +payload ( 2&.grafeas.v1.SbomReferenceIntotoPayload + payload_type ( 1 + +signatures ( 2.grafeas.v1.EnvelopeSignature"¬ +SbomReferenceIntotoPayload +type ( R_type +predicate_type ( $ +subject ( 2.grafeas.v1.Subject; + predicate ( 2(.grafeas.v1.SbomReferenceIntotoPredicate"Í +SbomReferenceIntotoPredicate + referrer_id (  +location (  + mime_type ( D +digest ( 24.grafeas.v1.SbomReferenceIntotoPredicate.DigestEntry- + DigestEntry +key (  +value ( :8BQ + io.grafeas.v1PZ8google.golang.org/genproto/googleapis/grafeas/v1;grafeas¢GRAbproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Secret.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Secret.php new file mode 100644 index 0000000000000000000000000000000000000000..50535634973ef79d78d33a8d1b0b9b6ab94a648d GIT binary patch literal 2441 zcmbVOYj5I46kS4|lSk=nn$T3;osd)^?FKeq)u(>83FB)>w6O1P~v({ z;F!*kT#x#F>Jihqb*&-w3WQW;BFP#Ns-kuXRNonSCM}bJXY{Gz7w^uCJ~cfW6v7+` z*~TsPUBjfLu2kOAz~~u)(XB`D?$!APLgvu$eWHdm^cy1Zb4S-h%Orka1aLXFeBH9G zz%qu`uTbSB=^I0z0(BnSAK7MLIW}Pg**0nZlteih_Skhm)g|fH9cM74U4;n+kzLUa zsAn6)Zk76`XSspnDF7{(2Q--2!`|di<7HVot55P#jpg!Ok(VU!Ml`uPAz;kNvoFHB zS%QbjUH6eaQFWYab!!$K_A2zoxU(FuT%M|$CRs$C2;=Pg|H0BM=vrXhy8nec>1CI9 zZf_lXF(<240n(Or@zSdy2@)IYRFDK}aZM6TyP+=4Y3U}uRpAJH=is86HCyR!C zAI;vu%h^ycRuu!13&4m&=}{oJg-|q(k`vI}KPi-n9%a)Uc^-wS!l!8Y7t8KtQzVt& zDeV=eB^4rU6QY&$-`o-|p^c$q!X!JkpIsv9{ATH39^Z-~jFZAew9W==>;dboYqnGj-)CAFV;k% znt6sd(OO4pO7c4?lfoNl<%(;G)yxumFG|rv`pZAp#$&>IjXy*Cs=&7eO>c@)btd6H zdj2>#PToC1N6AQ?S9DcqUx~b+b38A1B*-VchqY(&Ga#pkVK9x)(CKUznd@kclFqk8 z0dhcLRk(^=OU*3fMXSbmSX59|U6Y%Flv$ZWa+20)%ZkYBT=lIeO-fkBhv@TU2?=0a z*y*XzPtmMOTEjDob38xi`&= za2_2e8Ff)(Xiib|woq#eY9r3Q2?Kxj1d=rdmeJ&}Md2NDX$!XNS5Htnz?ma#!zOsW zfWWsnRRwDoYuLfxp>GzjYN90Q^)?5W>J!wDX04CqhdqylXYdhvnM~j4)a#;DuW@V? z;~svDU!a2|NLB=i6DM&zyAViGTEfpF^lqHv`Ru5uT3b{E@HE;zFzvhe3v@VsX1ghd zK%W51Yao0sep<5c(G;+|)h* literal 0 HcmV?d00001 diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Severity.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Severity.php new file mode 100644 index 0000000000000000000000000000000000000000..bd0c81933da82d252d670e0445a98d5e1628beae GIT binary patch literal 744 zcmZ`%U2EGg6kVFG4R;#^vxn{Njuo1Y&7tgNB+Evcq^_a)Sd(^am=?vkb_K3vBstKH z{F(i<{gTOcmKI9&BB6WEx#u3~^Vjq`g}3ODAjJ$VaDI#CnlM$;$WSIY&!UJFhVmxm z2`Lw`KgQ8`hJ(I8dt<3uW-6o>#)?J6baQ#w)U+hU&8=Ig00?$NI%OfDH#r)TVGCwh z;FW~n;;;=6CQNIbu8Hs)(5^I_Cp<)Ln6cX)*H>I{!&$d zwz(XSuu*z!wH}!4pivp!?~bU*WJt0^efV2} z*N^7zz`Eov58quv?SHt=D|k5_Tnx_q*^jI9(R4EC`N#gCUw`5}gWaJ&@`v5idd1m= z>go70} z#I96vGbT}diDp@1Dc8+A|Lyhh&sNnt>&|xy=*Rud%IJe4cm*qfe}6pT A_y7O^ literal 0 HcmV?d00001 diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/SlsaProvenance.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/SlsaProvenance.php new file mode 100644 index 000000000000..0a0032106807 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/SlsaProvenance.php @@ -0,0 +1,61 @@ +internalAddGeneratedFile( + ' +À + grafeas/v1/slsa_provenance.proto +grafeas.v1google/protobuf/timestamp.proto"þ +SlsaProvenance7 +builder ( 2&.grafeas.v1.SlsaProvenance.SlsaBuilder5 +recipe ( 2%.grafeas.v1.SlsaProvenance.SlsaRecipe9 +metadata ( 2\'.grafeas.v1.SlsaProvenance.SlsaMetadata6 + materials ( 2#.grafeas.v1.SlsaProvenance.Material  + +SlsaRecipe +type (  +defined_in_material ( + entry_point ( \' + arguments ( 2.google.protobuf.Any) + environment ( 2.google.protobuf.AnyM +SlsaCompleteness + arguments ( + environment ( + materials (ñ + SlsaMetadata +build_invocation_id ( 4 +build_started_on ( 2.google.protobuf.Timestamp5 +build_finished_on ( 2.google.protobuf.TimestampA + completeness ( 2+.grafeas.v1.SlsaProvenance.SlsaCompleteness + reproducible ( + SlsaBuilder + +id ( ‡ +Material +uri ( ? +digest ( 2/.grafeas.v1.SlsaProvenance.Material.DigestEntry- + DigestEntry +key (  +value ( :8Bf + io.grafeas.v1BSlsaProvenanceProtoPZ8google.golang.org/genproto/googleapis/grafeas/v1;grafeas¢GRAbproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/SlsaProvenanceZeroTwo.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/SlsaProvenanceZeroTwo.php new file mode 100644 index 000000000000..2df7242755b6 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/SlsaProvenanceZeroTwo.php @@ -0,0 +1,71 @@ +internalAddGeneratedFile( + ' +¥ +)grafeas/v1/slsa_provenance_zero_two.proto +grafeas.v1google/protobuf/timestamp.proto"Ó +SlsaProvenanceZeroTwo> +builder ( 2-.grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder + +build_type ( D + +invocation ( 20.grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation- + build_config ( 2.google.protobuf.Struct@ +metadata ( 2..grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadataA + materials ( 2..grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial + SlsaBuilder + +id ( – + SlsaMaterial +uri ( J +digest ( 2:.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial.DigestEntry- + DigestEntry +key (  +value ( :8¶ +SlsaInvocationI + config_source ( 22.grafeas.v1.SlsaProvenanceZeroTwo.SlsaConfigSource+ + +parameters ( 2.google.protobuf.Struct, + environment ( 2.google.protobuf.Struct³ +SlsaConfigSource +uri ( N +digest ( 2>.grafeas.v1.SlsaProvenanceZeroTwo.SlsaConfigSource.DigestEntry + entry_point ( - + DigestEntry +key (  +value ( :8ø + SlsaMetadata +build_invocation_id ( 4 +build_started_on ( 2.google.protobuf.Timestamp5 +build_finished_on ( 2.google.protobuf.TimestampH + completeness ( 22.grafeas.v1.SlsaProvenanceZeroTwo.SlsaCompleteness + reproducible (N +SlsaCompleteness + +parameters ( + environment ( + materials (Bm + io.grafeas.v1BSlsaProvenanceZeroTwoProtoPZ8google.golang.org/genproto/googleapis/grafeas/v1;grafeas¢GRAbproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Upgrade.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Upgrade.php new file mode 100644 index 000000000000..ccca29a0b7e1 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Upgrade.php @@ -0,0 +1,60 @@ +internalAddGeneratedFile( + ' +Ù +grafeas/v1/upgrade.proto +grafeas.v1grafeas/v1/package.proto"¯ + UpgradeNote +package ( $ +version ( 2.grafeas.v1.Version6 + distributions ( 2.grafeas.v1.UpgradeDistribution1 +windows_update ( 2.grafeas.v1.WindowsUpdate"] +UpgradeDistribution +cpe_uri (  +classification (  +severity (  +cve ( "ì + WindowsUpdate4 +identity ( 2".grafeas.v1.WindowsUpdate.Identity +title (  + description ( 6 + +categories ( 2".grafeas.v1.WindowsUpdate.Category +kb_article_ids (  + support_url ( < +last_published_timestamp ( 2.google.protobuf.Timestamp/ +Identity + update_id (  +revision (- +Category + category_id (  +name ( "» +UpgradeOccurrence +package ( + +parsed_version ( 2.grafeas.v1.Version5 + distribution ( 2.grafeas.v1.UpgradeDistribution1 +windows_update ( 2.grafeas.v1.WindowsUpdateBQ + io.grafeas.v1PZ8google.golang.org/genproto/googleapis/grafeas/v1;grafeas¢GRAbproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Vex.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Vex.php new file mode 100644 index 0000000000000000000000000000000000000000..9b897bf4c76df9a8378f3e5b9b214f5e0e52ac54 GIT binary patch literal 2425 zcmbVO|8Ck=6fO{&auO2aE*ndy?JkX!RO&#R|AH+BQ`aLHWQL%%!S;^*vLPk zW>cPEdy2ix`WSnS{kL;%2Bt}>D*S_e?>XN&=ljmR$3OlwJ)gp3(xeXc%zzHb;F1LA zluSK0a4pv+gK#vW9bs$5(Fz%R=7^ep`QosALEn`k z0076FP=9J#lr-DbQyQ2$TCeQW?`=P7Gf;crpvi;n;{A#5qg3kQ2UyE&ts00%JJi4XH1t zqpczoY}Xkt?PQ{zZOGfEGY-u$H7s{Xi!0G`9deQG{yFuESzKB>IxHaA-wzqm zV}=0|h(yn5djt>XEEw~nQ;e9~c?ql7vb;E984w`NhBJh1SR3=R%q%1HSnT=oUUeOS z4N*omV$|FDCkL>|RoH}#bur7Xnl7dURPQ3$1_r|CBAM`sqEQ!Y96d{#eXI)>1(iD7AIn;06TEr?ADbbA{rU#-zlJ{Nz{0Bq zdo`B##T_ENO5zAQFK|MKEQ0lm526B}-vL)!!0h~)f&6kD2ZW^pjNoz_>$Y*E-67f% zdTHrRM`X_65U*@z`*C;e{+oiW>t?&~^{Z}2mm6|T)MZsM^s}~Pbd^q9s^OwkFWkes zV!NiEwpB$^bOXnS(bl96J{MBLH+boETZ*KK)s|$`)Vj1}kQVy;@c1SRSuv!yQmv~? zMqAWh7Ba#QaQLBNO;mWeDo0jyO>MQLx=}qd#ClKCI-+(~SP}Ms$Vy9AB;!=pL8S1Ga35-lYZ-=+WjL1 zn;)VQ_)3#bag5(8+6KUa5L8Nl4MjB?@>`?bLRwMSbi9Vli9JznaRpHZ^y^7VUDdcP z@{8|pRPAR`Q@cvNklh_XHa?=;u+`B;)Ni?2*5QHJXh=03Bcy}^taAnDD`_DISp>$- zjPM0KL`+FDWThuz560pZR;sTd&)kF#?bI*N#?jy}ja@#0O0G99<6RkjsFdR^bISbk pVoV;-9{);bnwmJcADMo?KOe16<0+r`D7f{5AhL|7_Z3_L{0Eg%internalAddGeneratedFile( + ' +Ÿ +grafeas/v1/vulnerability.proto +grafeas.v1google/protobuf/timestamp.protografeas/v1/common.protografeas/v1/cvss.protografeas/v1/package.protografeas/v1/risk.protografeas/v1/severity.protografeas/v1/vex.proto"§ +VulnerabilityNote + +cvss_score (& +severity (2.grafeas.v1.Severity5 +details ( 2$.grafeas.v1.VulnerabilityNote.Detail# +cvss_v3 ( 2.grafeas.v1.CVSSv3D +windows_details ( 2+.grafeas.v1.VulnerabilityNote.WindowsDetail6 +source_update_time ( 2.google.protobuf.Timestamp- + cvss_version (2.grafeas.v1.CVSSVersion! +cvss_v2 ( 2.grafeas.v1.CVSS9 +advisory_publish_time ( 2.google.protobuf.Timestamp­ +Detail + severity_name (  + description (  + package_type (  +affected_cpe_uri (  +affected_package ( 3 +affected_version_start ( 2.grafeas.v1.Version1 +affected_version_end ( 2.grafeas.v1.Version + fixed_cpe_uri (  + fixed_package ( * + fixed_version + ( 2.grafeas.v1.Version + is_obsolete (6 +source_update_time ( 2.google.protobuf.Timestamp +source (  +vendor ( Ÿ + WindowsDetail +cpe_uri (  +name (  + description ( M + +fixing_kbs ( 29.grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase* + KnowledgeBase +name (  +url ( "ž + +VulnerabilityOccurrence +type ( & +severity (2.grafeas.v1.Severity + +cvss_score ( +cvssv3 + ( 2.grafeas.v1.CVSSG + package_issue ( 20.grafeas.v1.VulnerabilityOccurrence.PackageIssue +short_description (  +long_description ( , + related_urls ( 2.grafeas.v1.RelatedUrl0 +effective_severity (2.grafeas.v1.Severity + fix_available (- + cvss_version (2.grafeas.v1.CVSSVersion! +cvss_v2 ( 2.grafeas.v1.CVSSI +vex_assessment ( 21.grafeas.v1.VulnerabilityOccurrence.VexAssessment + extra_details (  +risk ( 2.grafeas.v1.Riskà + PackageIssue +affected_cpe_uri (  +affected_package ( - +affected_version ( 2.grafeas.v1.Version + fixed_cpe_uri (  + fixed_package ( * + fixed_version ( 2.grafeas.v1.Version + fix_available ( + package_type ( 5 +effective_severity (2.grafeas.v1.SeverityBàA/ + file_location + ( 2.grafeas.v1.FileLocation„ + VexAssessment +cve ( B +vulnerability_id ( , + related_uris ( 2.grafeas.v1.RelatedUrl + note_name ( G +state (28.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State +impacts ( T + remediations ( 2>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.RemediationW + justification ( 2@.grafeas.v1.VulnerabilityAssessmentNote.Assessment.JustificationBQ + io.grafeas.v1PZ8google.golang.org/genproto/googleapis/grafeas/v1;grafeas¢GRAbproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AliasContext.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AliasContext.php new file mode 100644 index 000000000000..36f9800b4f76 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AliasContext.php @@ -0,0 +1,101 @@ +grafeas.v1.AliasContext + */ +class AliasContext extends \Google\Protobuf\Internal\Message +{ + /** + * The alias kind. + * + * Generated from protobuf field .grafeas.v1.AliasContext.Kind kind = 1; + */ + protected $kind = 0; + /** + * The alias name. + * + * Generated from protobuf field string name = 2; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $kind + * The alias kind. + * @type string $name + * The alias name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Provenance::initOnce(); + parent::__construct($data); + } + + /** + * The alias kind. + * + * Generated from protobuf field .grafeas.v1.AliasContext.Kind kind = 1; + * @return int + */ + public function getKind() + { + return $this->kind; + } + + /** + * The alias kind. + * + * Generated from protobuf field .grafeas.v1.AliasContext.Kind kind = 1; + * @param int $var + * @return $this + */ + public function setKind($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\AliasContext\Kind::class); + $this->kind = $var; + + return $this; + } + + /** + * The alias name. + * + * Generated from protobuf field string name = 2; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The alias name. + * + * Generated from protobuf field string name = 2; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AliasContext/Kind.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AliasContext/Kind.php new file mode 100644 index 000000000000..f46137817ef2 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AliasContext/Kind.php @@ -0,0 +1,72 @@ +grafeas.v1.AliasContext.Kind + */ +class Kind +{ + /** + * Unknown. + * + * Generated from protobuf enum KIND_UNSPECIFIED = 0; + */ + const KIND_UNSPECIFIED = 0; + /** + * Git tag. + * + * Generated from protobuf enum FIXED = 1; + */ + const FIXED = 1; + /** + * Git branch. + * + * Generated from protobuf enum MOVABLE = 2; + */ + const MOVABLE = 2; + /** + * Used to specify non-standard aliases. For example, if a Git repo has a + * ref named "refs/foo/bar". + * + * Generated from protobuf enum OTHER = 4; + */ + const OTHER = 4; + + private static $valueToName = [ + self::KIND_UNSPECIFIED => 'KIND_UNSPECIFIED', + self::FIXED => 'FIXED', + self::MOVABLE => 'MOVABLE', + self::OTHER => 'OTHER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Kind::class, \Grafeas\V1\AliasContext_Kind::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Architecture.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Architecture.php new file mode 100644 index 000000000000..ea83dfee8e77 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Architecture.php @@ -0,0 +1,61 @@ +grafeas.v1.Architecture + */ +class Architecture +{ + /** + * Unknown architecture. + * + * Generated from protobuf enum ARCHITECTURE_UNSPECIFIED = 0; + */ + const ARCHITECTURE_UNSPECIFIED = 0; + /** + * X86 architecture. + * + * Generated from protobuf enum X86 = 1; + */ + const X86 = 1; + /** + * X64 architecture. + * + * Generated from protobuf enum X64 = 2; + */ + const X64 = 2; + + private static $valueToName = [ + self::ARCHITECTURE_UNSPECIFIED => 'ARCHITECTURE_UNSPECIFIED', + self::X86 => 'X86', + self::X64 => 'X64', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Artifact.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Artifact.php new file mode 100644 index 000000000000..ff6f4d0a38d3 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Artifact.php @@ -0,0 +1,159 @@ +grafeas.v1.Artifact + */ +class Artifact extends \Google\Protobuf\Internal\Message +{ + /** + * Hash or checksum value of a binary, or Docker Registry 2.0 digest of a + * container. + * + * Generated from protobuf field string checksum = 1; + */ + protected $checksum = ''; + /** + * Artifact ID, if any; for container images, this will be a URL by digest + * like `gcr.io/projectID/imagename@sha256:123456`. + * + * Generated from protobuf field string id = 2; + */ + protected $id = ''; + /** + * Related artifact names. This may be the path to a binary or jar file, or in + * the case of a container build, the name used to push the container image to + * Google Container Registry, as presented to `docker push`. Note that a + * single Artifact ID can have multiple names, for example if two tags are + * applied to one image. + * + * Generated from protobuf field repeated string names = 3; + */ + private $names; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $checksum + * Hash or checksum value of a binary, or Docker Registry 2.0 digest of a + * container. + * @type string $id + * Artifact ID, if any; for container images, this will be a URL by digest + * like `gcr.io/projectID/imagename@sha256:123456`. + * @type array|\Google\Protobuf\Internal\RepeatedField $names + * Related artifact names. This may be the path to a binary or jar file, or in + * the case of a container build, the name used to push the container image to + * Google Container Registry, as presented to `docker push`. Note that a + * single Artifact ID can have multiple names, for example if two tags are + * applied to one image. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Provenance::initOnce(); + parent::__construct($data); + } + + /** + * Hash or checksum value of a binary, or Docker Registry 2.0 digest of a + * container. + * + * Generated from protobuf field string checksum = 1; + * @return string + */ + public function getChecksum() + { + return $this->checksum; + } + + /** + * Hash or checksum value of a binary, or Docker Registry 2.0 digest of a + * container. + * + * Generated from protobuf field string checksum = 1; + * @param string $var + * @return $this + */ + public function setChecksum($var) + { + GPBUtil::checkString($var, True); + $this->checksum = $var; + + return $this; + } + + /** + * Artifact ID, if any; for container images, this will be a URL by digest + * like `gcr.io/projectID/imagename@sha256:123456`. + * + * Generated from protobuf field string id = 2; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Artifact ID, if any; for container images, this will be a URL by digest + * like `gcr.io/projectID/imagename@sha256:123456`. + * + * Generated from protobuf field string id = 2; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Related artifact names. This may be the path to a binary or jar file, or in + * the case of a container build, the name used to push the container image to + * Google Container Registry, as presented to `docker push`. Note that a + * single Artifact ID can have multiple names, for example if two tags are + * applied to one image. + * + * Generated from protobuf field repeated string names = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNames() + { + return $this->names; + } + + /** + * Related artifact names. This may be the path to a binary or jar file, or in + * the case of a container build, the name used to push the container image to + * Google Container Registry, as presented to `docker push`. Note that a + * single Artifact ID can have multiple names, for example if two tags are + * applied to one image. + * + * Generated from protobuf field repeated string names = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->names = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AttestationNote.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AttestationNote.php new file mode 100644 index 000000000000..f6c61a7ac8f0 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AttestationNote.php @@ -0,0 +1,84 @@ +grafeas.v1.AttestationNote + */ +class AttestationNote extends \Google\Protobuf\Internal\Message +{ + /** + * Hint hints at the purpose of the attestation authority. + * + * Generated from protobuf field .grafeas.v1.AttestationNote.Hint hint = 1; + */ + protected $hint = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Grafeas\V1\AttestationNote\Hint $hint + * Hint hints at the purpose of the attestation authority. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Attestation::initOnce(); + parent::__construct($data); + } + + /** + * Hint hints at the purpose of the attestation authority. + * + * Generated from protobuf field .grafeas.v1.AttestationNote.Hint hint = 1; + * @return \Grafeas\V1\AttestationNote\Hint|null + */ + public function getHint() + { + return $this->hint; + } + + public function hasHint() + { + return isset($this->hint); + } + + public function clearHint() + { + unset($this->hint); + } + + /** + * Hint hints at the purpose of the attestation authority. + * + * Generated from protobuf field .grafeas.v1.AttestationNote.Hint hint = 1; + * @param \Grafeas\V1\AttestationNote\Hint $var + * @return $this + */ + public function setHint($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\AttestationNote\Hint::class); + $this->hint = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AttestationNote/Hint.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AttestationNote/Hint.php new file mode 100644 index 000000000000..a9646f504708 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AttestationNote/Hint.php @@ -0,0 +1,80 @@ +grafeas.v1.AttestationNote.Hint + */ +class Hint extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The human readable name of this attestation authority, for + * example "qa". + * + * Generated from protobuf field string human_readable_name = 1; + */ + protected $human_readable_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $human_readable_name + * Required. The human readable name of this attestation authority, for + * example "qa". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Attestation::initOnce(); + parent::__construct($data); + } + + /** + * Required. The human readable name of this attestation authority, for + * example "qa". + * + * Generated from protobuf field string human_readable_name = 1; + * @return string + */ + public function getHumanReadableName() + { + return $this->human_readable_name; + } + + /** + * Required. The human readable name of this attestation authority, for + * example "qa". + * + * Generated from protobuf field string human_readable_name = 1; + * @param string $var + * @return $this + */ + public function setHumanReadableName($var) + { + GPBUtil::checkString($var, True); + $this->human_readable_name = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Hint::class, \Grafeas\V1\AttestationNote_Hint::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AttestationOccurrence.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AttestationOccurrence.php new file mode 100644 index 000000000000..08020cd64fc6 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AttestationOccurrence.php @@ -0,0 +1,190 @@ +grafeas.v1.AttestationOccurrence + */ +class AttestationOccurrence extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The serialized payload that is verified by one or more + * `signatures`. + * + * Generated from protobuf field bytes serialized_payload = 1; + */ + protected $serialized_payload = ''; + /** + * One or more signatures over `serialized_payload`. Verifier implementations + * should consider this attestation message verified if at least one + * `signature` verifies `serialized_payload`. See `Signature` in common.proto + * for more details on signature structure and verification. + * + * Generated from protobuf field repeated .grafeas.v1.Signature signatures = 2; + */ + private $signatures; + /** + * One or more JWTs encoding a self-contained attestation. + * Each JWT encodes the payload that it verifies within the JWT itself. + * Verifier implementation SHOULD ignore the `serialized_payload` field + * when verifying these JWTs. + * If only JWTs are present on this AttestationOccurrence, then the + * `serialized_payload` SHOULD be left empty. + * Each JWT SHOULD encode a claim specific to the `resource_uri` of this + * Occurrence, but this is not validated by Grafeas metadata API + * implementations. The JWT itself is opaque to Grafeas. + * + * Generated from protobuf field repeated .grafeas.v1.Jwt jwts = 3; + */ + private $jwts; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $serialized_payload + * Required. The serialized payload that is verified by one or more + * `signatures`. + * @type array<\Grafeas\V1\Signature>|\Google\Protobuf\Internal\RepeatedField $signatures + * One or more signatures over `serialized_payload`. Verifier implementations + * should consider this attestation message verified if at least one + * `signature` verifies `serialized_payload`. See `Signature` in common.proto + * for more details on signature structure and verification. + * @type array<\Grafeas\V1\Jwt>|\Google\Protobuf\Internal\RepeatedField $jwts + * One or more JWTs encoding a self-contained attestation. + * Each JWT encodes the payload that it verifies within the JWT itself. + * Verifier implementation SHOULD ignore the `serialized_payload` field + * when verifying these JWTs. + * If only JWTs are present on this AttestationOccurrence, then the + * `serialized_payload` SHOULD be left empty. + * Each JWT SHOULD encode a claim specific to the `resource_uri` of this + * Occurrence, but this is not validated by Grafeas metadata API + * implementations. The JWT itself is opaque to Grafeas. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Attestation::initOnce(); + parent::__construct($data); + } + + /** + * Required. The serialized payload that is verified by one or more + * `signatures`. + * + * Generated from protobuf field bytes serialized_payload = 1; + * @return string + */ + public function getSerializedPayload() + { + return $this->serialized_payload; + } + + /** + * Required. The serialized payload that is verified by one or more + * `signatures`. + * + * Generated from protobuf field bytes serialized_payload = 1; + * @param string $var + * @return $this + */ + public function setSerializedPayload($var) + { + GPBUtil::checkString($var, False); + $this->serialized_payload = $var; + + return $this; + } + + /** + * One or more signatures over `serialized_payload`. Verifier implementations + * should consider this attestation message verified if at least one + * `signature` verifies `serialized_payload`. See `Signature` in common.proto + * for more details on signature structure and verification. + * + * Generated from protobuf field repeated .grafeas.v1.Signature signatures = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSignatures() + { + return $this->signatures; + } + + /** + * One or more signatures over `serialized_payload`. Verifier implementations + * should consider this attestation message verified if at least one + * `signature` verifies `serialized_payload`. See `Signature` in common.proto + * for more details on signature structure and verification. + * + * Generated from protobuf field repeated .grafeas.v1.Signature signatures = 2; + * @param array<\Grafeas\V1\Signature>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSignatures($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Signature::class); + $this->signatures = $arr; + + return $this; + } + + /** + * One or more JWTs encoding a self-contained attestation. + * Each JWT encodes the payload that it verifies within the JWT itself. + * Verifier implementation SHOULD ignore the `serialized_payload` field + * when verifying these JWTs. + * If only JWTs are present on this AttestationOccurrence, then the + * `serialized_payload` SHOULD be left empty. + * Each JWT SHOULD encode a claim specific to the `resource_uri` of this + * Occurrence, but this is not validated by Grafeas metadata API + * implementations. The JWT itself is opaque to Grafeas. + * + * Generated from protobuf field repeated .grafeas.v1.Jwt jwts = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getJwts() + { + return $this->jwts; + } + + /** + * One or more JWTs encoding a self-contained attestation. + * Each JWT encodes the payload that it verifies within the JWT itself. + * Verifier implementation SHOULD ignore the `serialized_payload` field + * when verifying these JWTs. + * If only JWTs are present on this AttestationOccurrence, then the + * `serialized_payload` SHOULD be left empty. + * Each JWT SHOULD encode a claim specific to the `resource_uri` of this + * Occurrence, but this is not validated by Grafeas metadata API + * implementations. The JWT itself is opaque to Grafeas. + * + * Generated from protobuf field repeated .grafeas.v1.Jwt jwts = 3; + * @param array<\Grafeas\V1\Jwt>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setJwts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Jwt::class); + $this->jwts = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BaseImage.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BaseImage.php new file mode 100644 index 000000000000..4ebce25a5062 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BaseImage.php @@ -0,0 +1,169 @@ +grafeas.v1.BaseImage + */ +class BaseImage extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the base image. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The repository name in which the base image is from. + * + * Generated from protobuf field string repository = 2; + */ + protected $repository = ''; + /** + * The number of layers that the base image is composed of. + * + * Generated from protobuf field int32 layer_count = 3; + */ + protected $layer_count = 0; + /** + * The registry in which the base image is from. + * + * Generated from protobuf field string registry = 4; + */ + protected $registry = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the base image. + * @type string $repository + * The repository name in which the base image is from. + * @type int $layer_count + * The number of layers that the base image is composed of. + * @type string $registry + * The registry in which the base image is from. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * The name of the base image. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the base image. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The repository name in which the base image is from. + * + * Generated from protobuf field string repository = 2; + * @return string + */ + public function getRepository() + { + return $this->repository; + } + + /** + * The repository name in which the base image is from. + * + * Generated from protobuf field string repository = 2; + * @param string $var + * @return $this + */ + public function setRepository($var) + { + GPBUtil::checkString($var, True); + $this->repository = $var; + + return $this; + } + + /** + * The number of layers that the base image is composed of. + * + * Generated from protobuf field int32 layer_count = 3; + * @return int + */ + public function getLayerCount() + { + return $this->layer_count; + } + + /** + * The number of layers that the base image is composed of. + * + * Generated from protobuf field int32 layer_count = 3; + * @param int $var + * @return $this + */ + public function setLayerCount($var) + { + GPBUtil::checkInt32($var); + $this->layer_count = $var; + + return $this; + } + + /** + * The registry in which the base image is from. + * + * Generated from protobuf field string registry = 4; + * @return string + */ + public function getRegistry() + { + return $this->registry; + } + + /** + * The registry in which the base image is from. + * + * Generated from protobuf field string registry = 4; + * @param string $var + * @return $this + */ + public function setRegistry($var) + { + GPBUtil::checkString($var, True); + $this->registry = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateNotesRequest.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateNotesRequest.php new file mode 100644 index 000000000000..57d5ba438a91 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateNotesRequest.php @@ -0,0 +1,122 @@ +grafeas.v1.BatchCreateNotesRequest + */ +class BatchCreateNotesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the project in the form of `projects/[PROJECT_ID]`, under which + * the notes are to be created. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The notes to create. Max allowed length is 1000. + * + * Generated from protobuf field map notes = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $notes; + + /** + * @param string $parent The name of the project in the form of `projects/[PROJECT_ID]`, under which + * the notes are to be created. Please see + * {@see GrafeasClient::projectName()} for help formatting this field. + * @param array $notes The notes to create. Max allowed length is 1000. + * + * @return \Grafeas\V1\BatchCreateNotesRequest + * + * @experimental + */ + public static function build(string $parent, array $notes): self + { + return (new self()) + ->setParent($parent) + ->setNotes($notes); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * The name of the project in the form of `projects/[PROJECT_ID]`, under which + * the notes are to be created. + * @type array|\Google\Protobuf\Internal\MapField $notes + * The notes to create. Max allowed length is 1000. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); + parent::__construct($data); + } + + /** + * The name of the project in the form of `projects/[PROJECT_ID]`, under which + * the notes are to be created. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * The name of the project in the form of `projects/[PROJECT_ID]`, under which + * the notes are to be created. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The notes to create. Max allowed length is 1000. + * + * Generated from protobuf field map notes = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getNotes() + { + return $this->notes; + } + + /** + * The notes to create. Max allowed length is 1000. + * + * Generated from protobuf field map notes = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setNotes($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Note::class); + $this->notes = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateNotesResponse.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateNotesResponse.php new file mode 100644 index 000000000000..da4f910330f7 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateNotesResponse.php @@ -0,0 +1,67 @@ +grafeas.v1.BatchCreateNotesResponse + */ +class BatchCreateNotesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The notes that were created. + * + * Generated from protobuf field repeated .grafeas.v1.Note notes = 1; + */ + private $notes; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Grafeas\V1\Note>|\Google\Protobuf\Internal\RepeatedField $notes + * The notes that were created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); + parent::__construct($data); + } + + /** + * The notes that were created. + * + * Generated from protobuf field repeated .grafeas.v1.Note notes = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNotes() + { + return $this->notes; + } + + /** + * The notes that were created. + * + * Generated from protobuf field repeated .grafeas.v1.Note notes = 1; + * @param array<\Grafeas\V1\Note>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNotes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Note::class); + $this->notes = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateOccurrencesRequest.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateOccurrencesRequest.php new file mode 100644 index 000000000000..353ab9a1b68f --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateOccurrencesRequest.php @@ -0,0 +1,122 @@ +grafeas.v1.BatchCreateOccurrencesRequest + */ +class BatchCreateOccurrencesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the project in the form of `projects/[PROJECT_ID]`, under which + * the occurrences are to be created. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The occurrences to create. Max allowed length is 1000. + * + * Generated from protobuf field repeated .grafeas.v1.Occurrence occurrences = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $occurrences; + + /** + * @param string $parent The name of the project in the form of `projects/[PROJECT_ID]`, under which + * the occurrences are to be created. Please see + * {@see GrafeasClient::projectName()} for help formatting this field. + * @param \Grafeas\V1\Occurrence[] $occurrences The occurrences to create. Max allowed length is 1000. + * + * @return \Grafeas\V1\BatchCreateOccurrencesRequest + * + * @experimental + */ + public static function build(string $parent, array $occurrences): self + { + return (new self()) + ->setParent($parent) + ->setOccurrences($occurrences); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * The name of the project in the form of `projects/[PROJECT_ID]`, under which + * the occurrences are to be created. + * @type array<\Grafeas\V1\Occurrence>|\Google\Protobuf\Internal\RepeatedField $occurrences + * The occurrences to create. Max allowed length is 1000. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); + parent::__construct($data); + } + + /** + * The name of the project in the form of `projects/[PROJECT_ID]`, under which + * the occurrences are to be created. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * The name of the project in the form of `projects/[PROJECT_ID]`, under which + * the occurrences are to be created. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The occurrences to create. Max allowed length is 1000. + * + * Generated from protobuf field repeated .grafeas.v1.Occurrence occurrences = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOccurrences() + { + return $this->occurrences; + } + + /** + * The occurrences to create. Max allowed length is 1000. + * + * Generated from protobuf field repeated .grafeas.v1.Occurrence occurrences = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Grafeas\V1\Occurrence>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOccurrences($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Occurrence::class); + $this->occurrences = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateOccurrencesResponse.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateOccurrencesResponse.php new file mode 100644 index 000000000000..ff03d5abda45 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateOccurrencesResponse.php @@ -0,0 +1,67 @@ +grafeas.v1.BatchCreateOccurrencesResponse + */ +class BatchCreateOccurrencesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The occurrences that were created. + * + * Generated from protobuf field repeated .grafeas.v1.Occurrence occurrences = 1; + */ + private $occurrences; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Grafeas\V1\Occurrence>|\Google\Protobuf\Internal\RepeatedField $occurrences + * The occurrences that were created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); + parent::__construct($data); + } + + /** + * The occurrences that were created. + * + * Generated from protobuf field repeated .grafeas.v1.Occurrence occurrences = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOccurrences() + { + return $this->occurrences; + } + + /** + * The occurrences that were created. + * + * Generated from protobuf field repeated .grafeas.v1.Occurrence occurrences = 1; + * @param array<\Grafeas\V1\Occurrence>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOccurrences($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Occurrence::class); + $this->occurrences = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuildNote.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuildNote.php new file mode 100644 index 000000000000..033b8e22bb8c --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuildNote.php @@ -0,0 +1,68 @@ +grafeas.v1.BuildNote + */ +class BuildNote extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Immutable. Version of the builder which produced this build. + * + * Generated from protobuf field string builder_version = 1; + */ + protected $builder_version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $builder_version + * Required. Immutable. Version of the builder which produced this build. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Build::initOnce(); + parent::__construct($data); + } + + /** + * Required. Immutable. Version of the builder which produced this build. + * + * Generated from protobuf field string builder_version = 1; + * @return string + */ + public function getBuilderVersion() + { + return $this->builder_version; + } + + /** + * Required. Immutable. Version of the builder which produced this build. + * + * Generated from protobuf field string builder_version = 1; + * @param string $var + * @return $this + */ + public function setBuilderVersion($var) + { + GPBUtil::checkString($var, True); + $this->builder_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuildOccurrence.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuildOccurrence.php new file mode 100644 index 000000000000..e7f35ae36569 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuildOccurrence.php @@ -0,0 +1,307 @@ +grafeas.v1.BuildOccurrence + */ +class BuildOccurrence extends \Google\Protobuf\Internal\Message +{ + /** + * The actual provenance for the build. + * + * Generated from protobuf field .grafeas.v1.BuildProvenance provenance = 1; + */ + protected $provenance = null; + /** + * Serialized JSON representation of the provenance, used in generating the + * build signature in the corresponding build note. After verifying the + * signature, `provenance_bytes` can be unmarshalled and compared to the + * provenance to confirm that it is unchanged. A base64-encoded string + * representation of the provenance bytes is used for the signature in order + * to interoperate with openssl which expects this format for signature + * verification. + * The serialized form is captured both to avoid ambiguity in how the + * provenance is marshalled to json as well to prevent incompatibilities with + * future changes. + * + * Generated from protobuf field string provenance_bytes = 2; + */ + protected $provenance_bytes = ''; + /** + * Deprecated. See InTotoStatement for the replacement. + * In-toto Provenance representation as defined in spec. + * + * Generated from protobuf field .grafeas.v1.InTotoProvenance intoto_provenance = 3; + */ + protected $intoto_provenance = null; + /** + * In-toto Statement representation as defined in spec. + * The intoto_statement can contain any type of provenance. The serialized + * payload of the statement can be stored and signed in the Occurrence's + * envelope. + * + * Generated from protobuf field .grafeas.v1.InTotoStatement intoto_statement = 4; + */ + protected $intoto_statement = null; + /** + * In-Toto Slsa Provenance V1 represents a slsa provenance meeting the slsa + * spec, wrapped in an in-toto statement. This allows for direct + * jsonification of a to-spec in-toto slsa statement with a to-spec + * slsa provenance. + * + * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1 in_toto_slsa_provenance_v1 = 5; + */ + protected $in_toto_slsa_provenance_v1 = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Grafeas\V1\BuildProvenance $provenance + * The actual provenance for the build. + * @type string $provenance_bytes + * Serialized JSON representation of the provenance, used in generating the + * build signature in the corresponding build note. After verifying the + * signature, `provenance_bytes` can be unmarshalled and compared to the + * provenance to confirm that it is unchanged. A base64-encoded string + * representation of the provenance bytes is used for the signature in order + * to interoperate with openssl which expects this format for signature + * verification. + * The serialized form is captured both to avoid ambiguity in how the + * provenance is marshalled to json as well to prevent incompatibilities with + * future changes. + * @type \Grafeas\V1\InTotoProvenance $intoto_provenance + * Deprecated. See InTotoStatement for the replacement. + * In-toto Provenance representation as defined in spec. + * @type \Grafeas\V1\InTotoStatement $intoto_statement + * In-toto Statement representation as defined in spec. + * The intoto_statement can contain any type of provenance. The serialized + * payload of the statement can be stored and signed in the Occurrence's + * envelope. + * @type \Grafeas\V1\InTotoSlsaProvenanceV1 $in_toto_slsa_provenance_v1 + * In-Toto Slsa Provenance V1 represents a slsa provenance meeting the slsa + * spec, wrapped in an in-toto statement. This allows for direct + * jsonification of a to-spec in-toto slsa statement with a to-spec + * slsa provenance. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Build::initOnce(); + parent::__construct($data); + } + + /** + * The actual provenance for the build. + * + * Generated from protobuf field .grafeas.v1.BuildProvenance provenance = 1; + * @return \Grafeas\V1\BuildProvenance|null + */ + public function getProvenance() + { + return $this->provenance; + } + + public function hasProvenance() + { + return isset($this->provenance); + } + + public function clearProvenance() + { + unset($this->provenance); + } + + /** + * The actual provenance for the build. + * + * Generated from protobuf field .grafeas.v1.BuildProvenance provenance = 1; + * @param \Grafeas\V1\BuildProvenance $var + * @return $this + */ + public function setProvenance($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\BuildProvenance::class); + $this->provenance = $var; + + return $this; + } + + /** + * Serialized JSON representation of the provenance, used in generating the + * build signature in the corresponding build note. After verifying the + * signature, `provenance_bytes` can be unmarshalled and compared to the + * provenance to confirm that it is unchanged. A base64-encoded string + * representation of the provenance bytes is used for the signature in order + * to interoperate with openssl which expects this format for signature + * verification. + * The serialized form is captured both to avoid ambiguity in how the + * provenance is marshalled to json as well to prevent incompatibilities with + * future changes. + * + * Generated from protobuf field string provenance_bytes = 2; + * @return string + */ + public function getProvenanceBytes() + { + return $this->provenance_bytes; + } + + /** + * Serialized JSON representation of the provenance, used in generating the + * build signature in the corresponding build note. After verifying the + * signature, `provenance_bytes` can be unmarshalled and compared to the + * provenance to confirm that it is unchanged. A base64-encoded string + * representation of the provenance bytes is used for the signature in order + * to interoperate with openssl which expects this format for signature + * verification. + * The serialized form is captured both to avoid ambiguity in how the + * provenance is marshalled to json as well to prevent incompatibilities with + * future changes. + * + * Generated from protobuf field string provenance_bytes = 2; + * @param string $var + * @return $this + */ + public function setProvenanceBytes($var) + { + GPBUtil::checkString($var, True); + $this->provenance_bytes = $var; + + return $this; + } + + /** + * Deprecated. See InTotoStatement for the replacement. + * In-toto Provenance representation as defined in spec. + * + * Generated from protobuf field .grafeas.v1.InTotoProvenance intoto_provenance = 3; + * @return \Grafeas\V1\InTotoProvenance|null + */ + public function getIntotoProvenance() + { + return $this->intoto_provenance; + } + + public function hasIntotoProvenance() + { + return isset($this->intoto_provenance); + } + + public function clearIntotoProvenance() + { + unset($this->intoto_provenance); + } + + /** + * Deprecated. See InTotoStatement for the replacement. + * In-toto Provenance representation as defined in spec. + * + * Generated from protobuf field .grafeas.v1.InTotoProvenance intoto_provenance = 3; + * @param \Grafeas\V1\InTotoProvenance $var + * @return $this + */ + public function setIntotoProvenance($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\InTotoProvenance::class); + $this->intoto_provenance = $var; + + return $this; + } + + /** + * In-toto Statement representation as defined in spec. + * The intoto_statement can contain any type of provenance. The serialized + * payload of the statement can be stored and signed in the Occurrence's + * envelope. + * + * Generated from protobuf field .grafeas.v1.InTotoStatement intoto_statement = 4; + * @return \Grafeas\V1\InTotoStatement|null + */ + public function getIntotoStatement() + { + return $this->intoto_statement; + } + + public function hasIntotoStatement() + { + return isset($this->intoto_statement); + } + + public function clearIntotoStatement() + { + unset($this->intoto_statement); + } + + /** + * In-toto Statement representation as defined in spec. + * The intoto_statement can contain any type of provenance. The serialized + * payload of the statement can be stored and signed in the Occurrence's + * envelope. + * + * Generated from protobuf field .grafeas.v1.InTotoStatement intoto_statement = 4; + * @param \Grafeas\V1\InTotoStatement $var + * @return $this + */ + public function setIntotoStatement($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\InTotoStatement::class); + $this->intoto_statement = $var; + + return $this; + } + + /** + * In-Toto Slsa Provenance V1 represents a slsa provenance meeting the slsa + * spec, wrapped in an in-toto statement. This allows for direct + * jsonification of a to-spec in-toto slsa statement with a to-spec + * slsa provenance. + * + * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1 in_toto_slsa_provenance_v1 = 5; + * @return \Grafeas\V1\InTotoSlsaProvenanceV1|null + */ + public function getInTotoSlsaProvenanceV1() + { + return $this->in_toto_slsa_provenance_v1; + } + + public function hasInTotoSlsaProvenanceV1() + { + return isset($this->in_toto_slsa_provenance_v1); + } + + public function clearInTotoSlsaProvenanceV1() + { + unset($this->in_toto_slsa_provenance_v1); + } + + /** + * In-Toto Slsa Provenance V1 represents a slsa provenance meeting the slsa + * spec, wrapped in an in-toto statement. This allows for direct + * jsonification of a to-spec in-toto slsa statement with a to-spec + * slsa provenance. + * + * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1 in_toto_slsa_provenance_v1 = 5; + * @param \Grafeas\V1\InTotoSlsaProvenanceV1 $var + * @return $this + */ + public function setInTotoSlsaProvenanceV1($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\InTotoSlsaProvenanceV1::class); + $this->in_toto_slsa_provenance_v1 = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuildProvenance.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuildProvenance.php new file mode 100644 index 000000000000..8e8c3289d1ee --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuildProvenance.php @@ -0,0 +1,528 @@ +grafeas.v1.BuildProvenance + */ +class BuildProvenance extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Unique identifier of the build. + * + * Generated from protobuf field string id = 1; + */ + protected $id = ''; + /** + * ID of the project. + * + * Generated from protobuf field string project_id = 2; + */ + protected $project_id = ''; + /** + * Commands requested by the build. + * + * Generated from protobuf field repeated .grafeas.v1.Command commands = 3; + */ + private $commands; + /** + * Output of the build. + * + * Generated from protobuf field repeated .grafeas.v1.Artifact built_artifacts = 4; + */ + private $built_artifacts; + /** + * Time at which the build was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5; + */ + protected $create_time = null; + /** + * Time at which execution of the build was started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 6; + */ + protected $start_time = null; + /** + * Time at which execution of the build was finished. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 7; + */ + protected $end_time = null; + /** + * E-mail address of the user who initiated this build. Note that this was the + * user's e-mail address at the time the build was initiated; this address may + * not represent the same end-user for all time. + * + * Generated from protobuf field string creator = 8; + */ + protected $creator = ''; + /** + * URI where any logs for this provenance were written. + * + * Generated from protobuf field string logs_uri = 9; + */ + protected $logs_uri = ''; + /** + * Details of the Source input to the build. + * + * Generated from protobuf field .grafeas.v1.Source source_provenance = 10; + */ + protected $source_provenance = null; + /** + * Trigger identifier if the build was triggered automatically; empty if not. + * + * Generated from protobuf field string trigger_id = 11; + */ + protected $trigger_id = ''; + /** + * Special options applied to this build. This is a catch-all field where + * build providers can enter any desired additional details. + * + * Generated from protobuf field map build_options = 12; + */ + private $build_options; + /** + * Version string of the builder at the time this build was executed. + * + * Generated from protobuf field string builder_version = 13; + */ + protected $builder_version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * Required. Unique identifier of the build. + * @type string $project_id + * ID of the project. + * @type array<\Grafeas\V1\Command>|\Google\Protobuf\Internal\RepeatedField $commands + * Commands requested by the build. + * @type array<\Grafeas\V1\Artifact>|\Google\Protobuf\Internal\RepeatedField $built_artifacts + * Output of the build. + * @type \Google\Protobuf\Timestamp $create_time + * Time at which the build was created. + * @type \Google\Protobuf\Timestamp $start_time + * Time at which execution of the build was started. + * @type \Google\Protobuf\Timestamp $end_time + * Time at which execution of the build was finished. + * @type string $creator + * E-mail address of the user who initiated this build. Note that this was the + * user's e-mail address at the time the build was initiated; this address may + * not represent the same end-user for all time. + * @type string $logs_uri + * URI where any logs for this provenance were written. + * @type \Grafeas\V1\Source $source_provenance + * Details of the Source input to the build. + * @type string $trigger_id + * Trigger identifier if the build was triggered automatically; empty if not. + * @type array|\Google\Protobuf\Internal\MapField $build_options + * Special options applied to this build. This is a catch-all field where + * build providers can enter any desired additional details. + * @type string $builder_version + * Version string of the builder at the time this build was executed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Provenance::initOnce(); + parent::__construct($data); + } + + /** + * Required. Unique identifier of the build. + * + * Generated from protobuf field string id = 1; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Required. Unique identifier of the build. + * + * Generated from protobuf field string id = 1; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * ID of the project. + * + * Generated from protobuf field string project_id = 2; + * @return string + */ + public function getProjectId() + { + return $this->project_id; + } + + /** + * ID of the project. + * + * Generated from protobuf field string project_id = 2; + * @param string $var + * @return $this + */ + public function setProjectId($var) + { + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * Commands requested by the build. + * + * Generated from protobuf field repeated .grafeas.v1.Command commands = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCommands() + { + return $this->commands; + } + + /** + * Commands requested by the build. + * + * Generated from protobuf field repeated .grafeas.v1.Command commands = 3; + * @param array<\Grafeas\V1\Command>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCommands($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Command::class); + $this->commands = $arr; + + return $this; + } + + /** + * Output of the build. + * + * Generated from protobuf field repeated .grafeas.v1.Artifact built_artifacts = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getBuiltArtifacts() + { + return $this->built_artifacts; + } + + /** + * Output of the build. + * + * Generated from protobuf field repeated .grafeas.v1.Artifact built_artifacts = 4; + * @param array<\Grafeas\V1\Artifact>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setBuiltArtifacts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Artifact::class); + $this->built_artifacts = $arr; + + return $this; + } + + /** + * Time at which the build was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Time at which the build was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Time at which execution of the build was started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 6; + * @return \Google\Protobuf\Timestamp|null + */ + public function getStartTime() + { + return $this->start_time; + } + + public function hasStartTime() + { + return isset($this->start_time); + } + + public function clearStartTime() + { + unset($this->start_time); + } + + /** + * Time at which execution of the build was started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 6; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * Time at which execution of the build was finished. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 7; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEndTime() + { + return $this->end_time; + } + + public function hasEndTime() + { + return isset($this->end_time); + } + + public function clearEndTime() + { + unset($this->end_time); + } + + /** + * Time at which execution of the build was finished. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 7; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * E-mail address of the user who initiated this build. Note that this was the + * user's e-mail address at the time the build was initiated; this address may + * not represent the same end-user for all time. + * + * Generated from protobuf field string creator = 8; + * @return string + */ + public function getCreator() + { + return $this->creator; + } + + /** + * E-mail address of the user who initiated this build. Note that this was the + * user's e-mail address at the time the build was initiated; this address may + * not represent the same end-user for all time. + * + * Generated from protobuf field string creator = 8; + * @param string $var + * @return $this + */ + public function setCreator($var) + { + GPBUtil::checkString($var, True); + $this->creator = $var; + + return $this; + } + + /** + * URI where any logs for this provenance were written. + * + * Generated from protobuf field string logs_uri = 9; + * @return string + */ + public function getLogsUri() + { + return $this->logs_uri; + } + + /** + * URI where any logs for this provenance were written. + * + * Generated from protobuf field string logs_uri = 9; + * @param string $var + * @return $this + */ + public function setLogsUri($var) + { + GPBUtil::checkString($var, True); + $this->logs_uri = $var; + + return $this; + } + + /** + * Details of the Source input to the build. + * + * Generated from protobuf field .grafeas.v1.Source source_provenance = 10; + * @return \Grafeas\V1\Source|null + */ + public function getSourceProvenance() + { + return $this->source_provenance; + } + + public function hasSourceProvenance() + { + return isset($this->source_provenance); + } + + public function clearSourceProvenance() + { + unset($this->source_provenance); + } + + /** + * Details of the Source input to the build. + * + * Generated from protobuf field .grafeas.v1.Source source_provenance = 10; + * @param \Grafeas\V1\Source $var + * @return $this + */ + public function setSourceProvenance($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\Source::class); + $this->source_provenance = $var; + + return $this; + } + + /** + * Trigger identifier if the build was triggered automatically; empty if not. + * + * Generated from protobuf field string trigger_id = 11; + * @return string + */ + public function getTriggerId() + { + return $this->trigger_id; + } + + /** + * Trigger identifier if the build was triggered automatically; empty if not. + * + * Generated from protobuf field string trigger_id = 11; + * @param string $var + * @return $this + */ + public function setTriggerId($var) + { + GPBUtil::checkString($var, True); + $this->trigger_id = $var; + + return $this; + } + + /** + * Special options applied to this build. This is a catch-all field where + * build providers can enter any desired additional details. + * + * Generated from protobuf field map build_options = 12; + * @return \Google\Protobuf\Internal\MapField + */ + public function getBuildOptions() + { + return $this->build_options; + } + + /** + * Special options applied to this build. This is a catch-all field where + * build providers can enter any desired additional details. + * + * Generated from protobuf field map build_options = 12; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setBuildOptions($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->build_options = $arr; + + return $this; + } + + /** + * Version string of the builder at the time this build was executed. + * + * Generated from protobuf field string builder_version = 13; + * @return string + */ + public function getBuilderVersion() + { + return $this->builder_version; + } + + /** + * Version string of the builder at the time this build was executed. + * + * Generated from protobuf field string builder_version = 13; + * @param string $var + * @return $this + */ + public function setBuilderVersion($var) + { + GPBUtil::checkString($var, True); + $this->builder_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuilderConfig.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuilderConfig.php new file mode 100644 index 000000000000..97732fb870dd --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuilderConfig.php @@ -0,0 +1,58 @@ +grafeas.v1.BuilderConfig + */ +class BuilderConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string id = 1; + */ + protected $id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\IntotoProvenance::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string id = 1; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Generated from protobuf field string id = 1; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CISAKnownExploitedVulnerabilities.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CISAKnownExploitedVulnerabilities.php new file mode 100644 index 000000000000..b326e5659e19 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CISAKnownExploitedVulnerabilities.php @@ -0,0 +1,69 @@ +grafeas.v1.CISAKnownExploitedVulnerabilities + */ +class CISAKnownExploitedVulnerabilities extends \Google\Protobuf\Internal\Message +{ + /** + * Whether the vulnerability is known to have been leveraged as part of a + * ransomware campaign. + * + * Generated from protobuf field string known_ransomware_campaign_use = 1; + */ + protected $known_ransomware_campaign_use = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $known_ransomware_campaign_use + * Whether the vulnerability is known to have been leveraged as part of a + * ransomware campaign. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Risk::initOnce(); + parent::__construct($data); + } + + /** + * Whether the vulnerability is known to have been leveraged as part of a + * ransomware campaign. + * + * Generated from protobuf field string known_ransomware_campaign_use = 1; + * @return string + */ + public function getKnownRansomwareCampaignUse() + { + return $this->known_ransomware_campaign_use; + } + + /** + * Whether the vulnerability is known to have been leveraged as part of a + * ransomware campaign. + * + * Generated from protobuf field string known_ransomware_campaign_use = 1; + * @param string $var + * @return $this + */ + public function setKnownRansomwareCampaignUse($var) + { + GPBUtil::checkString($var, True); + $this->known_ransomware_campaign_use = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS.php new file mode 100644 index 000000000000..eed433379f38 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS.php @@ -0,0 +1,382 @@ +grafeas.v1.CVSS + */ +class CVSS extends \Google\Protobuf\Internal\Message +{ + /** + * The base score is a function of the base metric scores. + * + * Generated from protobuf field float base_score = 1; + */ + protected $base_score = 0.0; + /** + * Generated from protobuf field float exploitability_score = 2; + */ + protected $exploitability_score = 0.0; + /** + * Generated from protobuf field float impact_score = 3; + */ + protected $impact_score = 0.0; + /** + * Base Metrics + * Represents the intrinsic characteristics of a vulnerability that are + * constant over time and across user environments. + * + * Generated from protobuf field .grafeas.v1.CVSS.AttackVector attack_vector = 4; + */ + protected $attack_vector = 0; + /** + * Generated from protobuf field .grafeas.v1.CVSS.AttackComplexity attack_complexity = 5; + */ + protected $attack_complexity = 0; + /** + * Generated from protobuf field .grafeas.v1.CVSS.Authentication authentication = 6; + */ + protected $authentication = 0; + /** + * Generated from protobuf field .grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7; + */ + protected $privileges_required = 0; + /** + * Generated from protobuf field .grafeas.v1.CVSS.UserInteraction user_interaction = 8; + */ + protected $user_interaction = 0; + /** + * Generated from protobuf field .grafeas.v1.CVSS.Scope scope = 9; + */ + protected $scope = 0; + /** + * Generated from protobuf field .grafeas.v1.CVSS.Impact confidentiality_impact = 10; + */ + protected $confidentiality_impact = 0; + /** + * Generated from protobuf field .grafeas.v1.CVSS.Impact integrity_impact = 11; + */ + protected $integrity_impact = 0; + /** + * Generated from protobuf field .grafeas.v1.CVSS.Impact availability_impact = 12; + */ + protected $availability_impact = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $base_score + * The base score is a function of the base metric scores. + * @type float $exploitability_score + * @type float $impact_score + * @type int $attack_vector + * Base Metrics + * Represents the intrinsic characteristics of a vulnerability that are + * constant over time and across user environments. + * @type int $attack_complexity + * @type int $authentication + * @type int $privileges_required + * @type int $user_interaction + * @type int $scope + * @type int $confidentiality_impact + * @type int $integrity_impact + * @type int $availability_impact + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Cvss::initOnce(); + parent::__construct($data); + } + + /** + * The base score is a function of the base metric scores. + * + * Generated from protobuf field float base_score = 1; + * @return float + */ + public function getBaseScore() + { + return $this->base_score; + } + + /** + * The base score is a function of the base metric scores. + * + * Generated from protobuf field float base_score = 1; + * @param float $var + * @return $this + */ + public function setBaseScore($var) + { + GPBUtil::checkFloat($var); + $this->base_score = $var; + + return $this; + } + + /** + * Generated from protobuf field float exploitability_score = 2; + * @return float + */ + public function getExploitabilityScore() + { + return $this->exploitability_score; + } + + /** + * Generated from protobuf field float exploitability_score = 2; + * @param float $var + * @return $this + */ + public function setExploitabilityScore($var) + { + GPBUtil::checkFloat($var); + $this->exploitability_score = $var; + + return $this; + } + + /** + * Generated from protobuf field float impact_score = 3; + * @return float + */ + public function getImpactScore() + { + return $this->impact_score; + } + + /** + * Generated from protobuf field float impact_score = 3; + * @param float $var + * @return $this + */ + public function setImpactScore($var) + { + GPBUtil::checkFloat($var); + $this->impact_score = $var; + + return $this; + } + + /** + * Base Metrics + * Represents the intrinsic characteristics of a vulnerability that are + * constant over time and across user environments. + * + * Generated from protobuf field .grafeas.v1.CVSS.AttackVector attack_vector = 4; + * @return int + */ + public function getAttackVector() + { + return $this->attack_vector; + } + + /** + * Base Metrics + * Represents the intrinsic characteristics of a vulnerability that are + * constant over time and across user environments. + * + * Generated from protobuf field .grafeas.v1.CVSS.AttackVector attack_vector = 4; + * @param int $var + * @return $this + */ + public function setAttackVector($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\AttackVector::class); + $this->attack_vector = $var; + + return $this; + } + + /** + * Generated from protobuf field .grafeas.v1.CVSS.AttackComplexity attack_complexity = 5; + * @return int + */ + public function getAttackComplexity() + { + return $this->attack_complexity; + } + + /** + * Generated from protobuf field .grafeas.v1.CVSS.AttackComplexity attack_complexity = 5; + * @param int $var + * @return $this + */ + public function setAttackComplexity($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\AttackComplexity::class); + $this->attack_complexity = $var; + + return $this; + } + + /** + * Generated from protobuf field .grafeas.v1.CVSS.Authentication authentication = 6; + * @return int + */ + public function getAuthentication() + { + return $this->authentication; + } + + /** + * Generated from protobuf field .grafeas.v1.CVSS.Authentication authentication = 6; + * @param int $var + * @return $this + */ + public function setAuthentication($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\Authentication::class); + $this->authentication = $var; + + return $this; + } + + /** + * Generated from protobuf field .grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7; + * @return int + */ + public function getPrivilegesRequired() + { + return $this->privileges_required; + } + + /** + * Generated from protobuf field .grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7; + * @param int $var + * @return $this + */ + public function setPrivilegesRequired($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\PrivilegesRequired::class); + $this->privileges_required = $var; + + return $this; + } + + /** + * Generated from protobuf field .grafeas.v1.CVSS.UserInteraction user_interaction = 8; + * @return int + */ + public function getUserInteraction() + { + return $this->user_interaction; + } + + /** + * Generated from protobuf field .grafeas.v1.CVSS.UserInteraction user_interaction = 8; + * @param int $var + * @return $this + */ + public function setUserInteraction($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\UserInteraction::class); + $this->user_interaction = $var; + + return $this; + } + + /** + * Generated from protobuf field .grafeas.v1.CVSS.Scope scope = 9; + * @return int + */ + public function getScope() + { + return $this->scope; + } + + /** + * Generated from protobuf field .grafeas.v1.CVSS.Scope scope = 9; + * @param int $var + * @return $this + */ + public function setScope($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\Scope::class); + $this->scope = $var; + + return $this; + } + + /** + * Generated from protobuf field .grafeas.v1.CVSS.Impact confidentiality_impact = 10; + * @return int + */ + public function getConfidentialityImpact() + { + return $this->confidentiality_impact; + } + + /** + * Generated from protobuf field .grafeas.v1.CVSS.Impact confidentiality_impact = 10; + * @param int $var + * @return $this + */ + public function setConfidentialityImpact($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\Impact::class); + $this->confidentiality_impact = $var; + + return $this; + } + + /** + * Generated from protobuf field .grafeas.v1.CVSS.Impact integrity_impact = 11; + * @return int + */ + public function getIntegrityImpact() + { + return $this->integrity_impact; + } + + /** + * Generated from protobuf field .grafeas.v1.CVSS.Impact integrity_impact = 11; + * @param int $var + * @return $this + */ + public function setIntegrityImpact($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\Impact::class); + $this->integrity_impact = $var; + + return $this; + } + + /** + * Generated from protobuf field .grafeas.v1.CVSS.Impact availability_impact = 12; + * @return int + */ + public function getAvailabilityImpact() + { + return $this->availability_impact; + } + + /** + * Generated from protobuf field .grafeas.v1.CVSS.Impact availability_impact = 12; + * @param int $var + * @return $this + */ + public function setAvailabilityImpact($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\Impact::class); + $this->availability_impact = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/AttackComplexity.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/AttackComplexity.php new file mode 100644 index 000000000000..011e833e68aa --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/AttackComplexity.php @@ -0,0 +1,61 @@ +grafeas.v1.CVSS.AttackComplexity + */ +class AttackComplexity +{ + /** + * Generated from protobuf enum ATTACK_COMPLEXITY_UNSPECIFIED = 0; + */ + const ATTACK_COMPLEXITY_UNSPECIFIED = 0; + /** + * Generated from protobuf enum ATTACK_COMPLEXITY_LOW = 1; + */ + const ATTACK_COMPLEXITY_LOW = 1; + /** + * Generated from protobuf enum ATTACK_COMPLEXITY_HIGH = 2; + */ + const ATTACK_COMPLEXITY_HIGH = 2; + /** + * Generated from protobuf enum ATTACK_COMPLEXITY_MEDIUM = 3; + */ + const ATTACK_COMPLEXITY_MEDIUM = 3; + + private static $valueToName = [ + self::ATTACK_COMPLEXITY_UNSPECIFIED => 'ATTACK_COMPLEXITY_UNSPECIFIED', + self::ATTACK_COMPLEXITY_LOW => 'ATTACK_COMPLEXITY_LOW', + self::ATTACK_COMPLEXITY_HIGH => 'ATTACK_COMPLEXITY_HIGH', + self::ATTACK_COMPLEXITY_MEDIUM => 'ATTACK_COMPLEXITY_MEDIUM', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AttackComplexity::class, \Grafeas\V1\CVSS_AttackComplexity::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/AttackVector.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/AttackVector.php new file mode 100644 index 000000000000..e012b40cdfd8 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/AttackVector.php @@ -0,0 +1,66 @@ +grafeas.v1.CVSS.AttackVector + */ +class AttackVector +{ + /** + * Generated from protobuf enum ATTACK_VECTOR_UNSPECIFIED = 0; + */ + const ATTACK_VECTOR_UNSPECIFIED = 0; + /** + * Generated from protobuf enum ATTACK_VECTOR_NETWORK = 1; + */ + const ATTACK_VECTOR_NETWORK = 1; + /** + * Generated from protobuf enum ATTACK_VECTOR_ADJACENT = 2; + */ + const ATTACK_VECTOR_ADJACENT = 2; + /** + * Generated from protobuf enum ATTACK_VECTOR_LOCAL = 3; + */ + const ATTACK_VECTOR_LOCAL = 3; + /** + * Generated from protobuf enum ATTACK_VECTOR_PHYSICAL = 4; + */ + const ATTACK_VECTOR_PHYSICAL = 4; + + private static $valueToName = [ + self::ATTACK_VECTOR_UNSPECIFIED => 'ATTACK_VECTOR_UNSPECIFIED', + self::ATTACK_VECTOR_NETWORK => 'ATTACK_VECTOR_NETWORK', + self::ATTACK_VECTOR_ADJACENT => 'ATTACK_VECTOR_ADJACENT', + self::ATTACK_VECTOR_LOCAL => 'ATTACK_VECTOR_LOCAL', + self::ATTACK_VECTOR_PHYSICAL => 'ATTACK_VECTOR_PHYSICAL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AttackVector::class, \Grafeas\V1\CVSS_AttackVector::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/Authentication.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/Authentication.php new file mode 100644 index 000000000000..3e49c8c45e11 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/Authentication.php @@ -0,0 +1,61 @@ +grafeas.v1.CVSS.Authentication + */ +class Authentication +{ + /** + * Generated from protobuf enum AUTHENTICATION_UNSPECIFIED = 0; + */ + const AUTHENTICATION_UNSPECIFIED = 0; + /** + * Generated from protobuf enum AUTHENTICATION_MULTIPLE = 1; + */ + const AUTHENTICATION_MULTIPLE = 1; + /** + * Generated from protobuf enum AUTHENTICATION_SINGLE = 2; + */ + const AUTHENTICATION_SINGLE = 2; + /** + * Generated from protobuf enum AUTHENTICATION_NONE = 3; + */ + const AUTHENTICATION_NONE = 3; + + private static $valueToName = [ + self::AUTHENTICATION_UNSPECIFIED => 'AUTHENTICATION_UNSPECIFIED', + self::AUTHENTICATION_MULTIPLE => 'AUTHENTICATION_MULTIPLE', + self::AUTHENTICATION_SINGLE => 'AUTHENTICATION_SINGLE', + self::AUTHENTICATION_NONE => 'AUTHENTICATION_NONE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Authentication::class, \Grafeas\V1\CVSS_Authentication::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/Impact.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/Impact.php new file mode 100644 index 000000000000..a7c402857bfd --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/Impact.php @@ -0,0 +1,71 @@ +grafeas.v1.CVSS.Impact + */ +class Impact +{ + /** + * Generated from protobuf enum IMPACT_UNSPECIFIED = 0; + */ + const IMPACT_UNSPECIFIED = 0; + /** + * Generated from protobuf enum IMPACT_HIGH = 1; + */ + const IMPACT_HIGH = 1; + /** + * Generated from protobuf enum IMPACT_LOW = 2; + */ + const IMPACT_LOW = 2; + /** + * Generated from protobuf enum IMPACT_NONE = 3; + */ + const IMPACT_NONE = 3; + /** + * Generated from protobuf enum IMPACT_PARTIAL = 4; + */ + const IMPACT_PARTIAL = 4; + /** + * Generated from protobuf enum IMPACT_COMPLETE = 5; + */ + const IMPACT_COMPLETE = 5; + + private static $valueToName = [ + self::IMPACT_UNSPECIFIED => 'IMPACT_UNSPECIFIED', + self::IMPACT_HIGH => 'IMPACT_HIGH', + self::IMPACT_LOW => 'IMPACT_LOW', + self::IMPACT_NONE => 'IMPACT_NONE', + self::IMPACT_PARTIAL => 'IMPACT_PARTIAL', + self::IMPACT_COMPLETE => 'IMPACT_COMPLETE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Impact::class, \Grafeas\V1\CVSS_Impact::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/PrivilegesRequired.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/PrivilegesRequired.php new file mode 100644 index 000000000000..b3f593d06893 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/PrivilegesRequired.php @@ -0,0 +1,61 @@ +grafeas.v1.CVSS.PrivilegesRequired + */ +class PrivilegesRequired +{ + /** + * Generated from protobuf enum PRIVILEGES_REQUIRED_UNSPECIFIED = 0; + */ + const PRIVILEGES_REQUIRED_UNSPECIFIED = 0; + /** + * Generated from protobuf enum PRIVILEGES_REQUIRED_NONE = 1; + */ + const PRIVILEGES_REQUIRED_NONE = 1; + /** + * Generated from protobuf enum PRIVILEGES_REQUIRED_LOW = 2; + */ + const PRIVILEGES_REQUIRED_LOW = 2; + /** + * Generated from protobuf enum PRIVILEGES_REQUIRED_HIGH = 3; + */ + const PRIVILEGES_REQUIRED_HIGH = 3; + + private static $valueToName = [ + self::PRIVILEGES_REQUIRED_UNSPECIFIED => 'PRIVILEGES_REQUIRED_UNSPECIFIED', + self::PRIVILEGES_REQUIRED_NONE => 'PRIVILEGES_REQUIRED_NONE', + self::PRIVILEGES_REQUIRED_LOW => 'PRIVILEGES_REQUIRED_LOW', + self::PRIVILEGES_REQUIRED_HIGH => 'PRIVILEGES_REQUIRED_HIGH', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(PrivilegesRequired::class, \Grafeas\V1\CVSS_PrivilegesRequired::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/Scope.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/Scope.php new file mode 100644 index 000000000000..44ac100792e8 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/Scope.php @@ -0,0 +1,56 @@ +grafeas.v1.CVSS.Scope + */ +class Scope +{ + /** + * Generated from protobuf enum SCOPE_UNSPECIFIED = 0; + */ + const SCOPE_UNSPECIFIED = 0; + /** + * Generated from protobuf enum SCOPE_UNCHANGED = 1; + */ + const SCOPE_UNCHANGED = 1; + /** + * Generated from protobuf enum SCOPE_CHANGED = 2; + */ + const SCOPE_CHANGED = 2; + + private static $valueToName = [ + self::SCOPE_UNSPECIFIED => 'SCOPE_UNSPECIFIED', + self::SCOPE_UNCHANGED => 'SCOPE_UNCHANGED', + self::SCOPE_CHANGED => 'SCOPE_CHANGED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Scope::class, \Grafeas\V1\CVSS_Scope::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/UserInteraction.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/UserInteraction.php new file mode 100644 index 000000000000..2e0e911d1c88 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/UserInteraction.php @@ -0,0 +1,56 @@ +grafeas.v1.CVSS.UserInteraction + */ +class UserInteraction +{ + /** + * Generated from protobuf enum USER_INTERACTION_UNSPECIFIED = 0; + */ + const USER_INTERACTION_UNSPECIFIED = 0; + /** + * Generated from protobuf enum USER_INTERACTION_NONE = 1; + */ + const USER_INTERACTION_NONE = 1; + /** + * Generated from protobuf enum USER_INTERACTION_REQUIRED = 2; + */ + const USER_INTERACTION_REQUIRED = 2; + + private static $valueToName = [ + self::USER_INTERACTION_UNSPECIFIED => 'USER_INTERACTION_UNSPECIFIED', + self::USER_INTERACTION_NONE => 'USER_INTERACTION_NONE', + self::USER_INTERACTION_REQUIRED => 'USER_INTERACTION_REQUIRED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(UserInteraction::class, \Grafeas\V1\CVSS_UserInteraction::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSVersion.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSVersion.php new file mode 100644 index 000000000000..8c25036f4fff --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSVersion.php @@ -0,0 +1,55 @@ +grafeas.v1.CVSSVersion + */ +class CVSSVersion +{ + /** + * Generated from protobuf enum CVSS_VERSION_UNSPECIFIED = 0; + */ + const CVSS_VERSION_UNSPECIFIED = 0; + /** + * Generated from protobuf enum CVSS_VERSION_2 = 1; + */ + const CVSS_VERSION_2 = 1; + /** + * Generated from protobuf enum CVSS_VERSION_3 = 2; + */ + const CVSS_VERSION_3 = 2; + + private static $valueToName = [ + self::CVSS_VERSION_UNSPECIFIED => 'CVSS_VERSION_UNSPECIFIED', + self::CVSS_VERSION_2 => 'CVSS_VERSION_2', + self::CVSS_VERSION_3 => 'CVSS_VERSION_3', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3.php new file mode 100644 index 000000000000..9c1895cf5b46 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3.php @@ -0,0 +1,353 @@ +grafeas.v1.CVSSv3 + */ +class CVSSv3 extends \Google\Protobuf\Internal\Message +{ + /** + * The base score is a function of the base metric scores. + * + * Generated from protobuf field float base_score = 1; + */ + protected $base_score = 0.0; + /** + * Generated from protobuf field float exploitability_score = 2; + */ + protected $exploitability_score = 0.0; + /** + * Generated from protobuf field float impact_score = 3; + */ + protected $impact_score = 0.0; + /** + * Base Metrics + * Represents the intrinsic characteristics of a vulnerability that are + * constant over time and across user environments. + * + * Generated from protobuf field .grafeas.v1.CVSSv3.AttackVector attack_vector = 5; + */ + protected $attack_vector = 0; + /** + * Generated from protobuf field .grafeas.v1.CVSSv3.AttackComplexity attack_complexity = 6; + */ + protected $attack_complexity = 0; + /** + * Generated from protobuf field .grafeas.v1.CVSSv3.PrivilegesRequired privileges_required = 7; + */ + protected $privileges_required = 0; + /** + * Generated from protobuf field .grafeas.v1.CVSSv3.UserInteraction user_interaction = 8; + */ + protected $user_interaction = 0; + /** + * Generated from protobuf field .grafeas.v1.CVSSv3.Scope scope = 9; + */ + protected $scope = 0; + /** + * Generated from protobuf field .grafeas.v1.CVSSv3.Impact confidentiality_impact = 10; + */ + protected $confidentiality_impact = 0; + /** + * Generated from protobuf field .grafeas.v1.CVSSv3.Impact integrity_impact = 11; + */ + protected $integrity_impact = 0; + /** + * Generated from protobuf field .grafeas.v1.CVSSv3.Impact availability_impact = 12; + */ + protected $availability_impact = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $base_score + * The base score is a function of the base metric scores. + * @type float $exploitability_score + * @type float $impact_score + * @type int $attack_vector + * Base Metrics + * Represents the intrinsic characteristics of a vulnerability that are + * constant over time and across user environments. + * @type int $attack_complexity + * @type int $privileges_required + * @type int $user_interaction + * @type int $scope + * @type int $confidentiality_impact + * @type int $integrity_impact + * @type int $availability_impact + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Cvss::initOnce(); + parent::__construct($data); + } + + /** + * The base score is a function of the base metric scores. + * + * Generated from protobuf field float base_score = 1; + * @return float + */ + public function getBaseScore() + { + return $this->base_score; + } + + /** + * The base score is a function of the base metric scores. + * + * Generated from protobuf field float base_score = 1; + * @param float $var + * @return $this + */ + public function setBaseScore($var) + { + GPBUtil::checkFloat($var); + $this->base_score = $var; + + return $this; + } + + /** + * Generated from protobuf field float exploitability_score = 2; + * @return float + */ + public function getExploitabilityScore() + { + return $this->exploitability_score; + } + + /** + * Generated from protobuf field float exploitability_score = 2; + * @param float $var + * @return $this + */ + public function setExploitabilityScore($var) + { + GPBUtil::checkFloat($var); + $this->exploitability_score = $var; + + return $this; + } + + /** + * Generated from protobuf field float impact_score = 3; + * @return float + */ + public function getImpactScore() + { + return $this->impact_score; + } + + /** + * Generated from protobuf field float impact_score = 3; + * @param float $var + * @return $this + */ + public function setImpactScore($var) + { + GPBUtil::checkFloat($var); + $this->impact_score = $var; + + return $this; + } + + /** + * Base Metrics + * Represents the intrinsic characteristics of a vulnerability that are + * constant over time and across user environments. + * + * Generated from protobuf field .grafeas.v1.CVSSv3.AttackVector attack_vector = 5; + * @return int + */ + public function getAttackVector() + { + return $this->attack_vector; + } + + /** + * Base Metrics + * Represents the intrinsic characteristics of a vulnerability that are + * constant over time and across user environments. + * + * Generated from protobuf field .grafeas.v1.CVSSv3.AttackVector attack_vector = 5; + * @param int $var + * @return $this + */ + public function setAttackVector($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSSv3\AttackVector::class); + $this->attack_vector = $var; + + return $this; + } + + /** + * Generated from protobuf field .grafeas.v1.CVSSv3.AttackComplexity attack_complexity = 6; + * @return int + */ + public function getAttackComplexity() + { + return $this->attack_complexity; + } + + /** + * Generated from protobuf field .grafeas.v1.CVSSv3.AttackComplexity attack_complexity = 6; + * @param int $var + * @return $this + */ + public function setAttackComplexity($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSSv3\AttackComplexity::class); + $this->attack_complexity = $var; + + return $this; + } + + /** + * Generated from protobuf field .grafeas.v1.CVSSv3.PrivilegesRequired privileges_required = 7; + * @return int + */ + public function getPrivilegesRequired() + { + return $this->privileges_required; + } + + /** + * Generated from protobuf field .grafeas.v1.CVSSv3.PrivilegesRequired privileges_required = 7; + * @param int $var + * @return $this + */ + public function setPrivilegesRequired($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSSv3\PrivilegesRequired::class); + $this->privileges_required = $var; + + return $this; + } + + /** + * Generated from protobuf field .grafeas.v1.CVSSv3.UserInteraction user_interaction = 8; + * @return int + */ + public function getUserInteraction() + { + return $this->user_interaction; + } + + /** + * Generated from protobuf field .grafeas.v1.CVSSv3.UserInteraction user_interaction = 8; + * @param int $var + * @return $this + */ + public function setUserInteraction($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSSv3\UserInteraction::class); + $this->user_interaction = $var; + + return $this; + } + + /** + * Generated from protobuf field .grafeas.v1.CVSSv3.Scope scope = 9; + * @return int + */ + public function getScope() + { + return $this->scope; + } + + /** + * Generated from protobuf field .grafeas.v1.CVSSv3.Scope scope = 9; + * @param int $var + * @return $this + */ + public function setScope($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSSv3\Scope::class); + $this->scope = $var; + + return $this; + } + + /** + * Generated from protobuf field .grafeas.v1.CVSSv3.Impact confidentiality_impact = 10; + * @return int + */ + public function getConfidentialityImpact() + { + return $this->confidentiality_impact; + } + + /** + * Generated from protobuf field .grafeas.v1.CVSSv3.Impact confidentiality_impact = 10; + * @param int $var + * @return $this + */ + public function setConfidentialityImpact($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSSv3\Impact::class); + $this->confidentiality_impact = $var; + + return $this; + } + + /** + * Generated from protobuf field .grafeas.v1.CVSSv3.Impact integrity_impact = 11; + * @return int + */ + public function getIntegrityImpact() + { + return $this->integrity_impact; + } + + /** + * Generated from protobuf field .grafeas.v1.CVSSv3.Impact integrity_impact = 11; + * @param int $var + * @return $this + */ + public function setIntegrityImpact($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSSv3\Impact::class); + $this->integrity_impact = $var; + + return $this; + } + + /** + * Generated from protobuf field .grafeas.v1.CVSSv3.Impact availability_impact = 12; + * @return int + */ + public function getAvailabilityImpact() + { + return $this->availability_impact; + } + + /** + * Generated from protobuf field .grafeas.v1.CVSSv3.Impact availability_impact = 12; + * @param int $var + * @return $this + */ + public function setAvailabilityImpact($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSSv3\Impact::class); + $this->availability_impact = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/AttackComplexity.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/AttackComplexity.php new file mode 100644 index 000000000000..6086d84dc982 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/AttackComplexity.php @@ -0,0 +1,56 @@ +grafeas.v1.CVSSv3.AttackComplexity + */ +class AttackComplexity +{ + /** + * Generated from protobuf enum ATTACK_COMPLEXITY_UNSPECIFIED = 0; + */ + const ATTACK_COMPLEXITY_UNSPECIFIED = 0; + /** + * Generated from protobuf enum ATTACK_COMPLEXITY_LOW = 1; + */ + const ATTACK_COMPLEXITY_LOW = 1; + /** + * Generated from protobuf enum ATTACK_COMPLEXITY_HIGH = 2; + */ + const ATTACK_COMPLEXITY_HIGH = 2; + + private static $valueToName = [ + self::ATTACK_COMPLEXITY_UNSPECIFIED => 'ATTACK_COMPLEXITY_UNSPECIFIED', + self::ATTACK_COMPLEXITY_LOW => 'ATTACK_COMPLEXITY_LOW', + self::ATTACK_COMPLEXITY_HIGH => 'ATTACK_COMPLEXITY_HIGH', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AttackComplexity::class, \Grafeas\V1\CVSSv3_AttackComplexity::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/AttackVector.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/AttackVector.php new file mode 100644 index 000000000000..9f0892749620 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/AttackVector.php @@ -0,0 +1,66 @@ +grafeas.v1.CVSSv3.AttackVector + */ +class AttackVector +{ + /** + * Generated from protobuf enum ATTACK_VECTOR_UNSPECIFIED = 0; + */ + const ATTACK_VECTOR_UNSPECIFIED = 0; + /** + * Generated from protobuf enum ATTACK_VECTOR_NETWORK = 1; + */ + const ATTACK_VECTOR_NETWORK = 1; + /** + * Generated from protobuf enum ATTACK_VECTOR_ADJACENT = 2; + */ + const ATTACK_VECTOR_ADJACENT = 2; + /** + * Generated from protobuf enum ATTACK_VECTOR_LOCAL = 3; + */ + const ATTACK_VECTOR_LOCAL = 3; + /** + * Generated from protobuf enum ATTACK_VECTOR_PHYSICAL = 4; + */ + const ATTACK_VECTOR_PHYSICAL = 4; + + private static $valueToName = [ + self::ATTACK_VECTOR_UNSPECIFIED => 'ATTACK_VECTOR_UNSPECIFIED', + self::ATTACK_VECTOR_NETWORK => 'ATTACK_VECTOR_NETWORK', + self::ATTACK_VECTOR_ADJACENT => 'ATTACK_VECTOR_ADJACENT', + self::ATTACK_VECTOR_LOCAL => 'ATTACK_VECTOR_LOCAL', + self::ATTACK_VECTOR_PHYSICAL => 'ATTACK_VECTOR_PHYSICAL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AttackVector::class, \Grafeas\V1\CVSSv3_AttackVector::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/Impact.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/Impact.php new file mode 100644 index 000000000000..d933d36fe7fb --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/Impact.php @@ -0,0 +1,61 @@ +grafeas.v1.CVSSv3.Impact + */ +class Impact +{ + /** + * Generated from protobuf enum IMPACT_UNSPECIFIED = 0; + */ + const IMPACT_UNSPECIFIED = 0; + /** + * Generated from protobuf enum IMPACT_HIGH = 1; + */ + const IMPACT_HIGH = 1; + /** + * Generated from protobuf enum IMPACT_LOW = 2; + */ + const IMPACT_LOW = 2; + /** + * Generated from protobuf enum IMPACT_NONE = 3; + */ + const IMPACT_NONE = 3; + + private static $valueToName = [ + self::IMPACT_UNSPECIFIED => 'IMPACT_UNSPECIFIED', + self::IMPACT_HIGH => 'IMPACT_HIGH', + self::IMPACT_LOW => 'IMPACT_LOW', + self::IMPACT_NONE => 'IMPACT_NONE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Impact::class, \Grafeas\V1\CVSSv3_Impact::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/PrivilegesRequired.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/PrivilegesRequired.php new file mode 100644 index 000000000000..dff9206db9b8 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/PrivilegesRequired.php @@ -0,0 +1,61 @@ +grafeas.v1.CVSSv3.PrivilegesRequired + */ +class PrivilegesRequired +{ + /** + * Generated from protobuf enum PRIVILEGES_REQUIRED_UNSPECIFIED = 0; + */ + const PRIVILEGES_REQUIRED_UNSPECIFIED = 0; + /** + * Generated from protobuf enum PRIVILEGES_REQUIRED_NONE = 1; + */ + const PRIVILEGES_REQUIRED_NONE = 1; + /** + * Generated from protobuf enum PRIVILEGES_REQUIRED_LOW = 2; + */ + const PRIVILEGES_REQUIRED_LOW = 2; + /** + * Generated from protobuf enum PRIVILEGES_REQUIRED_HIGH = 3; + */ + const PRIVILEGES_REQUIRED_HIGH = 3; + + private static $valueToName = [ + self::PRIVILEGES_REQUIRED_UNSPECIFIED => 'PRIVILEGES_REQUIRED_UNSPECIFIED', + self::PRIVILEGES_REQUIRED_NONE => 'PRIVILEGES_REQUIRED_NONE', + self::PRIVILEGES_REQUIRED_LOW => 'PRIVILEGES_REQUIRED_LOW', + self::PRIVILEGES_REQUIRED_HIGH => 'PRIVILEGES_REQUIRED_HIGH', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(PrivilegesRequired::class, \Grafeas\V1\CVSSv3_PrivilegesRequired::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/Scope.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/Scope.php new file mode 100644 index 000000000000..fc48b6eed3d7 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/Scope.php @@ -0,0 +1,56 @@ +grafeas.v1.CVSSv3.Scope + */ +class Scope +{ + /** + * Generated from protobuf enum SCOPE_UNSPECIFIED = 0; + */ + const SCOPE_UNSPECIFIED = 0; + /** + * Generated from protobuf enum SCOPE_UNCHANGED = 1; + */ + const SCOPE_UNCHANGED = 1; + /** + * Generated from protobuf enum SCOPE_CHANGED = 2; + */ + const SCOPE_CHANGED = 2; + + private static $valueToName = [ + self::SCOPE_UNSPECIFIED => 'SCOPE_UNSPECIFIED', + self::SCOPE_UNCHANGED => 'SCOPE_UNCHANGED', + self::SCOPE_CHANGED => 'SCOPE_CHANGED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Scope::class, \Grafeas\V1\CVSSv3_Scope::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/UserInteraction.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/UserInteraction.php new file mode 100644 index 000000000000..2348d20766da --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/UserInteraction.php @@ -0,0 +1,56 @@ +grafeas.v1.CVSSv3.UserInteraction + */ +class UserInteraction +{ + /** + * Generated from protobuf enum USER_INTERACTION_UNSPECIFIED = 0; + */ + const USER_INTERACTION_UNSPECIFIED = 0; + /** + * Generated from protobuf enum USER_INTERACTION_NONE = 1; + */ + const USER_INTERACTION_NONE = 1; + /** + * Generated from protobuf enum USER_INTERACTION_REQUIRED = 2; + */ + const USER_INTERACTION_REQUIRED = 2; + + private static $valueToName = [ + self::USER_INTERACTION_UNSPECIFIED => 'USER_INTERACTION_UNSPECIFIED', + self::USER_INTERACTION_NONE => 'USER_INTERACTION_NONE', + self::USER_INTERACTION_REQUIRED => 'USER_INTERACTION_REQUIRED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(UserInteraction::class, \Grafeas\V1\CVSSv3_UserInteraction::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CloudRepoSourceContext.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CloudRepoSourceContext.php new file mode 100644 index 000000000000..ffa168fdc342 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CloudRepoSourceContext.php @@ -0,0 +1,153 @@ +grafeas.v1.CloudRepoSourceContext + */ +class CloudRepoSourceContext extends \Google\Protobuf\Internal\Message +{ + /** + * The ID of the repo. + * + * Generated from protobuf field .grafeas.v1.RepoId repo_id = 1; + */ + protected $repo_id = null; + protected $revision; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Grafeas\V1\RepoId $repo_id + * The ID of the repo. + * @type string $revision_id + * A revision ID. + * @type \Grafeas\V1\AliasContext $alias_context + * An alias, which may be a branch or tag. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Provenance::initOnce(); + parent::__construct($data); + } + + /** + * The ID of the repo. + * + * Generated from protobuf field .grafeas.v1.RepoId repo_id = 1; + * @return \Grafeas\V1\RepoId|null + */ + public function getRepoId() + { + return $this->repo_id; + } + + public function hasRepoId() + { + return isset($this->repo_id); + } + + public function clearRepoId() + { + unset($this->repo_id); + } + + /** + * The ID of the repo. + * + * Generated from protobuf field .grafeas.v1.RepoId repo_id = 1; + * @param \Grafeas\V1\RepoId $var + * @return $this + */ + public function setRepoId($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\RepoId::class); + $this->repo_id = $var; + + return $this; + } + + /** + * A revision ID. + * + * Generated from protobuf field string revision_id = 2; + * @return string + */ + public function getRevisionId() + { + return $this->readOneof(2); + } + + public function hasRevisionId() + { + return $this->hasOneof(2); + } + + /** + * A revision ID. + * + * Generated from protobuf field string revision_id = 2; + * @param string $var + * @return $this + */ + public function setRevisionId($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * An alias, which may be a branch or tag. + * + * Generated from protobuf field .grafeas.v1.AliasContext alias_context = 3; + * @return \Grafeas\V1\AliasContext|null + */ + public function getAliasContext() + { + return $this->readOneof(3); + } + + public function hasAliasContext() + { + return $this->hasOneof(3); + } + + /** + * An alias, which may be a branch or tag. + * + * Generated from protobuf field .grafeas.v1.AliasContext alias_context = 3; + * @param \Grafeas\V1\AliasContext $var + * @return $this + */ + public function setAliasContext($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\AliasContext::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getRevision() + { + return $this->whichOneof("revision"); + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Command.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Command.php new file mode 100644 index 000000000000..40d507cfd67f --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Command.php @@ -0,0 +1,249 @@ +grafeas.v1.Command + */ +class Command extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the command, as presented on the command line, or if the + * command is packaged as a Docker container, as presented to `docker pull`. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Environment variables set before running this command. + * + * Generated from protobuf field repeated string env = 2; + */ + private $env; + /** + * Command-line arguments used when executing this command. + * + * Generated from protobuf field repeated string args = 3; + */ + private $args; + /** + * Working directory (relative to project source root) used when running this + * command. + * + * Generated from protobuf field string dir = 4; + */ + protected $dir = ''; + /** + * Optional unique identifier for this command, used in wait_for to reference + * this command as a dependency. + * + * Generated from protobuf field string id = 5; + */ + protected $id = ''; + /** + * The ID(s) of the command(s) that this command depends on. + * + * Generated from protobuf field repeated string wait_for = 6; + */ + private $wait_for; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Name of the command, as presented on the command line, or if the + * command is packaged as a Docker container, as presented to `docker pull`. + * @type array|\Google\Protobuf\Internal\RepeatedField $env + * Environment variables set before running this command. + * @type array|\Google\Protobuf\Internal\RepeatedField $args + * Command-line arguments used when executing this command. + * @type string $dir + * Working directory (relative to project source root) used when running this + * command. + * @type string $id + * Optional unique identifier for this command, used in wait_for to reference + * this command as a dependency. + * @type array|\Google\Protobuf\Internal\RepeatedField $wait_for + * The ID(s) of the command(s) that this command depends on. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Provenance::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the command, as presented on the command line, or if the + * command is packaged as a Docker container, as presented to `docker pull`. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of the command, as presented on the command line, or if the + * command is packaged as a Docker container, as presented to `docker pull`. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Environment variables set before running this command. + * + * Generated from protobuf field repeated string env = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEnv() + { + return $this->env; + } + + /** + * Environment variables set before running this command. + * + * Generated from protobuf field repeated string env = 2; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEnv($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->env = $arr; + + return $this; + } + + /** + * Command-line arguments used when executing this command. + * + * Generated from protobuf field repeated string args = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getArgs() + { + return $this->args; + } + + /** + * Command-line arguments used when executing this command. + * + * Generated from protobuf field repeated string args = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setArgs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->args = $arr; + + return $this; + } + + /** + * Working directory (relative to project source root) used when running this + * command. + * + * Generated from protobuf field string dir = 4; + * @return string + */ + public function getDir() + { + return $this->dir; + } + + /** + * Working directory (relative to project source root) used when running this + * command. + * + * Generated from protobuf field string dir = 4; + * @param string $var + * @return $this + */ + public function setDir($var) + { + GPBUtil::checkString($var, True); + $this->dir = $var; + + return $this; + } + + /** + * Optional unique identifier for this command, used in wait_for to reference + * this command as a dependency. + * + * Generated from protobuf field string id = 5; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Optional unique identifier for this command, used in wait_for to reference + * this command as a dependency. + * + * Generated from protobuf field string id = 5; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * The ID(s) of the command(s) that this command depends on. + * + * Generated from protobuf field repeated string wait_for = 6; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getWaitFor() + { + return $this->wait_for; + } + + /** + * The ID(s) of the command(s) that this command depends on. + * + * Generated from protobuf field repeated string wait_for = 6; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setWaitFor($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->wait_for = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Completeness.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Completeness.php new file mode 100644 index 000000000000..d5cd151e9b5d --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Completeness.php @@ -0,0 +1,148 @@ +grafeas.v1.Completeness + */ +class Completeness extends \Google\Protobuf\Internal\Message +{ + /** + * If true, the builder claims that recipe.arguments is complete, meaning that + * all external inputs are properly captured in the recipe. + * + * Generated from protobuf field bool arguments = 1; + */ + protected $arguments = false; + /** + * If true, the builder claims that recipe.environment is claimed to be + * complete. + * + * Generated from protobuf field bool environment = 2; + */ + protected $environment = false; + /** + * If true, the builder claims that materials are complete, usually through + * some controls to prevent network access. Sometimes called "hermetic". + * + * Generated from protobuf field bool materials = 3; + */ + protected $materials = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $arguments + * If true, the builder claims that recipe.arguments is complete, meaning that + * all external inputs are properly captured in the recipe. + * @type bool $environment + * If true, the builder claims that recipe.environment is claimed to be + * complete. + * @type bool $materials + * If true, the builder claims that materials are complete, usually through + * some controls to prevent network access. Sometimes called "hermetic". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\IntotoProvenance::initOnce(); + parent::__construct($data); + } + + /** + * If true, the builder claims that recipe.arguments is complete, meaning that + * all external inputs are properly captured in the recipe. + * + * Generated from protobuf field bool arguments = 1; + * @return bool + */ + public function getArguments() + { + return $this->arguments; + } + + /** + * If true, the builder claims that recipe.arguments is complete, meaning that + * all external inputs are properly captured in the recipe. + * + * Generated from protobuf field bool arguments = 1; + * @param bool $var + * @return $this + */ + public function setArguments($var) + { + GPBUtil::checkBool($var); + $this->arguments = $var; + + return $this; + } + + /** + * If true, the builder claims that recipe.environment is claimed to be + * complete. + * + * Generated from protobuf field bool environment = 2; + * @return bool + */ + public function getEnvironment() + { + return $this->environment; + } + + /** + * If true, the builder claims that recipe.environment is claimed to be + * complete. + * + * Generated from protobuf field bool environment = 2; + * @param bool $var + * @return $this + */ + public function setEnvironment($var) + { + GPBUtil::checkBool($var); + $this->environment = $var; + + return $this; + } + + /** + * If true, the builder claims that materials are complete, usually through + * some controls to prevent network access. Sometimes called "hermetic". + * + * Generated from protobuf field bool materials = 3; + * @return bool + */ + public function getMaterials() + { + return $this->materials; + } + + /** + * If true, the builder claims that materials are complete, usually through + * some controls to prevent network access. Sometimes called "hermetic". + * + * Generated from protobuf field bool materials = 3; + * @param bool $var + * @return $this + */ + public function setMaterials($var) + { + GPBUtil::checkBool($var); + $this->materials = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceNote.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceNote.php new file mode 100644 index 000000000000..a204ef071db4 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceNote.php @@ -0,0 +1,309 @@ +grafeas.v1.ComplianceNote + */ +class ComplianceNote extends \Google\Protobuf\Internal\Message +{ + /** + * The title that identifies this compliance check. + * + * Generated from protobuf field string title = 1; + */ + protected $title = ''; + /** + * A description about this compliance check. + * + * Generated from protobuf field string description = 2; + */ + protected $description = ''; + /** + * The OS and config versions the benchmark applies to. + * + * Generated from protobuf field repeated .grafeas.v1.ComplianceVersion version = 3; + */ + private $version; + /** + * A rationale for the existence of this compliance check. + * + * Generated from protobuf field string rationale = 4; + */ + protected $rationale = ''; + /** + * A description of remediation steps if the compliance check fails. + * + * Generated from protobuf field string remediation = 5; + */ + protected $remediation = ''; + /** + * Serialized scan instructions with a predefined format. + * + * Generated from protobuf field bytes scan_instructions = 7; + */ + protected $scan_instructions = ''; + protected $compliance_type; + protected $potential_impact; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $title + * The title that identifies this compliance check. + * @type string $description + * A description about this compliance check. + * @type array<\Grafeas\V1\ComplianceVersion>|\Google\Protobuf\Internal\RepeatedField $version + * The OS and config versions the benchmark applies to. + * @type string $rationale + * A rationale for the existence of this compliance check. + * @type string $remediation + * A description of remediation steps if the compliance check fails. + * @type \Grafeas\V1\ComplianceNote\CisBenchmark $cis_benchmark + * @type string $scan_instructions + * Serialized scan instructions with a predefined format. + * @type string $impact + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Compliance::initOnce(); + parent::__construct($data); + } + + /** + * The title that identifies this compliance check. + * + * Generated from protobuf field string title = 1; + * @return string + */ + public function getTitle() + { + return $this->title; + } + + /** + * The title that identifies this compliance check. + * + * Generated from protobuf field string title = 1; + * @param string $var + * @return $this + */ + public function setTitle($var) + { + GPBUtil::checkString($var, True); + $this->title = $var; + + return $this; + } + + /** + * A description about this compliance check. + * + * Generated from protobuf field string description = 2; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * A description about this compliance check. + * + * Generated from protobuf field string description = 2; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * The OS and config versions the benchmark applies to. + * + * Generated from protobuf field repeated .grafeas.v1.ComplianceVersion version = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getVersion() + { + return $this->version; + } + + /** + * The OS and config versions the benchmark applies to. + * + * Generated from protobuf field repeated .grafeas.v1.ComplianceVersion version = 3; + * @param array<\Grafeas\V1\ComplianceVersion>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setVersion($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\ComplianceVersion::class); + $this->version = $arr; + + return $this; + } + + /** + * A rationale for the existence of this compliance check. + * + * Generated from protobuf field string rationale = 4; + * @return string + */ + public function getRationale() + { + return $this->rationale; + } + + /** + * A rationale for the existence of this compliance check. + * + * Generated from protobuf field string rationale = 4; + * @param string $var + * @return $this + */ + public function setRationale($var) + { + GPBUtil::checkString($var, True); + $this->rationale = $var; + + return $this; + } + + /** + * A description of remediation steps if the compliance check fails. + * + * Generated from protobuf field string remediation = 5; + * @return string + */ + public function getRemediation() + { + return $this->remediation; + } + + /** + * A description of remediation steps if the compliance check fails. + * + * Generated from protobuf field string remediation = 5; + * @param string $var + * @return $this + */ + public function setRemediation($var) + { + GPBUtil::checkString($var, True); + $this->remediation = $var; + + return $this; + } + + /** + * Generated from protobuf field .grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6; + * @return \Grafeas\V1\ComplianceNote\CisBenchmark|null + */ + public function getCisBenchmark() + { + return $this->readOneof(6); + } + + public function hasCisBenchmark() + { + return $this->hasOneof(6); + } + + /** + * Generated from protobuf field .grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6; + * @param \Grafeas\V1\ComplianceNote\CisBenchmark $var + * @return $this + */ + public function setCisBenchmark($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\ComplianceNote\CisBenchmark::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Serialized scan instructions with a predefined format. + * + * Generated from protobuf field bytes scan_instructions = 7; + * @return string + */ + public function getScanInstructions() + { + return $this->scan_instructions; + } + + /** + * Serialized scan instructions with a predefined format. + * + * Generated from protobuf field bytes scan_instructions = 7; + * @param string $var + * @return $this + */ + public function setScanInstructions($var) + { + GPBUtil::checkString($var, False); + $this->scan_instructions = $var; + + return $this; + } + + /** + * Generated from protobuf field string impact = 8; + * @return string + */ + public function getImpact() + { + return $this->readOneof(8); + } + + public function hasImpact() + { + return $this->hasOneof(8); + } + + /** + * Generated from protobuf field string impact = 8; + * @param string $var + * @return $this + */ + public function setImpact($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * @return string + */ + public function getComplianceType() + { + return $this->whichOneof("compliance_type"); + } + + /** + * @return string + */ + public function getPotentialImpact() + { + return $this->whichOneof("potential_impact"); + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceNote/CisBenchmark.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceNote/CisBenchmark.php new file mode 100644 index 000000000000..be70e77b1666 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceNote/CisBenchmark.php @@ -0,0 +1,90 @@ +grafeas.v1.ComplianceNote.CisBenchmark + */ +class CisBenchmark extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field int32 profile_level = 1; + */ + protected $profile_level = 0; + /** + * Generated from protobuf field .grafeas.v1.Severity severity = 2; + */ + protected $severity = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $profile_level + * @type int $severity + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Compliance::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field int32 profile_level = 1; + * @return int + */ + public function getProfileLevel() + { + return $this->profile_level; + } + + /** + * Generated from protobuf field int32 profile_level = 1; + * @param int $var + * @return $this + */ + public function setProfileLevel($var) + { + GPBUtil::checkInt32($var); + $this->profile_level = $var; + + return $this; + } + + /** + * Generated from protobuf field .grafeas.v1.Severity severity = 2; + * @return int + */ + public function getSeverity() + { + return $this->severity; + } + + /** + * Generated from protobuf field .grafeas.v1.Severity severity = 2; + * @param int $var + * @return $this + */ + public function setSeverity($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\Severity::class); + $this->severity = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CisBenchmark::class, \Grafeas\V1\ComplianceNote_CisBenchmark::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceOccurrence.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceOccurrence.php new file mode 100644 index 000000000000..48224305c9f7 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceOccurrence.php @@ -0,0 +1,132 @@ +grafeas.v1.ComplianceOccurrence + */ +class ComplianceOccurrence extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2; + */ + private $non_compliant_files; + /** + * Generated from protobuf field string non_compliance_reason = 3; + */ + protected $non_compliance_reason = ''; + /** + * The OS and config version the benchmark was run on. + * + * Generated from protobuf field .grafeas.v1.ComplianceVersion version = 4; + */ + protected $version = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Grafeas\V1\NonCompliantFile>|\Google\Protobuf\Internal\RepeatedField $non_compliant_files + * @type string $non_compliance_reason + * @type \Grafeas\V1\ComplianceVersion $version + * The OS and config version the benchmark was run on. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Compliance::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNonCompliantFiles() + { + return $this->non_compliant_files; + } + + /** + * Generated from protobuf field repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2; + * @param array<\Grafeas\V1\NonCompliantFile>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNonCompliantFiles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\NonCompliantFile::class); + $this->non_compliant_files = $arr; + + return $this; + } + + /** + * Generated from protobuf field string non_compliance_reason = 3; + * @return string + */ + public function getNonComplianceReason() + { + return $this->non_compliance_reason; + } + + /** + * Generated from protobuf field string non_compliance_reason = 3; + * @param string $var + * @return $this + */ + public function setNonComplianceReason($var) + { + GPBUtil::checkString($var, True); + $this->non_compliance_reason = $var; + + return $this; + } + + /** + * The OS and config version the benchmark was run on. + * + * Generated from protobuf field .grafeas.v1.ComplianceVersion version = 4; + * @return \Grafeas\V1\ComplianceVersion|null + */ + public function getVersion() + { + return $this->version; + } + + public function hasVersion() + { + return isset($this->version); + } + + public function clearVersion() + { + unset($this->version); + } + + /** + * The OS and config version the benchmark was run on. + * + * Generated from protobuf field .grafeas.v1.ComplianceVersion version = 4; + * @param \Grafeas\V1\ComplianceVersion $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\ComplianceVersion::class); + $this->version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceVersion.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceVersion.php new file mode 100644 index 000000000000..19d19abd80bd --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceVersion.php @@ -0,0 +1,148 @@ +grafeas.v1.ComplianceVersion + */ +class ComplianceVersion extends \Google\Protobuf\Internal\Message +{ + /** + * The CPE URI (https://cpe.mitre.org/specification/) this benchmark is + * applicable to. + * + * Generated from protobuf field string cpe_uri = 1; + */ + protected $cpe_uri = ''; + /** + * The name of the document that defines this benchmark, e.g. "CIS + * Container-Optimized OS". + * + * Generated from protobuf field string benchmark_document = 3; + */ + protected $benchmark_document = ''; + /** + * The version of the benchmark. This is set to the version of the OS-specific + * CIS document the benchmark is defined in. + * + * Generated from protobuf field string version = 2; + */ + protected $version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $cpe_uri + * The CPE URI (https://cpe.mitre.org/specification/) this benchmark is + * applicable to. + * @type string $benchmark_document + * The name of the document that defines this benchmark, e.g. "CIS + * Container-Optimized OS". + * @type string $version + * The version of the benchmark. This is set to the version of the OS-specific + * CIS document the benchmark is defined in. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Compliance::initOnce(); + parent::__construct($data); + } + + /** + * The CPE URI (https://cpe.mitre.org/specification/) this benchmark is + * applicable to. + * + * Generated from protobuf field string cpe_uri = 1; + * @return string + */ + public function getCpeUri() + { + return $this->cpe_uri; + } + + /** + * The CPE URI (https://cpe.mitre.org/specification/) this benchmark is + * applicable to. + * + * Generated from protobuf field string cpe_uri = 1; + * @param string $var + * @return $this + */ + public function setCpeUri($var) + { + GPBUtil::checkString($var, True); + $this->cpe_uri = $var; + + return $this; + } + + /** + * The name of the document that defines this benchmark, e.g. "CIS + * Container-Optimized OS". + * + * Generated from protobuf field string benchmark_document = 3; + * @return string + */ + public function getBenchmarkDocument() + { + return $this->benchmark_document; + } + + /** + * The name of the document that defines this benchmark, e.g. "CIS + * Container-Optimized OS". + * + * Generated from protobuf field string benchmark_document = 3; + * @param string $var + * @return $this + */ + public function setBenchmarkDocument($var) + { + GPBUtil::checkString($var, True); + $this->benchmark_document = $var; + + return $this; + } + + /** + * The version of the benchmark. This is set to the version of the OS-specific + * CIS document the benchmark is defined in. + * + * Generated from protobuf field string version = 2; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * The version of the benchmark. This is set to the version of the OS-specific + * CIS document the benchmark is defined in. + * + * Generated from protobuf field string version = 2; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CreateNoteRequest.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CreateNoteRequest.php new file mode 100644 index 000000000000..b03b9181f323 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CreateNoteRequest.php @@ -0,0 +1,168 @@ +grafeas.v1.CreateNoteRequest + */ +class CreateNoteRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the project in the form of `projects/[PROJECT_ID]`, under which + * the note is to be created. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The ID to use for this note. + * + * Generated from protobuf field string note_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $note_id = ''; + /** + * The note to create. + * + * Generated from protobuf field .grafeas.v1.Note note = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $note = null; + + /** + * @param string $parent The name of the project in the form of `projects/[PROJECT_ID]`, under which + * the note is to be created. Please see + * {@see GrafeasClient::projectName()} for help formatting this field. + * @param string $noteId The ID to use for this note. + * @param \Grafeas\V1\Note $note The note to create. + * + * @return \Grafeas\V1\CreateNoteRequest + * + * @experimental + */ + public static function build(string $parent, string $noteId, \Grafeas\V1\Note $note): self + { + return (new self()) + ->setParent($parent) + ->setNoteId($noteId) + ->setNote($note); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * The name of the project in the form of `projects/[PROJECT_ID]`, under which + * the note is to be created. + * @type string $note_id + * The ID to use for this note. + * @type \Grafeas\V1\Note $note + * The note to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); + parent::__construct($data); + } + + /** + * The name of the project in the form of `projects/[PROJECT_ID]`, under which + * the note is to be created. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * The name of the project in the form of `projects/[PROJECT_ID]`, under which + * the note is to be created. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The ID to use for this note. + * + * Generated from protobuf field string note_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getNoteId() + { + return $this->note_id; + } + + /** + * The ID to use for this note. + * + * Generated from protobuf field string note_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setNoteId($var) + { + GPBUtil::checkString($var, True); + $this->note_id = $var; + + return $this; + } + + /** + * The note to create. + * + * Generated from protobuf field .grafeas.v1.Note note = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Grafeas\V1\Note|null + */ + public function getNote() + { + return $this->note; + } + + public function hasNote() + { + return isset($this->note); + } + + public function clearNote() + { + unset($this->note); + } + + /** + * The note to create. + * + * Generated from protobuf field .grafeas.v1.Note note = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Grafeas\V1\Note $var + * @return $this + */ + public function setNote($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\Note::class); + $this->note = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CreateOccurrenceRequest.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CreateOccurrenceRequest.php new file mode 100644 index 000000000000..ac9031ca5a6f --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CreateOccurrenceRequest.php @@ -0,0 +1,132 @@ +grafeas.v1.CreateOccurrenceRequest + */ +class CreateOccurrenceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the project in the form of `projects/[PROJECT_ID]`, under which + * the occurrence is to be created. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The occurrence to create. + * + * Generated from protobuf field .grafeas.v1.Occurrence occurrence = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $occurrence = null; + + /** + * @param string $parent The name of the project in the form of `projects/[PROJECT_ID]`, under which + * the occurrence is to be created. Please see + * {@see GrafeasClient::projectName()} for help formatting this field. + * @param \Grafeas\V1\Occurrence $occurrence The occurrence to create. + * + * @return \Grafeas\V1\CreateOccurrenceRequest + * + * @experimental + */ + public static function build(string $parent, \Grafeas\V1\Occurrence $occurrence): self + { + return (new self()) + ->setParent($parent) + ->setOccurrence($occurrence); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * The name of the project in the form of `projects/[PROJECT_ID]`, under which + * the occurrence is to be created. + * @type \Grafeas\V1\Occurrence $occurrence + * The occurrence to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); + parent::__construct($data); + } + + /** + * The name of the project in the form of `projects/[PROJECT_ID]`, under which + * the occurrence is to be created. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * The name of the project in the form of `projects/[PROJECT_ID]`, under which + * the occurrence is to be created. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The occurrence to create. + * + * Generated from protobuf field .grafeas.v1.Occurrence occurrence = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Grafeas\V1\Occurrence|null + */ + public function getOccurrence() + { + return $this->occurrence; + } + + public function hasOccurrence() + { + return isset($this->occurrence); + } + + public function clearOccurrence() + { + unset($this->occurrence); + } + + /** + * The occurrence to create. + * + * Generated from protobuf field .grafeas.v1.Occurrence occurrence = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Grafeas\V1\Occurrence $var + * @return $this + */ + public function setOccurrence($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\Occurrence::class); + $this->occurrence = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DSSEAttestationNote.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DSSEAttestationNote.php new file mode 100644 index 000000000000..b40b73c92c36 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DSSEAttestationNote.php @@ -0,0 +1,75 @@ +grafeas.v1.DSSEAttestationNote + */ +class DSSEAttestationNote extends \Google\Protobuf\Internal\Message +{ + /** + * DSSEHint hints at the purpose of the attestation authority. + * + * Generated from protobuf field .grafeas.v1.DSSEAttestationNote.DSSEHint hint = 1; + */ + protected $hint = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Grafeas\V1\DSSEAttestationNote\DSSEHint $hint + * DSSEHint hints at the purpose of the attestation authority. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\DsseAttestation::initOnce(); + parent::__construct($data); + } + + /** + * DSSEHint hints at the purpose of the attestation authority. + * + * Generated from protobuf field .grafeas.v1.DSSEAttestationNote.DSSEHint hint = 1; + * @return \Grafeas\V1\DSSEAttestationNote\DSSEHint|null + */ + public function getHint() + { + return $this->hint; + } + + public function hasHint() + { + return isset($this->hint); + } + + public function clearHint() + { + unset($this->hint); + } + + /** + * DSSEHint hints at the purpose of the attestation authority. + * + * Generated from protobuf field .grafeas.v1.DSSEAttestationNote.DSSEHint hint = 1; + * @param \Grafeas\V1\DSSEAttestationNote\DSSEHint $var + * @return $this + */ + public function setHint($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\DSSEAttestationNote\DSSEHint::class); + $this->hint = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DSSEAttestationNote/DSSEHint.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DSSEAttestationNote/DSSEHint.php new file mode 100644 index 000000000000..972f84285167 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DSSEAttestationNote/DSSEHint.php @@ -0,0 +1,80 @@ +grafeas.v1.DSSEAttestationNote.DSSEHint + */ +class DSSEHint extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The human readable name of this attestation authority, for + * example "cloudbuild-prod". + * + * Generated from protobuf field string human_readable_name = 1; + */ + protected $human_readable_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $human_readable_name + * Required. The human readable name of this attestation authority, for + * example "cloudbuild-prod". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\DsseAttestation::initOnce(); + parent::__construct($data); + } + + /** + * Required. The human readable name of this attestation authority, for + * example "cloudbuild-prod". + * + * Generated from protobuf field string human_readable_name = 1; + * @return string + */ + public function getHumanReadableName() + { + return $this->human_readable_name; + } + + /** + * Required. The human readable name of this attestation authority, for + * example "cloudbuild-prod". + * + * Generated from protobuf field string human_readable_name = 1; + * @param string $var + * @return $this + */ + public function setHumanReadableName($var) + { + GPBUtil::checkString($var, True); + $this->human_readable_name = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DSSEHint::class, \Grafeas\V1\DSSEAttestationNote_DSSEHint::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DSSEAttestationOccurrence.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DSSEAttestationOccurrence.php new file mode 100644 index 000000000000..28ccbbd9f0f6 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DSSEAttestationOccurrence.php @@ -0,0 +1,119 @@ +grafeas.v1.DSSEAttestationOccurrence + */ +class DSSEAttestationOccurrence extends \Google\Protobuf\Internal\Message +{ + /** + * If doing something security critical, make sure to verify the signatures in + * this metadata. + * + * Generated from protobuf field .grafeas.v1.Envelope envelope = 1; + */ + protected $envelope = null; + protected $decoded_payload; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Grafeas\V1\Envelope $envelope + * If doing something security critical, make sure to verify the signatures in + * this metadata. + * @type \Grafeas\V1\InTotoStatement $statement + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\DsseAttestation::initOnce(); + parent::__construct($data); + } + + /** + * If doing something security critical, make sure to verify the signatures in + * this metadata. + * + * Generated from protobuf field .grafeas.v1.Envelope envelope = 1; + * @return \Grafeas\V1\Envelope|null + */ + public function getEnvelope() + { + return $this->envelope; + } + + public function hasEnvelope() + { + return isset($this->envelope); + } + + public function clearEnvelope() + { + unset($this->envelope); + } + + /** + * If doing something security critical, make sure to verify the signatures in + * this metadata. + * + * Generated from protobuf field .grafeas.v1.Envelope envelope = 1; + * @param \Grafeas\V1\Envelope $var + * @return $this + */ + public function setEnvelope($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\Envelope::class); + $this->envelope = $var; + + return $this; + } + + /** + * Generated from protobuf field .grafeas.v1.InTotoStatement statement = 2; + * @return \Grafeas\V1\InTotoStatement|null + */ + public function getStatement() + { + return $this->readOneof(2); + } + + public function hasStatement() + { + return $this->hasOneof(2); + } + + /** + * Generated from protobuf field .grafeas.v1.InTotoStatement statement = 2; + * @param \Grafeas\V1\InTotoStatement $var + * @return $this + */ + public function setStatement($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\InTotoStatement::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getDecodedPayload() + { + return $this->whichOneof("decoded_payload"); + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeleteNoteRequest.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeleteNoteRequest.php new file mode 100644 index 000000000000..14fcef007666 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeleteNoteRequest.php @@ -0,0 +1,86 @@ +grafeas.v1.DeleteNoteRequest + */ +class DeleteNoteRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the note in the form of + * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name The name of the note in the form of + * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. Please see + * {@see GrafeasClient::noteName()} for help formatting this field. + * + * @return \Grafeas\V1\DeleteNoteRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the note in the form of + * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); + parent::__construct($data); + } + + /** + * The name of the note in the form of + * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the note in the form of + * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeleteOccurrenceRequest.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeleteOccurrenceRequest.php new file mode 100644 index 000000000000..4318a5540847 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeleteOccurrenceRequest.php @@ -0,0 +1,86 @@ +grafeas.v1.DeleteOccurrenceRequest + */ +class DeleteOccurrenceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the occurrence in the form of + * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name The name of the occurrence in the form of + * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. Please see + * {@see GrafeasClient::occurrenceName()} for help formatting this field. + * + * @return \Grafeas\V1\DeleteOccurrenceRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the occurrence in the form of + * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); + parent::__construct($data); + } + + /** + * The name of the occurrence in the form of + * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the occurrence in the form of + * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeploymentNote.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeploymentNote.php new file mode 100644 index 000000000000..d934670e3bb8 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeploymentNote.php @@ -0,0 +1,67 @@ +grafeas.v1.DeploymentNote + */ +class DeploymentNote extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource URI for the artifact being deployed. + * + * Generated from protobuf field repeated string resource_uri = 1; + */ + private $resource_uri; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $resource_uri + * Required. Resource URI for the artifact being deployed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Deployment::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource URI for the artifact being deployed. + * + * Generated from protobuf field repeated string resource_uri = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getResourceUri() + { + return $this->resource_uri; + } + + /** + * Required. Resource URI for the artifact being deployed. + * + * Generated from protobuf field repeated string resource_uri = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setResourceUri($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->resource_uri = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeploymentOccurrence.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeploymentOccurrence.php new file mode 100644 index 000000000000..9971d3eb3d44 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeploymentOccurrence.php @@ -0,0 +1,295 @@ +grafeas.v1.DeploymentOccurrence + */ +class DeploymentOccurrence extends \Google\Protobuf\Internal\Message +{ + /** + * Identity of the user that triggered this deployment. + * + * Generated from protobuf field string user_email = 1; + */ + protected $user_email = ''; + /** + * Required. Beginning of the lifetime of this deployment. + * + * Generated from protobuf field .google.protobuf.Timestamp deploy_time = 2; + */ + protected $deploy_time = null; + /** + * End of the lifetime of this deployment. + * + * Generated from protobuf field .google.protobuf.Timestamp undeploy_time = 3; + */ + protected $undeploy_time = null; + /** + * Configuration used to create this deployment. + * + * Generated from protobuf field string config = 4; + */ + protected $config = ''; + /** + * Address of the runtime element hosting this deployment. + * + * Generated from protobuf field string address = 5; + */ + protected $address = ''; + /** + * Output only. Resource URI for the artifact being deployed taken from + * the deployable field with the same name. + * + * Generated from protobuf field repeated string resource_uri = 6; + */ + private $resource_uri; + /** + * Platform hosting this deployment. + * + * Generated from protobuf field .grafeas.v1.DeploymentOccurrence.Platform platform = 7; + */ + protected $platform = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $user_email + * Identity of the user that triggered this deployment. + * @type \Google\Protobuf\Timestamp $deploy_time + * Required. Beginning of the lifetime of this deployment. + * @type \Google\Protobuf\Timestamp $undeploy_time + * End of the lifetime of this deployment. + * @type string $config + * Configuration used to create this deployment. + * @type string $address + * Address of the runtime element hosting this deployment. + * @type array|\Google\Protobuf\Internal\RepeatedField $resource_uri + * Output only. Resource URI for the artifact being deployed taken from + * the deployable field with the same name. + * @type int $platform + * Platform hosting this deployment. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Deployment::initOnce(); + parent::__construct($data); + } + + /** + * Identity of the user that triggered this deployment. + * + * Generated from protobuf field string user_email = 1; + * @return string + */ + public function getUserEmail() + { + return $this->user_email; + } + + /** + * Identity of the user that triggered this deployment. + * + * Generated from protobuf field string user_email = 1; + * @param string $var + * @return $this + */ + public function setUserEmail($var) + { + GPBUtil::checkString($var, True); + $this->user_email = $var; + + return $this; + } + + /** + * Required. Beginning of the lifetime of this deployment. + * + * Generated from protobuf field .google.protobuf.Timestamp deploy_time = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getDeployTime() + { + return $this->deploy_time; + } + + public function hasDeployTime() + { + return isset($this->deploy_time); + } + + public function clearDeployTime() + { + unset($this->deploy_time); + } + + /** + * Required. Beginning of the lifetime of this deployment. + * + * Generated from protobuf field .google.protobuf.Timestamp deploy_time = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setDeployTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->deploy_time = $var; + + return $this; + } + + /** + * End of the lifetime of this deployment. + * + * Generated from protobuf field .google.protobuf.Timestamp undeploy_time = 3; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUndeployTime() + { + return $this->undeploy_time; + } + + public function hasUndeployTime() + { + return isset($this->undeploy_time); + } + + public function clearUndeployTime() + { + unset($this->undeploy_time); + } + + /** + * End of the lifetime of this deployment. + * + * Generated from protobuf field .google.protobuf.Timestamp undeploy_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUndeployTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->undeploy_time = $var; + + return $this; + } + + /** + * Configuration used to create this deployment. + * + * Generated from protobuf field string config = 4; + * @return string + */ + public function getConfig() + { + return $this->config; + } + + /** + * Configuration used to create this deployment. + * + * Generated from protobuf field string config = 4; + * @param string $var + * @return $this + */ + public function setConfig($var) + { + GPBUtil::checkString($var, True); + $this->config = $var; + + return $this; + } + + /** + * Address of the runtime element hosting this deployment. + * + * Generated from protobuf field string address = 5; + * @return string + */ + public function getAddress() + { + return $this->address; + } + + /** + * Address of the runtime element hosting this deployment. + * + * Generated from protobuf field string address = 5; + * @param string $var + * @return $this + */ + public function setAddress($var) + { + GPBUtil::checkString($var, True); + $this->address = $var; + + return $this; + } + + /** + * Output only. Resource URI for the artifact being deployed taken from + * the deployable field with the same name. + * + * Generated from protobuf field repeated string resource_uri = 6; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getResourceUri() + { + return $this->resource_uri; + } + + /** + * Output only. Resource URI for the artifact being deployed taken from + * the deployable field with the same name. + * + * Generated from protobuf field repeated string resource_uri = 6; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setResourceUri($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->resource_uri = $arr; + + return $this; + } + + /** + * Platform hosting this deployment. + * + * Generated from protobuf field .grafeas.v1.DeploymentOccurrence.Platform platform = 7; + * @return int + */ + public function getPlatform() + { + return $this->platform; + } + + /** + * Platform hosting this deployment. + * + * Generated from protobuf field .grafeas.v1.DeploymentOccurrence.Platform platform = 7; + * @param int $var + * @return $this + */ + public function setPlatform($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\DeploymentOccurrence\Platform::class); + $this->platform = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeploymentOccurrence/Platform.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeploymentOccurrence/Platform.php new file mode 100644 index 000000000000..35b13b4c7858 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeploymentOccurrence/Platform.php @@ -0,0 +1,71 @@ +grafeas.v1.DeploymentOccurrence.Platform + */ +class Platform +{ + /** + * Unknown. + * + * Generated from protobuf enum PLATFORM_UNSPECIFIED = 0; + */ + const PLATFORM_UNSPECIFIED = 0; + /** + * Google Container Engine. + * + * Generated from protobuf enum GKE = 1; + */ + const GKE = 1; + /** + * Google App Engine: Flexible Environment. + * + * Generated from protobuf enum FLEX = 2; + */ + const FLEX = 2; + /** + * Custom user-defined platform. + * + * Generated from protobuf enum CUSTOM = 3; + */ + const CUSTOM = 3; + + private static $valueToName = [ + self::PLATFORM_UNSPECIFIED => 'PLATFORM_UNSPECIFIED', + self::GKE => 'GKE', + self::FLEX => 'FLEX', + self::CUSTOM => 'CUSTOM', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Platform::class, \Grafeas\V1\DeploymentOccurrence_Platform::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Digest.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Digest.php new file mode 100644 index 000000000000..2e3c7163d6fc --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Digest.php @@ -0,0 +1,101 @@ +grafeas.v1.Digest + */ +class Digest extends \Google\Protobuf\Internal\Message +{ + /** + * `SHA1`, `SHA512` etc. + * + * Generated from protobuf field string algo = 1; + */ + protected $algo = ''; + /** + * Value of the digest. + * + * Generated from protobuf field bytes digest_bytes = 2; + */ + protected $digest_bytes = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $algo + * `SHA1`, `SHA512` etc. + * @type string $digest_bytes + * Value of the digest. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * `SHA1`, `SHA512` etc. + * + * Generated from protobuf field string algo = 1; + * @return string + */ + public function getAlgo() + { + return $this->algo; + } + + /** + * `SHA1`, `SHA512` etc. + * + * Generated from protobuf field string algo = 1; + * @param string $var + * @return $this + */ + public function setAlgo($var) + { + GPBUtil::checkString($var, True); + $this->algo = $var; + + return $this; + } + + /** + * Value of the digest. + * + * Generated from protobuf field bytes digest_bytes = 2; + * @return string + */ + public function getDigestBytes() + { + return $this->digest_bytes; + } + + /** + * Value of the digest. + * + * Generated from protobuf field bytes digest_bytes = 2; + * @param string $var + * @return $this + */ + public function setDigestBytes($var) + { + GPBUtil::checkString($var, False); + $this->digest_bytes = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryNote.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryNote.php new file mode 100644 index 000000000000..d1fa446c046d --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryNote.php @@ -0,0 +1,73 @@ +grafeas.v1.DiscoveryNote + */ +class DiscoveryNote extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Immutable. The kind of analysis that is handled by this + * discovery. + * + * Generated from protobuf field .grafeas.v1.NoteKind analysis_kind = 1; + */ + protected $analysis_kind = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $analysis_kind + * Required. Immutable. The kind of analysis that is handled by this + * discovery. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Discovery::initOnce(); + parent::__construct($data); + } + + /** + * Required. Immutable. The kind of analysis that is handled by this + * discovery. + * + * Generated from protobuf field .grafeas.v1.NoteKind analysis_kind = 1; + * @return int + */ + public function getAnalysisKind() + { + return $this->analysis_kind; + } + + /** + * Required. Immutable. The kind of analysis that is handled by this + * discovery. + * + * Generated from protobuf field .grafeas.v1.NoteKind analysis_kind = 1; + * @param int $var + * @return $this + */ + public function setAnalysisKind($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\NoteKind::class); + $this->analysis_kind = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence.php new file mode 100644 index 000000000000..aebbab9c0b74 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence.php @@ -0,0 +1,516 @@ +grafeas.v1.DiscoveryOccurrence + */ +class DiscoveryOccurrence extends \Google\Protobuf\Internal\Message +{ + /** + * Whether the resource is continuously analyzed. + * + * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis continuous_analysis = 1; + */ + protected $continuous_analysis = 0; + /** + * The status of discovery for the resource. + * + * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.AnalysisStatus analysis_status = 2; + */ + protected $analysis_status = 0; + /** + * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7; + */ + protected $analysis_completed = null; + /** + * Indicates any errors encountered during analysis of a resource. There + * could be 0 or more of these errors. + * + * Generated from protobuf field repeated .google.rpc.Status analysis_error = 8; + */ + private $analysis_error; + /** + * When an error is encountered this will contain a LocalizedMessage under + * details to show to the user. The LocalizedMessage is output only and + * populated by the API. + * + * Generated from protobuf field .google.rpc.Status analysis_status_error = 3; + */ + protected $analysis_status_error = null; + /** + * The CPE of the resource being scanned. + * + * Generated from protobuf field string cpe = 4; + */ + protected $cpe = ''; + /** + * The last time this resource was scanned. + * + * Generated from protobuf field .google.protobuf.Timestamp last_scan_time = 5; + */ + protected $last_scan_time = null; + /** + * The time occurrences related to this discovery occurrence were archived. + * + * Generated from protobuf field .google.protobuf.Timestamp archive_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $archive_time = null; + /** + * The status of an SBOM generation. + * + * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.SBOMStatus sbom_status = 9; + */ + protected $sbom_status = null; + /** + * The status of an vulnerability attestation generation. + * + * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation vulnerability_attestation = 10; + */ + protected $vulnerability_attestation = null; + /** + * Files that make up the resource described by the occurrence. + * + * Generated from protobuf field repeated .grafeas.v1.DiscoveryOccurrence.File files = 11; + */ + private $files; + /** + * The last time vulnerability scan results changed. + * + * Generated from protobuf field .google.protobuf.Timestamp last_vulnerability_update_time = 12; + */ + protected $last_vulnerability_update_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $continuous_analysis + * Whether the resource is continuously analyzed. + * @type int $analysis_status + * The status of discovery for the resource. + * @type \Grafeas\V1\DiscoveryOccurrence\AnalysisCompleted $analysis_completed + * @type array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $analysis_error + * Indicates any errors encountered during analysis of a resource. There + * could be 0 or more of these errors. + * @type \Google\Rpc\Status $analysis_status_error + * When an error is encountered this will contain a LocalizedMessage under + * details to show to the user. The LocalizedMessage is output only and + * populated by the API. + * @type string $cpe + * The CPE of the resource being scanned. + * @type \Google\Protobuf\Timestamp $last_scan_time + * The last time this resource was scanned. + * @type \Google\Protobuf\Timestamp $archive_time + * The time occurrences related to this discovery occurrence were archived. + * @type \Grafeas\V1\DiscoveryOccurrence\SBOMStatus $sbom_status + * The status of an SBOM generation. + * @type \Grafeas\V1\DiscoveryOccurrence\VulnerabilityAttestation $vulnerability_attestation + * The status of an vulnerability attestation generation. + * @type array<\Grafeas\V1\DiscoveryOccurrence\File>|\Google\Protobuf\Internal\RepeatedField $files + * Files that make up the resource described by the occurrence. + * @type \Google\Protobuf\Timestamp $last_vulnerability_update_time + * The last time vulnerability scan results changed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Discovery::initOnce(); + parent::__construct($data); + } + + /** + * Whether the resource is continuously analyzed. + * + * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis continuous_analysis = 1; + * @return int + */ + public function getContinuousAnalysis() + { + return $this->continuous_analysis; + } + + /** + * Whether the resource is continuously analyzed. + * + * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis continuous_analysis = 1; + * @param int $var + * @return $this + */ + public function setContinuousAnalysis($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\DiscoveryOccurrence\ContinuousAnalysis::class); + $this->continuous_analysis = $var; + + return $this; + } + + /** + * The status of discovery for the resource. + * + * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.AnalysisStatus analysis_status = 2; + * @return int + */ + public function getAnalysisStatus() + { + return $this->analysis_status; + } + + /** + * The status of discovery for the resource. + * + * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.AnalysisStatus analysis_status = 2; + * @param int $var + * @return $this + */ + public function setAnalysisStatus($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\DiscoveryOccurrence\AnalysisStatus::class); + $this->analysis_status = $var; + + return $this; + } + + /** + * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7; + * @return \Grafeas\V1\DiscoveryOccurrence\AnalysisCompleted|null + */ + public function getAnalysisCompleted() + { + return $this->analysis_completed; + } + + public function hasAnalysisCompleted() + { + return isset($this->analysis_completed); + } + + public function clearAnalysisCompleted() + { + unset($this->analysis_completed); + } + + /** + * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7; + * @param \Grafeas\V1\DiscoveryOccurrence\AnalysisCompleted $var + * @return $this + */ + public function setAnalysisCompleted($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\DiscoveryOccurrence\AnalysisCompleted::class); + $this->analysis_completed = $var; + + return $this; + } + + /** + * Indicates any errors encountered during analysis of a resource. There + * could be 0 or more of these errors. + * + * Generated from protobuf field repeated .google.rpc.Status analysis_error = 8; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAnalysisError() + { + return $this->analysis_error; + } + + /** + * Indicates any errors encountered during analysis of a resource. There + * could be 0 or more of these errors. + * + * Generated from protobuf field repeated .google.rpc.Status analysis_error = 8; + * @param array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAnalysisError($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); + $this->analysis_error = $arr; + + return $this; + } + + /** + * When an error is encountered this will contain a LocalizedMessage under + * details to show to the user. The LocalizedMessage is output only and + * populated by the API. + * + * Generated from protobuf field .google.rpc.Status analysis_status_error = 3; + * @return \Google\Rpc\Status|null + */ + public function getAnalysisStatusError() + { + return $this->analysis_status_error; + } + + public function hasAnalysisStatusError() + { + return isset($this->analysis_status_error); + } + + public function clearAnalysisStatusError() + { + unset($this->analysis_status_error); + } + + /** + * When an error is encountered this will contain a LocalizedMessage under + * details to show to the user. The LocalizedMessage is output only and + * populated by the API. + * + * Generated from protobuf field .google.rpc.Status analysis_status_error = 3; + * @param \Google\Rpc\Status $var + * @return $this + */ + public function setAnalysisStatusError($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Status::class); + $this->analysis_status_error = $var; + + return $this; + } + + /** + * The CPE of the resource being scanned. + * + * Generated from protobuf field string cpe = 4; + * @return string + */ + public function getCpe() + { + return $this->cpe; + } + + /** + * The CPE of the resource being scanned. + * + * Generated from protobuf field string cpe = 4; + * @param string $var + * @return $this + */ + public function setCpe($var) + { + GPBUtil::checkString($var, True); + $this->cpe = $var; + + return $this; + } + + /** + * The last time this resource was scanned. + * + * Generated from protobuf field .google.protobuf.Timestamp last_scan_time = 5; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLastScanTime() + { + return $this->last_scan_time; + } + + public function hasLastScanTime() + { + return isset($this->last_scan_time); + } + + public function clearLastScanTime() + { + unset($this->last_scan_time); + } + + /** + * The last time this resource was scanned. + * + * Generated from protobuf field .google.protobuf.Timestamp last_scan_time = 5; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLastScanTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->last_scan_time = $var; + + return $this; + } + + /** + * The time occurrences related to this discovery occurrence were archived. + * + * Generated from protobuf field .google.protobuf.Timestamp archive_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getArchiveTime() + { + return $this->archive_time; + } + + public function hasArchiveTime() + { + return isset($this->archive_time); + } + + public function clearArchiveTime() + { + unset($this->archive_time); + } + + /** + * The time occurrences related to this discovery occurrence were archived. + * + * Generated from protobuf field .google.protobuf.Timestamp archive_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setArchiveTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->archive_time = $var; + + return $this; + } + + /** + * The status of an SBOM generation. + * + * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.SBOMStatus sbom_status = 9; + * @return \Grafeas\V1\DiscoveryOccurrence\SBOMStatus|null + */ + public function getSbomStatus() + { + return $this->sbom_status; + } + + public function hasSbomStatus() + { + return isset($this->sbom_status); + } + + public function clearSbomStatus() + { + unset($this->sbom_status); + } + + /** + * The status of an SBOM generation. + * + * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.SBOMStatus sbom_status = 9; + * @param \Grafeas\V1\DiscoveryOccurrence\SBOMStatus $var + * @return $this + */ + public function setSbomStatus($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\DiscoveryOccurrence\SBOMStatus::class); + $this->sbom_status = $var; + + return $this; + } + + /** + * The status of an vulnerability attestation generation. + * + * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation vulnerability_attestation = 10; + * @return \Grafeas\V1\DiscoveryOccurrence\VulnerabilityAttestation|null + */ + public function getVulnerabilityAttestation() + { + return $this->vulnerability_attestation; + } + + public function hasVulnerabilityAttestation() + { + return isset($this->vulnerability_attestation); + } + + public function clearVulnerabilityAttestation() + { + unset($this->vulnerability_attestation); + } + + /** + * The status of an vulnerability attestation generation. + * + * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation vulnerability_attestation = 10; + * @param \Grafeas\V1\DiscoveryOccurrence\VulnerabilityAttestation $var + * @return $this + */ + public function setVulnerabilityAttestation($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\DiscoveryOccurrence\VulnerabilityAttestation::class); + $this->vulnerability_attestation = $var; + + return $this; + } + + /** + * Files that make up the resource described by the occurrence. + * + * Generated from protobuf field repeated .grafeas.v1.DiscoveryOccurrence.File files = 11; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getFiles() + { + return $this->files; + } + + /** + * Files that make up the resource described by the occurrence. + * + * Generated from protobuf field repeated .grafeas.v1.DiscoveryOccurrence.File files = 11; + * @param array<\Grafeas\V1\DiscoveryOccurrence\File>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setFiles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\DiscoveryOccurrence\File::class); + $this->files = $arr; + + return $this; + } + + /** + * The last time vulnerability scan results changed. + * + * Generated from protobuf field .google.protobuf.Timestamp last_vulnerability_update_time = 12; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLastVulnerabilityUpdateTime() + { + return $this->last_vulnerability_update_time; + } + + public function hasLastVulnerabilityUpdateTime() + { + return isset($this->last_vulnerability_update_time); + } + + public function clearLastVulnerabilityUpdateTime() + { + unset($this->last_vulnerability_update_time); + } + + /** + * The last time vulnerability scan results changed. + * + * Generated from protobuf field .google.protobuf.Timestamp last_vulnerability_update_time = 12; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLastVulnerabilityUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->last_vulnerability_update_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/AnalysisCompleted.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/AnalysisCompleted.php new file mode 100644 index 000000000000..5d1e7201fb22 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/AnalysisCompleted.php @@ -0,0 +1,64 @@ +grafeas.v1.DiscoveryOccurrence.AnalysisCompleted + */ +class AnalysisCompleted extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field repeated string analysis_type = 1; + */ + private $analysis_type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $analysis_type + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Discovery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated string analysis_type = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAnalysisType() + { + return $this->analysis_type; + } + + /** + * Generated from protobuf field repeated string analysis_type = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAnalysisType($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->analysis_type = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AnalysisCompleted::class, \Grafeas\V1\DiscoveryOccurrence_AnalysisCompleted::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/AnalysisStatus.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/AnalysisStatus.php new file mode 100644 index 000000000000..fcef24fb33a3 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/AnalysisStatus.php @@ -0,0 +1,94 @@ +grafeas.v1.DiscoveryOccurrence.AnalysisStatus + */ +class AnalysisStatus +{ + /** + * Unknown. + * + * Generated from protobuf enum ANALYSIS_STATUS_UNSPECIFIED = 0; + */ + const ANALYSIS_STATUS_UNSPECIFIED = 0; + /** + * Resource is known but no action has been taken yet. + * + * Generated from protobuf enum PENDING = 1; + */ + const PENDING = 1; + /** + * Resource is being analyzed. + * + * Generated from protobuf enum SCANNING = 2; + */ + const SCANNING = 2; + /** + * Analysis has finished successfully. + * + * Generated from protobuf enum FINISHED_SUCCESS = 3; + */ + const FINISHED_SUCCESS = 3; + /** + * Analysis has completed. + * + * Generated from protobuf enum COMPLETE = 3; + */ + const COMPLETE = 3; + /** + * Analysis has finished unsuccessfully, the analysis itself is in a bad + * state. + * + * Generated from protobuf enum FINISHED_FAILED = 4; + */ + const FINISHED_FAILED = 4; + /** + * The resource is known not to be supported. + * + * Generated from protobuf enum FINISHED_UNSUPPORTED = 5; + */ + const FINISHED_UNSUPPORTED = 5; + + private static $valueToName = [ + self::ANALYSIS_STATUS_UNSPECIFIED => 'ANALYSIS_STATUS_UNSPECIFIED', + self::PENDING => 'PENDING', + self::SCANNING => 'SCANNING', + self::FINISHED_SUCCESS => 'FINISHED_SUCCESS', + self::COMPLETE => 'COMPLETE', + self::FINISHED_FAILED => 'FINISHED_FAILED', + self::FINISHED_UNSUPPORTED => 'FINISHED_UNSUPPORTED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AnalysisStatus::class, \Grafeas\V1\DiscoveryOccurrence_AnalysisStatus::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/ContinuousAnalysis.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/ContinuousAnalysis.php new file mode 100644 index 000000000000..350c2fb7590b --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/ContinuousAnalysis.php @@ -0,0 +1,64 @@ +grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis + */ +class ContinuousAnalysis +{ + /** + * Unknown. + * + * Generated from protobuf enum CONTINUOUS_ANALYSIS_UNSPECIFIED = 0; + */ + const CONTINUOUS_ANALYSIS_UNSPECIFIED = 0; + /** + * The resource is continuously analyzed. + * + * Generated from protobuf enum ACTIVE = 1; + */ + const ACTIVE = 1; + /** + * The resource is ignored for continuous analysis. + * + * Generated from protobuf enum INACTIVE = 2; + */ + const INACTIVE = 2; + + private static $valueToName = [ + self::CONTINUOUS_ANALYSIS_UNSPECIFIED => 'CONTINUOUS_ANALYSIS_UNSPECIFIED', + self::ACTIVE => 'ACTIVE', + self::INACTIVE => 'INACTIVE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ContinuousAnalysis::class, \Grafeas\V1\DiscoveryOccurrence_ContinuousAnalysis::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/File.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/File.php new file mode 100644 index 000000000000..45b17ad9cb7a --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/File.php @@ -0,0 +1,88 @@ +grafeas.v1.DiscoveryOccurrence.File + */ +class File extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Generated from protobuf field map digest = 2; + */ + private $digest; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * @type array|\Google\Protobuf\Internal\MapField $digest + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Discovery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Generated from protobuf field map digest = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getDigest() + { + return $this->digest; + } + + /** + * Generated from protobuf field map digest = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setDigest($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->digest = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(File::class, \Grafeas\V1\DiscoveryOccurrence_File::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/SBOMStatus.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/SBOMStatus.php new file mode 100644 index 000000000000..dee01078c8cb --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/SBOMStatus.php @@ -0,0 +1,108 @@ +grafeas.v1.DiscoveryOccurrence.SBOMStatus + */ +class SBOMStatus extends \Google\Protobuf\Internal\Message +{ + /** + * The progress of the SBOM generation. + * + * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.SBOMStatus.SBOMState sbom_state = 1; + */ + protected $sbom_state = 0; + /** + * If there was an error generating an SBOM, this will indicate what that + * error was. + * + * Generated from protobuf field string error = 2; + */ + protected $error = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $sbom_state + * The progress of the SBOM generation. + * @type string $error + * If there was an error generating an SBOM, this will indicate what that + * error was. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Discovery::initOnce(); + parent::__construct($data); + } + + /** + * The progress of the SBOM generation. + * + * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.SBOMStatus.SBOMState sbom_state = 1; + * @return int + */ + public function getSbomState() + { + return $this->sbom_state; + } + + /** + * The progress of the SBOM generation. + * + * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.SBOMStatus.SBOMState sbom_state = 1; + * @param int $var + * @return $this + */ + public function setSbomState($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\DiscoveryOccurrence\SBOMStatus\SBOMState::class); + $this->sbom_state = $var; + + return $this; + } + + /** + * If there was an error generating an SBOM, this will indicate what that + * error was. + * + * Generated from protobuf field string error = 2; + * @return string + */ + public function getError() + { + return $this->error; + } + + /** + * If there was an error generating an SBOM, this will indicate what that + * error was. + * + * Generated from protobuf field string error = 2; + * @param string $var + * @return $this + */ + public function setError($var) + { + GPBUtil::checkString($var, True); + $this->error = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SBOMStatus::class, \Grafeas\V1\DiscoveryOccurrence_SBOMStatus::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/SBOMStatus/SBOMState.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/SBOMStatus/SBOMState.php new file mode 100644 index 000000000000..0ce25b22873f --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/SBOMStatus/SBOMState.php @@ -0,0 +1,64 @@ +grafeas.v1.DiscoveryOccurrence.SBOMStatus.SBOMState + */ +class SBOMState +{ + /** + * Default unknown state. + * + * Generated from protobuf enum SBOM_STATE_UNSPECIFIED = 0; + */ + const SBOM_STATE_UNSPECIFIED = 0; + /** + * SBOM scanning is pending. + * + * Generated from protobuf enum PENDING = 1; + */ + const PENDING = 1; + /** + * SBOM scanning has completed. + * + * Generated from protobuf enum COMPLETE = 2; + */ + const COMPLETE = 2; + + private static $valueToName = [ + self::SBOM_STATE_UNSPECIFIED => 'SBOM_STATE_UNSPECIFIED', + self::PENDING => 'PENDING', + self::COMPLETE => 'COMPLETE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SBOMState::class, \Grafeas\V1\DiscoveryOccurrence_SBOMStatus_SBOMState::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/VulnerabilityAttestation.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/VulnerabilityAttestation.php new file mode 100644 index 000000000000..2e1ec8e5dc33 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/VulnerabilityAttestation.php @@ -0,0 +1,148 @@ +grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation + */ +class VulnerabilityAttestation extends \Google\Protobuf\Internal\Message +{ + /** + * The last time we attempted to generate an attestation. + * + * Generated from protobuf field .google.protobuf.Timestamp last_attempt_time = 1; + */ + protected $last_attempt_time = null; + /** + * The success/failure state of the latest attestation attempt. + * + * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState state = 2; + */ + protected $state = 0; + /** + * If failure, the error reason for why the attestation generation failed. + * + * Generated from protobuf field string error = 3; + */ + protected $error = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $last_attempt_time + * The last time we attempted to generate an attestation. + * @type int $state + * The success/failure state of the latest attestation attempt. + * @type string $error + * If failure, the error reason for why the attestation generation failed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Discovery::initOnce(); + parent::__construct($data); + } + + /** + * The last time we attempted to generate an attestation. + * + * Generated from protobuf field .google.protobuf.Timestamp last_attempt_time = 1; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLastAttemptTime() + { + return $this->last_attempt_time; + } + + public function hasLastAttemptTime() + { + return isset($this->last_attempt_time); + } + + public function clearLastAttemptTime() + { + unset($this->last_attempt_time); + } + + /** + * The last time we attempted to generate an attestation. + * + * Generated from protobuf field .google.protobuf.Timestamp last_attempt_time = 1; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLastAttemptTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->last_attempt_time = $var; + + return $this; + } + + /** + * The success/failure state of the latest attestation attempt. + * + * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState state = 2; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * The success/failure state of the latest attestation attempt. + * + * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState state = 2; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\DiscoveryOccurrence\VulnerabilityAttestation\VulnerabilityAttestationState::class); + $this->state = $var; + + return $this; + } + + /** + * If failure, the error reason for why the attestation generation failed. + * + * Generated from protobuf field string error = 3; + * @return string + */ + public function getError() + { + return $this->error; + } + + /** + * If failure, the error reason for why the attestation generation failed. + * + * Generated from protobuf field string error = 3; + * @param string $var + * @return $this + */ + public function setError($var) + { + GPBUtil::checkString($var, True); + $this->error = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(VulnerabilityAttestation::class, \Grafeas\V1\DiscoveryOccurrence_VulnerabilityAttestation::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/VulnerabilityAttestation/VulnerabilityAttestationState.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/VulnerabilityAttestation/VulnerabilityAttestationState.php new file mode 100644 index 000000000000..415948b9ae6d --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/VulnerabilityAttestation/VulnerabilityAttestationState.php @@ -0,0 +1,64 @@ +grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState + */ +class VulnerabilityAttestationState +{ + /** + * Default unknown state. + * + * Generated from protobuf enum VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED = 0; + */ + const VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED = 0; + /** + * Attestation was successfully generated and stored. + * + * Generated from protobuf enum SUCCESS = 1; + */ + const SUCCESS = 1; + /** + * Attestation was unsuccessfully generated and stored. + * + * Generated from protobuf enum FAILURE = 2; + */ + const FAILURE = 2; + + private static $valueToName = [ + self::VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED => 'VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED', + self::SUCCESS => 'SUCCESS', + self::FAILURE => 'FAILURE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(VulnerabilityAttestationState::class, \Grafeas\V1\DiscoveryOccurrence_VulnerabilityAttestation_VulnerabilityAttestationState::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Distribution.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Distribution.php new file mode 100644 index 000000000000..84a7d28208b2 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Distribution.php @@ -0,0 +1,256 @@ +grafeas.v1.Distribution + */ +class Distribution extends \Google\Protobuf\Internal\Message +{ + /** + * The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) + * denoting the package manager version distributing a package. + * + * Generated from protobuf field string cpe_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $cpe_uri = ''; + /** + * The CPU architecture for which packages in this distribution channel were + * built. + * + * Generated from protobuf field .grafeas.v1.Architecture architecture = 2; + */ + protected $architecture = 0; + /** + * The latest available version of this package in this distribution channel. + * + * Generated from protobuf field .grafeas.v1.Version latest_version = 3; + */ + protected $latest_version = null; + /** + * A freeform string denoting the maintainer of this package. + * + * Generated from protobuf field string maintainer = 4; + */ + protected $maintainer = ''; + /** + * The distribution channel-specific homepage for this package. + * + * Generated from protobuf field string url = 5; + */ + protected $url = ''; + /** + * The distribution channel-specific description of this package. + * + * Generated from protobuf field string description = 6; + */ + protected $description = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $cpe_uri + * The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) + * denoting the package manager version distributing a package. + * @type int $architecture + * The CPU architecture for which packages in this distribution channel were + * built. + * @type \Grafeas\V1\Version $latest_version + * The latest available version of this package in this distribution channel. + * @type string $maintainer + * A freeform string denoting the maintainer of this package. + * @type string $url + * The distribution channel-specific homepage for this package. + * @type string $description + * The distribution channel-specific description of this package. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Package::initOnce(); + parent::__construct($data); + } + + /** + * The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) + * denoting the package manager version distributing a package. + * + * Generated from protobuf field string cpe_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getCpeUri() + { + return $this->cpe_uri; + } + + /** + * The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) + * denoting the package manager version distributing a package. + * + * Generated from protobuf field string cpe_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setCpeUri($var) + { + GPBUtil::checkString($var, True); + $this->cpe_uri = $var; + + return $this; + } + + /** + * The CPU architecture for which packages in this distribution channel were + * built. + * + * Generated from protobuf field .grafeas.v1.Architecture architecture = 2; + * @return int + */ + public function getArchitecture() + { + return $this->architecture; + } + + /** + * The CPU architecture for which packages in this distribution channel were + * built. + * + * Generated from protobuf field .grafeas.v1.Architecture architecture = 2; + * @param int $var + * @return $this + */ + public function setArchitecture($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\Architecture::class); + $this->architecture = $var; + + return $this; + } + + /** + * The latest available version of this package in this distribution channel. + * + * Generated from protobuf field .grafeas.v1.Version latest_version = 3; + * @return \Grafeas\V1\Version|null + */ + public function getLatestVersion() + { + return $this->latest_version; + } + + public function hasLatestVersion() + { + return isset($this->latest_version); + } + + public function clearLatestVersion() + { + unset($this->latest_version); + } + + /** + * The latest available version of this package in this distribution channel. + * + * Generated from protobuf field .grafeas.v1.Version latest_version = 3; + * @param \Grafeas\V1\Version $var + * @return $this + */ + public function setLatestVersion($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\Version::class); + $this->latest_version = $var; + + return $this; + } + + /** + * A freeform string denoting the maintainer of this package. + * + * Generated from protobuf field string maintainer = 4; + * @return string + */ + public function getMaintainer() + { + return $this->maintainer; + } + + /** + * A freeform string denoting the maintainer of this package. + * + * Generated from protobuf field string maintainer = 4; + * @param string $var + * @return $this + */ + public function setMaintainer($var) + { + GPBUtil::checkString($var, True); + $this->maintainer = $var; + + return $this; + } + + /** + * The distribution channel-specific homepage for this package. + * + * Generated from protobuf field string url = 5; + * @return string + */ + public function getUrl() + { + return $this->url; + } + + /** + * The distribution channel-specific homepage for this package. + * + * Generated from protobuf field string url = 5; + * @param string $var + * @return $this + */ + public function setUrl($var) + { + GPBUtil::checkString($var, True); + $this->url = $var; + + return $this; + } + + /** + * The distribution channel-specific description of this package. + * + * Generated from protobuf field string description = 6; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * The distribution channel-specific description of this package. + * + * Generated from protobuf field string description = 6; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Envelope.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Envelope.php new file mode 100644 index 000000000000..17bcc1346ae5 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Envelope.php @@ -0,0 +1,116 @@ +grafeas.v1.Envelope + */ +class Envelope extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field bytes payload = 1; + */ + protected $payload = ''; + /** + * Generated from protobuf field string payload_type = 2; + */ + protected $payload_type = ''; + /** + * Generated from protobuf field repeated .grafeas.v1.EnvelopeSignature signatures = 3; + */ + private $signatures; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $payload + * @type string $payload_type + * @type array<\Grafeas\V1\EnvelopeSignature>|\Google\Protobuf\Internal\RepeatedField $signatures + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field bytes payload = 1; + * @return string + */ + public function getPayload() + { + return $this->payload; + } + + /** + * Generated from protobuf field bytes payload = 1; + * @param string $var + * @return $this + */ + public function setPayload($var) + { + GPBUtil::checkString($var, False); + $this->payload = $var; + + return $this; + } + + /** + * Generated from protobuf field string payload_type = 2; + * @return string + */ + public function getPayloadType() + { + return $this->payload_type; + } + + /** + * Generated from protobuf field string payload_type = 2; + * @param string $var + * @return $this + */ + public function setPayloadType($var) + { + GPBUtil::checkString($var, True); + $this->payload_type = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .grafeas.v1.EnvelopeSignature signatures = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSignatures() + { + return $this->signatures; + } + + /** + * Generated from protobuf field repeated .grafeas.v1.EnvelopeSignature signatures = 3; + * @param array<\Grafeas\V1\EnvelopeSignature>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSignatures($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\EnvelopeSignature::class); + $this->signatures = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/EnvelopeSignature.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/EnvelopeSignature.php new file mode 100644 index 000000000000..61ebdc60fbcf --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/EnvelopeSignature.php @@ -0,0 +1,85 @@ +grafeas.v1.EnvelopeSignature + */ +class EnvelopeSignature extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field bytes sig = 1; + */ + protected $sig = ''; + /** + * Generated from protobuf field string keyid = 2; + */ + protected $keyid = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $sig + * @type string $keyid + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field bytes sig = 1; + * @return string + */ + public function getSig() + { + return $this->sig; + } + + /** + * Generated from protobuf field bytes sig = 1; + * @param string $var + * @return $this + */ + public function setSig($var) + { + GPBUtil::checkString($var, False); + $this->sig = $var; + + return $this; + } + + /** + * Generated from protobuf field string keyid = 2; + * @return string + */ + public function getKeyid() + { + return $this->keyid; + } + + /** + * Generated from protobuf field string keyid = 2; + * @param string $var + * @return $this + */ + public function setKeyid($var) + { + GPBUtil::checkString($var, True); + $this->keyid = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ExploitPredictionScoringSystem.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ExploitPredictionScoringSystem.php new file mode 100644 index 000000000000..f8d27a403d58 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ExploitPredictionScoringSystem.php @@ -0,0 +1,107 @@ +grafeas.v1.ExploitPredictionScoringSystem + */ +class ExploitPredictionScoringSystem extends \Google\Protobuf\Internal\Message +{ + /** + * The percentile of the current score, the proportion of all scored + * vulnerabilities with the same or a lower EPSS score + * + * Generated from protobuf field double percentile = 1; + */ + protected $percentile = 0.0; + /** + * The EPSS score representing the probability [0-1] of exploitation in the + * wild in the next 30 days + * + * Generated from protobuf field double score = 2; + */ + protected $score = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $percentile + * The percentile of the current score, the proportion of all scored + * vulnerabilities with the same or a lower EPSS score + * @type float $score + * The EPSS score representing the probability [0-1] of exploitation in the + * wild in the next 30 days + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Risk::initOnce(); + parent::__construct($data); + } + + /** + * The percentile of the current score, the proportion of all scored + * vulnerabilities with the same or a lower EPSS score + * + * Generated from protobuf field double percentile = 1; + * @return float + */ + public function getPercentile() + { + return $this->percentile; + } + + /** + * The percentile of the current score, the proportion of all scored + * vulnerabilities with the same or a lower EPSS score + * + * Generated from protobuf field double percentile = 1; + * @param float $var + * @return $this + */ + public function setPercentile($var) + { + GPBUtil::checkDouble($var); + $this->percentile = $var; + + return $this; + } + + /** + * The EPSS score representing the probability [0-1] of exploitation in the + * wild in the next 30 days + * + * Generated from protobuf field double score = 2; + * @return float + */ + public function getScore() + { + return $this->score; + } + + /** + * The EPSS score representing the probability [0-1] of exploitation in the + * wild in the next 30 days + * + * Generated from protobuf field double score = 2; + * @param float $var + * @return $this + */ + public function setScore($var) + { + GPBUtil::checkDouble($var); + $this->score = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/FileHashes.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/FileHashes.php new file mode 100644 index 000000000000..a24ab1da8401 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/FileHashes.php @@ -0,0 +1,68 @@ +grafeas.v1.FileHashes + */ +class FileHashes extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Collection of file hashes. + * + * Generated from protobuf field repeated .grafeas.v1.Hash file_hash = 1; + */ + private $file_hash; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Grafeas\V1\Hash>|\Google\Protobuf\Internal\RepeatedField $file_hash + * Required. Collection of file hashes. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Provenance::initOnce(); + parent::__construct($data); + } + + /** + * Required. Collection of file hashes. + * + * Generated from protobuf field repeated .grafeas.v1.Hash file_hash = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getFileHash() + { + return $this->file_hash; + } + + /** + * Required. Collection of file hashes. + * + * Generated from protobuf field repeated .grafeas.v1.Hash file_hash = 1; + * @param array<\Grafeas\V1\Hash>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setFileHash($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Hash::class); + $this->file_hash = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/FileLocation.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/FileLocation.php new file mode 100644 index 000000000000..d56fd4390f7a --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/FileLocation.php @@ -0,0 +1,119 @@ +grafeas.v1.FileLocation + */ +class FileLocation extends \Google\Protobuf\Internal\Message +{ + /** + * For jars that are contained inside .war files, this filepath + * can indicate the path to war file combined with the path to jar file. + * + * Generated from protobuf field string file_path = 1; + */ + protected $file_path = ''; + /** + * Each package found in a file should have its own layer metadata (that is, + * information from the origin layer of the package). + * + * Generated from protobuf field .grafeas.v1.LayerDetails layer_details = 2; + */ + protected $layer_details = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $file_path + * For jars that are contained inside .war files, this filepath + * can indicate the path to war file combined with the path to jar file. + * @type \Grafeas\V1\LayerDetails $layer_details + * Each package found in a file should have its own layer metadata (that is, + * information from the origin layer of the package). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * For jars that are contained inside .war files, this filepath + * can indicate the path to war file combined with the path to jar file. + * + * Generated from protobuf field string file_path = 1; + * @return string + */ + public function getFilePath() + { + return $this->file_path; + } + + /** + * For jars that are contained inside .war files, this filepath + * can indicate the path to war file combined with the path to jar file. + * + * Generated from protobuf field string file_path = 1; + * @param string $var + * @return $this + */ + public function setFilePath($var) + { + GPBUtil::checkString($var, True); + $this->file_path = $var; + + return $this; + } + + /** + * Each package found in a file should have its own layer metadata (that is, + * information from the origin layer of the package). + * + * Generated from protobuf field .grafeas.v1.LayerDetails layer_details = 2; + * @return \Grafeas\V1\LayerDetails|null + */ + public function getLayerDetails() + { + return $this->layer_details; + } + + public function hasLayerDetails() + { + return isset($this->layer_details); + } + + public function clearLayerDetails() + { + unset($this->layer_details); + } + + /** + * Each package found in a file should have its own layer metadata (that is, + * information from the origin layer of the package). + * + * Generated from protobuf field .grafeas.v1.LayerDetails layer_details = 2; + * @param \Grafeas\V1\LayerDetails $var + * @return $this + */ + public function setLayerDetails($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\LayerDetails::class); + $this->layer_details = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Fingerprint.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Fingerprint.php new file mode 100644 index 000000000000..7191d7383ef5 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Fingerprint.php @@ -0,0 +1,151 @@ +grafeas.v1.Fingerprint + */ +class Fingerprint extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The layer ID of the final layer in the Docker image's v1 + * representation. + * + * Generated from protobuf field string v1_name = 1; + */ + protected $v1_name = ''; + /** + * Required. The ordered list of v2 blobs that represent a given image. + * + * Generated from protobuf field repeated string v2_blob = 2; + */ + private $v2_blob; + /** + * Output only. The name of the image's v2 blobs computed via: + * [bottom] := v2_blob[bottom] + * [N] := sha256(v2_blob[N] + " " + v2_name[N+1]) + * Only the name of the final blob is kept. + * + * Generated from protobuf field string v2_name = 3; + */ + protected $v2_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $v1_name + * Required. The layer ID of the final layer in the Docker image's v1 + * representation. + * @type array|\Google\Protobuf\Internal\RepeatedField $v2_blob + * Required. The ordered list of v2 blobs that represent a given image. + * @type string $v2_name + * Output only. The name of the image's v2 blobs computed via: + * [bottom] := v2_blob[bottom] + * [N] := sha256(v2_blob[N] + " " + v2_name[N+1]) + * Only the name of the final blob is kept. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Image::initOnce(); + parent::__construct($data); + } + + /** + * Required. The layer ID of the final layer in the Docker image's v1 + * representation. + * + * Generated from protobuf field string v1_name = 1; + * @return string + */ + public function getV1Name() + { + return $this->v1_name; + } + + /** + * Required. The layer ID of the final layer in the Docker image's v1 + * representation. + * + * Generated from protobuf field string v1_name = 1; + * @param string $var + * @return $this + */ + public function setV1Name($var) + { + GPBUtil::checkString($var, True); + $this->v1_name = $var; + + return $this; + } + + /** + * Required. The ordered list of v2 blobs that represent a given image. + * + * Generated from protobuf field repeated string v2_blob = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getV2Blob() + { + return $this->v2_blob; + } + + /** + * Required. The ordered list of v2 blobs that represent a given image. + * + * Generated from protobuf field repeated string v2_blob = 2; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setV2Blob($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->v2_blob = $arr; + + return $this; + } + + /** + * Output only. The name of the image's v2 blobs computed via: + * [bottom] := v2_blob[bottom] + * [N] := sha256(v2_blob[N] + " " + v2_name[N+1]) + * Only the name of the final blob is kept. + * + * Generated from protobuf field string v2_name = 3; + * @return string + */ + public function getV2Name() + { + return $this->v2_name; + } + + /** + * Output only. The name of the image's v2 blobs computed via: + * [bottom] := v2_blob[bottom] + * [N] := sha256(v2_blob[N] + " " + v2_name[N+1]) + * Only the name of the final blob is kept. + * + * Generated from protobuf field string v2_name = 3; + * @param string $var + * @return $this + */ + public function setV2Name($var) + { + GPBUtil::checkString($var, True); + $this->v2_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GerritSourceContext.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GerritSourceContext.php new file mode 100644 index 000000000000..616fb62984ad --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GerritSourceContext.php @@ -0,0 +1,184 @@ +grafeas.v1.GerritSourceContext + */ +class GerritSourceContext extends \Google\Protobuf\Internal\Message +{ + /** + * The URI of a running Gerrit instance. + * + * Generated from protobuf field string host_uri = 1; + */ + protected $host_uri = ''; + /** + * The full project name within the host. Projects may be nested, so + * "project/subproject" is a valid project name. The "repo name" is the + * hostURI/project. + * + * Generated from protobuf field string gerrit_project = 2; + */ + protected $gerrit_project = ''; + protected $revision; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $host_uri + * The URI of a running Gerrit instance. + * @type string $gerrit_project + * The full project name within the host. Projects may be nested, so + * "project/subproject" is a valid project name. The "repo name" is the + * hostURI/project. + * @type string $revision_id + * A revision (commit) ID. + * @type \Grafeas\V1\AliasContext $alias_context + * An alias, which may be a branch or tag. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Provenance::initOnce(); + parent::__construct($data); + } + + /** + * The URI of a running Gerrit instance. + * + * Generated from protobuf field string host_uri = 1; + * @return string + */ + public function getHostUri() + { + return $this->host_uri; + } + + /** + * The URI of a running Gerrit instance. + * + * Generated from protobuf field string host_uri = 1; + * @param string $var + * @return $this + */ + public function setHostUri($var) + { + GPBUtil::checkString($var, True); + $this->host_uri = $var; + + return $this; + } + + /** + * The full project name within the host. Projects may be nested, so + * "project/subproject" is a valid project name. The "repo name" is the + * hostURI/project. + * + * Generated from protobuf field string gerrit_project = 2; + * @return string + */ + public function getGerritProject() + { + return $this->gerrit_project; + } + + /** + * The full project name within the host. Projects may be nested, so + * "project/subproject" is a valid project name. The "repo name" is the + * hostURI/project. + * + * Generated from protobuf field string gerrit_project = 2; + * @param string $var + * @return $this + */ + public function setGerritProject($var) + { + GPBUtil::checkString($var, True); + $this->gerrit_project = $var; + + return $this; + } + + /** + * A revision (commit) ID. + * + * Generated from protobuf field string revision_id = 3; + * @return string + */ + public function getRevisionId() + { + return $this->readOneof(3); + } + + public function hasRevisionId() + { + return $this->hasOneof(3); + } + + /** + * A revision (commit) ID. + * + * Generated from protobuf field string revision_id = 3; + * @param string $var + * @return $this + */ + public function setRevisionId($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * An alias, which may be a branch or tag. + * + * Generated from protobuf field .grafeas.v1.AliasContext alias_context = 4; + * @return \Grafeas\V1\AliasContext|null + */ + public function getAliasContext() + { + return $this->readOneof(4); + } + + public function hasAliasContext() + { + return $this->hasOneof(4); + } + + /** + * An alias, which may be a branch or tag. + * + * Generated from protobuf field .grafeas.v1.AliasContext alias_context = 4; + * @param \Grafeas\V1\AliasContext $var + * @return $this + */ + public function setAliasContext($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\AliasContext::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getRevision() + { + return $this->whichOneof("revision"); + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GetNoteRequest.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GetNoteRequest.php new file mode 100644 index 000000000000..8f653431ea0e --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GetNoteRequest.php @@ -0,0 +1,86 @@ +grafeas.v1.GetNoteRequest + */ +class GetNoteRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the note in the form of + * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name The name of the note in the form of + * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. Please see + * {@see GrafeasClient::noteName()} for help formatting this field. + * + * @return \Grafeas\V1\GetNoteRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the note in the form of + * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); + parent::__construct($data); + } + + /** + * The name of the note in the form of + * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the note in the form of + * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GetOccurrenceNoteRequest.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GetOccurrenceNoteRequest.php new file mode 100644 index 000000000000..805395e9fb91 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GetOccurrenceNoteRequest.php @@ -0,0 +1,86 @@ +grafeas.v1.GetOccurrenceNoteRequest + */ +class GetOccurrenceNoteRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the occurrence in the form of + * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name The name of the occurrence in the form of + * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. Please see + * {@see GrafeasClient::occurrenceName()} for help formatting this field. + * + * @return \Grafeas\V1\GetOccurrenceNoteRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the occurrence in the form of + * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); + parent::__construct($data); + } + + /** + * The name of the occurrence in the form of + * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the occurrence in the form of + * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GetOccurrenceRequest.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GetOccurrenceRequest.php new file mode 100644 index 000000000000..4e2ef6f3fa04 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GetOccurrenceRequest.php @@ -0,0 +1,86 @@ +grafeas.v1.GetOccurrenceRequest + */ +class GetOccurrenceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the occurrence in the form of + * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name The name of the occurrence in the form of + * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. Please see + * {@see GrafeasClient::occurrenceName()} for help formatting this field. + * + * @return \Grafeas\V1\GetOccurrenceRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the occurrence in the form of + * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); + parent::__construct($data); + } + + /** + * The name of the occurrence in the form of + * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the occurrence in the form of + * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GitSourceContext.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GitSourceContext.php new file mode 100644 index 000000000000..6eb31ad84fe2 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GitSourceContext.php @@ -0,0 +1,102 @@ +grafeas.v1.GitSourceContext + */ +class GitSourceContext extends \Google\Protobuf\Internal\Message +{ + /** + * Git repository URL. + * + * Generated from protobuf field string url = 1; + */ + protected $url = ''; + /** + * Git commit hash. + * + * Generated from protobuf field string revision_id = 2; + */ + protected $revision_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $url + * Git repository URL. + * @type string $revision_id + * Git commit hash. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Provenance::initOnce(); + parent::__construct($data); + } + + /** + * Git repository URL. + * + * Generated from protobuf field string url = 1; + * @return string + */ + public function getUrl() + { + return $this->url; + } + + /** + * Git repository URL. + * + * Generated from protobuf field string url = 1; + * @param string $var + * @return $this + */ + public function setUrl($var) + { + GPBUtil::checkString($var, True); + $this->url = $var; + + return $this; + } + + /** + * Git commit hash. + * + * Generated from protobuf field string revision_id = 2; + * @return string + */ + public function getRevisionId() + { + return $this->revision_id; + } + + /** + * Git commit hash. + * + * Generated from protobuf field string revision_id = 2; + * @param string $var + * @return $this + */ + public function setRevisionId($var) + { + GPBUtil::checkString($var, True); + $this->revision_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Hash.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Hash.php new file mode 100644 index 000000000000..a6f6d1b8ae02 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Hash.php @@ -0,0 +1,101 @@ +grafeas.v1.Hash + */ +class Hash extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The type of hash that was performed, e.g. "SHA-256". + * + * Generated from protobuf field string type = 1; + */ + protected $type = ''; + /** + * Required. The hash value. + * + * Generated from protobuf field bytes value = 2; + */ + protected $value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $type + * Required. The type of hash that was performed, e.g. "SHA-256". + * @type string $value + * Required. The hash value. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Provenance::initOnce(); + parent::__construct($data); + } + + /** + * Required. The type of hash that was performed, e.g. "SHA-256". + * + * Generated from protobuf field string type = 1; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * Required. The type of hash that was performed, e.g. "SHA-256". + * + * Generated from protobuf field string type = 1; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * Required. The hash value. + * + * Generated from protobuf field bytes value = 2; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * Required. The hash value. + * + * Generated from protobuf field bytes value = 2; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, False); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ImageNote.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ImageNote.php new file mode 100644 index 000000000000..661c99087167 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ImageNote.php @@ -0,0 +1,119 @@ + + * Or an equivalent reference, e.g., a tag of the resource_url. + * + * Generated from protobuf message grafeas.v1.ImageNote + */ +class ImageNote extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Immutable. The resource_url for the resource representing the + * basis of associated occurrence images. + * + * Generated from protobuf field string resource_url = 1; + */ + protected $resource_url = ''; + /** + * Required. Immutable. The fingerprint of the base image. + * + * Generated from protobuf field .grafeas.v1.Fingerprint fingerprint = 2; + */ + protected $fingerprint = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $resource_url + * Required. Immutable. The resource_url for the resource representing the + * basis of associated occurrence images. + * @type \Grafeas\V1\Fingerprint $fingerprint + * Required. Immutable. The fingerprint of the base image. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Image::initOnce(); + parent::__construct($data); + } + + /** + * Required. Immutable. The resource_url for the resource representing the + * basis of associated occurrence images. + * + * Generated from protobuf field string resource_url = 1; + * @return string + */ + public function getResourceUrl() + { + return $this->resource_url; + } + + /** + * Required. Immutable. The resource_url for the resource representing the + * basis of associated occurrence images. + * + * Generated from protobuf field string resource_url = 1; + * @param string $var + * @return $this + */ + public function setResourceUrl($var) + { + GPBUtil::checkString($var, True); + $this->resource_url = $var; + + return $this; + } + + /** + * Required. Immutable. The fingerprint of the base image. + * + * Generated from protobuf field .grafeas.v1.Fingerprint fingerprint = 2; + * @return \Grafeas\V1\Fingerprint|null + */ + public function getFingerprint() + { + return $this->fingerprint; + } + + public function hasFingerprint() + { + return isset($this->fingerprint); + } + + public function clearFingerprint() + { + unset($this->fingerprint); + } + + /** + * Required. Immutable. The fingerprint of the base image. + * + * Generated from protobuf field .grafeas.v1.Fingerprint fingerprint = 2; + * @param \Grafeas\V1\Fingerprint $var + * @return $this + */ + public function setFingerprint($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\Fingerprint::class); + $this->fingerprint = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ImageOccurrence.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ImageOccurrence.php new file mode 100644 index 000000000000..e6c64fc037e3 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ImageOccurrence.php @@ -0,0 +1,197 @@ +. + * + * Generated from protobuf message grafeas.v1.ImageOccurrence + */ +class ImageOccurrence extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The fingerprint of the derived image. + * + * Generated from protobuf field .grafeas.v1.Fingerprint fingerprint = 1; + */ + protected $fingerprint = null; + /** + * Output only. The number of layers by which this image differs from the + * associated image basis. + * + * Generated from protobuf field int32 distance = 2; + */ + protected $distance = 0; + /** + * This contains layer-specific metadata, if populated it has length + * "distance" and is ordered with [distance] being the layer immediately + * following the base image and [1] being the final layer. + * + * Generated from protobuf field repeated .grafeas.v1.Layer layer_info = 3; + */ + private $layer_info; + /** + * Output only. This contains the base image URL for the derived image + * occurrence. + * + * Generated from protobuf field string base_resource_url = 4; + */ + protected $base_resource_url = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Grafeas\V1\Fingerprint $fingerprint + * Required. The fingerprint of the derived image. + * @type int $distance + * Output only. The number of layers by which this image differs from the + * associated image basis. + * @type array<\Grafeas\V1\Layer>|\Google\Protobuf\Internal\RepeatedField $layer_info + * This contains layer-specific metadata, if populated it has length + * "distance" and is ordered with [distance] being the layer immediately + * following the base image and [1] being the final layer. + * @type string $base_resource_url + * Output only. This contains the base image URL for the derived image + * occurrence. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Image::initOnce(); + parent::__construct($data); + } + + /** + * Required. The fingerprint of the derived image. + * + * Generated from protobuf field .grafeas.v1.Fingerprint fingerprint = 1; + * @return \Grafeas\V1\Fingerprint|null + */ + public function getFingerprint() + { + return $this->fingerprint; + } + + public function hasFingerprint() + { + return isset($this->fingerprint); + } + + public function clearFingerprint() + { + unset($this->fingerprint); + } + + /** + * Required. The fingerprint of the derived image. + * + * Generated from protobuf field .grafeas.v1.Fingerprint fingerprint = 1; + * @param \Grafeas\V1\Fingerprint $var + * @return $this + */ + public function setFingerprint($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\Fingerprint::class); + $this->fingerprint = $var; + + return $this; + } + + /** + * Output only. The number of layers by which this image differs from the + * associated image basis. + * + * Generated from protobuf field int32 distance = 2; + * @return int + */ + public function getDistance() + { + return $this->distance; + } + + /** + * Output only. The number of layers by which this image differs from the + * associated image basis. + * + * Generated from protobuf field int32 distance = 2; + * @param int $var + * @return $this + */ + public function setDistance($var) + { + GPBUtil::checkInt32($var); + $this->distance = $var; + + return $this; + } + + /** + * This contains layer-specific metadata, if populated it has length + * "distance" and is ordered with [distance] being the layer immediately + * following the base image and [1] being the final layer. + * + * Generated from protobuf field repeated .grafeas.v1.Layer layer_info = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getLayerInfo() + { + return $this->layer_info; + } + + /** + * This contains layer-specific metadata, if populated it has length + * "distance" and is ordered with [distance] being the layer immediately + * following the base image and [1] being the final layer. + * + * Generated from protobuf field repeated .grafeas.v1.Layer layer_info = 3; + * @param array<\Grafeas\V1\Layer>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setLayerInfo($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Layer::class); + $this->layer_info = $arr; + + return $this; + } + + /** + * Output only. This contains the base image URL for the derived image + * occurrence. + * + * Generated from protobuf field string base_resource_url = 4; + * @return string + */ + public function getBaseResourceUrl() + { + return $this->base_resource_url; + } + + /** + * Output only. This contains the base image URL for the derived image + * occurrence. + * + * Generated from protobuf field string base_resource_url = 4; + * @param string $var + * @return $this + */ + public function setBaseResourceUrl($var) + { + GPBUtil::checkString($var, True); + $this->base_resource_url = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoProvenance.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoProvenance.php new file mode 100644 index 000000000000..74cc83a629ce --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoProvenance.php @@ -0,0 +1,214 @@ +grafeas.v1.InTotoProvenance + */ +class InTotoProvenance extends \Google\Protobuf\Internal\Message +{ + /** + * required + * + * Generated from protobuf field .grafeas.v1.BuilderConfig builder_config = 1; + */ + protected $builder_config = null; + /** + * Identifies the configuration used for the build. + * When combined with materials, this SHOULD fully describe the build, + * such that re-running this recipe results in bit-for-bit identical output + * (if the build is reproducible). + * + * Generated from protobuf field .grafeas.v1.Recipe recipe = 2; + */ + protected $recipe = null; + /** + * Generated from protobuf field .grafeas.v1.Metadata metadata = 3; + */ + protected $metadata = null; + /** + * The collection of artifacts that influenced the build including sources, + * dependencies, build tools, base images, and so on. This is considered to be + * incomplete unless metadata.completeness.materials is true. Unset or null is + * equivalent to empty. + * + * Generated from protobuf field repeated string materials = 4; + */ + private $materials; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Grafeas\V1\BuilderConfig $builder_config + * required + * @type \Grafeas\V1\Recipe $recipe + * Identifies the configuration used for the build. + * When combined with materials, this SHOULD fully describe the build, + * such that re-running this recipe results in bit-for-bit identical output + * (if the build is reproducible). + * @type \Grafeas\V1\Metadata $metadata + * @type array|\Google\Protobuf\Internal\RepeatedField $materials + * The collection of artifacts that influenced the build including sources, + * dependencies, build tools, base images, and so on. This is considered to be + * incomplete unless metadata.completeness.materials is true. Unset or null is + * equivalent to empty. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\IntotoProvenance::initOnce(); + parent::__construct($data); + } + + /** + * required + * + * Generated from protobuf field .grafeas.v1.BuilderConfig builder_config = 1; + * @return \Grafeas\V1\BuilderConfig|null + */ + public function getBuilderConfig() + { + return $this->builder_config; + } + + public function hasBuilderConfig() + { + return isset($this->builder_config); + } + + public function clearBuilderConfig() + { + unset($this->builder_config); + } + + /** + * required + * + * Generated from protobuf field .grafeas.v1.BuilderConfig builder_config = 1; + * @param \Grafeas\V1\BuilderConfig $var + * @return $this + */ + public function setBuilderConfig($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\BuilderConfig::class); + $this->builder_config = $var; + + return $this; + } + + /** + * Identifies the configuration used for the build. + * When combined with materials, this SHOULD fully describe the build, + * such that re-running this recipe results in bit-for-bit identical output + * (if the build is reproducible). + * + * Generated from protobuf field .grafeas.v1.Recipe recipe = 2; + * @return \Grafeas\V1\Recipe|null + */ + public function getRecipe() + { + return $this->recipe; + } + + public function hasRecipe() + { + return isset($this->recipe); + } + + public function clearRecipe() + { + unset($this->recipe); + } + + /** + * Identifies the configuration used for the build. + * When combined with materials, this SHOULD fully describe the build, + * such that re-running this recipe results in bit-for-bit identical output + * (if the build is reproducible). + * + * Generated from protobuf field .grafeas.v1.Recipe recipe = 2; + * @param \Grafeas\V1\Recipe $var + * @return $this + */ + public function setRecipe($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\Recipe::class); + $this->recipe = $var; + + return $this; + } + + /** + * Generated from protobuf field .grafeas.v1.Metadata metadata = 3; + * @return \Grafeas\V1\Metadata|null + */ + public function getMetadata() + { + return $this->metadata; + } + + public function hasMetadata() + { + return isset($this->metadata); + } + + public function clearMetadata() + { + unset($this->metadata); + } + + /** + * Generated from protobuf field .grafeas.v1.Metadata metadata = 3; + * @param \Grafeas\V1\Metadata $var + * @return $this + */ + public function setMetadata($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\Metadata::class); + $this->metadata = $var; + + return $this; + } + + /** + * The collection of artifacts that influenced the build including sources, + * dependencies, build tools, base images, and so on. This is considered to be + * incomplete unless metadata.completeness.materials is true. Unset or null is + * equivalent to empty. + * + * Generated from protobuf field repeated string materials = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMaterials() + { + return $this->materials; + } + + /** + * The collection of artifacts that influenced the build including sources, + * dependencies, build tools, base images, and so on. This is considered to be + * incomplete unless metadata.completeness.materials is true. Unset or null is + * equivalent to empty. + * + * Generated from protobuf field repeated string materials = 4; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMaterials($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->materials = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1.php new file mode 100644 index 000000000000..b29b231a5bd5 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1.php @@ -0,0 +1,160 @@ +grafeas.v1.InTotoSlsaProvenanceV1 + */ +class InTotoSlsaProvenanceV1 extends \Google\Protobuf\Internal\Message +{ + /** + * InToto spec defined at + * https://github.com/in-toto/attestation/tree/main/spec#statement + * + * Generated from protobuf field string type = 1 [json_name = "_type"]; + */ + protected $type = ''; + /** + * Generated from protobuf field repeated .grafeas.v1.Subject subject = 2; + */ + private $subject; + /** + * Generated from protobuf field string predicate_type = 3; + */ + protected $predicate_type = ''; + /** + * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1.SlsaProvenanceV1 predicate = 4; + */ + protected $predicate = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $type + * InToto spec defined at + * https://github.com/in-toto/attestation/tree/main/spec#statement + * @type array<\Grafeas\V1\Subject>|\Google\Protobuf\Internal\RepeatedField $subject + * @type string $predicate_type + * @type \Grafeas\V1\InTotoSlsaProvenanceV1\SlsaProvenanceV1 $predicate + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\IntotoStatement::initOnce(); + parent::__construct($data); + } + + /** + * InToto spec defined at + * https://github.com/in-toto/attestation/tree/main/spec#statement + * + * Generated from protobuf field string type = 1 [json_name = "_type"]; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * InToto spec defined at + * https://github.com/in-toto/attestation/tree/main/spec#statement + * + * Generated from protobuf field string type = 1 [json_name = "_type"]; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .grafeas.v1.Subject subject = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSubject() + { + return $this->subject; + } + + /** + * Generated from protobuf field repeated .grafeas.v1.Subject subject = 2; + * @param array<\Grafeas\V1\Subject>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSubject($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Subject::class); + $this->subject = $arr; + + return $this; + } + + /** + * Generated from protobuf field string predicate_type = 3; + * @return string + */ + public function getPredicateType() + { + return $this->predicate_type; + } + + /** + * Generated from protobuf field string predicate_type = 3; + * @param string $var + * @return $this + */ + public function setPredicateType($var) + { + GPBUtil::checkString($var, True); + $this->predicate_type = $var; + + return $this; + } + + /** + * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1.SlsaProvenanceV1 predicate = 4; + * @return \Grafeas\V1\InTotoSlsaProvenanceV1\SlsaProvenanceV1|null + */ + public function getPredicate() + { + return $this->predicate; + } + + public function hasPredicate() + { + return isset($this->predicate); + } + + public function clearPredicate() + { + unset($this->predicate); + } + + /** + * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1.SlsaProvenanceV1 predicate = 4; + * @param \Grafeas\V1\InTotoSlsaProvenanceV1\SlsaProvenanceV1 $var + * @return $this + */ + public function setPredicate($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\InTotoSlsaProvenanceV1\SlsaProvenanceV1::class); + $this->predicate = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/BuildDefinition.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/BuildDefinition.php new file mode 100644 index 000000000000..ec7740b90bf2 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/BuildDefinition.php @@ -0,0 +1,162 @@ +grafeas.v1.InTotoSlsaProvenanceV1.BuildDefinition + */ +class BuildDefinition extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string build_type = 1; + */ + protected $build_type = ''; + /** + * Generated from protobuf field .google.protobuf.Struct external_parameters = 2; + */ + protected $external_parameters = null; + /** + * Generated from protobuf field .google.protobuf.Struct internal_parameters = 3; + */ + protected $internal_parameters = null; + /** + * Generated from protobuf field repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor resolved_dependencies = 4; + */ + private $resolved_dependencies; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $build_type + * @type \Google\Protobuf\Struct $external_parameters + * @type \Google\Protobuf\Struct $internal_parameters + * @type array<\Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor>|\Google\Protobuf\Internal\RepeatedField $resolved_dependencies + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\IntotoStatement::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string build_type = 1; + * @return string + */ + public function getBuildType() + { + return $this->build_type; + } + + /** + * Generated from protobuf field string build_type = 1; + * @param string $var + * @return $this + */ + public function setBuildType($var) + { + GPBUtil::checkString($var, True); + $this->build_type = $var; + + return $this; + } + + /** + * Generated from protobuf field .google.protobuf.Struct external_parameters = 2; + * @return \Google\Protobuf\Struct|null + */ + public function getExternalParameters() + { + return $this->external_parameters; + } + + public function hasExternalParameters() + { + return isset($this->external_parameters); + } + + public function clearExternalParameters() + { + unset($this->external_parameters); + } + + /** + * Generated from protobuf field .google.protobuf.Struct external_parameters = 2; + * @param \Google\Protobuf\Struct $var + * @return $this + */ + public function setExternalParameters($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); + $this->external_parameters = $var; + + return $this; + } + + /** + * Generated from protobuf field .google.protobuf.Struct internal_parameters = 3; + * @return \Google\Protobuf\Struct|null + */ + public function getInternalParameters() + { + return $this->internal_parameters; + } + + public function hasInternalParameters() + { + return isset($this->internal_parameters); + } + + public function clearInternalParameters() + { + unset($this->internal_parameters); + } + + /** + * Generated from protobuf field .google.protobuf.Struct internal_parameters = 3; + * @param \Google\Protobuf\Struct $var + * @return $this + */ + public function setInternalParameters($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); + $this->internal_parameters = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor resolved_dependencies = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getResolvedDependencies() + { + return $this->resolved_dependencies; + } + + /** + * Generated from protobuf field repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor resolved_dependencies = 4; + * @param array<\Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setResolvedDependencies($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor::class); + $this->resolved_dependencies = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(BuildDefinition::class, \Grafeas\V1\InTotoSlsaProvenanceV1_BuildDefinition::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/BuildMetadata.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/BuildMetadata.php new file mode 100644 index 000000000000..0ae282c633b5 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/BuildMetadata.php @@ -0,0 +1,135 @@ +grafeas.v1.InTotoSlsaProvenanceV1.BuildMetadata + */ +class BuildMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string invocation_id = 1; + */ + protected $invocation_id = ''; + /** + * Generated from protobuf field .google.protobuf.Timestamp started_on = 2; + */ + protected $started_on = null; + /** + * Generated from protobuf field .google.protobuf.Timestamp finished_on = 3; + */ + protected $finished_on = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $invocation_id + * @type \Google\Protobuf\Timestamp $started_on + * @type \Google\Protobuf\Timestamp $finished_on + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\IntotoStatement::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string invocation_id = 1; + * @return string + */ + public function getInvocationId() + { + return $this->invocation_id; + } + + /** + * Generated from protobuf field string invocation_id = 1; + * @param string $var + * @return $this + */ + public function setInvocationId($var) + { + GPBUtil::checkString($var, True); + $this->invocation_id = $var; + + return $this; + } + + /** + * Generated from protobuf field .google.protobuf.Timestamp started_on = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getStartedOn() + { + return $this->started_on; + } + + public function hasStartedOn() + { + return isset($this->started_on); + } + + public function clearStartedOn() + { + unset($this->started_on); + } + + /** + * Generated from protobuf field .google.protobuf.Timestamp started_on = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartedOn($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->started_on = $var; + + return $this; + } + + /** + * Generated from protobuf field .google.protobuf.Timestamp finished_on = 3; + * @return \Google\Protobuf\Timestamp|null + */ + public function getFinishedOn() + { + return $this->finished_on; + } + + public function hasFinishedOn() + { + return isset($this->finished_on); + } + + public function clearFinishedOn() + { + unset($this->finished_on); + } + + /** + * Generated from protobuf field .google.protobuf.Timestamp finished_on = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setFinishedOn($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->finished_on = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(BuildMetadata::class, \Grafeas\V1\InTotoSlsaProvenanceV1_BuildMetadata::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/ProvenanceBuilder.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/ProvenanceBuilder.php new file mode 100644 index 000000000000..7f713fb9b0e6 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/ProvenanceBuilder.php @@ -0,0 +1,115 @@ +grafeas.v1.InTotoSlsaProvenanceV1.ProvenanceBuilder + */ +class ProvenanceBuilder extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string id = 1; + */ + protected $id = ''; + /** + * Generated from protobuf field map version = 2; + */ + private $version; + /** + * Generated from protobuf field repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor builder_dependencies = 3; + */ + private $builder_dependencies; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * @type array|\Google\Protobuf\Internal\MapField $version + * @type array<\Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor>|\Google\Protobuf\Internal\RepeatedField $builder_dependencies + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\IntotoStatement::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string id = 1; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Generated from protobuf field string id = 1; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Generated from protobuf field map version = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getVersion() + { + return $this->version; + } + + /** + * Generated from protobuf field map version = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setVersion($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->version = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor builder_dependencies = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getBuilderDependencies() + { + return $this->builder_dependencies; + } + + /** + * Generated from protobuf field repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor builder_dependencies = 3; + * @param array<\Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setBuilderDependencies($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor::class); + $this->builder_dependencies = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ProvenanceBuilder::class, \Grafeas\V1\InTotoSlsaProvenanceV1_ProvenanceBuilder::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/ResourceDescriptor.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/ResourceDescriptor.php new file mode 100644 index 000000000000..2f5a9ebacdf5 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/ResourceDescriptor.php @@ -0,0 +1,223 @@ +grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor + */ +class ResourceDescriptor extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Generated from protobuf field string uri = 2; + */ + protected $uri = ''; + /** + * Generated from protobuf field map digest = 3; + */ + private $digest; + /** + * Generated from protobuf field bytes content = 4; + */ + protected $content = ''; + /** + * Generated from protobuf field string download_location = 5; + */ + protected $download_location = ''; + /** + * Generated from protobuf field string media_type = 6; + */ + protected $media_type = ''; + /** + * Generated from protobuf field map annotations = 7; + */ + private $annotations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * @type string $uri + * @type array|\Google\Protobuf\Internal\MapField $digest + * @type string $content + * @type string $download_location + * @type string $media_type + * @type array|\Google\Protobuf\Internal\MapField $annotations + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\IntotoStatement::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Generated from protobuf field string uri = 2; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * Generated from protobuf field string uri = 2; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + + /** + * Generated from protobuf field map digest = 3; + * @return \Google\Protobuf\Internal\MapField + */ + public function getDigest() + { + return $this->digest; + } + + /** + * Generated from protobuf field map digest = 3; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setDigest($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->digest = $arr; + + return $this; + } + + /** + * Generated from protobuf field bytes content = 4; + * @return string + */ + public function getContent() + { + return $this->content; + } + + /** + * Generated from protobuf field bytes content = 4; + * @param string $var + * @return $this + */ + public function setContent($var) + { + GPBUtil::checkString($var, False); + $this->content = $var; + + return $this; + } + + /** + * Generated from protobuf field string download_location = 5; + * @return string + */ + public function getDownloadLocation() + { + return $this->download_location; + } + + /** + * Generated from protobuf field string download_location = 5; + * @param string $var + * @return $this + */ + public function setDownloadLocation($var) + { + GPBUtil::checkString($var, True); + $this->download_location = $var; + + return $this; + } + + /** + * Generated from protobuf field string media_type = 6; + * @return string + */ + public function getMediaType() + { + return $this->media_type; + } + + /** + * Generated from protobuf field string media_type = 6; + * @param string $var + * @return $this + */ + public function setMediaType($var) + { + GPBUtil::checkString($var, True); + $this->media_type = $var; + + return $this; + } + + /** + * Generated from protobuf field map annotations = 7; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAnnotations() + { + return $this->annotations; + } + + /** + * Generated from protobuf field map annotations = 7; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAnnotations($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Value::class); + $this->annotations = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ResourceDescriptor::class, \Grafeas\V1\InTotoSlsaProvenanceV1_ResourceDescriptor::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/RunDetails.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/RunDetails.php new file mode 100644 index 000000000000..4bf240af3bf3 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/RunDetails.php @@ -0,0 +1,135 @@ +grafeas.v1.InTotoSlsaProvenanceV1.RunDetails + */ +class RunDetails extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1.ProvenanceBuilder builder = 1; + */ + protected $builder = null; + /** + * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1.BuildMetadata metadata = 2; + */ + protected $metadata = null; + /** + * Generated from protobuf field repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor byproducts = 3; + */ + private $byproducts; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Grafeas\V1\InTotoSlsaProvenanceV1\ProvenanceBuilder $builder + * @type \Grafeas\V1\InTotoSlsaProvenanceV1\BuildMetadata $metadata + * @type array<\Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor>|\Google\Protobuf\Internal\RepeatedField $byproducts + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\IntotoStatement::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1.ProvenanceBuilder builder = 1; + * @return \Grafeas\V1\InTotoSlsaProvenanceV1\ProvenanceBuilder|null + */ + public function getBuilder() + { + return $this->builder; + } + + public function hasBuilder() + { + return isset($this->builder); + } + + public function clearBuilder() + { + unset($this->builder); + } + + /** + * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1.ProvenanceBuilder builder = 1; + * @param \Grafeas\V1\InTotoSlsaProvenanceV1\ProvenanceBuilder $var + * @return $this + */ + public function setBuilder($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\InTotoSlsaProvenanceV1\ProvenanceBuilder::class); + $this->builder = $var; + + return $this; + } + + /** + * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1.BuildMetadata metadata = 2; + * @return \Grafeas\V1\InTotoSlsaProvenanceV1\BuildMetadata|null + */ + public function getMetadata() + { + return $this->metadata; + } + + public function hasMetadata() + { + return isset($this->metadata); + } + + public function clearMetadata() + { + unset($this->metadata); + } + + /** + * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1.BuildMetadata metadata = 2; + * @param \Grafeas\V1\InTotoSlsaProvenanceV1\BuildMetadata $var + * @return $this + */ + public function setMetadata($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\InTotoSlsaProvenanceV1\BuildMetadata::class); + $this->metadata = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor byproducts = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getByproducts() + { + return $this->byproducts; + } + + /** + * Generated from protobuf field repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor byproducts = 3; + * @param array<\Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setByproducts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor::class); + $this->byproducts = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(RunDetails::class, \Grafeas\V1\InTotoSlsaProvenanceV1_RunDetails::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/SlsaProvenanceV1.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/SlsaProvenanceV1.php new file mode 100644 index 000000000000..12c8f2ba7cef --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/SlsaProvenanceV1.php @@ -0,0 +1,112 @@ +grafeas.v1.InTotoSlsaProvenanceV1.SlsaProvenanceV1 + */ +class SlsaProvenanceV1 extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1.BuildDefinition build_definition = 1; + */ + protected $build_definition = null; + /** + * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1.RunDetails run_details = 2; + */ + protected $run_details = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Grafeas\V1\InTotoSlsaProvenanceV1\BuildDefinition $build_definition + * @type \Grafeas\V1\InTotoSlsaProvenanceV1\RunDetails $run_details + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\IntotoStatement::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1.BuildDefinition build_definition = 1; + * @return \Grafeas\V1\InTotoSlsaProvenanceV1\BuildDefinition|null + */ + public function getBuildDefinition() + { + return $this->build_definition; + } + + public function hasBuildDefinition() + { + return isset($this->build_definition); + } + + public function clearBuildDefinition() + { + unset($this->build_definition); + } + + /** + * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1.BuildDefinition build_definition = 1; + * @param \Grafeas\V1\InTotoSlsaProvenanceV1\BuildDefinition $var + * @return $this + */ + public function setBuildDefinition($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\InTotoSlsaProvenanceV1\BuildDefinition::class); + $this->build_definition = $var; + + return $this; + } + + /** + * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1.RunDetails run_details = 2; + * @return \Grafeas\V1\InTotoSlsaProvenanceV1\RunDetails|null + */ + public function getRunDetails() + { + return $this->run_details; + } + + public function hasRunDetails() + { + return isset($this->run_details); + } + + public function clearRunDetails() + { + unset($this->run_details); + } + + /** + * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1.RunDetails run_details = 2; + * @param \Grafeas\V1\InTotoSlsaProvenanceV1\RunDetails $var + * @return $this + */ + public function setRunDetails($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\InTotoSlsaProvenanceV1\RunDetails::class); + $this->run_details = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SlsaProvenanceV1::class, \Grafeas\V1\InTotoSlsaProvenanceV1_SlsaProvenanceV1::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoStatement.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoStatement.php new file mode 100644 index 000000000000..93a86b0dd503 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoStatement.php @@ -0,0 +1,224 @@ +grafeas.v1.InTotoStatement + */ +class InTotoStatement extends \Google\Protobuf\Internal\Message +{ + /** + * Always `https://in-toto.io/Statement/v0.1`. + * + * Generated from protobuf field string type = 1 [json_name = "_type"]; + */ + protected $type = ''; + /** + * Generated from protobuf field repeated .grafeas.v1.Subject subject = 2; + */ + private $subject; + /** + * `https://slsa.dev/provenance/v0.1` for SlsaProvenance. + * + * Generated from protobuf field string predicate_type = 3; + */ + protected $predicate_type = ''; + protected $predicate; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $type + * Always `https://in-toto.io/Statement/v0.1`. + * @type array<\Grafeas\V1\Subject>|\Google\Protobuf\Internal\RepeatedField $subject + * @type string $predicate_type + * `https://slsa.dev/provenance/v0.1` for SlsaProvenance. + * @type \Grafeas\V1\InTotoProvenance $provenance + * @type \Grafeas\V1\SlsaProvenance $slsa_provenance + * @type \Grafeas\V1\SlsaProvenanceZeroTwo $slsa_provenance_zero_two + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\IntotoStatement::initOnce(); + parent::__construct($data); + } + + /** + * Always `https://in-toto.io/Statement/v0.1`. + * + * Generated from protobuf field string type = 1 [json_name = "_type"]; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * Always `https://in-toto.io/Statement/v0.1`. + * + * Generated from protobuf field string type = 1 [json_name = "_type"]; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .grafeas.v1.Subject subject = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSubject() + { + return $this->subject; + } + + /** + * Generated from protobuf field repeated .grafeas.v1.Subject subject = 2; + * @param array<\Grafeas\V1\Subject>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSubject($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Subject::class); + $this->subject = $arr; + + return $this; + } + + /** + * `https://slsa.dev/provenance/v0.1` for SlsaProvenance. + * + * Generated from protobuf field string predicate_type = 3; + * @return string + */ + public function getPredicateType() + { + return $this->predicate_type; + } + + /** + * `https://slsa.dev/provenance/v0.1` for SlsaProvenance. + * + * Generated from protobuf field string predicate_type = 3; + * @param string $var + * @return $this + */ + public function setPredicateType($var) + { + GPBUtil::checkString($var, True); + $this->predicate_type = $var; + + return $this; + } + + /** + * Generated from protobuf field .grafeas.v1.InTotoProvenance provenance = 4; + * @return \Grafeas\V1\InTotoProvenance|null + */ + public function getProvenance() + { + return $this->readOneof(4); + } + + public function hasProvenance() + { + return $this->hasOneof(4); + } + + /** + * Generated from protobuf field .grafeas.v1.InTotoProvenance provenance = 4; + * @param \Grafeas\V1\InTotoProvenance $var + * @return $this + */ + public function setProvenance($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\InTotoProvenance::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Generated from protobuf field .grafeas.v1.SlsaProvenance slsa_provenance = 5; + * @return \Grafeas\V1\SlsaProvenance|null + */ + public function getSlsaProvenance() + { + return $this->readOneof(5); + } + + public function hasSlsaProvenance() + { + return $this->hasOneof(5); + } + + /** + * Generated from protobuf field .grafeas.v1.SlsaProvenance slsa_provenance = 5; + * @param \Grafeas\V1\SlsaProvenance $var + * @return $this + */ + public function setSlsaProvenance($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\SlsaProvenance::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo slsa_provenance_zero_two = 6; + * @return \Grafeas\V1\SlsaProvenanceZeroTwo|null + */ + public function getSlsaProvenanceZeroTwo() + { + return $this->readOneof(6); + } + + public function hasSlsaProvenanceZeroTwo() + { + return $this->hasOneof(6); + } + + /** + * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo slsa_provenance_zero_two = 6; + * @param \Grafeas\V1\SlsaProvenanceZeroTwo $var + * @return $this + */ + public function setSlsaProvenanceZeroTwo($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\SlsaProvenanceZeroTwo::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * @return string + */ + public function getPredicate() + { + return $this->whichOneof("predicate"); + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Jwt.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Jwt.php new file mode 100644 index 000000000000..3b9e9a5ece42 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Jwt.php @@ -0,0 +1,73 @@ +grafeas.v1.Jwt + */ +class Jwt extends \Google\Protobuf\Internal\Message +{ + /** + * The compact encoding of a JWS, which is always three base64 encoded strings + * joined by periods. For details, see: + * https://tools.ietf.org/html/rfc7515.html#section-3.1 + * + * Generated from protobuf field string compact_jwt = 1; + */ + protected $compact_jwt = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $compact_jwt + * The compact encoding of a JWS, which is always three base64 encoded strings + * joined by periods. For details, see: + * https://tools.ietf.org/html/rfc7515.html#section-3.1 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Attestation::initOnce(); + parent::__construct($data); + } + + /** + * The compact encoding of a JWS, which is always three base64 encoded strings + * joined by periods. For details, see: + * https://tools.ietf.org/html/rfc7515.html#section-3.1 + * + * Generated from protobuf field string compact_jwt = 1; + * @return string + */ + public function getCompactJwt() + { + return $this->compact_jwt; + } + + /** + * The compact encoding of a JWS, which is always three base64 encoded strings + * joined by periods. For details, see: + * https://tools.ietf.org/html/rfc7515.html#section-3.1 + * + * Generated from protobuf field string compact_jwt = 1; + * @param string $var + * @return $this + */ + public function setCompactJwt($var) + { + GPBUtil::checkString($var, True); + $this->compact_jwt = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Layer.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Layer.php new file mode 100644 index 000000000000..429ce63f2c3a --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Layer.php @@ -0,0 +1,105 @@ +grafeas.v1.Layer + */ +class Layer extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The recovered Dockerfile directive used to construct this layer. + * See https://docs.docker.com/engine/reference/builder/ for more information. + * + * Generated from protobuf field string directive = 1; + */ + protected $directive = ''; + /** + * The recovered arguments to the Dockerfile directive. + * + * Generated from protobuf field string arguments = 2; + */ + protected $arguments = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $directive + * Required. The recovered Dockerfile directive used to construct this layer. + * See https://docs.docker.com/engine/reference/builder/ for more information. + * @type string $arguments + * The recovered arguments to the Dockerfile directive. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Image::initOnce(); + parent::__construct($data); + } + + /** + * Required. The recovered Dockerfile directive used to construct this layer. + * See https://docs.docker.com/engine/reference/builder/ for more information. + * + * Generated from protobuf field string directive = 1; + * @return string + */ + public function getDirective() + { + return $this->directive; + } + + /** + * Required. The recovered Dockerfile directive used to construct this layer. + * See https://docs.docker.com/engine/reference/builder/ for more information. + * + * Generated from protobuf field string directive = 1; + * @param string $var + * @return $this + */ + public function setDirective($var) + { + GPBUtil::checkString($var, True); + $this->directive = $var; + + return $this; + } + + /** + * The recovered arguments to the Dockerfile directive. + * + * Generated from protobuf field string arguments = 2; + * @return string + */ + public function getArguments() + { + return $this->arguments; + } + + /** + * The recovered arguments to the Dockerfile directive. + * + * Generated from protobuf field string arguments = 2; + * @param string $var + * @return $this + */ + public function setArguments($var) + { + GPBUtil::checkString($var, True); + $this->arguments = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/LayerDetails.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/LayerDetails.php new file mode 100644 index 000000000000..77d439a39052 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/LayerDetails.php @@ -0,0 +1,211 @@ +grafeas.v1.LayerDetails + */ +class LayerDetails extends \Google\Protobuf\Internal\Message +{ + /** + * The index of the layer in the container image. + * + * Generated from protobuf field int32 index = 1; + */ + protected $index = 0; + /** + * The diff ID (typically a sha256 hash) of the layer in the container image. + * + * Generated from protobuf field string diff_id = 2; + */ + protected $diff_id = ''; + /** + * The layer chain ID (sha256 hash) of the layer in the container image. + * https://github.com/opencontainers/image-spec/blob/main/config.md#layer-chainid + * + * Generated from protobuf field string chain_id = 5; + */ + protected $chain_id = ''; + /** + * The layer build command that was used to build the layer. This may not be + * found in all layers depending on how the container image is built. + * + * Generated from protobuf field string command = 3; + */ + protected $command = ''; + /** + * The base images the layer is found within. + * + * Generated from protobuf field repeated .grafeas.v1.BaseImage base_images = 4; + */ + private $base_images; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $index + * The index of the layer in the container image. + * @type string $diff_id + * The diff ID (typically a sha256 hash) of the layer in the container image. + * @type string $chain_id + * The layer chain ID (sha256 hash) of the layer in the container image. + * https://github.com/opencontainers/image-spec/blob/main/config.md#layer-chainid + * @type string $command + * The layer build command that was used to build the layer. This may not be + * found in all layers depending on how the container image is built. + * @type array<\Grafeas\V1\BaseImage>|\Google\Protobuf\Internal\RepeatedField $base_images + * The base images the layer is found within. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * The index of the layer in the container image. + * + * Generated from protobuf field int32 index = 1; + * @return int + */ + public function getIndex() + { + return $this->index; + } + + /** + * The index of the layer in the container image. + * + * Generated from protobuf field int32 index = 1; + * @param int $var + * @return $this + */ + public function setIndex($var) + { + GPBUtil::checkInt32($var); + $this->index = $var; + + return $this; + } + + /** + * The diff ID (typically a sha256 hash) of the layer in the container image. + * + * Generated from protobuf field string diff_id = 2; + * @return string + */ + public function getDiffId() + { + return $this->diff_id; + } + + /** + * The diff ID (typically a sha256 hash) of the layer in the container image. + * + * Generated from protobuf field string diff_id = 2; + * @param string $var + * @return $this + */ + public function setDiffId($var) + { + GPBUtil::checkString($var, True); + $this->diff_id = $var; + + return $this; + } + + /** + * The layer chain ID (sha256 hash) of the layer in the container image. + * https://github.com/opencontainers/image-spec/blob/main/config.md#layer-chainid + * + * Generated from protobuf field string chain_id = 5; + * @return string + */ + public function getChainId() + { + return $this->chain_id; + } + + /** + * The layer chain ID (sha256 hash) of the layer in the container image. + * https://github.com/opencontainers/image-spec/blob/main/config.md#layer-chainid + * + * Generated from protobuf field string chain_id = 5; + * @param string $var + * @return $this + */ + public function setChainId($var) + { + GPBUtil::checkString($var, True); + $this->chain_id = $var; + + return $this; + } + + /** + * The layer build command that was used to build the layer. This may not be + * found in all layers depending on how the container image is built. + * + * Generated from protobuf field string command = 3; + * @return string + */ + public function getCommand() + { + return $this->command; + } + + /** + * The layer build command that was used to build the layer. This may not be + * found in all layers depending on how the container image is built. + * + * Generated from protobuf field string command = 3; + * @param string $var + * @return $this + */ + public function setCommand($var) + { + GPBUtil::checkString($var, True); + $this->command = $var; + + return $this; + } + + /** + * The base images the layer is found within. + * + * Generated from protobuf field repeated .grafeas.v1.BaseImage base_images = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getBaseImages() + { + return $this->base_images; + } + + /** + * The base images the layer is found within. + * + * Generated from protobuf field repeated .grafeas.v1.BaseImage base_images = 4; + * @param array<\Grafeas\V1\BaseImage>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setBaseImages($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\BaseImage::class); + $this->base_images = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/License.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/License.php new file mode 100644 index 000000000000..cf2409f0739f --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/License.php @@ -0,0 +1,117 @@ +grafeas.v1.License + */ +class License extends \Google\Protobuf\Internal\Message +{ + /** + * Often a single license can be used to represent the licensing terms. + * Sometimes it is necessary to include a choice of one or more licenses + * or some combination of license identifiers. + * Examples: "LGPL-2.1-only OR MIT", "LGPL-2.1-only AND MIT", + * "GPL-2.0-or-later WITH Bison-exception-2.2". + * + * Generated from protobuf field string expression = 1; + */ + protected $expression = ''; + /** + * Comments + * + * Generated from protobuf field string comments = 2; + */ + protected $comments = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $expression + * Often a single license can be used to represent the licensing terms. + * Sometimes it is necessary to include a choice of one or more licenses + * or some combination of license identifiers. + * Examples: "LGPL-2.1-only OR MIT", "LGPL-2.1-only AND MIT", + * "GPL-2.0-or-later WITH Bison-exception-2.2". + * @type string $comments + * Comments + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * Often a single license can be used to represent the licensing terms. + * Sometimes it is necessary to include a choice of one or more licenses + * or some combination of license identifiers. + * Examples: "LGPL-2.1-only OR MIT", "LGPL-2.1-only AND MIT", + * "GPL-2.0-or-later WITH Bison-exception-2.2". + * + * Generated from protobuf field string expression = 1; + * @return string + */ + public function getExpression() + { + return $this->expression; + } + + /** + * Often a single license can be used to represent the licensing terms. + * Sometimes it is necessary to include a choice of one or more licenses + * or some combination of license identifiers. + * Examples: "LGPL-2.1-only OR MIT", "LGPL-2.1-only AND MIT", + * "GPL-2.0-or-later WITH Bison-exception-2.2". + * + * Generated from protobuf field string expression = 1; + * @param string $var + * @return $this + */ + public function setExpression($var) + { + GPBUtil::checkString($var, True); + $this->expression = $var; + + return $this; + } + + /** + * Comments + * + * Generated from protobuf field string comments = 2; + * @return string + */ + public function getComments() + { + return $this->comments; + } + + /** + * Comments + * + * Generated from protobuf field string comments = 2; + * @param string $var + * @return $this + */ + public function setComments($var) + { + GPBUtil::checkString($var, True); + $this->comments = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNoteOccurrencesRequest.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNoteOccurrencesRequest.php new file mode 100644 index 000000000000..2a854147766a --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNoteOccurrencesRequest.php @@ -0,0 +1,190 @@ +grafeas.v1.ListNoteOccurrencesRequest + */ +class ListNoteOccurrencesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the note to list occurrences for in the form of + * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * The filter expression. + * + * Generated from protobuf field string filter = 2; + */ + protected $filter = ''; + /** + * Number of occurrences to return in the list. + * + * Generated from protobuf field int32 page_size = 3; + */ + protected $page_size = 0; + /** + * Token to provide to skip to a particular spot in the list. + * + * Generated from protobuf field string page_token = 4; + */ + protected $page_token = ''; + + /** + * @param string $name The name of the note to list occurrences for in the form of + * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. Please see + * {@see GrafeasClient::noteName()} for help formatting this field. + * @param string $filter The filter expression. + * + * @return \Grafeas\V1\ListNoteOccurrencesRequest + * + * @experimental + */ + public static function build(string $name, string $filter): self + { + return (new self()) + ->setName($name) + ->setFilter($filter); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the note to list occurrences for in the form of + * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. + * @type string $filter + * The filter expression. + * @type int $page_size + * Number of occurrences to return in the list. + * @type string $page_token + * Token to provide to skip to a particular spot in the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); + parent::__construct($data); + } + + /** + * The name of the note to list occurrences for in the form of + * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the note to list occurrences for in the form of + * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The filter expression. + * + * Generated from protobuf field string filter = 2; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * The filter expression. + * + * Generated from protobuf field string filter = 2; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Number of occurrences to return in the list. + * + * Generated from protobuf field int32 page_size = 3; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Number of occurrences to return in the list. + * + * Generated from protobuf field int32 page_size = 3; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Token to provide to skip to a particular spot in the list. + * + * Generated from protobuf field string page_token = 4; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Token to provide to skip to a particular spot in the list. + * + * Generated from protobuf field string page_token = 4; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNoteOccurrencesResponse.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNoteOccurrencesResponse.php new file mode 100644 index 000000000000..d76a8a59df99 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNoteOccurrencesResponse.php @@ -0,0 +1,101 @@ +grafeas.v1.ListNoteOccurrencesResponse + */ +class ListNoteOccurrencesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The occurrences attached to the specified note. + * + * Generated from protobuf field repeated .grafeas.v1.Occurrence occurrences = 1; + */ + private $occurrences; + /** + * Token to provide to skip to a particular spot in the list. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Grafeas\V1\Occurrence>|\Google\Protobuf\Internal\RepeatedField $occurrences + * The occurrences attached to the specified note. + * @type string $next_page_token + * Token to provide to skip to a particular spot in the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); + parent::__construct($data); + } + + /** + * The occurrences attached to the specified note. + * + * Generated from protobuf field repeated .grafeas.v1.Occurrence occurrences = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOccurrences() + { + return $this->occurrences; + } + + /** + * The occurrences attached to the specified note. + * + * Generated from protobuf field repeated .grafeas.v1.Occurrence occurrences = 1; + * @param array<\Grafeas\V1\Occurrence>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOccurrences($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Occurrence::class); + $this->occurrences = $arr; + + return $this; + } + + /** + * Token to provide to skip to a particular spot in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to provide to skip to a particular spot in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNotesRequest.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNotesRequest.php new file mode 100644 index 000000000000..1e92a55fde76 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNotesRequest.php @@ -0,0 +1,240 @@ +grafeas.v1.ListNotesRequest + */ +class ListNotesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the project to list notes for in the form of + * `projects/[PROJECT_ID]`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The filter expression. + * + * Generated from protobuf field string filter = 2; + */ + protected $filter = ''; + /** + * Number of notes to return in the list. Must be positive. Max allowed page + * size is 1000. If not specified, page size defaults to 20. + * + * Generated from protobuf field int32 page_size = 3; + */ + protected $page_size = 0; + /** + * Token to provide to skip to a particular spot in the list. + * + * Generated from protobuf field string page_token = 4; + */ + protected $page_token = ''; + /** + * If set, the request will return all reachable Notes + * and report all unreachable regions in the `unreachable` field in + * the response. + * Only applicable for requests in the global region. + * + * Generated from protobuf field bool return_partial_success = 5; + */ + protected $return_partial_success = false; + + /** + * @param string $parent The name of the project to list notes for in the form of + * `projects/[PROJECT_ID]`. Please see + * {@see GrafeasClient::projectName()} for help formatting this field. + * @param string $filter The filter expression. + * + * @return \Grafeas\V1\ListNotesRequest + * + * @experimental + */ + public static function build(string $parent, string $filter): self + { + return (new self()) + ->setParent($parent) + ->setFilter($filter); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * The name of the project to list notes for in the form of + * `projects/[PROJECT_ID]`. + * @type string $filter + * The filter expression. + * @type int $page_size + * Number of notes to return in the list. Must be positive. Max allowed page + * size is 1000. If not specified, page size defaults to 20. + * @type string $page_token + * Token to provide to skip to a particular spot in the list. + * @type bool $return_partial_success + * If set, the request will return all reachable Notes + * and report all unreachable regions in the `unreachable` field in + * the response. + * Only applicable for requests in the global region. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); + parent::__construct($data); + } + + /** + * The name of the project to list notes for in the form of + * `projects/[PROJECT_ID]`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * The name of the project to list notes for in the form of + * `projects/[PROJECT_ID]`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The filter expression. + * + * Generated from protobuf field string filter = 2; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * The filter expression. + * + * Generated from protobuf field string filter = 2; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Number of notes to return in the list. Must be positive. Max allowed page + * size is 1000. If not specified, page size defaults to 20. + * + * Generated from protobuf field int32 page_size = 3; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Number of notes to return in the list. Must be positive. Max allowed page + * size is 1000. If not specified, page size defaults to 20. + * + * Generated from protobuf field int32 page_size = 3; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Token to provide to skip to a particular spot in the list. + * + * Generated from protobuf field string page_token = 4; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Token to provide to skip to a particular spot in the list. + * + * Generated from protobuf field string page_token = 4; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * If set, the request will return all reachable Notes + * and report all unreachable regions in the `unreachable` field in + * the response. + * Only applicable for requests in the global region. + * + * Generated from protobuf field bool return_partial_success = 5; + * @return bool + */ + public function getReturnPartialSuccess() + { + return $this->return_partial_success; + } + + /** + * If set, the request will return all reachable Notes + * and report all unreachable regions in the `unreachable` field in + * the response. + * Only applicable for requests in the global region. + * + * Generated from protobuf field bool return_partial_success = 5; + * @param bool $var + * @return $this + */ + public function setReturnPartialSuccess($var) + { + GPBUtil::checkBool($var); + $this->return_partial_success = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNotesResponse.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNotesResponse.php new file mode 100644 index 000000000000..f8fb9a2e713d --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNotesResponse.php @@ -0,0 +1,151 @@ +grafeas.v1.ListNotesResponse + */ +class ListNotesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The notes requested. + * + * Generated from protobuf field repeated .grafeas.v1.Note notes = 1; + */ + private $notes; + /** + * The next pagination token in the list response. It should be used as + * `page_token` for the following request. An empty value means no more + * results. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Unreachable regions. Populated for requests from the global region + * when `return_partial_success` is set. + * Format: `projects/[PROJECT_ID]/locations/[LOCATION]` + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Grafeas\V1\Note>|\Google\Protobuf\Internal\RepeatedField $notes + * The notes requested. + * @type string $next_page_token + * The next pagination token in the list response. It should be used as + * `page_token` for the following request. An empty value means no more + * results. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Unreachable regions. Populated for requests from the global region + * when `return_partial_success` is set. + * Format: `projects/[PROJECT_ID]/locations/[LOCATION]` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); + parent::__construct($data); + } + + /** + * The notes requested. + * + * Generated from protobuf field repeated .grafeas.v1.Note notes = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNotes() + { + return $this->notes; + } + + /** + * The notes requested. + * + * Generated from protobuf field repeated .grafeas.v1.Note notes = 1; + * @param array<\Grafeas\V1\Note>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNotes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Note::class); + $this->notes = $arr; + + return $this; + } + + /** + * The next pagination token in the list response. It should be used as + * `page_token` for the following request. An empty value means no more + * results. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * The next pagination token in the list response. It should be used as + * `page_token` for the following request. An empty value means no more + * results. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Unreachable regions. Populated for requests from the global region + * when `return_partial_success` is set. + * Format: `projects/[PROJECT_ID]/locations/[LOCATION]` + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Unreachable regions. Populated for requests from the global region + * when `return_partial_success` is set. + * Format: `projects/[PROJECT_ID]/locations/[LOCATION]` + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListOccurrencesRequest.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListOccurrencesRequest.php new file mode 100644 index 000000000000..3bdc920d4a1a --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListOccurrencesRequest.php @@ -0,0 +1,240 @@ +grafeas.v1.ListOccurrencesRequest + */ +class ListOccurrencesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the project to list occurrences for in the form of + * `projects/[PROJECT_ID]`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The filter expression. + * + * Generated from protobuf field string filter = 2; + */ + protected $filter = ''; + /** + * Number of occurrences to return in the list. Must be positive. Max allowed + * page size is 1000. If not specified, page size defaults to 20. + * + * Generated from protobuf field int32 page_size = 3; + */ + protected $page_size = 0; + /** + * Token to provide to skip to a particular spot in the list. + * + * Generated from protobuf field string page_token = 4; + */ + protected $page_token = ''; + /** + * If set, the request will return all reachable Occurrences + * and report all unreachable regions in the `unreachable` field in + * the response. + * Only applicable for requests in the global region. + * + * Generated from protobuf field bool return_partial_success = 5; + */ + protected $return_partial_success = false; + + /** + * @param string $parent The name of the project to list occurrences for in the form of + * `projects/[PROJECT_ID]`. Please see + * {@see GrafeasClient::projectName()} for help formatting this field. + * @param string $filter The filter expression. + * + * @return \Grafeas\V1\ListOccurrencesRequest + * + * @experimental + */ + public static function build(string $parent, string $filter): self + { + return (new self()) + ->setParent($parent) + ->setFilter($filter); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * The name of the project to list occurrences for in the form of + * `projects/[PROJECT_ID]`. + * @type string $filter + * The filter expression. + * @type int $page_size + * Number of occurrences to return in the list. Must be positive. Max allowed + * page size is 1000. If not specified, page size defaults to 20. + * @type string $page_token + * Token to provide to skip to a particular spot in the list. + * @type bool $return_partial_success + * If set, the request will return all reachable Occurrences + * and report all unreachable regions in the `unreachable` field in + * the response. + * Only applicable for requests in the global region. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); + parent::__construct($data); + } + + /** + * The name of the project to list occurrences for in the form of + * `projects/[PROJECT_ID]`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * The name of the project to list occurrences for in the form of + * `projects/[PROJECT_ID]`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The filter expression. + * + * Generated from protobuf field string filter = 2; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * The filter expression. + * + * Generated from protobuf field string filter = 2; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Number of occurrences to return in the list. Must be positive. Max allowed + * page size is 1000. If not specified, page size defaults to 20. + * + * Generated from protobuf field int32 page_size = 3; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Number of occurrences to return in the list. Must be positive. Max allowed + * page size is 1000. If not specified, page size defaults to 20. + * + * Generated from protobuf field int32 page_size = 3; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Token to provide to skip to a particular spot in the list. + * + * Generated from protobuf field string page_token = 4; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Token to provide to skip to a particular spot in the list. + * + * Generated from protobuf field string page_token = 4; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * If set, the request will return all reachable Occurrences + * and report all unreachable regions in the `unreachable` field in + * the response. + * Only applicable for requests in the global region. + * + * Generated from protobuf field bool return_partial_success = 5; + * @return bool + */ + public function getReturnPartialSuccess() + { + return $this->return_partial_success; + } + + /** + * If set, the request will return all reachable Occurrences + * and report all unreachable regions in the `unreachable` field in + * the response. + * Only applicable for requests in the global region. + * + * Generated from protobuf field bool return_partial_success = 5; + * @param bool $var + * @return $this + */ + public function setReturnPartialSuccess($var) + { + GPBUtil::checkBool($var); + $this->return_partial_success = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListOccurrencesResponse.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListOccurrencesResponse.php new file mode 100644 index 000000000000..4e2e29c11c23 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListOccurrencesResponse.php @@ -0,0 +1,151 @@ +grafeas.v1.ListOccurrencesResponse + */ +class ListOccurrencesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The occurrences requested. + * + * Generated from protobuf field repeated .grafeas.v1.Occurrence occurrences = 1; + */ + private $occurrences; + /** + * The next pagination token in the list response. It should be used as + * `page_token` for the following request. An empty value means no more + * results. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Unreachable regions. Populated for requests from the global region + * when `return_partial_success` is set. + * Format: `projects/[PROJECT_ID]/locations/[LOCATION]` + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Grafeas\V1\Occurrence>|\Google\Protobuf\Internal\RepeatedField $occurrences + * The occurrences requested. + * @type string $next_page_token + * The next pagination token in the list response. It should be used as + * `page_token` for the following request. An empty value means no more + * results. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Unreachable regions. Populated for requests from the global region + * when `return_partial_success` is set. + * Format: `projects/[PROJECT_ID]/locations/[LOCATION]` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); + parent::__construct($data); + } + + /** + * The occurrences requested. + * + * Generated from protobuf field repeated .grafeas.v1.Occurrence occurrences = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOccurrences() + { + return $this->occurrences; + } + + /** + * The occurrences requested. + * + * Generated from protobuf field repeated .grafeas.v1.Occurrence occurrences = 1; + * @param array<\Grafeas\V1\Occurrence>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOccurrences($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Occurrence::class); + $this->occurrences = $arr; + + return $this; + } + + /** + * The next pagination token in the list response. It should be used as + * `page_token` for the following request. An empty value means no more + * results. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * The next pagination token in the list response. It should be used as + * `page_token` for the following request. An empty value means no more + * results. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Unreachable regions. Populated for requests from the global region + * when `return_partial_success` is set. + * Format: `projects/[PROJECT_ID]/locations/[LOCATION]` + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Unreachable regions. Populated for requests from the global region + * when `return_partial_success` is set. + * Format: `projects/[PROJECT_ID]/locations/[LOCATION]` + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Location.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Location.php new file mode 100644 index 000000000000..b8381eca4d41 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Location.php @@ -0,0 +1,154 @@ +grafeas.v1.Location + */ +class Location extends \Google\Protobuf\Internal\Message +{ + /** + * Deprecated. + * The CPE URI in [CPE format](https://cpe.mitre.org/specification/) + * + * Generated from protobuf field string cpe_uri = 1; + */ + protected $cpe_uri = ''; + /** + * Deprecated. + * The version installed at this location. + * + * Generated from protobuf field .grafeas.v1.Version version = 2; + */ + protected $version = null; + /** + * The path from which we gathered that this package/version is installed. + * + * Generated from protobuf field string path = 3; + */ + protected $path = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $cpe_uri + * Deprecated. + * The CPE URI in [CPE format](https://cpe.mitre.org/specification/) + * @type \Grafeas\V1\Version $version + * Deprecated. + * The version installed at this location. + * @type string $path + * The path from which we gathered that this package/version is installed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Package::initOnce(); + parent::__construct($data); + } + + /** + * Deprecated. + * The CPE URI in [CPE format](https://cpe.mitre.org/specification/) + * + * Generated from protobuf field string cpe_uri = 1; + * @return string + */ + public function getCpeUri() + { + return $this->cpe_uri; + } + + /** + * Deprecated. + * The CPE URI in [CPE format](https://cpe.mitre.org/specification/) + * + * Generated from protobuf field string cpe_uri = 1; + * @param string $var + * @return $this + */ + public function setCpeUri($var) + { + GPBUtil::checkString($var, True); + $this->cpe_uri = $var; + + return $this; + } + + /** + * Deprecated. + * The version installed at this location. + * + * Generated from protobuf field .grafeas.v1.Version version = 2; + * @return \Grafeas\V1\Version|null + */ + public function getVersion() + { + return $this->version; + } + + public function hasVersion() + { + return isset($this->version); + } + + public function clearVersion() + { + unset($this->version); + } + + /** + * Deprecated. + * The version installed at this location. + * + * Generated from protobuf field .grafeas.v1.Version version = 2; + * @param \Grafeas\V1\Version $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\Version::class); + $this->version = $var; + + return $this; + } + + /** + * The path from which we gathered that this package/version is installed. + * + * Generated from protobuf field string path = 3; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * The path from which we gathered that this package/version is installed. + * + * Generated from protobuf field string path = 3; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Metadata.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Metadata.php new file mode 100644 index 000000000000..496b347e8c53 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Metadata.php @@ -0,0 +1,249 @@ +grafeas.v1.Metadata + */ +class Metadata extends \Google\Protobuf\Internal\Message +{ + /** + * Identifies the particular build invocation, which can be useful for finding + * associated logs or other ad-hoc analysis. The value SHOULD be globally + * unique, per in-toto Provenance spec. + * + * Generated from protobuf field string build_invocation_id = 1; + */ + protected $build_invocation_id = ''; + /** + * The timestamp of when the build started. + * + * Generated from protobuf field .google.protobuf.Timestamp build_started_on = 2; + */ + protected $build_started_on = null; + /** + * The timestamp of when the build completed. + * + * Generated from protobuf field .google.protobuf.Timestamp build_finished_on = 3; + */ + protected $build_finished_on = null; + /** + * Indicates that the builder claims certain fields in this message to be + * complete. + * + * Generated from protobuf field .grafeas.v1.Completeness completeness = 4; + */ + protected $completeness = null; + /** + * If true, the builder claims that running the recipe on materials will + * produce bit-for-bit identical output. + * + * Generated from protobuf field bool reproducible = 5; + */ + protected $reproducible = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $build_invocation_id + * Identifies the particular build invocation, which can be useful for finding + * associated logs or other ad-hoc analysis. The value SHOULD be globally + * unique, per in-toto Provenance spec. + * @type \Google\Protobuf\Timestamp $build_started_on + * The timestamp of when the build started. + * @type \Google\Protobuf\Timestamp $build_finished_on + * The timestamp of when the build completed. + * @type \Grafeas\V1\Completeness $completeness + * Indicates that the builder claims certain fields in this message to be + * complete. + * @type bool $reproducible + * If true, the builder claims that running the recipe on materials will + * produce bit-for-bit identical output. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\IntotoProvenance::initOnce(); + parent::__construct($data); + } + + /** + * Identifies the particular build invocation, which can be useful for finding + * associated logs or other ad-hoc analysis. The value SHOULD be globally + * unique, per in-toto Provenance spec. + * + * Generated from protobuf field string build_invocation_id = 1; + * @return string + */ + public function getBuildInvocationId() + { + return $this->build_invocation_id; + } + + /** + * Identifies the particular build invocation, which can be useful for finding + * associated logs or other ad-hoc analysis. The value SHOULD be globally + * unique, per in-toto Provenance spec. + * + * Generated from protobuf field string build_invocation_id = 1; + * @param string $var + * @return $this + */ + public function setBuildInvocationId($var) + { + GPBUtil::checkString($var, True); + $this->build_invocation_id = $var; + + return $this; + } + + /** + * The timestamp of when the build started. + * + * Generated from protobuf field .google.protobuf.Timestamp build_started_on = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getBuildStartedOn() + { + return $this->build_started_on; + } + + public function hasBuildStartedOn() + { + return isset($this->build_started_on); + } + + public function clearBuildStartedOn() + { + unset($this->build_started_on); + } + + /** + * The timestamp of when the build started. + * + * Generated from protobuf field .google.protobuf.Timestamp build_started_on = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setBuildStartedOn($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->build_started_on = $var; + + return $this; + } + + /** + * The timestamp of when the build completed. + * + * Generated from protobuf field .google.protobuf.Timestamp build_finished_on = 3; + * @return \Google\Protobuf\Timestamp|null + */ + public function getBuildFinishedOn() + { + return $this->build_finished_on; + } + + public function hasBuildFinishedOn() + { + return isset($this->build_finished_on); + } + + public function clearBuildFinishedOn() + { + unset($this->build_finished_on); + } + + /** + * The timestamp of when the build completed. + * + * Generated from protobuf field .google.protobuf.Timestamp build_finished_on = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setBuildFinishedOn($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->build_finished_on = $var; + + return $this; + } + + /** + * Indicates that the builder claims certain fields in this message to be + * complete. + * + * Generated from protobuf field .grafeas.v1.Completeness completeness = 4; + * @return \Grafeas\V1\Completeness|null + */ + public function getCompleteness() + { + return $this->completeness; + } + + public function hasCompleteness() + { + return isset($this->completeness); + } + + public function clearCompleteness() + { + unset($this->completeness); + } + + /** + * Indicates that the builder claims certain fields in this message to be + * complete. + * + * Generated from protobuf field .grafeas.v1.Completeness completeness = 4; + * @param \Grafeas\V1\Completeness $var + * @return $this + */ + public function setCompleteness($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\Completeness::class); + $this->completeness = $var; + + return $this; + } + + /** + * If true, the builder claims that running the recipe on materials will + * produce bit-for-bit identical output. + * + * Generated from protobuf field bool reproducible = 5; + * @return bool + */ + public function getReproducible() + { + return $this->reproducible; + } + + /** + * If true, the builder claims that running the recipe on materials will + * produce bit-for-bit identical output. + * + * Generated from protobuf field bool reproducible = 5; + * @param bool $var + * @return $this + */ + public function setReproducible($var) + { + GPBUtil::checkBool($var); + $this->reproducible = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/NonCompliantFile.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/NonCompliantFile.php new file mode 100644 index 000000000000..db2f7ae1e2f2 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/NonCompliantFile.php @@ -0,0 +1,135 @@ +grafeas.v1.NonCompliantFile + */ +class NonCompliantFile extends \Google\Protobuf\Internal\Message +{ + /** + * Empty if `display_command` is set. + * + * Generated from protobuf field string path = 1; + */ + protected $path = ''; + /** + * Command to display the non-compliant files. + * + * Generated from protobuf field string display_command = 2; + */ + protected $display_command = ''; + /** + * Explains why a file is non compliant for a CIS check. + * + * Generated from protobuf field string reason = 3; + */ + protected $reason = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $path + * Empty if `display_command` is set. + * @type string $display_command + * Command to display the non-compliant files. + * @type string $reason + * Explains why a file is non compliant for a CIS check. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Compliance::initOnce(); + parent::__construct($data); + } + + /** + * Empty if `display_command` is set. + * + * Generated from protobuf field string path = 1; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Empty if `display_command` is set. + * + * Generated from protobuf field string path = 1; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + + /** + * Command to display the non-compliant files. + * + * Generated from protobuf field string display_command = 2; + * @return string + */ + public function getDisplayCommand() + { + return $this->display_command; + } + + /** + * Command to display the non-compliant files. + * + * Generated from protobuf field string display_command = 2; + * @param string $var + * @return $this + */ + public function setDisplayCommand($var) + { + GPBUtil::checkString($var, True); + $this->display_command = $var; + + return $this; + } + + /** + * Explains why a file is non compliant for a CIS check. + * + * Generated from protobuf field string reason = 3; + * @return string + */ + public function getReason() + { + return $this->reason; + } + + /** + * Explains why a file is non compliant for a CIS check. + * + * Generated from protobuf field string reason = 3; + * @param string $var + * @return $this + */ + public function setReason($var) + { + GPBUtil::checkString($var, True); + $this->reason = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Note.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Note.php new file mode 100644 index 000000000000..99b44da4c7a5 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Note.php @@ -0,0 +1,823 @@ +grafeas.v1.Note + */ +class Note extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The name of the note in the form of + * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * A one sentence description of this note. + * + * Generated from protobuf field string short_description = 2; + */ + protected $short_description = ''; + /** + * A detailed description of this note. + * + * Generated from protobuf field string long_description = 3; + */ + protected $long_description = ''; + /** + * Output only. The type of analysis. This field can be used as a filter in + * list requests. + * + * Generated from protobuf field .grafeas.v1.NoteKind kind = 4; + */ + protected $kind = 0; + /** + * URLs associated with this note. + * + * Generated from protobuf field repeated .grafeas.v1.RelatedUrl related_url = 5; + */ + private $related_url; + /** + * Time of expiration for this note. Empty if note does not expire. + * + * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 6; + */ + protected $expiration_time = null; + /** + * Output only. The time this note was created. This field can be used as a + * filter in list requests. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7; + */ + protected $create_time = null; + /** + * Output only. The time this note was last updated. This field can be used as + * a filter in list requests. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8; + */ + protected $update_time = null; + /** + * Other notes related to this note. + * + * Generated from protobuf field repeated string related_note_names = 9; + */ + private $related_note_names; + protected $type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The name of the note in the form of + * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. + * @type string $short_description + * A one sentence description of this note. + * @type string $long_description + * A detailed description of this note. + * @type int $kind + * Output only. The type of analysis. This field can be used as a filter in + * list requests. + * @type array<\Grafeas\V1\RelatedUrl>|\Google\Protobuf\Internal\RepeatedField $related_url + * URLs associated with this note. + * @type \Google\Protobuf\Timestamp $expiration_time + * Time of expiration for this note. Empty if note does not expire. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time this note was created. This field can be used as a + * filter in list requests. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time this note was last updated. This field can be used as + * a filter in list requests. + * @type array|\Google\Protobuf\Internal\RepeatedField $related_note_names + * Other notes related to this note. + * @type \Grafeas\V1\VulnerabilityNote $vulnerability + * A note describing a package vulnerability. + * @type \Grafeas\V1\BuildNote $build + * A note describing build provenance for a verifiable build. + * @type \Grafeas\V1\ImageNote $image + * A note describing a base image. + * @type \Grafeas\V1\PackageNote $package + * A note describing a package hosted by various package managers. + * @type \Grafeas\V1\DeploymentNote $deployment + * A note describing something that can be deployed. + * @type \Grafeas\V1\DiscoveryNote $discovery + * A note describing the initial analysis of a resource. + * @type \Grafeas\V1\AttestationNote $attestation + * A note describing an attestation role. + * @type \Grafeas\V1\UpgradeNote $upgrade + * A note describing available package upgrades. + * @type \Grafeas\V1\ComplianceNote $compliance + * A note describing a compliance check. + * @type \Grafeas\V1\DSSEAttestationNote $dsse_attestation + * A note describing a dsse attestation note. + * @type \Grafeas\V1\VulnerabilityAssessmentNote $vulnerability_assessment + * A note describing a vulnerability assessment. + * @type \Grafeas\V1\SBOMReferenceNote $sbom_reference + * A note describing an SBOM reference. + * @type \Grafeas\V1\SecretNote $secret + * A note describing a secret. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The name of the note in the form of + * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The name of the note in the form of + * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * A one sentence description of this note. + * + * Generated from protobuf field string short_description = 2; + * @return string + */ + public function getShortDescription() + { + return $this->short_description; + } + + /** + * A one sentence description of this note. + * + * Generated from protobuf field string short_description = 2; + * @param string $var + * @return $this + */ + public function setShortDescription($var) + { + GPBUtil::checkString($var, True); + $this->short_description = $var; + + return $this; + } + + /** + * A detailed description of this note. + * + * Generated from protobuf field string long_description = 3; + * @return string + */ + public function getLongDescription() + { + return $this->long_description; + } + + /** + * A detailed description of this note. + * + * Generated from protobuf field string long_description = 3; + * @param string $var + * @return $this + */ + public function setLongDescription($var) + { + GPBUtil::checkString($var, True); + $this->long_description = $var; + + return $this; + } + + /** + * Output only. The type of analysis. This field can be used as a filter in + * list requests. + * + * Generated from protobuf field .grafeas.v1.NoteKind kind = 4; + * @return int + */ + public function getKind() + { + return $this->kind; + } + + /** + * Output only. The type of analysis. This field can be used as a filter in + * list requests. + * + * Generated from protobuf field .grafeas.v1.NoteKind kind = 4; + * @param int $var + * @return $this + */ + public function setKind($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\NoteKind::class); + $this->kind = $var; + + return $this; + } + + /** + * URLs associated with this note. + * + * Generated from protobuf field repeated .grafeas.v1.RelatedUrl related_url = 5; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRelatedUrl() + { + return $this->related_url; + } + + /** + * URLs associated with this note. + * + * Generated from protobuf field repeated .grafeas.v1.RelatedUrl related_url = 5; + * @param array<\Grafeas\V1\RelatedUrl>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRelatedUrl($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\RelatedUrl::class); + $this->related_url = $arr; + + return $this; + } + + /** + * Time of expiration for this note. Empty if note does not expire. + * + * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 6; + * @return \Google\Protobuf\Timestamp|null + */ + public function getExpirationTime() + { + return $this->expiration_time; + } + + public function hasExpirationTime() + { + return isset($this->expiration_time); + } + + public function clearExpirationTime() + { + unset($this->expiration_time); + } + + /** + * Time of expiration for this note. Empty if note does not expire. + * + * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 6; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setExpirationTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->expiration_time = $var; + + return $this; + } + + /** + * Output only. The time this note was created. This field can be used as a + * filter in list requests. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time this note was created. This field can be used as a + * filter in list requests. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time this note was last updated. This field can be used as + * a filter in list requests. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The time this note was last updated. This field can be used as + * a filter in list requests. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Other notes related to this note. + * + * Generated from protobuf field repeated string related_note_names = 9; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRelatedNoteNames() + { + return $this->related_note_names; + } + + /** + * Other notes related to this note. + * + * Generated from protobuf field repeated string related_note_names = 9; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRelatedNoteNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->related_note_names = $arr; + + return $this; + } + + /** + * A note describing a package vulnerability. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityNote vulnerability = 10; + * @return \Grafeas\V1\VulnerabilityNote|null + */ + public function getVulnerability() + { + return $this->readOneof(10); + } + + public function hasVulnerability() + { + return $this->hasOneof(10); + } + + /** + * A note describing a package vulnerability. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityNote vulnerability = 10; + * @param \Grafeas\V1\VulnerabilityNote $var + * @return $this + */ + public function setVulnerability($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\VulnerabilityNote::class); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * A note describing build provenance for a verifiable build. + * + * Generated from protobuf field .grafeas.v1.BuildNote build = 11; + * @return \Grafeas\V1\BuildNote|null + */ + public function getBuild() + { + return $this->readOneof(11); + } + + public function hasBuild() + { + return $this->hasOneof(11); + } + + /** + * A note describing build provenance for a verifiable build. + * + * Generated from protobuf field .grafeas.v1.BuildNote build = 11; + * @param \Grafeas\V1\BuildNote $var + * @return $this + */ + public function setBuild($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\BuildNote::class); + $this->writeOneof(11, $var); + + return $this; + } + + /** + * A note describing a base image. + * + * Generated from protobuf field .grafeas.v1.ImageNote image = 12; + * @return \Grafeas\V1\ImageNote|null + */ + public function getImage() + { + return $this->readOneof(12); + } + + public function hasImage() + { + return $this->hasOneof(12); + } + + /** + * A note describing a base image. + * + * Generated from protobuf field .grafeas.v1.ImageNote image = 12; + * @param \Grafeas\V1\ImageNote $var + * @return $this + */ + public function setImage($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\ImageNote::class); + $this->writeOneof(12, $var); + + return $this; + } + + /** + * A note describing a package hosted by various package managers. + * + * Generated from protobuf field .grafeas.v1.PackageNote package = 13; + * @return \Grafeas\V1\PackageNote|null + */ + public function getPackage() + { + return $this->readOneof(13); + } + + public function hasPackage() + { + return $this->hasOneof(13); + } + + /** + * A note describing a package hosted by various package managers. + * + * Generated from protobuf field .grafeas.v1.PackageNote package = 13; + * @param \Grafeas\V1\PackageNote $var + * @return $this + */ + public function setPackage($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\PackageNote::class); + $this->writeOneof(13, $var); + + return $this; + } + + /** + * A note describing something that can be deployed. + * + * Generated from protobuf field .grafeas.v1.DeploymentNote deployment = 14; + * @return \Grafeas\V1\DeploymentNote|null + */ + public function getDeployment() + { + return $this->readOneof(14); + } + + public function hasDeployment() + { + return $this->hasOneof(14); + } + + /** + * A note describing something that can be deployed. + * + * Generated from protobuf field .grafeas.v1.DeploymentNote deployment = 14; + * @param \Grafeas\V1\DeploymentNote $var + * @return $this + */ + public function setDeployment($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\DeploymentNote::class); + $this->writeOneof(14, $var); + + return $this; + } + + /** + * A note describing the initial analysis of a resource. + * + * Generated from protobuf field .grafeas.v1.DiscoveryNote discovery = 15; + * @return \Grafeas\V1\DiscoveryNote|null + */ + public function getDiscovery() + { + return $this->readOneof(15); + } + + public function hasDiscovery() + { + return $this->hasOneof(15); + } + + /** + * A note describing the initial analysis of a resource. + * + * Generated from protobuf field .grafeas.v1.DiscoveryNote discovery = 15; + * @param \Grafeas\V1\DiscoveryNote $var + * @return $this + */ + public function setDiscovery($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\DiscoveryNote::class); + $this->writeOneof(15, $var); + + return $this; + } + + /** + * A note describing an attestation role. + * + * Generated from protobuf field .grafeas.v1.AttestationNote attestation = 16; + * @return \Grafeas\V1\AttestationNote|null + */ + public function getAttestation() + { + return $this->readOneof(16); + } + + public function hasAttestation() + { + return $this->hasOneof(16); + } + + /** + * A note describing an attestation role. + * + * Generated from protobuf field .grafeas.v1.AttestationNote attestation = 16; + * @param \Grafeas\V1\AttestationNote $var + * @return $this + */ + public function setAttestation($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\AttestationNote::class); + $this->writeOneof(16, $var); + + return $this; + } + + /** + * A note describing available package upgrades. + * + * Generated from protobuf field .grafeas.v1.UpgradeNote upgrade = 17; + * @return \Grafeas\V1\UpgradeNote|null + */ + public function getUpgrade() + { + return $this->readOneof(17); + } + + public function hasUpgrade() + { + return $this->hasOneof(17); + } + + /** + * A note describing available package upgrades. + * + * Generated from protobuf field .grafeas.v1.UpgradeNote upgrade = 17; + * @param \Grafeas\V1\UpgradeNote $var + * @return $this + */ + public function setUpgrade($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\UpgradeNote::class); + $this->writeOneof(17, $var); + + return $this; + } + + /** + * A note describing a compliance check. + * + * Generated from protobuf field .grafeas.v1.ComplianceNote compliance = 18; + * @return \Grafeas\V1\ComplianceNote|null + */ + public function getCompliance() + { + return $this->readOneof(18); + } + + public function hasCompliance() + { + return $this->hasOneof(18); + } + + /** + * A note describing a compliance check. + * + * Generated from protobuf field .grafeas.v1.ComplianceNote compliance = 18; + * @param \Grafeas\V1\ComplianceNote $var + * @return $this + */ + public function setCompliance($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\ComplianceNote::class); + $this->writeOneof(18, $var); + + return $this; + } + + /** + * A note describing a dsse attestation note. + * + * Generated from protobuf field .grafeas.v1.DSSEAttestationNote dsse_attestation = 19; + * @return \Grafeas\V1\DSSEAttestationNote|null + */ + public function getDsseAttestation() + { + return $this->readOneof(19); + } + + public function hasDsseAttestation() + { + return $this->hasOneof(19); + } + + /** + * A note describing a dsse attestation note. + * + * Generated from protobuf field .grafeas.v1.DSSEAttestationNote dsse_attestation = 19; + * @param \Grafeas\V1\DSSEAttestationNote $var + * @return $this + */ + public function setDsseAttestation($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\DSSEAttestationNote::class); + $this->writeOneof(19, $var); + + return $this; + } + + /** + * A note describing a vulnerability assessment. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote vulnerability_assessment = 20; + * @return \Grafeas\V1\VulnerabilityAssessmentNote|null + */ + public function getVulnerabilityAssessment() + { + return $this->readOneof(20); + } + + public function hasVulnerabilityAssessment() + { + return $this->hasOneof(20); + } + + /** + * A note describing a vulnerability assessment. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote vulnerability_assessment = 20; + * @param \Grafeas\V1\VulnerabilityAssessmentNote $var + * @return $this + */ + public function setVulnerabilityAssessment($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\VulnerabilityAssessmentNote::class); + $this->writeOneof(20, $var); + + return $this; + } + + /** + * A note describing an SBOM reference. + * + * Generated from protobuf field .grafeas.v1.SBOMReferenceNote sbom_reference = 21; + * @return \Grafeas\V1\SBOMReferenceNote|null + */ + public function getSbomReference() + { + return $this->readOneof(21); + } + + public function hasSbomReference() + { + return $this->hasOneof(21); + } + + /** + * A note describing an SBOM reference. + * + * Generated from protobuf field .grafeas.v1.SBOMReferenceNote sbom_reference = 21; + * @param \Grafeas\V1\SBOMReferenceNote $var + * @return $this + */ + public function setSbomReference($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\SBOMReferenceNote::class); + $this->writeOneof(21, $var); + + return $this; + } + + /** + * A note describing a secret. + * + * Generated from protobuf field .grafeas.v1.SecretNote secret = 22; + * @return \Grafeas\V1\SecretNote|null + */ + public function getSecret() + { + return $this->readOneof(22); + } + + public function hasSecret() + { + return $this->hasOneof(22); + } + + /** + * A note describing a secret. + * + * Generated from protobuf field .grafeas.v1.SecretNote secret = 22; + * @param \Grafeas\V1\SecretNote $var + * @return $this + */ + public function setSecret($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\SecretNote::class); + $this->writeOneof(22, $var); + + return $this; + } + + /** + * @return string + */ + public function getType() + { + return $this->whichOneof("type"); + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/NoteKind.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/NoteKind.php new file mode 100644 index 000000000000..191dd18ccad6 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/NoteKind.php @@ -0,0 +1,138 @@ +grafeas.v1.NoteKind + */ +class NoteKind +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum NOTE_KIND_UNSPECIFIED = 0; + */ + const NOTE_KIND_UNSPECIFIED = 0; + /** + * The note and occurrence represent a package vulnerability. + * + * Generated from protobuf enum VULNERABILITY = 1; + */ + const VULNERABILITY = 1; + /** + * The note and occurrence assert build provenance. + * + * Generated from protobuf enum BUILD = 2; + */ + const BUILD = 2; + /** + * This represents an image basis relationship. + * + * Generated from protobuf enum IMAGE = 3; + */ + const IMAGE = 3; + /** + * This represents a package installed via a package manager. + * + * Generated from protobuf enum PACKAGE = 4; + */ + const PACKAGE = 4; + /** + * The note and occurrence track deployment events. + * + * Generated from protobuf enum DEPLOYMENT = 5; + */ + const DEPLOYMENT = 5; + /** + * The note and occurrence track the initial discovery status of a resource. + * + * Generated from protobuf enum DISCOVERY = 6; + */ + const DISCOVERY = 6; + /** + * This represents a logical "role" that can attest to artifacts. + * + * Generated from protobuf enum ATTESTATION = 7; + */ + const ATTESTATION = 7; + /** + * This represents an available package upgrade. + * + * Generated from protobuf enum UPGRADE = 8; + */ + const UPGRADE = 8; + /** + * This represents a Compliance Note + * + * Generated from protobuf enum COMPLIANCE = 9; + */ + const COMPLIANCE = 9; + /** + * This represents a DSSE attestation Note + * + * Generated from protobuf enum DSSE_ATTESTATION = 10; + */ + const DSSE_ATTESTATION = 10; + /** + * This represents a Vulnerability Assessment. + * + * Generated from protobuf enum VULNERABILITY_ASSESSMENT = 11; + */ + const VULNERABILITY_ASSESSMENT = 11; + /** + * This represents an SBOM Reference. + * + * Generated from protobuf enum SBOM_REFERENCE = 12; + */ + const SBOM_REFERENCE = 12; + /** + * This represents a secret. + * + * Generated from protobuf enum SECRET = 13; + */ + const SECRET = 13; + + private static $valueToName = [ + self::NOTE_KIND_UNSPECIFIED => 'NOTE_KIND_UNSPECIFIED', + self::VULNERABILITY => 'VULNERABILITY', + self::BUILD => 'BUILD', + self::IMAGE => 'IMAGE', + self::PACKAGE => 'PACKAGE', + self::DEPLOYMENT => 'DEPLOYMENT', + self::DISCOVERY => 'DISCOVERY', + self::ATTESTATION => 'ATTESTATION', + self::UPGRADE => 'UPGRADE', + self::COMPLIANCE => 'COMPLIANCE', + self::DSSE_ATTESTATION => 'DSSE_ATTESTATION', + self::VULNERABILITY_ASSESSMENT => 'VULNERABILITY_ASSESSMENT', + self::SBOM_REFERENCE => 'SBOM_REFERENCE', + self::SECRET => 'SECRET', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Occurrence.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Occurrence.php new file mode 100644 index 000000000000..97d310eb03f2 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Occurrence.php @@ -0,0 +1,767 @@ +grafeas.v1.Occurrence + */ +class Occurrence extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The name of the occurrence in the form of + * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Required. Immutable. A URI that represents the resource for which the + * occurrence applies. For example, + * `https://gcr.io/project/image@sha256:123abc` for a Docker image. + * + * Generated from protobuf field string resource_uri = 2; + */ + protected $resource_uri = ''; + /** + * Required. Immutable. The analysis note associated with this occurrence, in + * the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be + * used as a filter in list requests. + * + * Generated from protobuf field string note_name = 3; + */ + protected $note_name = ''; + /** + * Output only. This explicitly denotes which of the occurrence details are + * specified. This field can be used as a filter in list requests. + * + * Generated from protobuf field .grafeas.v1.NoteKind kind = 4; + */ + protected $kind = 0; + /** + * A description of actions that can be taken to remedy the note. + * + * Generated from protobuf field string remediation = 5; + */ + protected $remediation = ''; + /** + * Output only. The time this occurrence was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6; + */ + protected $create_time = null; + /** + * Output only. The time this occurrence was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 7; + */ + protected $update_time = null; + /** + * https://github.com/secure-systems-lab/dsse + * + * Generated from protobuf field .grafeas.v1.Envelope envelope = 18; + */ + protected $envelope = null; + protected $details; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The name of the occurrence in the form of + * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. + * @type string $resource_uri + * Required. Immutable. A URI that represents the resource for which the + * occurrence applies. For example, + * `https://gcr.io/project/image@sha256:123abc` for a Docker image. + * @type string $note_name + * Required. Immutable. The analysis note associated with this occurrence, in + * the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be + * used as a filter in list requests. + * @type int $kind + * Output only. This explicitly denotes which of the occurrence details are + * specified. This field can be used as a filter in list requests. + * @type string $remediation + * A description of actions that can be taken to remedy the note. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time this occurrence was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time this occurrence was last updated. + * @type \Grafeas\V1\VulnerabilityOccurrence $vulnerability + * Describes a security vulnerability. + * @type \Grafeas\V1\BuildOccurrence $build + * Describes a verifiable build. + * @type \Grafeas\V1\ImageOccurrence $image + * Describes how this resource derives from the basis in the associated + * note. + * @type \Grafeas\V1\PackageOccurrence $package + * Describes the installation of a package on the linked resource. + * @type \Grafeas\V1\DeploymentOccurrence $deployment + * Describes the deployment of an artifact on a runtime. + * @type \Grafeas\V1\DiscoveryOccurrence $discovery + * Describes when a resource was discovered. + * @type \Grafeas\V1\AttestationOccurrence $attestation + * Describes an attestation of an artifact. + * @type \Grafeas\V1\UpgradeOccurrence $upgrade + * Describes an available package upgrade on the linked resource. + * @type \Grafeas\V1\ComplianceOccurrence $compliance + * Describes a compliance violation on a linked resource. + * @type \Grafeas\V1\DSSEAttestationOccurrence $dsse_attestation + * Describes an attestation of an artifact using dsse. + * @type \Grafeas\V1\SBOMReferenceOccurrence $sbom_reference + * Describes a specific SBOM reference occurrences. + * @type \Grafeas\V1\SecretOccurrence $secret + * Describes a secret. + * @type \Grafeas\V1\Envelope $envelope + * https://github.com/secure-systems-lab/dsse + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The name of the occurrence in the form of + * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The name of the occurrence in the form of + * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Immutable. A URI that represents the resource for which the + * occurrence applies. For example, + * `https://gcr.io/project/image@sha256:123abc` for a Docker image. + * + * Generated from protobuf field string resource_uri = 2; + * @return string + */ + public function getResourceUri() + { + return $this->resource_uri; + } + + /** + * Required. Immutable. A URI that represents the resource for which the + * occurrence applies. For example, + * `https://gcr.io/project/image@sha256:123abc` for a Docker image. + * + * Generated from protobuf field string resource_uri = 2; + * @param string $var + * @return $this + */ + public function setResourceUri($var) + { + GPBUtil::checkString($var, True); + $this->resource_uri = $var; + + return $this; + } + + /** + * Required. Immutable. The analysis note associated with this occurrence, in + * the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be + * used as a filter in list requests. + * + * Generated from protobuf field string note_name = 3; + * @return string + */ + public function getNoteName() + { + return $this->note_name; + } + + /** + * Required. Immutable. The analysis note associated with this occurrence, in + * the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be + * used as a filter in list requests. + * + * Generated from protobuf field string note_name = 3; + * @param string $var + * @return $this + */ + public function setNoteName($var) + { + GPBUtil::checkString($var, True); + $this->note_name = $var; + + return $this; + } + + /** + * Output only. This explicitly denotes which of the occurrence details are + * specified. This field can be used as a filter in list requests. + * + * Generated from protobuf field .grafeas.v1.NoteKind kind = 4; + * @return int + */ + public function getKind() + { + return $this->kind; + } + + /** + * Output only. This explicitly denotes which of the occurrence details are + * specified. This field can be used as a filter in list requests. + * + * Generated from protobuf field .grafeas.v1.NoteKind kind = 4; + * @param int $var + * @return $this + */ + public function setKind($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\NoteKind::class); + $this->kind = $var; + + return $this; + } + + /** + * A description of actions that can be taken to remedy the note. + * + * Generated from protobuf field string remediation = 5; + * @return string + */ + public function getRemediation() + { + return $this->remediation; + } + + /** + * A description of actions that can be taken to remedy the note. + * + * Generated from protobuf field string remediation = 5; + * @param string $var + * @return $this + */ + public function setRemediation($var) + { + GPBUtil::checkString($var, True); + $this->remediation = $var; + + return $this; + } + + /** + * Output only. The time this occurrence was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time this occurrence was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time this occurrence was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 7; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The time this occurrence was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 7; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Describes a security vulnerability. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityOccurrence vulnerability = 8; + * @return \Grafeas\V1\VulnerabilityOccurrence|null + */ + public function getVulnerability() + { + return $this->readOneof(8); + } + + public function hasVulnerability() + { + return $this->hasOneof(8); + } + + /** + * Describes a security vulnerability. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityOccurrence vulnerability = 8; + * @param \Grafeas\V1\VulnerabilityOccurrence $var + * @return $this + */ + public function setVulnerability($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\VulnerabilityOccurrence::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Describes a verifiable build. + * + * Generated from protobuf field .grafeas.v1.BuildOccurrence build = 9; + * @return \Grafeas\V1\BuildOccurrence|null + */ + public function getBuild() + { + return $this->readOneof(9); + } + + public function hasBuild() + { + return $this->hasOneof(9); + } + + /** + * Describes a verifiable build. + * + * Generated from protobuf field .grafeas.v1.BuildOccurrence build = 9; + * @param \Grafeas\V1\BuildOccurrence $var + * @return $this + */ + public function setBuild($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\BuildOccurrence::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * Describes how this resource derives from the basis in the associated + * note. + * + * Generated from protobuf field .grafeas.v1.ImageOccurrence image = 10; + * @return \Grafeas\V1\ImageOccurrence|null + */ + public function getImage() + { + return $this->readOneof(10); + } + + public function hasImage() + { + return $this->hasOneof(10); + } + + /** + * Describes how this resource derives from the basis in the associated + * note. + * + * Generated from protobuf field .grafeas.v1.ImageOccurrence image = 10; + * @param \Grafeas\V1\ImageOccurrence $var + * @return $this + */ + public function setImage($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\ImageOccurrence::class); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * Describes the installation of a package on the linked resource. + * + * Generated from protobuf field .grafeas.v1.PackageOccurrence package = 11; + * @return \Grafeas\V1\PackageOccurrence|null + */ + public function getPackage() + { + return $this->readOneof(11); + } + + public function hasPackage() + { + return $this->hasOneof(11); + } + + /** + * Describes the installation of a package on the linked resource. + * + * Generated from protobuf field .grafeas.v1.PackageOccurrence package = 11; + * @param \Grafeas\V1\PackageOccurrence $var + * @return $this + */ + public function setPackage($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\PackageOccurrence::class); + $this->writeOneof(11, $var); + + return $this; + } + + /** + * Describes the deployment of an artifact on a runtime. + * + * Generated from protobuf field .grafeas.v1.DeploymentOccurrence deployment = 12; + * @return \Grafeas\V1\DeploymentOccurrence|null + */ + public function getDeployment() + { + return $this->readOneof(12); + } + + public function hasDeployment() + { + return $this->hasOneof(12); + } + + /** + * Describes the deployment of an artifact on a runtime. + * + * Generated from protobuf field .grafeas.v1.DeploymentOccurrence deployment = 12; + * @param \Grafeas\V1\DeploymentOccurrence $var + * @return $this + */ + public function setDeployment($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\DeploymentOccurrence::class); + $this->writeOneof(12, $var); + + return $this; + } + + /** + * Describes when a resource was discovered. + * + * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence discovery = 13; + * @return \Grafeas\V1\DiscoveryOccurrence|null + */ + public function getDiscovery() + { + return $this->readOneof(13); + } + + public function hasDiscovery() + { + return $this->hasOneof(13); + } + + /** + * Describes when a resource was discovered. + * + * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence discovery = 13; + * @param \Grafeas\V1\DiscoveryOccurrence $var + * @return $this + */ + public function setDiscovery($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\DiscoveryOccurrence::class); + $this->writeOneof(13, $var); + + return $this; + } + + /** + * Describes an attestation of an artifact. + * + * Generated from protobuf field .grafeas.v1.AttestationOccurrence attestation = 14; + * @return \Grafeas\V1\AttestationOccurrence|null + */ + public function getAttestation() + { + return $this->readOneof(14); + } + + public function hasAttestation() + { + return $this->hasOneof(14); + } + + /** + * Describes an attestation of an artifact. + * + * Generated from protobuf field .grafeas.v1.AttestationOccurrence attestation = 14; + * @param \Grafeas\V1\AttestationOccurrence $var + * @return $this + */ + public function setAttestation($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\AttestationOccurrence::class); + $this->writeOneof(14, $var); + + return $this; + } + + /** + * Describes an available package upgrade on the linked resource. + * + * Generated from protobuf field .grafeas.v1.UpgradeOccurrence upgrade = 15; + * @return \Grafeas\V1\UpgradeOccurrence|null + */ + public function getUpgrade() + { + return $this->readOneof(15); + } + + public function hasUpgrade() + { + return $this->hasOneof(15); + } + + /** + * Describes an available package upgrade on the linked resource. + * + * Generated from protobuf field .grafeas.v1.UpgradeOccurrence upgrade = 15; + * @param \Grafeas\V1\UpgradeOccurrence $var + * @return $this + */ + public function setUpgrade($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\UpgradeOccurrence::class); + $this->writeOneof(15, $var); + + return $this; + } + + /** + * Describes a compliance violation on a linked resource. + * + * Generated from protobuf field .grafeas.v1.ComplianceOccurrence compliance = 16; + * @return \Grafeas\V1\ComplianceOccurrence|null + */ + public function getCompliance() + { + return $this->readOneof(16); + } + + public function hasCompliance() + { + return $this->hasOneof(16); + } + + /** + * Describes a compliance violation on a linked resource. + * + * Generated from protobuf field .grafeas.v1.ComplianceOccurrence compliance = 16; + * @param \Grafeas\V1\ComplianceOccurrence $var + * @return $this + */ + public function setCompliance($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\ComplianceOccurrence::class); + $this->writeOneof(16, $var); + + return $this; + } + + /** + * Describes an attestation of an artifact using dsse. + * + * Generated from protobuf field .grafeas.v1.DSSEAttestationOccurrence dsse_attestation = 17; + * @return \Grafeas\V1\DSSEAttestationOccurrence|null + */ + public function getDsseAttestation() + { + return $this->readOneof(17); + } + + public function hasDsseAttestation() + { + return $this->hasOneof(17); + } + + /** + * Describes an attestation of an artifact using dsse. + * + * Generated from protobuf field .grafeas.v1.DSSEAttestationOccurrence dsse_attestation = 17; + * @param \Grafeas\V1\DSSEAttestationOccurrence $var + * @return $this + */ + public function setDsseAttestation($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\DSSEAttestationOccurrence::class); + $this->writeOneof(17, $var); + + return $this; + } + + /** + * Describes a specific SBOM reference occurrences. + * + * Generated from protobuf field .grafeas.v1.SBOMReferenceOccurrence sbom_reference = 19; + * @return \Grafeas\V1\SBOMReferenceOccurrence|null + */ + public function getSbomReference() + { + return $this->readOneof(19); + } + + public function hasSbomReference() + { + return $this->hasOneof(19); + } + + /** + * Describes a specific SBOM reference occurrences. + * + * Generated from protobuf field .grafeas.v1.SBOMReferenceOccurrence sbom_reference = 19; + * @param \Grafeas\V1\SBOMReferenceOccurrence $var + * @return $this + */ + public function setSbomReference($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\SBOMReferenceOccurrence::class); + $this->writeOneof(19, $var); + + return $this; + } + + /** + * Describes a secret. + * + * Generated from protobuf field .grafeas.v1.SecretOccurrence secret = 20; + * @return \Grafeas\V1\SecretOccurrence|null + */ + public function getSecret() + { + return $this->readOneof(20); + } + + public function hasSecret() + { + return $this->hasOneof(20); + } + + /** + * Describes a secret. + * + * Generated from protobuf field .grafeas.v1.SecretOccurrence secret = 20; + * @param \Grafeas\V1\SecretOccurrence $var + * @return $this + */ + public function setSecret($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\SecretOccurrence::class); + $this->writeOneof(20, $var); + + return $this; + } + + /** + * https://github.com/secure-systems-lab/dsse + * + * Generated from protobuf field .grafeas.v1.Envelope envelope = 18; + * @return \Grafeas\V1\Envelope|null + */ + public function getEnvelope() + { + return $this->envelope; + } + + public function hasEnvelope() + { + return isset($this->envelope); + } + + public function clearEnvelope() + { + unset($this->envelope); + } + + /** + * https://github.com/secure-systems-lab/dsse + * + * Generated from protobuf field .grafeas.v1.Envelope envelope = 18; + * @param \Grafeas\V1\Envelope $var + * @return $this + */ + public function setEnvelope($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\Envelope::class); + $this->envelope = $var; + + return $this; + } + + /** + * @return string + */ + public function getDetails() + { + return $this->whichOneof("details"); + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/PackageNote.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/PackageNote.php new file mode 100644 index 000000000000..a7295d29168a --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/PackageNote.php @@ -0,0 +1,451 @@ +grafeas.v1.PackageNote + */ +class PackageNote extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the package. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $name = ''; + /** + * Deprecated. + * The various channels by which a package is distributed. + * + * Generated from protobuf field repeated .grafeas.v1.Distribution distribution = 10; + */ + private $distribution; + /** + * The type of package; whether native or non native (e.g., ruby gems, + * node.js packages, etc.). + * + * Generated from protobuf field string package_type = 11; + */ + protected $package_type = ''; + /** + * The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) + * denoting the package manager version distributing a package. + * The cpe_uri will be blank for language packages. + * + * Generated from protobuf field string cpe_uri = 12; + */ + protected $cpe_uri = ''; + /** + * The CPU architecture for which packages in this distribution channel were + * built. Architecture will be blank for language packages. + * + * Generated from protobuf field .grafeas.v1.Architecture architecture = 13; + */ + protected $architecture = 0; + /** + * The version of the package. + * + * Generated from protobuf field .grafeas.v1.Version version = 14; + */ + protected $version = null; + /** + * A freeform text denoting the maintainer of this package. + * + * Generated from protobuf field string maintainer = 15; + */ + protected $maintainer = ''; + /** + * The homepage for this package. + * + * Generated from protobuf field string url = 16; + */ + protected $url = ''; + /** + * The description of this package. + * + * Generated from protobuf field string description = 17; + */ + protected $description = ''; + /** + * Licenses that have been declared by the authors of the package. + * + * Generated from protobuf field .grafeas.v1.License license = 18; + */ + protected $license = null; + /** + * Hash value, typically a file digest, that allows unique + * identification a specific package. + * + * Generated from protobuf field repeated .grafeas.v1.Digest digest = 19; + */ + private $digest; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the package. + * @type array<\Grafeas\V1\Distribution>|\Google\Protobuf\Internal\RepeatedField $distribution + * Deprecated. + * The various channels by which a package is distributed. + * @type string $package_type + * The type of package; whether native or non native (e.g., ruby gems, + * node.js packages, etc.). + * @type string $cpe_uri + * The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) + * denoting the package manager version distributing a package. + * The cpe_uri will be blank for language packages. + * @type int $architecture + * The CPU architecture for which packages in this distribution channel were + * built. Architecture will be blank for language packages. + * @type \Grafeas\V1\Version $version + * The version of the package. + * @type string $maintainer + * A freeform text denoting the maintainer of this package. + * @type string $url + * The homepage for this package. + * @type string $description + * The description of this package. + * @type \Grafeas\V1\License $license + * Licenses that have been declared by the authors of the package. + * @type array<\Grafeas\V1\Digest>|\Google\Protobuf\Internal\RepeatedField $digest + * Hash value, typically a file digest, that allows unique + * identification a specific package. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Package::initOnce(); + parent::__construct($data); + } + + /** + * The name of the package. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the package. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Deprecated. + * The various channels by which a package is distributed. + * + * Generated from protobuf field repeated .grafeas.v1.Distribution distribution = 10; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDistribution() + { + return $this->distribution; + } + + /** + * Deprecated. + * The various channels by which a package is distributed. + * + * Generated from protobuf field repeated .grafeas.v1.Distribution distribution = 10; + * @param array<\Grafeas\V1\Distribution>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDistribution($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Distribution::class); + $this->distribution = $arr; + + return $this; + } + + /** + * The type of package; whether native or non native (e.g., ruby gems, + * node.js packages, etc.). + * + * Generated from protobuf field string package_type = 11; + * @return string + */ + public function getPackageType() + { + return $this->package_type; + } + + /** + * The type of package; whether native or non native (e.g., ruby gems, + * node.js packages, etc.). + * + * Generated from protobuf field string package_type = 11; + * @param string $var + * @return $this + */ + public function setPackageType($var) + { + GPBUtil::checkString($var, True); + $this->package_type = $var; + + return $this; + } + + /** + * The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) + * denoting the package manager version distributing a package. + * The cpe_uri will be blank for language packages. + * + * Generated from protobuf field string cpe_uri = 12; + * @return string + */ + public function getCpeUri() + { + return $this->cpe_uri; + } + + /** + * The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) + * denoting the package manager version distributing a package. + * The cpe_uri will be blank for language packages. + * + * Generated from protobuf field string cpe_uri = 12; + * @param string $var + * @return $this + */ + public function setCpeUri($var) + { + GPBUtil::checkString($var, True); + $this->cpe_uri = $var; + + return $this; + } + + /** + * The CPU architecture for which packages in this distribution channel were + * built. Architecture will be blank for language packages. + * + * Generated from protobuf field .grafeas.v1.Architecture architecture = 13; + * @return int + */ + public function getArchitecture() + { + return $this->architecture; + } + + /** + * The CPU architecture for which packages in this distribution channel were + * built. Architecture will be blank for language packages. + * + * Generated from protobuf field .grafeas.v1.Architecture architecture = 13; + * @param int $var + * @return $this + */ + public function setArchitecture($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\Architecture::class); + $this->architecture = $var; + + return $this; + } + + /** + * The version of the package. + * + * Generated from protobuf field .grafeas.v1.Version version = 14; + * @return \Grafeas\V1\Version|null + */ + public function getVersion() + { + return $this->version; + } + + public function hasVersion() + { + return isset($this->version); + } + + public function clearVersion() + { + unset($this->version); + } + + /** + * The version of the package. + * + * Generated from protobuf field .grafeas.v1.Version version = 14; + * @param \Grafeas\V1\Version $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\Version::class); + $this->version = $var; + + return $this; + } + + /** + * A freeform text denoting the maintainer of this package. + * + * Generated from protobuf field string maintainer = 15; + * @return string + */ + public function getMaintainer() + { + return $this->maintainer; + } + + /** + * A freeform text denoting the maintainer of this package. + * + * Generated from protobuf field string maintainer = 15; + * @param string $var + * @return $this + */ + public function setMaintainer($var) + { + GPBUtil::checkString($var, True); + $this->maintainer = $var; + + return $this; + } + + /** + * The homepage for this package. + * + * Generated from protobuf field string url = 16; + * @return string + */ + public function getUrl() + { + return $this->url; + } + + /** + * The homepage for this package. + * + * Generated from protobuf field string url = 16; + * @param string $var + * @return $this + */ + public function setUrl($var) + { + GPBUtil::checkString($var, True); + $this->url = $var; + + return $this; + } + + /** + * The description of this package. + * + * Generated from protobuf field string description = 17; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * The description of this package. + * + * Generated from protobuf field string description = 17; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Licenses that have been declared by the authors of the package. + * + * Generated from protobuf field .grafeas.v1.License license = 18; + * @return \Grafeas\V1\License|null + */ + public function getLicense() + { + return $this->license; + } + + public function hasLicense() + { + return isset($this->license); + } + + public function clearLicense() + { + unset($this->license); + } + + /** + * Licenses that have been declared by the authors of the package. + * + * Generated from protobuf field .grafeas.v1.License license = 18; + * @param \Grafeas\V1\License $var + * @return $this + */ + public function setLicense($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\License::class); + $this->license = $var; + + return $this; + } + + /** + * Hash value, typically a file digest, that allows unique + * identification a specific package. + * + * Generated from protobuf field repeated .grafeas.v1.Digest digest = 19; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDigest() + { + return $this->digest; + } + + /** + * Hash value, typically a file digest, that allows unique + * identification a specific package. + * + * Generated from protobuf field repeated .grafeas.v1.Digest digest = 19; + * @param array<\Grafeas\V1\Digest>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDigest($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Digest::class); + $this->digest = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/PackageOccurrence.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/PackageOccurrence.php new file mode 100644 index 000000000000..dafa0769a930 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/PackageOccurrence.php @@ -0,0 +1,311 @@ +grafeas.v1.PackageOccurrence + */ +class PackageOccurrence extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the installed package. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * All of the places within the filesystem versions of this package + * have been found. + * + * Generated from protobuf field repeated .grafeas.v1.Location location = 2; + */ + private $location; + /** + * The type of package; whether native or non native (e.g., ruby gems, + * node.js packages, etc.). + * + * Generated from protobuf field string package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $package_type = ''; + /** + * The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) + * denoting the package manager version distributing a package. + * The cpe_uri will be blank for language packages. + * + * Generated from protobuf field string cpe_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $cpe_uri = ''; + /** + * The CPU architecture for which packages in this distribution channel were + * built. Architecture will be blank for language packages. + * + * Generated from protobuf field .grafeas.v1.Architecture architecture = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $architecture = 0; + /** + * Licenses that have been declared by the authors of the package. + * + * Generated from protobuf field .grafeas.v1.License license = 6; + */ + protected $license = null; + /** + * The version of the package. + * + * Generated from protobuf field .grafeas.v1.Version version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $version = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the installed package. + * @type array<\Grafeas\V1\Location>|\Google\Protobuf\Internal\RepeatedField $location + * All of the places within the filesystem versions of this package + * have been found. + * @type string $package_type + * The type of package; whether native or non native (e.g., ruby gems, + * node.js packages, etc.). + * @type string $cpe_uri + * The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) + * denoting the package manager version distributing a package. + * The cpe_uri will be blank for language packages. + * @type int $architecture + * The CPU architecture for which packages in this distribution channel were + * built. Architecture will be blank for language packages. + * @type \Grafeas\V1\License $license + * Licenses that have been declared by the authors of the package. + * @type \Grafeas\V1\Version $version + * The version of the package. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Package::initOnce(); + parent::__construct($data); + } + + /** + * The name of the installed package. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the installed package. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * All of the places within the filesystem versions of this package + * have been found. + * + * Generated from protobuf field repeated .grafeas.v1.Location location = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getLocation() + { + return $this->location; + } + + /** + * All of the places within the filesystem versions of this package + * have been found. + * + * Generated from protobuf field repeated .grafeas.v1.Location location = 2; + * @param array<\Grafeas\V1\Location>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setLocation($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Location::class); + $this->location = $arr; + + return $this; + } + + /** + * The type of package; whether native or non native (e.g., ruby gems, + * node.js packages, etc.). + * + * Generated from protobuf field string package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getPackageType() + { + return $this->package_type; + } + + /** + * The type of package; whether native or non native (e.g., ruby gems, + * node.js packages, etc.). + * + * Generated from protobuf field string package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setPackageType($var) + { + GPBUtil::checkString($var, True); + $this->package_type = $var; + + return $this; + } + + /** + * The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) + * denoting the package manager version distributing a package. + * The cpe_uri will be blank for language packages. + * + * Generated from protobuf field string cpe_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCpeUri() + { + return $this->cpe_uri; + } + + /** + * The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) + * denoting the package manager version distributing a package. + * The cpe_uri will be blank for language packages. + * + * Generated from protobuf field string cpe_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setCpeUri($var) + { + GPBUtil::checkString($var, True); + $this->cpe_uri = $var; + + return $this; + } + + /** + * The CPU architecture for which packages in this distribution channel were + * built. Architecture will be blank for language packages. + * + * Generated from protobuf field .grafeas.v1.Architecture architecture = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getArchitecture() + { + return $this->architecture; + } + + /** + * The CPU architecture for which packages in this distribution channel were + * built. Architecture will be blank for language packages. + * + * Generated from protobuf field .grafeas.v1.Architecture architecture = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setArchitecture($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\Architecture::class); + $this->architecture = $var; + + return $this; + } + + /** + * Licenses that have been declared by the authors of the package. + * + * Generated from protobuf field .grafeas.v1.License license = 6; + * @return \Grafeas\V1\License|null + */ + public function getLicense() + { + return $this->license; + } + + public function hasLicense() + { + return isset($this->license); + } + + public function clearLicense() + { + unset($this->license); + } + + /** + * Licenses that have been declared by the authors of the package. + * + * Generated from protobuf field .grafeas.v1.License license = 6; + * @param \Grafeas\V1\License $var + * @return $this + */ + public function setLicense($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\License::class); + $this->license = $var; + + return $this; + } + + /** + * The version of the package. + * + * Generated from protobuf field .grafeas.v1.Version version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Grafeas\V1\Version|null + */ + public function getVersion() + { + return $this->version; + } + + public function hasVersion() + { + return isset($this->version); + } + + public function clearVersion() + { + unset($this->version); + } + + /** + * The version of the package. + * + * Generated from protobuf field .grafeas.v1.Version version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Grafeas\V1\Version $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\Version::class); + $this->version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ProjectRepoId.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ProjectRepoId.php new file mode 100644 index 000000000000..d2c9475a063e --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ProjectRepoId.php @@ -0,0 +1,102 @@ +grafeas.v1.ProjectRepoId + */ +class ProjectRepoId extends \Google\Protobuf\Internal\Message +{ + /** + * The ID of the project. + * + * Generated from protobuf field string project_id = 1; + */ + protected $project_id = ''; + /** + * The name of the repo. Leave empty for the default repo. + * + * Generated from protobuf field string repo_name = 2; + */ + protected $repo_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $project_id + * The ID of the project. + * @type string $repo_name + * The name of the repo. Leave empty for the default repo. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Provenance::initOnce(); + parent::__construct($data); + } + + /** + * The ID of the project. + * + * Generated from protobuf field string project_id = 1; + * @return string + */ + public function getProjectId() + { + return $this->project_id; + } + + /** + * The ID of the project. + * + * Generated from protobuf field string project_id = 1; + * @param string $var + * @return $this + */ + public function setProjectId($var) + { + GPBUtil::checkString($var, True); + $this->project_id = $var; + + return $this; + } + + /** + * The name of the repo. Leave empty for the default repo. + * + * Generated from protobuf field string repo_name = 2; + * @return string + */ + public function getRepoName() + { + return $this->repo_name; + } + + /** + * The name of the repo. Leave empty for the default repo. + * + * Generated from protobuf field string repo_name = 2; + * @param string $var + * @return $this + */ + public function setRepoName($var) + { + GPBUtil::checkString($var, True); + $this->repo_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Recipe.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Recipe.php new file mode 100644 index 000000000000..0806a1ed630b --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Recipe.php @@ -0,0 +1,273 @@ +grafeas.v1.Recipe + */ +class Recipe extends \Google\Protobuf\Internal\Message +{ + /** + * URI indicating what type of recipe was performed. It determines the meaning + * of recipe.entryPoint, recipe.arguments, recipe.environment, and materials. + * + * Generated from protobuf field string type = 1; + */ + protected $type = ''; + /** + * Index in materials containing the recipe steps that are not implied by + * recipe.type. For example, if the recipe type were "make", then this would + * point to the source containing the Makefile, not the make program itself. + * Set to -1 if the recipe doesn't come from a material, as zero is default + * unset value for int64. + * + * Generated from protobuf field int64 defined_in_material = 2; + */ + protected $defined_in_material = 0; + /** + * String identifying the entry point into the build. + * This is often a path to a configuration file and/or a target label within + * that file. The syntax and meaning are defined by recipe.type. For example, + * if the recipe type were "make", then this would reference the directory in + * which to run make as well as which target to use. + * + * Generated from protobuf field string entry_point = 3; + */ + protected $entry_point = ''; + /** + * Collection of all external inputs that influenced the build on top of + * recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe + * type were "make", then this might be the flags passed to make aside from + * the target, which is captured in recipe.entryPoint. Since the arguments + * field can greatly vary in structure, depending on the builder and recipe + * type, this is of form "Any". + * + * Generated from protobuf field repeated .google.protobuf.Any arguments = 4; + */ + private $arguments; + /** + * Any other builder-controlled inputs necessary for correctly evaluating the + * recipe. Usually only needed for reproducing the build but not evaluated as + * part of policy. Since the environment field can greatly vary in structure, + * depending on the builder and recipe type, this is of form "Any". + * + * Generated from protobuf field repeated .google.protobuf.Any environment = 5; + */ + private $environment; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $type + * URI indicating what type of recipe was performed. It determines the meaning + * of recipe.entryPoint, recipe.arguments, recipe.environment, and materials. + * @type int|string $defined_in_material + * Index in materials containing the recipe steps that are not implied by + * recipe.type. For example, if the recipe type were "make", then this would + * point to the source containing the Makefile, not the make program itself. + * Set to -1 if the recipe doesn't come from a material, as zero is default + * unset value for int64. + * @type string $entry_point + * String identifying the entry point into the build. + * This is often a path to a configuration file and/or a target label within + * that file. The syntax and meaning are defined by recipe.type. For example, + * if the recipe type were "make", then this would reference the directory in + * which to run make as well as which target to use. + * @type array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $arguments + * Collection of all external inputs that influenced the build on top of + * recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe + * type were "make", then this might be the flags passed to make aside from + * the target, which is captured in recipe.entryPoint. Since the arguments + * field can greatly vary in structure, depending on the builder and recipe + * type, this is of form "Any". + * @type array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $environment + * Any other builder-controlled inputs necessary for correctly evaluating the + * recipe. Usually only needed for reproducing the build but not evaluated as + * part of policy. Since the environment field can greatly vary in structure, + * depending on the builder and recipe type, this is of form "Any". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\IntotoProvenance::initOnce(); + parent::__construct($data); + } + + /** + * URI indicating what type of recipe was performed. It determines the meaning + * of recipe.entryPoint, recipe.arguments, recipe.environment, and materials. + * + * Generated from protobuf field string type = 1; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * URI indicating what type of recipe was performed. It determines the meaning + * of recipe.entryPoint, recipe.arguments, recipe.environment, and materials. + * + * Generated from protobuf field string type = 1; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * Index in materials containing the recipe steps that are not implied by + * recipe.type. For example, if the recipe type were "make", then this would + * point to the source containing the Makefile, not the make program itself. + * Set to -1 if the recipe doesn't come from a material, as zero is default + * unset value for int64. + * + * Generated from protobuf field int64 defined_in_material = 2; + * @return int|string + */ + public function getDefinedInMaterial() + { + return $this->defined_in_material; + } + + /** + * Index in materials containing the recipe steps that are not implied by + * recipe.type. For example, if the recipe type were "make", then this would + * point to the source containing the Makefile, not the make program itself. + * Set to -1 if the recipe doesn't come from a material, as zero is default + * unset value for int64. + * + * Generated from protobuf field int64 defined_in_material = 2; + * @param int|string $var + * @return $this + */ + public function setDefinedInMaterial($var) + { + GPBUtil::checkInt64($var); + $this->defined_in_material = $var; + + return $this; + } + + /** + * String identifying the entry point into the build. + * This is often a path to a configuration file and/or a target label within + * that file. The syntax and meaning are defined by recipe.type. For example, + * if the recipe type were "make", then this would reference the directory in + * which to run make as well as which target to use. + * + * Generated from protobuf field string entry_point = 3; + * @return string + */ + public function getEntryPoint() + { + return $this->entry_point; + } + + /** + * String identifying the entry point into the build. + * This is often a path to a configuration file and/or a target label within + * that file. The syntax and meaning are defined by recipe.type. For example, + * if the recipe type were "make", then this would reference the directory in + * which to run make as well as which target to use. + * + * Generated from protobuf field string entry_point = 3; + * @param string $var + * @return $this + */ + public function setEntryPoint($var) + { + GPBUtil::checkString($var, True); + $this->entry_point = $var; + + return $this; + } + + /** + * Collection of all external inputs that influenced the build on top of + * recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe + * type were "make", then this might be the flags passed to make aside from + * the target, which is captured in recipe.entryPoint. Since the arguments + * field can greatly vary in structure, depending on the builder and recipe + * type, this is of form "Any". + * + * Generated from protobuf field repeated .google.protobuf.Any arguments = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getArguments() + { + return $this->arguments; + } + + /** + * Collection of all external inputs that influenced the build on top of + * recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe + * type were "make", then this might be the flags passed to make aside from + * the target, which is captured in recipe.entryPoint. Since the arguments + * field can greatly vary in structure, depending on the builder and recipe + * type, this is of form "Any". + * + * Generated from protobuf field repeated .google.protobuf.Any arguments = 4; + * @param array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setArguments($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); + $this->arguments = $arr; + + return $this; + } + + /** + * Any other builder-controlled inputs necessary for correctly evaluating the + * recipe. Usually only needed for reproducing the build but not evaluated as + * part of policy. Since the environment field can greatly vary in structure, + * depending on the builder and recipe type, this is of form "Any". + * + * Generated from protobuf field repeated .google.protobuf.Any environment = 5; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEnvironment() + { + return $this->environment; + } + + /** + * Any other builder-controlled inputs necessary for correctly evaluating the + * recipe. Usually only needed for reproducing the build but not evaluated as + * part of policy. Since the environment field can greatly vary in structure, + * depending on the builder and recipe type, this is of form "Any". + * + * Generated from protobuf field repeated .google.protobuf.Any environment = 5; + * @param array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEnvironment($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); + $this->environment = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/RelatedUrl.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/RelatedUrl.php new file mode 100644 index 000000000000..c407db0064b9 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/RelatedUrl.php @@ -0,0 +1,101 @@ +grafeas.v1.RelatedUrl + */ +class RelatedUrl extends \Google\Protobuf\Internal\Message +{ + /** + * Specific URL associated with the resource. + * + * Generated from protobuf field string url = 1; + */ + protected $url = ''; + /** + * Label to describe usage of the URL. + * + * Generated from protobuf field string label = 2; + */ + protected $label = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $url + * Specific URL associated with the resource. + * @type string $label + * Label to describe usage of the URL. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * Specific URL associated with the resource. + * + * Generated from protobuf field string url = 1; + * @return string + */ + public function getUrl() + { + return $this->url; + } + + /** + * Specific URL associated with the resource. + * + * Generated from protobuf field string url = 1; + * @param string $var + * @return $this + */ + public function setUrl($var) + { + GPBUtil::checkString($var, True); + $this->url = $var; + + return $this; + } + + /** + * Label to describe usage of the URL. + * + * Generated from protobuf field string label = 2; + * @return string + */ + public function getLabel() + { + return $this->label; + } + + /** + * Label to describe usage of the URL. + * + * Generated from protobuf field string label = 2; + * @param string $var + * @return $this + */ + public function setLabel($var) + { + GPBUtil::checkString($var, True); + $this->label = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/RepoId.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/RepoId.php new file mode 100644 index 000000000000..5643c66c7c24 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/RepoId.php @@ -0,0 +1,108 @@ +grafeas.v1.RepoId + */ +class RepoId extends \Google\Protobuf\Internal\Message +{ + protected $id; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Grafeas\V1\ProjectRepoId $project_repo_id + * A combination of a project ID and a repo name. + * @type string $uid + * A server-assigned, globally unique identifier. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Provenance::initOnce(); + parent::__construct($data); + } + + /** + * A combination of a project ID and a repo name. + * + * Generated from protobuf field .grafeas.v1.ProjectRepoId project_repo_id = 1; + * @return \Grafeas\V1\ProjectRepoId|null + */ + public function getProjectRepoId() + { + return $this->readOneof(1); + } + + public function hasProjectRepoId() + { + return $this->hasOneof(1); + } + + /** + * A combination of a project ID and a repo name. + * + * Generated from protobuf field .grafeas.v1.ProjectRepoId project_repo_id = 1; + * @param \Grafeas\V1\ProjectRepoId $var + * @return $this + */ + public function setProjectRepoId($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\ProjectRepoId::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A server-assigned, globally unique identifier. + * + * Generated from protobuf field string uid = 2; + * @return string + */ + public function getUid() + { + return $this->readOneof(2); + } + + public function hasUid() + { + return $this->hasOneof(2); + } + + /** + * A server-assigned, globally unique identifier. + * + * Generated from protobuf field string uid = 2; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getId() + { + return $this->whichOneof("id"); + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Risk.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Risk.php new file mode 100644 index 000000000000..4f9c4bd62a86 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Risk.php @@ -0,0 +1,127 @@ +grafeas.v1.Risk + */ +class Risk extends \Google\Protobuf\Internal\Message +{ + /** + * CISA maintains the authoritative source of vulnerabilities that have been + * exploited in the wild. + * + * Generated from protobuf field .grafeas.v1.CISAKnownExploitedVulnerabilities cisa_kev = 1; + */ + protected $cisa_kev = null; + /** + * The Exploit Prediction Scoring System (EPSS) estimates the likelihood + * (probability) that a software vulnerability will be exploited in the wild. + * + * Generated from protobuf field .grafeas.v1.ExploitPredictionScoringSystem epss = 2; + */ + protected $epss = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Grafeas\V1\CISAKnownExploitedVulnerabilities $cisa_kev + * CISA maintains the authoritative source of vulnerabilities that have been + * exploited in the wild. + * @type \Grafeas\V1\ExploitPredictionScoringSystem $epss + * The Exploit Prediction Scoring System (EPSS) estimates the likelihood + * (probability) that a software vulnerability will be exploited in the wild. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Risk::initOnce(); + parent::__construct($data); + } + + /** + * CISA maintains the authoritative source of vulnerabilities that have been + * exploited in the wild. + * + * Generated from protobuf field .grafeas.v1.CISAKnownExploitedVulnerabilities cisa_kev = 1; + * @return \Grafeas\V1\CISAKnownExploitedVulnerabilities|null + */ + public function getCisaKev() + { + return $this->cisa_kev; + } + + public function hasCisaKev() + { + return isset($this->cisa_kev); + } + + public function clearCisaKev() + { + unset($this->cisa_kev); + } + + /** + * CISA maintains the authoritative source of vulnerabilities that have been + * exploited in the wild. + * + * Generated from protobuf field .grafeas.v1.CISAKnownExploitedVulnerabilities cisa_kev = 1; + * @param \Grafeas\V1\CISAKnownExploitedVulnerabilities $var + * @return $this + */ + public function setCisaKev($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\CISAKnownExploitedVulnerabilities::class); + $this->cisa_kev = $var; + + return $this; + } + + /** + * The Exploit Prediction Scoring System (EPSS) estimates the likelihood + * (probability) that a software vulnerability will be exploited in the wild. + * + * Generated from protobuf field .grafeas.v1.ExploitPredictionScoringSystem epss = 2; + * @return \Grafeas\V1\ExploitPredictionScoringSystem|null + */ + public function getEpss() + { + return $this->epss; + } + + public function hasEpss() + { + return isset($this->epss); + } + + public function clearEpss() + { + unset($this->epss); + } + + /** + * The Exploit Prediction Scoring System (EPSS) estimates the likelihood + * (probability) that a software vulnerability will be exploited in the wild. + * + * Generated from protobuf field .grafeas.v1.ExploitPredictionScoringSystem epss = 2; + * @param \Grafeas\V1\ExploitPredictionScoringSystem $var + * @return $this + */ + public function setEpss($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\ExploitPredictionScoringSystem::class); + $this->epss = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SBOMReferenceNote.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SBOMReferenceNote.php new file mode 100644 index 000000000000..bb58886d3a3d --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SBOMReferenceNote.php @@ -0,0 +1,105 @@ +grafeas.v1.SBOMReferenceNote + */ +class SBOMReferenceNote extends \Google\Protobuf\Internal\Message +{ + /** + * The format that SBOM takes. E.g. may be spdx, cyclonedx, etc... + * + * Generated from protobuf field string format = 1; + */ + protected $format = ''; + /** + * The version of the format that the SBOM takes. E.g. if the format + * is spdx, the version may be 2.3. + * + * Generated from protobuf field string version = 2; + */ + protected $version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $format + * The format that SBOM takes. E.g. may be spdx, cyclonedx, etc... + * @type string $version + * The version of the format that the SBOM takes. E.g. if the format + * is spdx, the version may be 2.3. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Sbom::initOnce(); + parent::__construct($data); + } + + /** + * The format that SBOM takes. E.g. may be spdx, cyclonedx, etc... + * + * Generated from protobuf field string format = 1; + * @return string + */ + public function getFormat() + { + return $this->format; + } + + /** + * The format that SBOM takes. E.g. may be spdx, cyclonedx, etc... + * + * Generated from protobuf field string format = 1; + * @param string $var + * @return $this + */ + public function setFormat($var) + { + GPBUtil::checkString($var, True); + $this->format = $var; + + return $this; + } + + /** + * The version of the format that the SBOM takes. E.g. if the format + * is spdx, the version may be 2.3. + * + * Generated from protobuf field string version = 2; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * The version of the format that the SBOM takes. E.g. if the format + * is spdx, the version may be 2.3. + * + * Generated from protobuf field string version = 2; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SBOMReferenceOccurrence.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SBOMReferenceOccurrence.php new file mode 100644 index 000000000000..4d4d0daa7670 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SBOMReferenceOccurrence.php @@ -0,0 +1,156 @@ +grafeas.v1.SBOMReferenceOccurrence + */ +class SBOMReferenceOccurrence extends \Google\Protobuf\Internal\Message +{ + /** + * The actual payload that contains the SBOM reference data. + * + * Generated from protobuf field .grafeas.v1.SbomReferenceIntotoPayload payload = 1; + */ + protected $payload = null; + /** + * The kind of payload that SbomReferenceIntotoPayload takes. Since it's in + * the intoto format, this value is expected to be + * 'application/vnd.in-toto+json'. + * + * Generated from protobuf field string payload_type = 2; + */ + protected $payload_type = ''; + /** + * The signatures over the payload. + * + * Generated from protobuf field repeated .grafeas.v1.EnvelopeSignature signatures = 3; + */ + private $signatures; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Grafeas\V1\SbomReferenceIntotoPayload $payload + * The actual payload that contains the SBOM reference data. + * @type string $payload_type + * The kind of payload that SbomReferenceIntotoPayload takes. Since it's in + * the intoto format, this value is expected to be + * 'application/vnd.in-toto+json'. + * @type array<\Grafeas\V1\EnvelopeSignature>|\Google\Protobuf\Internal\RepeatedField $signatures + * The signatures over the payload. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Sbom::initOnce(); + parent::__construct($data); + } + + /** + * The actual payload that contains the SBOM reference data. + * + * Generated from protobuf field .grafeas.v1.SbomReferenceIntotoPayload payload = 1; + * @return \Grafeas\V1\SbomReferenceIntotoPayload|null + */ + public function getPayload() + { + return $this->payload; + } + + public function hasPayload() + { + return isset($this->payload); + } + + public function clearPayload() + { + unset($this->payload); + } + + /** + * The actual payload that contains the SBOM reference data. + * + * Generated from protobuf field .grafeas.v1.SbomReferenceIntotoPayload payload = 1; + * @param \Grafeas\V1\SbomReferenceIntotoPayload $var + * @return $this + */ + public function setPayload($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\SbomReferenceIntotoPayload::class); + $this->payload = $var; + + return $this; + } + + /** + * The kind of payload that SbomReferenceIntotoPayload takes. Since it's in + * the intoto format, this value is expected to be + * 'application/vnd.in-toto+json'. + * + * Generated from protobuf field string payload_type = 2; + * @return string + */ + public function getPayloadType() + { + return $this->payload_type; + } + + /** + * The kind of payload that SbomReferenceIntotoPayload takes. Since it's in + * the intoto format, this value is expected to be + * 'application/vnd.in-toto+json'. + * + * Generated from protobuf field string payload_type = 2; + * @param string $var + * @return $this + */ + public function setPayloadType($var) + { + GPBUtil::checkString($var, True); + $this->payload_type = $var; + + return $this; + } + + /** + * The signatures over the payload. + * + * Generated from protobuf field repeated .grafeas.v1.EnvelopeSignature signatures = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSignatures() + { + return $this->signatures; + } + + /** + * The signatures over the payload. + * + * Generated from protobuf field repeated .grafeas.v1.EnvelopeSignature signatures = 3; + * @param array<\Grafeas\V1\EnvelopeSignature>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSignatures($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\EnvelopeSignature::class); + $this->signatures = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SbomReferenceIntotoPayload.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SbomReferenceIntotoPayload.php new file mode 100644 index 000000000000..929614e5e836 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SbomReferenceIntotoPayload.php @@ -0,0 +1,190 @@ +grafeas.v1.SbomReferenceIntotoPayload + */ +class SbomReferenceIntotoPayload extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier for the schema of the Statement. + * + * Generated from protobuf field string type = 1 [json_name = "_type"]; + */ + protected $type = ''; + /** + * URI identifying the type of the Predicate. + * + * Generated from protobuf field string predicate_type = 2; + */ + protected $predicate_type = ''; + /** + * Set of software artifacts that the attestation applies to. Each element + * represents a single software artifact. + * + * Generated from protobuf field repeated .grafeas.v1.Subject subject = 3; + */ + private $subject; + /** + * Additional parameters of the Predicate. Includes the actual data about the + * SBOM. + * + * Generated from protobuf field .grafeas.v1.SbomReferenceIntotoPredicate predicate = 4; + */ + protected $predicate = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $type + * Identifier for the schema of the Statement. + * @type string $predicate_type + * URI identifying the type of the Predicate. + * @type array<\Grafeas\V1\Subject>|\Google\Protobuf\Internal\RepeatedField $subject + * Set of software artifacts that the attestation applies to. Each element + * represents a single software artifact. + * @type \Grafeas\V1\SbomReferenceIntotoPredicate $predicate + * Additional parameters of the Predicate. Includes the actual data about the + * SBOM. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Sbom::initOnce(); + parent::__construct($data); + } + + /** + * Identifier for the schema of the Statement. + * + * Generated from protobuf field string type = 1 [json_name = "_type"]; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * Identifier for the schema of the Statement. + * + * Generated from protobuf field string type = 1 [json_name = "_type"]; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * URI identifying the type of the Predicate. + * + * Generated from protobuf field string predicate_type = 2; + * @return string + */ + public function getPredicateType() + { + return $this->predicate_type; + } + + /** + * URI identifying the type of the Predicate. + * + * Generated from protobuf field string predicate_type = 2; + * @param string $var + * @return $this + */ + public function setPredicateType($var) + { + GPBUtil::checkString($var, True); + $this->predicate_type = $var; + + return $this; + } + + /** + * Set of software artifacts that the attestation applies to. Each element + * represents a single software artifact. + * + * Generated from protobuf field repeated .grafeas.v1.Subject subject = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSubject() + { + return $this->subject; + } + + /** + * Set of software artifacts that the attestation applies to. Each element + * represents a single software artifact. + * + * Generated from protobuf field repeated .grafeas.v1.Subject subject = 3; + * @param array<\Grafeas\V1\Subject>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSubject($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Subject::class); + $this->subject = $arr; + + return $this; + } + + /** + * Additional parameters of the Predicate. Includes the actual data about the + * SBOM. + * + * Generated from protobuf field .grafeas.v1.SbomReferenceIntotoPredicate predicate = 4; + * @return \Grafeas\V1\SbomReferenceIntotoPredicate|null + */ + public function getPredicate() + { + return $this->predicate; + } + + public function hasPredicate() + { + return isset($this->predicate); + } + + public function clearPredicate() + { + unset($this->predicate); + } + + /** + * Additional parameters of the Predicate. Includes the actual data about the + * SBOM. + * + * Generated from protobuf field .grafeas.v1.SbomReferenceIntotoPredicate predicate = 4; + * @param \Grafeas\V1\SbomReferenceIntotoPredicate $var + * @return $this + */ + public function setPredicate($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\SbomReferenceIntotoPredicate::class); + $this->predicate = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SbomReferenceIntotoPredicate.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SbomReferenceIntotoPredicate.php new file mode 100644 index 000000000000..6a25f561f69e --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SbomReferenceIntotoPredicate.php @@ -0,0 +1,169 @@ +grafeas.v1.SbomReferenceIntotoPredicate + */ +class SbomReferenceIntotoPredicate extends \Google\Protobuf\Internal\Message +{ + /** + * The person or system referring this predicate to the consumer. + * + * Generated from protobuf field string referrer_id = 1; + */ + protected $referrer_id = ''; + /** + * The location of the SBOM. + * + * Generated from protobuf field string location = 2; + */ + protected $location = ''; + /** + * The mime type of the SBOM. + * + * Generated from protobuf field string mime_type = 3; + */ + protected $mime_type = ''; + /** + * A map of algorithm to digest of the contents of the SBOM. + * + * Generated from protobuf field map digest = 4; + */ + private $digest; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $referrer_id + * The person or system referring this predicate to the consumer. + * @type string $location + * The location of the SBOM. + * @type string $mime_type + * The mime type of the SBOM. + * @type array|\Google\Protobuf\Internal\MapField $digest + * A map of algorithm to digest of the contents of the SBOM. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Sbom::initOnce(); + parent::__construct($data); + } + + /** + * The person or system referring this predicate to the consumer. + * + * Generated from protobuf field string referrer_id = 1; + * @return string + */ + public function getReferrerId() + { + return $this->referrer_id; + } + + /** + * The person or system referring this predicate to the consumer. + * + * Generated from protobuf field string referrer_id = 1; + * @param string $var + * @return $this + */ + public function setReferrerId($var) + { + GPBUtil::checkString($var, True); + $this->referrer_id = $var; + + return $this; + } + + /** + * The location of the SBOM. + * + * Generated from protobuf field string location = 2; + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * The location of the SBOM. + * + * Generated from protobuf field string location = 2; + * @param string $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, True); + $this->location = $var; + + return $this; + } + + /** + * The mime type of the SBOM. + * + * Generated from protobuf field string mime_type = 3; + * @return string + */ + public function getMimeType() + { + return $this->mime_type; + } + + /** + * The mime type of the SBOM. + * + * Generated from protobuf field string mime_type = 3; + * @param string $var + * @return $this + */ + public function setMimeType($var) + { + GPBUtil::checkString($var, True); + $this->mime_type = $var; + + return $this; + } + + /** + * A map of algorithm to digest of the contents of the SBOM. + * + * Generated from protobuf field map digest = 4; + * @return \Google\Protobuf\Internal\MapField + */ + public function getDigest() + { + return $this->digest; + } + + /** + * A map of algorithm to digest of the contents of the SBOM. + * + * Generated from protobuf field map digest = 4; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setDigest($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->digest = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretKind.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretKind.php new file mode 100644 index 000000000000..44c10cc3f171 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretKind.php @@ -0,0 +1,205 @@ +grafeas.v1.SecretKind + */ +class SecretKind +{ + /** + * Unspecified + * + * Generated from protobuf enum SECRET_KIND_UNSPECIFIED = 0; + */ + const SECRET_KIND_UNSPECIFIED = 0; + /** + * The secret kind is unknown. + * + * Generated from protobuf enum SECRET_KIND_UNKNOWN = 1; + */ + const SECRET_KIND_UNKNOWN = 1; + /** + * A Google Cloud service account key per: + * https://cloud.google.com/iam/docs/creating-managing-service-account-keys + * + * Generated from protobuf enum SECRET_KIND_GCP_SERVICE_ACCOUNT_KEY = 2; + */ + const SECRET_KIND_GCP_SERVICE_ACCOUNT_KEY = 2; + /** + * A Google Cloud API key per: + * https://cloud.google.com/docs/authentication/api-keys + * + * Generated from protobuf enum SECRET_KIND_GCP_API_KEY = 3; + */ + const SECRET_KIND_GCP_API_KEY = 3; + /** + * A Google Cloud OAuth2 client credentials per: + * https://developers.google.com/identity/protocols/oauth2 + * + * Generated from protobuf enum SECRET_KIND_GCP_OAUTH2_CLIENT_CREDENTIALS = 4; + */ + const SECRET_KIND_GCP_OAUTH2_CLIENT_CREDENTIALS = 4; + /** + * A Google Cloud OAuth2 access token per: + * https://cloud.google.com/docs/authentication/token-types#access + * + * Generated from protobuf enum SECRET_KIND_GCP_OAUTH2_ACCESS_TOKEN = 5; + */ + const SECRET_KIND_GCP_OAUTH2_ACCESS_TOKEN = 5; + /** + * An Anthropic Admin API key. + * + * Generated from protobuf enum SECRET_KIND_ANTHROPIC_ADMIN_API_KEY = 6; + */ + const SECRET_KIND_ANTHROPIC_ADMIN_API_KEY = 6; + /** + * An Anthropic API key. + * + * Generated from protobuf enum SECRET_KIND_ANTHROPIC_API_KEY = 7; + */ + const SECRET_KIND_ANTHROPIC_API_KEY = 7; + /** + * An Azure access token. + * + * Generated from protobuf enum SECRET_KIND_AZURE_ACCESS_TOKEN = 8; + */ + const SECRET_KIND_AZURE_ACCESS_TOKEN = 8; + /** + * An Azure Identity Platform ID token. + * + * Generated from protobuf enum SECRET_KIND_AZURE_IDENTITY_TOKEN = 9; + */ + const SECRET_KIND_AZURE_IDENTITY_TOKEN = 9; + /** + * A Docker Hub personal access token. + * + * Generated from protobuf enum SECRET_KIND_DOCKER_HUB_PERSONAL_ACCESS_TOKEN = 10; + */ + const SECRET_KIND_DOCKER_HUB_PERSONAL_ACCESS_TOKEN = 10; + /** + * A GitHub App refresh token. + * + * Generated from protobuf enum SECRET_KIND_GITHUB_APP_REFRESH_TOKEN = 11; + */ + const SECRET_KIND_GITHUB_APP_REFRESH_TOKEN = 11; + /** + * A GitHub App server-to-server token. + * + * Generated from protobuf enum SECRET_KIND_GITHUB_APP_SERVER_TO_SERVER_TOKEN = 12; + */ + const SECRET_KIND_GITHUB_APP_SERVER_TO_SERVER_TOKEN = 12; + /** + * A GitHub App user-to-server token. + * + * Generated from protobuf enum SECRET_KIND_GITHUB_APP_USER_TO_SERVER_TOKEN = 13; + */ + const SECRET_KIND_GITHUB_APP_USER_TO_SERVER_TOKEN = 13; + /** + * A GitHub personal access token (classic). + * + * Generated from protobuf enum SECRET_KIND_GITHUB_CLASSIC_PERSONAL_ACCESS_TOKEN = 14; + */ + const SECRET_KIND_GITHUB_CLASSIC_PERSONAL_ACCESS_TOKEN = 14; + /** + * A GitHub fine-grained personal access token. + * + * Generated from protobuf enum SECRET_KIND_GITHUB_FINE_GRAINED_PERSONAL_ACCESS_TOKEN = 15; + */ + const SECRET_KIND_GITHUB_FINE_GRAINED_PERSONAL_ACCESS_TOKEN = 15; + /** + * A GitHub OAuth token. + * + * Generated from protobuf enum SECRET_KIND_GITHUB_OAUTH_TOKEN = 16; + */ + const SECRET_KIND_GITHUB_OAUTH_TOKEN = 16; + /** + * A Hugging Face API key. + * + * Generated from protobuf enum SECRET_KIND_HUGGINGFACE_API_KEY = 17; + */ + const SECRET_KIND_HUGGINGFACE_API_KEY = 17; + /** + * An OpenAI API key. + * + * Generated from protobuf enum SECRET_KIND_OPENAI_API_KEY = 18; + */ + const SECRET_KIND_OPENAI_API_KEY = 18; + /** + * A Perplexity API key. + * + * Generated from protobuf enum SECRET_KIND_PERPLEXITY_API_KEY = 19; + */ + const SECRET_KIND_PERPLEXITY_API_KEY = 19; + /** + * A Stripe secret key. + * + * Generated from protobuf enum SECRET_KIND_STRIPE_SECRET_KEY = 20; + */ + const SECRET_KIND_STRIPE_SECRET_KEY = 20; + /** + * A Stripe restricted key. + * + * Generated from protobuf enum SECRET_KIND_STRIPE_RESTRICTED_KEY = 21; + */ + const SECRET_KIND_STRIPE_RESTRICTED_KEY = 21; + /** + * A Stripe webhook secret. + * + * Generated from protobuf enum SECRET_KIND_STRIPE_WEBHOOK_SECRET = 22; + */ + const SECRET_KIND_STRIPE_WEBHOOK_SECRET = 22; + + private static $valueToName = [ + self::SECRET_KIND_UNSPECIFIED => 'SECRET_KIND_UNSPECIFIED', + self::SECRET_KIND_UNKNOWN => 'SECRET_KIND_UNKNOWN', + self::SECRET_KIND_GCP_SERVICE_ACCOUNT_KEY => 'SECRET_KIND_GCP_SERVICE_ACCOUNT_KEY', + self::SECRET_KIND_GCP_API_KEY => 'SECRET_KIND_GCP_API_KEY', + self::SECRET_KIND_GCP_OAUTH2_CLIENT_CREDENTIALS => 'SECRET_KIND_GCP_OAUTH2_CLIENT_CREDENTIALS', + self::SECRET_KIND_GCP_OAUTH2_ACCESS_TOKEN => 'SECRET_KIND_GCP_OAUTH2_ACCESS_TOKEN', + self::SECRET_KIND_ANTHROPIC_ADMIN_API_KEY => 'SECRET_KIND_ANTHROPIC_ADMIN_API_KEY', + self::SECRET_KIND_ANTHROPIC_API_KEY => 'SECRET_KIND_ANTHROPIC_API_KEY', + self::SECRET_KIND_AZURE_ACCESS_TOKEN => 'SECRET_KIND_AZURE_ACCESS_TOKEN', + self::SECRET_KIND_AZURE_IDENTITY_TOKEN => 'SECRET_KIND_AZURE_IDENTITY_TOKEN', + self::SECRET_KIND_DOCKER_HUB_PERSONAL_ACCESS_TOKEN => 'SECRET_KIND_DOCKER_HUB_PERSONAL_ACCESS_TOKEN', + self::SECRET_KIND_GITHUB_APP_REFRESH_TOKEN => 'SECRET_KIND_GITHUB_APP_REFRESH_TOKEN', + self::SECRET_KIND_GITHUB_APP_SERVER_TO_SERVER_TOKEN => 'SECRET_KIND_GITHUB_APP_SERVER_TO_SERVER_TOKEN', + self::SECRET_KIND_GITHUB_APP_USER_TO_SERVER_TOKEN => 'SECRET_KIND_GITHUB_APP_USER_TO_SERVER_TOKEN', + self::SECRET_KIND_GITHUB_CLASSIC_PERSONAL_ACCESS_TOKEN => 'SECRET_KIND_GITHUB_CLASSIC_PERSONAL_ACCESS_TOKEN', + self::SECRET_KIND_GITHUB_FINE_GRAINED_PERSONAL_ACCESS_TOKEN => 'SECRET_KIND_GITHUB_FINE_GRAINED_PERSONAL_ACCESS_TOKEN', + self::SECRET_KIND_GITHUB_OAUTH_TOKEN => 'SECRET_KIND_GITHUB_OAUTH_TOKEN', + self::SECRET_KIND_HUGGINGFACE_API_KEY => 'SECRET_KIND_HUGGINGFACE_API_KEY', + self::SECRET_KIND_OPENAI_API_KEY => 'SECRET_KIND_OPENAI_API_KEY', + self::SECRET_KIND_PERPLEXITY_API_KEY => 'SECRET_KIND_PERPLEXITY_API_KEY', + self::SECRET_KIND_STRIPE_SECRET_KEY => 'SECRET_KIND_STRIPE_SECRET_KEY', + self::SECRET_KIND_STRIPE_RESTRICTED_KEY => 'SECRET_KIND_STRIPE_RESTRICTED_KEY', + self::SECRET_KIND_STRIPE_WEBHOOK_SECRET => 'SECRET_KIND_STRIPE_WEBHOOK_SECRET', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretLocation.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretLocation.php new file mode 100644 index 000000000000..10acbb2b9054 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretLocation.php @@ -0,0 +1,75 @@ +grafeas.v1.SecretLocation + */ +class SecretLocation extends \Google\Protobuf\Internal\Message +{ + protected $location; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Grafeas\V1\FileLocation $file_location + * The secret is found from a file. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Secret::initOnce(); + parent::__construct($data); + } + + /** + * The secret is found from a file. + * + * Generated from protobuf field .grafeas.v1.FileLocation file_location = 1; + * @return \Grafeas\V1\FileLocation|null + */ + public function getFileLocation() + { + return $this->readOneof(1); + } + + public function hasFileLocation() + { + return $this->hasOneof(1); + } + + /** + * The secret is found from a file. + * + * Generated from protobuf field .grafeas.v1.FileLocation file_location = 1; + * @param \Grafeas\V1\FileLocation $var + * @return $this + */ + public function setFileLocation($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\FileLocation::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getLocation() + { + return $this->whichOneof("location"); + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretNote.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretNote.php new file mode 100644 index 000000000000..a0d917082a85 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretNote.php @@ -0,0 +1,33 @@ +grafeas.v1.SecretNote + */ +class SecretNote extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Secret::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretOccurrence.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretOccurrence.php new file mode 100644 index 000000000000..c95696b22bb0 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretOccurrence.php @@ -0,0 +1,227 @@ +grafeas.v1.SecretOccurrence + */ +class SecretOccurrence extends \Google\Protobuf\Internal\Message +{ + /** + * Type of secret. + * + * Generated from protobuf field .grafeas.v1.SecretKind kind = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $kind = 0; + /** + * Locations where the secret is detected. + * + * Generated from protobuf field repeated .grafeas.v1.SecretLocation locations = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $locations; + /** + * Status of the secret. + * + * Generated from protobuf field repeated .grafeas.v1.SecretStatus statuses = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $statuses; + /** + * Scan result of the secret. + * + * Generated from protobuf field .google.protobuf.Any data = 4; + */ + protected $data = null; + /** + * Hash value, typically a digest for the secret data, that allows unique + * identification of a specific secret. + * + * Generated from protobuf field .grafeas.v1.Digest digest = 5; + */ + protected $digest = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $kind + * Type of secret. + * @type array<\Grafeas\V1\SecretLocation>|\Google\Protobuf\Internal\RepeatedField $locations + * Locations where the secret is detected. + * @type array<\Grafeas\V1\SecretStatus>|\Google\Protobuf\Internal\RepeatedField $statuses + * Status of the secret. + * @type \Google\Protobuf\Any $data + * Scan result of the secret. + * @type \Grafeas\V1\Digest $digest + * Hash value, typically a digest for the secret data, that allows unique + * identification of a specific secret. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Secret::initOnce(); + parent::__construct($data); + } + + /** + * Type of secret. + * + * Generated from protobuf field .grafeas.v1.SecretKind kind = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getKind() + { + return $this->kind; + } + + /** + * Type of secret. + * + * Generated from protobuf field .grafeas.v1.SecretKind kind = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setKind($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\SecretKind::class); + $this->kind = $var; + + return $this; + } + + /** + * Locations where the secret is detected. + * + * Generated from protobuf field repeated .grafeas.v1.SecretLocation locations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getLocations() + { + return $this->locations; + } + + /** + * Locations where the secret is detected. + * + * Generated from protobuf field repeated .grafeas.v1.SecretLocation locations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Grafeas\V1\SecretLocation>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\SecretLocation::class); + $this->locations = $arr; + + return $this; + } + + /** + * Status of the secret. + * + * Generated from protobuf field repeated .grafeas.v1.SecretStatus statuses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getStatuses() + { + return $this->statuses; + } + + /** + * Status of the secret. + * + * Generated from protobuf field repeated .grafeas.v1.SecretStatus statuses = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Grafeas\V1\SecretStatus>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setStatuses($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\SecretStatus::class); + $this->statuses = $arr; + + return $this; + } + + /** + * Scan result of the secret. + * + * Generated from protobuf field .google.protobuf.Any data = 4; + * @return \Google\Protobuf\Any|null + */ + public function getData() + { + return $this->data; + } + + public function hasData() + { + return isset($this->data); + } + + public function clearData() + { + unset($this->data); + } + + /** + * Scan result of the secret. + * + * Generated from protobuf field .google.protobuf.Any data = 4; + * @param \Google\Protobuf\Any $var + * @return $this + */ + public function setData($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Any::class); + $this->data = $var; + + return $this; + } + + /** + * Hash value, typically a digest for the secret data, that allows unique + * identification of a specific secret. + * + * Generated from protobuf field .grafeas.v1.Digest digest = 5; + * @return \Grafeas\V1\Digest|null + */ + public function getDigest() + { + return $this->digest; + } + + public function hasDigest() + { + return isset($this->digest); + } + + public function clearDigest() + { + unset($this->digest); + } + + /** + * Hash value, typically a digest for the secret data, that allows unique + * identification of a specific secret. + * + * Generated from protobuf field .grafeas.v1.Digest digest = 5; + * @param \Grafeas\V1\Digest $var + * @return $this + */ + public function setDigest($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\Digest::class); + $this->digest = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretStatus.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretStatus.php new file mode 100644 index 000000000000..3ca3ca513752 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretStatus.php @@ -0,0 +1,145 @@ +grafeas.v1.SecretStatus + */ +class SecretStatus extends \Google\Protobuf\Internal\Message +{ + /** + * The status of the secret. + * + * Generated from protobuf field .grafeas.v1.SecretStatus.Status status = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $status = 0; + /** + * The time the secret status was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_time = null; + /** + * Optional message about the status code. + * + * Generated from protobuf field string message = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $status + * The status of the secret. + * @type \Google\Protobuf\Timestamp $update_time + * The time the secret status was last updated. + * @type string $message + * Optional message about the status code. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Secret::initOnce(); + parent::__construct($data); + } + + /** + * The status of the secret. + * + * Generated from protobuf field .grafeas.v1.SecretStatus.Status status = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getStatus() + { + return $this->status; + } + + /** + * The status of the secret. + * + * Generated from protobuf field .grafeas.v1.SecretStatus.Status status = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\SecretStatus\Status::class); + $this->status = $var; + + return $this; + } + + /** + * The time the secret status was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * The time the secret status was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional message about the status code. + * + * Generated from protobuf field string message = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Optional message about the status code. + * + * Generated from protobuf field string message = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretStatus/Status.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretStatus/Status.php new file mode 100644 index 000000000000..f5463bf2c176 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretStatus/Status.php @@ -0,0 +1,71 @@ +grafeas.v1.SecretStatus.Status + */ +class Status +{ + /** + * Unspecified + * + * Generated from protobuf enum STATUS_UNSPECIFIED = 0; + */ + const STATUS_UNSPECIFIED = 0; + /** + * The status of the secret is unknown. + * + * Generated from protobuf enum UNKNOWN = 1; + */ + const UNKNOWN = 1; + /** + * The secret is valid. + * + * Generated from protobuf enum VALID = 2; + */ + const VALID = 2; + /** + * The secret is invalid. + * + * Generated from protobuf enum INVALID = 3; + */ + const INVALID = 3; + + private static $valueToName = [ + self::STATUS_UNSPECIFIED => 'STATUS_UNSPECIFIED', + self::UNKNOWN => 'UNKNOWN', + self::VALID => 'VALID', + self::INVALID => 'INVALID', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Status::class, \Grafeas\V1\SecretStatus_Status::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Severity.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Severity.php new file mode 100644 index 000000000000..698112c5460e --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Severity.php @@ -0,0 +1,82 @@ +grafeas.v1.Severity + */ +class Severity +{ + /** + * Unknown. + * + * Generated from protobuf enum SEVERITY_UNSPECIFIED = 0; + */ + const SEVERITY_UNSPECIFIED = 0; + /** + * Minimal severity. + * + * Generated from protobuf enum MINIMAL = 1; + */ + const MINIMAL = 1; + /** + * Low severity. + * + * Generated from protobuf enum LOW = 2; + */ + const LOW = 2; + /** + * Medium severity. + * + * Generated from protobuf enum MEDIUM = 3; + */ + const MEDIUM = 3; + /** + * High severity. + * + * Generated from protobuf enum HIGH = 4; + */ + const HIGH = 4; + /** + * Critical severity. + * + * Generated from protobuf enum CRITICAL = 5; + */ + const CRITICAL = 5; + + private static $valueToName = [ + self::SEVERITY_UNSPECIFIED => 'SEVERITY_UNSPECIFIED', + self::MINIMAL => 'MINIMAL', + self::LOW => 'LOW', + self::MEDIUM => 'MEDIUM', + self::HIGH => 'HIGH', + self::CRITICAL => 'CRITICAL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Signature.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Signature.php new file mode 100644 index 000000000000..de57d7bfe087 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Signature.php @@ -0,0 +1,192 @@ +grafeas.v1.Signature + */ +class Signature extends \Google\Protobuf\Internal\Message +{ + /** + * The content of the signature, an opaque bytestring. + * The payload that this signature verifies MUST be unambiguously provided + * with the Signature during verification. A wrapper message might provide + * the payload explicitly. Alternatively, a message might have a canonical + * serialization that can always be unambiguously computed to derive the + * payload. + * + * Generated from protobuf field bytes signature = 1; + */ + protected $signature = ''; + /** + * The identifier for the public key that verifies this signature. + * * The `public_key_id` is required. + * * The `public_key_id` SHOULD be an RFC3986 conformant URI. + * * When possible, the `public_key_id` SHOULD be an immutable reference, + * such as a cryptographic digest. + * Examples of valid `public_key_id`s: + * OpenPGP V4 public key fingerprint: + * * "openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA" + * See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more + * details on this scheme. + * RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER + * serialization): + * * "ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU" + * * "nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5" + * + * Generated from protobuf field string public_key_id = 2; + */ + protected $public_key_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $signature + * The content of the signature, an opaque bytestring. + * The payload that this signature verifies MUST be unambiguously provided + * with the Signature during verification. A wrapper message might provide + * the payload explicitly. Alternatively, a message might have a canonical + * serialization that can always be unambiguously computed to derive the + * payload. + * @type string $public_key_id + * The identifier for the public key that verifies this signature. + * * The `public_key_id` is required. + * * The `public_key_id` SHOULD be an RFC3986 conformant URI. + * * When possible, the `public_key_id` SHOULD be an immutable reference, + * such as a cryptographic digest. + * Examples of valid `public_key_id`s: + * OpenPGP V4 public key fingerprint: + * * "openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA" + * See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more + * details on this scheme. + * RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER + * serialization): + * * "ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU" + * * "nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * The content of the signature, an opaque bytestring. + * The payload that this signature verifies MUST be unambiguously provided + * with the Signature during verification. A wrapper message might provide + * the payload explicitly. Alternatively, a message might have a canonical + * serialization that can always be unambiguously computed to derive the + * payload. + * + * Generated from protobuf field bytes signature = 1; + * @return string + */ + public function getSignature() + { + return $this->signature; + } + + /** + * The content of the signature, an opaque bytestring. + * The payload that this signature verifies MUST be unambiguously provided + * with the Signature during verification. A wrapper message might provide + * the payload explicitly. Alternatively, a message might have a canonical + * serialization that can always be unambiguously computed to derive the + * payload. + * + * Generated from protobuf field bytes signature = 1; + * @param string $var + * @return $this + */ + public function setSignature($var) + { + GPBUtil::checkString($var, False); + $this->signature = $var; + + return $this; + } + + /** + * The identifier for the public key that verifies this signature. + * * The `public_key_id` is required. + * * The `public_key_id` SHOULD be an RFC3986 conformant URI. + * * When possible, the `public_key_id` SHOULD be an immutable reference, + * such as a cryptographic digest. + * Examples of valid `public_key_id`s: + * OpenPGP V4 public key fingerprint: + * * "openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA" + * See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more + * details on this scheme. + * RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER + * serialization): + * * "ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU" + * * "nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5" + * + * Generated from protobuf field string public_key_id = 2; + * @return string + */ + public function getPublicKeyId() + { + return $this->public_key_id; + } + + /** + * The identifier for the public key that verifies this signature. + * * The `public_key_id` is required. + * * The `public_key_id` SHOULD be an RFC3986 conformant URI. + * * When possible, the `public_key_id` SHOULD be an immutable reference, + * such as a cryptographic digest. + * Examples of valid `public_key_id`s: + * OpenPGP V4 public key fingerprint: + * * "openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA" + * See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more + * details on this scheme. + * RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER + * serialization): + * * "ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU" + * * "nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5" + * + * Generated from protobuf field string public_key_id = 2; + * @param string $var + * @return $this + */ + public function setPublicKeyId($var) + { + GPBUtil::checkString($var, True); + $this->public_key_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance.php new file mode 100644 index 000000000000..0113d091326d --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance.php @@ -0,0 +1,214 @@ +grafeas.v1.SlsaProvenance + */ +class SlsaProvenance extends \Google\Protobuf\Internal\Message +{ + /** + * required + * + * Generated from protobuf field .grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1; + */ + protected $builder = null; + /** + * Identifies the configuration used for the build. + * When combined with materials, this SHOULD fully describe the build, + * such that re-running this recipe results in bit-for-bit identical output + * (if the build is reproducible). + * + * Generated from protobuf field .grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2; + */ + protected $recipe = null; + /** + * Generated from protobuf field .grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3; + */ + protected $metadata = null; + /** + * The collection of artifacts that influenced the build including sources, + * dependencies, build tools, base images, and so on. This is considered to be + * incomplete unless metadata.completeness.materials is true. Unset or null is + * equivalent to empty. + * + * Generated from protobuf field repeated .grafeas.v1.SlsaProvenance.Material materials = 4; + */ + private $materials; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Grafeas\V1\SlsaProvenance\SlsaBuilder $builder + * required + * @type \Grafeas\V1\SlsaProvenance\SlsaRecipe $recipe + * Identifies the configuration used for the build. + * When combined with materials, this SHOULD fully describe the build, + * such that re-running this recipe results in bit-for-bit identical output + * (if the build is reproducible). + * @type \Grafeas\V1\SlsaProvenance\SlsaMetadata $metadata + * @type array<\Grafeas\V1\SlsaProvenance\Material>|\Google\Protobuf\Internal\RepeatedField $materials + * The collection of artifacts that influenced the build including sources, + * dependencies, build tools, base images, and so on. This is considered to be + * incomplete unless metadata.completeness.materials is true. Unset or null is + * equivalent to empty. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\SlsaProvenance::initOnce(); + parent::__construct($data); + } + + /** + * required + * + * Generated from protobuf field .grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1; + * @return \Grafeas\V1\SlsaProvenance\SlsaBuilder|null + */ + public function getBuilder() + { + return $this->builder; + } + + public function hasBuilder() + { + return isset($this->builder); + } + + public function clearBuilder() + { + unset($this->builder); + } + + /** + * required + * + * Generated from protobuf field .grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1; + * @param \Grafeas\V1\SlsaProvenance\SlsaBuilder $var + * @return $this + */ + public function setBuilder($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\SlsaProvenance\SlsaBuilder::class); + $this->builder = $var; + + return $this; + } + + /** + * Identifies the configuration used for the build. + * When combined with materials, this SHOULD fully describe the build, + * such that re-running this recipe results in bit-for-bit identical output + * (if the build is reproducible). + * + * Generated from protobuf field .grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2; + * @return \Grafeas\V1\SlsaProvenance\SlsaRecipe|null + */ + public function getRecipe() + { + return $this->recipe; + } + + public function hasRecipe() + { + return isset($this->recipe); + } + + public function clearRecipe() + { + unset($this->recipe); + } + + /** + * Identifies the configuration used for the build. + * When combined with materials, this SHOULD fully describe the build, + * such that re-running this recipe results in bit-for-bit identical output + * (if the build is reproducible). + * + * Generated from protobuf field .grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2; + * @param \Grafeas\V1\SlsaProvenance\SlsaRecipe $var + * @return $this + */ + public function setRecipe($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\SlsaProvenance\SlsaRecipe::class); + $this->recipe = $var; + + return $this; + } + + /** + * Generated from protobuf field .grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3; + * @return \Grafeas\V1\SlsaProvenance\SlsaMetadata|null + */ + public function getMetadata() + { + return $this->metadata; + } + + public function hasMetadata() + { + return isset($this->metadata); + } + + public function clearMetadata() + { + unset($this->metadata); + } + + /** + * Generated from protobuf field .grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3; + * @param \Grafeas\V1\SlsaProvenance\SlsaMetadata $var + * @return $this + */ + public function setMetadata($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\SlsaProvenance\SlsaMetadata::class); + $this->metadata = $var; + + return $this; + } + + /** + * The collection of artifacts that influenced the build including sources, + * dependencies, build tools, base images, and so on. This is considered to be + * incomplete unless metadata.completeness.materials is true. Unset or null is + * equivalent to empty. + * + * Generated from protobuf field repeated .grafeas.v1.SlsaProvenance.Material materials = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMaterials() + { + return $this->materials; + } + + /** + * The collection of artifacts that influenced the build including sources, + * dependencies, build tools, base images, and so on. This is considered to be + * incomplete unless metadata.completeness.materials is true. Unset or null is + * equivalent to empty. + * + * Generated from protobuf field repeated .grafeas.v1.SlsaProvenance.Material materials = 4; + * @param array<\Grafeas\V1\SlsaProvenance\Material>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMaterials($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\SlsaProvenance\Material::class); + $this->materials = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/Material.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/Material.php new file mode 100644 index 000000000000..d2165056a94b --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/Material.php @@ -0,0 +1,88 @@ +grafeas.v1.SlsaProvenance.Material + */ +class Material extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string uri = 1; + */ + protected $uri = ''; + /** + * Generated from protobuf field map digest = 2; + */ + private $digest; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $uri + * @type array|\Google\Protobuf\Internal\MapField $digest + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\SlsaProvenance::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string uri = 1; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * Generated from protobuf field string uri = 1; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + + /** + * Generated from protobuf field map digest = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getDigest() + { + return $this->digest; + } + + /** + * Generated from protobuf field map digest = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setDigest($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->digest = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Material::class, \Grafeas\V1\SlsaProvenance_Material::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaBuilder.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaBuilder.php new file mode 100644 index 000000000000..455fa4993f05 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaBuilder.php @@ -0,0 +1,61 @@ +grafeas.v1.SlsaProvenance.SlsaBuilder + */ +class SlsaBuilder extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string id = 1; + */ + protected $id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\SlsaProvenance::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string id = 1; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Generated from protobuf field string id = 1; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SlsaBuilder::class, \Grafeas\V1\SlsaProvenance_SlsaBuilder::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaCompleteness.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaCompleteness.php new file mode 100644 index 000000000000..15d1ba478108 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaCompleteness.php @@ -0,0 +1,151 @@ +grafeas.v1.SlsaProvenance.SlsaCompleteness + */ +class SlsaCompleteness extends \Google\Protobuf\Internal\Message +{ + /** + * If true, the builder claims that recipe.arguments is complete, meaning + * that all external inputs are properly captured in the recipe. + * + * Generated from protobuf field bool arguments = 1; + */ + protected $arguments = false; + /** + * If true, the builder claims that recipe.environment is claimed to be + * complete. + * + * Generated from protobuf field bool environment = 2; + */ + protected $environment = false; + /** + * If true, the builder claims that materials are complete, usually through + * some controls to prevent network access. Sometimes called "hermetic". + * + * Generated from protobuf field bool materials = 3; + */ + protected $materials = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $arguments + * If true, the builder claims that recipe.arguments is complete, meaning + * that all external inputs are properly captured in the recipe. + * @type bool $environment + * If true, the builder claims that recipe.environment is claimed to be + * complete. + * @type bool $materials + * If true, the builder claims that materials are complete, usually through + * some controls to prevent network access. Sometimes called "hermetic". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\SlsaProvenance::initOnce(); + parent::__construct($data); + } + + /** + * If true, the builder claims that recipe.arguments is complete, meaning + * that all external inputs are properly captured in the recipe. + * + * Generated from protobuf field bool arguments = 1; + * @return bool + */ + public function getArguments() + { + return $this->arguments; + } + + /** + * If true, the builder claims that recipe.arguments is complete, meaning + * that all external inputs are properly captured in the recipe. + * + * Generated from protobuf field bool arguments = 1; + * @param bool $var + * @return $this + */ + public function setArguments($var) + { + GPBUtil::checkBool($var); + $this->arguments = $var; + + return $this; + } + + /** + * If true, the builder claims that recipe.environment is claimed to be + * complete. + * + * Generated from protobuf field bool environment = 2; + * @return bool + */ + public function getEnvironment() + { + return $this->environment; + } + + /** + * If true, the builder claims that recipe.environment is claimed to be + * complete. + * + * Generated from protobuf field bool environment = 2; + * @param bool $var + * @return $this + */ + public function setEnvironment($var) + { + GPBUtil::checkBool($var); + $this->environment = $var; + + return $this; + } + + /** + * If true, the builder claims that materials are complete, usually through + * some controls to prevent network access. Sometimes called "hermetic". + * + * Generated from protobuf field bool materials = 3; + * @return bool + */ + public function getMaterials() + { + return $this->materials; + } + + /** + * If true, the builder claims that materials are complete, usually through + * some controls to prevent network access. Sometimes called "hermetic". + * + * Generated from protobuf field bool materials = 3; + * @param bool $var + * @return $this + */ + public function setMaterials($var) + { + GPBUtil::checkBool($var); + $this->materials = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SlsaCompleteness::class, \Grafeas\V1\SlsaProvenance_SlsaCompleteness::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaMetadata.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaMetadata.php new file mode 100644 index 000000000000..05447be11b5c --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaMetadata.php @@ -0,0 +1,252 @@ +grafeas.v1.SlsaProvenance.SlsaMetadata + */ +class SlsaMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Identifies the particular build invocation, which can be useful for + * finding associated logs or other ad-hoc analysis. The value SHOULD be + * globally unique, per in-toto Provenance spec. + * + * Generated from protobuf field string build_invocation_id = 1; + */ + protected $build_invocation_id = ''; + /** + * The timestamp of when the build started. + * + * Generated from protobuf field .google.protobuf.Timestamp build_started_on = 2; + */ + protected $build_started_on = null; + /** + * The timestamp of when the build completed. + * + * Generated from protobuf field .google.protobuf.Timestamp build_finished_on = 3; + */ + protected $build_finished_on = null; + /** + * Indicates that the builder claims certain fields in this message to be + * complete. + * + * Generated from protobuf field .grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4; + */ + protected $completeness = null; + /** + * If true, the builder claims that running the recipe on materials will + * produce bit-for-bit identical output. + * + * Generated from protobuf field bool reproducible = 5; + */ + protected $reproducible = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $build_invocation_id + * Identifies the particular build invocation, which can be useful for + * finding associated logs or other ad-hoc analysis. The value SHOULD be + * globally unique, per in-toto Provenance spec. + * @type \Google\Protobuf\Timestamp $build_started_on + * The timestamp of when the build started. + * @type \Google\Protobuf\Timestamp $build_finished_on + * The timestamp of when the build completed. + * @type \Grafeas\V1\SlsaProvenance\SlsaCompleteness $completeness + * Indicates that the builder claims certain fields in this message to be + * complete. + * @type bool $reproducible + * If true, the builder claims that running the recipe on materials will + * produce bit-for-bit identical output. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\SlsaProvenance::initOnce(); + parent::__construct($data); + } + + /** + * Identifies the particular build invocation, which can be useful for + * finding associated logs or other ad-hoc analysis. The value SHOULD be + * globally unique, per in-toto Provenance spec. + * + * Generated from protobuf field string build_invocation_id = 1; + * @return string + */ + public function getBuildInvocationId() + { + return $this->build_invocation_id; + } + + /** + * Identifies the particular build invocation, which can be useful for + * finding associated logs or other ad-hoc analysis. The value SHOULD be + * globally unique, per in-toto Provenance spec. + * + * Generated from protobuf field string build_invocation_id = 1; + * @param string $var + * @return $this + */ + public function setBuildInvocationId($var) + { + GPBUtil::checkString($var, True); + $this->build_invocation_id = $var; + + return $this; + } + + /** + * The timestamp of when the build started. + * + * Generated from protobuf field .google.protobuf.Timestamp build_started_on = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getBuildStartedOn() + { + return $this->build_started_on; + } + + public function hasBuildStartedOn() + { + return isset($this->build_started_on); + } + + public function clearBuildStartedOn() + { + unset($this->build_started_on); + } + + /** + * The timestamp of when the build started. + * + * Generated from protobuf field .google.protobuf.Timestamp build_started_on = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setBuildStartedOn($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->build_started_on = $var; + + return $this; + } + + /** + * The timestamp of when the build completed. + * + * Generated from protobuf field .google.protobuf.Timestamp build_finished_on = 3; + * @return \Google\Protobuf\Timestamp|null + */ + public function getBuildFinishedOn() + { + return $this->build_finished_on; + } + + public function hasBuildFinishedOn() + { + return isset($this->build_finished_on); + } + + public function clearBuildFinishedOn() + { + unset($this->build_finished_on); + } + + /** + * The timestamp of when the build completed. + * + * Generated from protobuf field .google.protobuf.Timestamp build_finished_on = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setBuildFinishedOn($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->build_finished_on = $var; + + return $this; + } + + /** + * Indicates that the builder claims certain fields in this message to be + * complete. + * + * Generated from protobuf field .grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4; + * @return \Grafeas\V1\SlsaProvenance\SlsaCompleteness|null + */ + public function getCompleteness() + { + return $this->completeness; + } + + public function hasCompleteness() + { + return isset($this->completeness); + } + + public function clearCompleteness() + { + unset($this->completeness); + } + + /** + * Indicates that the builder claims certain fields in this message to be + * complete. + * + * Generated from protobuf field .grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4; + * @param \Grafeas\V1\SlsaProvenance\SlsaCompleteness $var + * @return $this + */ + public function setCompleteness($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\SlsaProvenance\SlsaCompleteness::class); + $this->completeness = $var; + + return $this; + } + + /** + * If true, the builder claims that running the recipe on materials will + * produce bit-for-bit identical output. + * + * Generated from protobuf field bool reproducible = 5; + * @return bool + */ + public function getReproducible() + { + return $this->reproducible; + } + + /** + * If true, the builder claims that running the recipe on materials will + * produce bit-for-bit identical output. + * + * Generated from protobuf field bool reproducible = 5; + * @param bool $var + * @return $this + */ + public function setReproducible($var) + { + GPBUtil::checkBool($var); + $this->reproducible = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SlsaMetadata::class, \Grafeas\V1\SlsaProvenance_SlsaMetadata::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaRecipe.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaRecipe.php new file mode 100644 index 000000000000..a448a91e95fb --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaRecipe.php @@ -0,0 +1,296 @@ +grafeas.v1.SlsaProvenance.SlsaRecipe + */ +class SlsaRecipe extends \Google\Protobuf\Internal\Message +{ + /** + * URI indicating what type of recipe was performed. It determines the + * meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and + * materials. + * + * Generated from protobuf field string type = 1; + */ + protected $type = ''; + /** + * Index in materials containing the recipe steps that are not implied by + * recipe.type. For example, if the recipe type were "make", then this would + * point to the source containing the Makefile, not the make program itself. + * Set to -1 if the recipe doesn't come from a material, as zero is default + * unset value for int64. + * + * Generated from protobuf field int64 defined_in_material = 2; + */ + protected $defined_in_material = 0; + /** + * String identifying the entry point into the build. + * This is often a path to a configuration file and/or a target label within + * that file. The syntax and meaning are defined by recipe.type. For + * example, if the recipe type were "make", then this would reference the + * directory in which to run make as well as which target to use. + * + * Generated from protobuf field string entry_point = 3; + */ + protected $entry_point = ''; + /** + * Collection of all external inputs that influenced the build on top of + * recipe.definedInMaterial and recipe.entryPoint. For example, if the + * recipe type were "make", then this might be the flags passed to make + * aside from the target, which is captured in recipe.entryPoint. Depending + * on the recipe Type, the structure may be different. + * + * Generated from protobuf field .google.protobuf.Any arguments = 4; + */ + protected $arguments = null; + /** + * Any other builder-controlled inputs necessary for correctly evaluating + * the recipe. Usually only needed for reproducing the build but not + * evaluated as part of policy. Depending on the recipe Type, the structure + * may be different. + * + * Generated from protobuf field .google.protobuf.Any environment = 5; + */ + protected $environment = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $type + * URI indicating what type of recipe was performed. It determines the + * meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and + * materials. + * @type int|string $defined_in_material + * Index in materials containing the recipe steps that are not implied by + * recipe.type. For example, if the recipe type were "make", then this would + * point to the source containing the Makefile, not the make program itself. + * Set to -1 if the recipe doesn't come from a material, as zero is default + * unset value for int64. + * @type string $entry_point + * String identifying the entry point into the build. + * This is often a path to a configuration file and/or a target label within + * that file. The syntax and meaning are defined by recipe.type. For + * example, if the recipe type were "make", then this would reference the + * directory in which to run make as well as which target to use. + * @type \Google\Protobuf\Any $arguments + * Collection of all external inputs that influenced the build on top of + * recipe.definedInMaterial and recipe.entryPoint. For example, if the + * recipe type were "make", then this might be the flags passed to make + * aside from the target, which is captured in recipe.entryPoint. Depending + * on the recipe Type, the structure may be different. + * @type \Google\Protobuf\Any $environment + * Any other builder-controlled inputs necessary for correctly evaluating + * the recipe. Usually only needed for reproducing the build but not + * evaluated as part of policy. Depending on the recipe Type, the structure + * may be different. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\SlsaProvenance::initOnce(); + parent::__construct($data); + } + + /** + * URI indicating what type of recipe was performed. It determines the + * meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and + * materials. + * + * Generated from protobuf field string type = 1; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * URI indicating what type of recipe was performed. It determines the + * meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and + * materials. + * + * Generated from protobuf field string type = 1; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * Index in materials containing the recipe steps that are not implied by + * recipe.type. For example, if the recipe type were "make", then this would + * point to the source containing the Makefile, not the make program itself. + * Set to -1 if the recipe doesn't come from a material, as zero is default + * unset value for int64. + * + * Generated from protobuf field int64 defined_in_material = 2; + * @return int|string + */ + public function getDefinedInMaterial() + { + return $this->defined_in_material; + } + + /** + * Index in materials containing the recipe steps that are not implied by + * recipe.type. For example, if the recipe type were "make", then this would + * point to the source containing the Makefile, not the make program itself. + * Set to -1 if the recipe doesn't come from a material, as zero is default + * unset value for int64. + * + * Generated from protobuf field int64 defined_in_material = 2; + * @param int|string $var + * @return $this + */ + public function setDefinedInMaterial($var) + { + GPBUtil::checkInt64($var); + $this->defined_in_material = $var; + + return $this; + } + + /** + * String identifying the entry point into the build. + * This is often a path to a configuration file and/or a target label within + * that file. The syntax and meaning are defined by recipe.type. For + * example, if the recipe type were "make", then this would reference the + * directory in which to run make as well as which target to use. + * + * Generated from protobuf field string entry_point = 3; + * @return string + */ + public function getEntryPoint() + { + return $this->entry_point; + } + + /** + * String identifying the entry point into the build. + * This is often a path to a configuration file and/or a target label within + * that file. The syntax and meaning are defined by recipe.type. For + * example, if the recipe type were "make", then this would reference the + * directory in which to run make as well as which target to use. + * + * Generated from protobuf field string entry_point = 3; + * @param string $var + * @return $this + */ + public function setEntryPoint($var) + { + GPBUtil::checkString($var, True); + $this->entry_point = $var; + + return $this; + } + + /** + * Collection of all external inputs that influenced the build on top of + * recipe.definedInMaterial and recipe.entryPoint. For example, if the + * recipe type were "make", then this might be the flags passed to make + * aside from the target, which is captured in recipe.entryPoint. Depending + * on the recipe Type, the structure may be different. + * + * Generated from protobuf field .google.protobuf.Any arguments = 4; + * @return \Google\Protobuf\Any|null + */ + public function getArguments() + { + return $this->arguments; + } + + public function hasArguments() + { + return isset($this->arguments); + } + + public function clearArguments() + { + unset($this->arguments); + } + + /** + * Collection of all external inputs that influenced the build on top of + * recipe.definedInMaterial and recipe.entryPoint. For example, if the + * recipe type were "make", then this might be the flags passed to make + * aside from the target, which is captured in recipe.entryPoint. Depending + * on the recipe Type, the structure may be different. + * + * Generated from protobuf field .google.protobuf.Any arguments = 4; + * @param \Google\Protobuf\Any $var + * @return $this + */ + public function setArguments($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Any::class); + $this->arguments = $var; + + return $this; + } + + /** + * Any other builder-controlled inputs necessary for correctly evaluating + * the recipe. Usually only needed for reproducing the build but not + * evaluated as part of policy. Depending on the recipe Type, the structure + * may be different. + * + * Generated from protobuf field .google.protobuf.Any environment = 5; + * @return \Google\Protobuf\Any|null + */ + public function getEnvironment() + { + return $this->environment; + } + + public function hasEnvironment() + { + return isset($this->environment); + } + + public function clearEnvironment() + { + unset($this->environment); + } + + /** + * Any other builder-controlled inputs necessary for correctly evaluating + * the recipe. Usually only needed for reproducing the build but not + * evaluated as part of policy. Depending on the recipe Type, the structure + * may be different. + * + * Generated from protobuf field .google.protobuf.Any environment = 5; + * @param \Google\Protobuf\Any $var + * @return $this + */ + public function setEnvironment($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Any::class); + $this->environment = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SlsaRecipe::class, \Grafeas\V1\SlsaProvenance_SlsaRecipe::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo.php new file mode 100644 index 000000000000..c066b7a6521b --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo.php @@ -0,0 +1,235 @@ +grafeas.v1.SlsaProvenanceZeroTwo + */ +class SlsaProvenanceZeroTwo extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder builder = 1; + */ + protected $builder = null; + /** + * Generated from protobuf field string build_type = 2; + */ + protected $build_type = ''; + /** + * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation invocation = 3; + */ + protected $invocation = null; + /** + * Generated from protobuf field .google.protobuf.Struct build_config = 4; + */ + protected $build_config = null; + /** + * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata metadata = 5; + */ + protected $metadata = null; + /** + * Generated from protobuf field repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6; + */ + private $materials; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaBuilder $builder + * @type string $build_type + * @type \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaInvocation $invocation + * @type \Google\Protobuf\Struct $build_config + * @type \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaMetadata $metadata + * @type array<\Grafeas\V1\SlsaProvenanceZeroTwo\SlsaMaterial>|\Google\Protobuf\Internal\RepeatedField $materials + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\SlsaProvenanceZeroTwo::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder builder = 1; + * @return \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaBuilder|null + */ + public function getBuilder() + { + return $this->builder; + } + + public function hasBuilder() + { + return isset($this->builder); + } + + public function clearBuilder() + { + unset($this->builder); + } + + /** + * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder builder = 1; + * @param \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaBuilder $var + * @return $this + */ + public function setBuilder($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaBuilder::class); + $this->builder = $var; + + return $this; + } + + /** + * Generated from protobuf field string build_type = 2; + * @return string + */ + public function getBuildType() + { + return $this->build_type; + } + + /** + * Generated from protobuf field string build_type = 2; + * @param string $var + * @return $this + */ + public function setBuildType($var) + { + GPBUtil::checkString($var, True); + $this->build_type = $var; + + return $this; + } + + /** + * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation invocation = 3; + * @return \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaInvocation|null + */ + public function getInvocation() + { + return $this->invocation; + } + + public function hasInvocation() + { + return isset($this->invocation); + } + + public function clearInvocation() + { + unset($this->invocation); + } + + /** + * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation invocation = 3; + * @param \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaInvocation $var + * @return $this + */ + public function setInvocation($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaInvocation::class); + $this->invocation = $var; + + return $this; + } + + /** + * Generated from protobuf field .google.protobuf.Struct build_config = 4; + * @return \Google\Protobuf\Struct|null + */ + public function getBuildConfig() + { + return $this->build_config; + } + + public function hasBuildConfig() + { + return isset($this->build_config); + } + + public function clearBuildConfig() + { + unset($this->build_config); + } + + /** + * Generated from protobuf field .google.protobuf.Struct build_config = 4; + * @param \Google\Protobuf\Struct $var + * @return $this + */ + public function setBuildConfig($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); + $this->build_config = $var; + + return $this; + } + + /** + * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata metadata = 5; + * @return \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaMetadata|null + */ + public function getMetadata() + { + return $this->metadata; + } + + public function hasMetadata() + { + return isset($this->metadata); + } + + public function clearMetadata() + { + unset($this->metadata); + } + + /** + * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata metadata = 5; + * @param \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaMetadata $var + * @return $this + */ + public function setMetadata($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaMetadata::class); + $this->metadata = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMaterials() + { + return $this->materials; + } + + /** + * Generated from protobuf field repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6; + * @param array<\Grafeas\V1\SlsaProvenanceZeroTwo\SlsaMaterial>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMaterials($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaMaterial::class); + $this->materials = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaBuilder.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaBuilder.php new file mode 100644 index 000000000000..8029c7d4c110 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaBuilder.php @@ -0,0 +1,64 @@ +grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder + */ +class SlsaBuilder extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string id = 1; + */ + protected $id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\SlsaProvenanceZeroTwo::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string id = 1; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Generated from protobuf field string id = 1; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SlsaBuilder::class, \Grafeas\V1\SlsaProvenanceZeroTwo_SlsaBuilder::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaCompleteness.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaCompleteness.php new file mode 100644 index 000000000000..dcb6e0a819c6 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaCompleteness.php @@ -0,0 +1,118 @@ +grafeas.v1.SlsaProvenanceZeroTwo.SlsaCompleteness + */ +class SlsaCompleteness extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field bool parameters = 1; + */ + protected $parameters = false; + /** + * Generated from protobuf field bool environment = 2; + */ + protected $environment = false; + /** + * Generated from protobuf field bool materials = 3; + */ + protected $materials = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $parameters + * @type bool $environment + * @type bool $materials + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\SlsaProvenanceZeroTwo::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field bool parameters = 1; + * @return bool + */ + public function getParameters() + { + return $this->parameters; + } + + /** + * Generated from protobuf field bool parameters = 1; + * @param bool $var + * @return $this + */ + public function setParameters($var) + { + GPBUtil::checkBool($var); + $this->parameters = $var; + + return $this; + } + + /** + * Generated from protobuf field bool environment = 2; + * @return bool + */ + public function getEnvironment() + { + return $this->environment; + } + + /** + * Generated from protobuf field bool environment = 2; + * @param bool $var + * @return $this + */ + public function setEnvironment($var) + { + GPBUtil::checkBool($var); + $this->environment = $var; + + return $this; + } + + /** + * Generated from protobuf field bool materials = 3; + * @return bool + */ + public function getMaterials() + { + return $this->materials; + } + + /** + * Generated from protobuf field bool materials = 3; + * @param bool $var + * @return $this + */ + public function setMaterials($var) + { + GPBUtil::checkBool($var); + $this->materials = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SlsaCompleteness::class, \Grafeas\V1\SlsaProvenanceZeroTwo_SlsaCompleteness::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaConfigSource.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaConfigSource.php new file mode 100644 index 000000000000..236b9d685397 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaConfigSource.php @@ -0,0 +1,118 @@ +grafeas.v1.SlsaProvenanceZeroTwo.SlsaConfigSource + */ +class SlsaConfigSource extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string uri = 1; + */ + protected $uri = ''; + /** + * Generated from protobuf field map digest = 2; + */ + private $digest; + /** + * Generated from protobuf field string entry_point = 3; + */ + protected $entry_point = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $uri + * @type array|\Google\Protobuf\Internal\MapField $digest + * @type string $entry_point + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\SlsaProvenanceZeroTwo::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string uri = 1; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * Generated from protobuf field string uri = 1; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + + /** + * Generated from protobuf field map digest = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getDigest() + { + return $this->digest; + } + + /** + * Generated from protobuf field map digest = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setDigest($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->digest = $arr; + + return $this; + } + + /** + * Generated from protobuf field string entry_point = 3; + * @return string + */ + public function getEntryPoint() + { + return $this->entry_point; + } + + /** + * Generated from protobuf field string entry_point = 3; + * @param string $var + * @return $this + */ + public function setEntryPoint($var) + { + GPBUtil::checkString($var, True); + $this->entry_point = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SlsaConfigSource::class, \Grafeas\V1\SlsaProvenanceZeroTwo_SlsaConfigSource::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaInvocation.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaInvocation.php new file mode 100644 index 000000000000..14076ccc4655 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaInvocation.php @@ -0,0 +1,147 @@ +grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation + */ +class SlsaInvocation extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaConfigSource config_source = 1; + */ + protected $config_source = null; + /** + * Generated from protobuf field .google.protobuf.Struct parameters = 2; + */ + protected $parameters = null; + /** + * Generated from protobuf field .google.protobuf.Struct environment = 3; + */ + protected $environment = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaConfigSource $config_source + * @type \Google\Protobuf\Struct $parameters + * @type \Google\Protobuf\Struct $environment + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\SlsaProvenanceZeroTwo::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaConfigSource config_source = 1; + * @return \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaConfigSource|null + */ + public function getConfigSource() + { + return $this->config_source; + } + + public function hasConfigSource() + { + return isset($this->config_source); + } + + public function clearConfigSource() + { + unset($this->config_source); + } + + /** + * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaConfigSource config_source = 1; + * @param \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaConfigSource $var + * @return $this + */ + public function setConfigSource($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaConfigSource::class); + $this->config_source = $var; + + return $this; + } + + /** + * Generated from protobuf field .google.protobuf.Struct parameters = 2; + * @return \Google\Protobuf\Struct|null + */ + public function getParameters() + { + return $this->parameters; + } + + public function hasParameters() + { + return isset($this->parameters); + } + + public function clearParameters() + { + unset($this->parameters); + } + + /** + * Generated from protobuf field .google.protobuf.Struct parameters = 2; + * @param \Google\Protobuf\Struct $var + * @return $this + */ + public function setParameters($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); + $this->parameters = $var; + + return $this; + } + + /** + * Generated from protobuf field .google.protobuf.Struct environment = 3; + * @return \Google\Protobuf\Struct|null + */ + public function getEnvironment() + { + return $this->environment; + } + + public function hasEnvironment() + { + return isset($this->environment); + } + + public function clearEnvironment() + { + unset($this->environment); + } + + /** + * Generated from protobuf field .google.protobuf.Struct environment = 3; + * @param \Google\Protobuf\Struct $var + * @return $this + */ + public function setEnvironment($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); + $this->environment = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SlsaInvocation::class, \Grafeas\V1\SlsaProvenanceZeroTwo_SlsaInvocation::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaMaterial.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaMaterial.php new file mode 100644 index 000000000000..e25c459a24c4 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaMaterial.php @@ -0,0 +1,91 @@ +grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial + */ +class SlsaMaterial extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string uri = 1; + */ + protected $uri = ''; + /** + * Generated from protobuf field map digest = 2; + */ + private $digest; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $uri + * @type array|\Google\Protobuf\Internal\MapField $digest + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\SlsaProvenanceZeroTwo::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string uri = 1; + * @return string + */ + public function getUri() + { + return $this->uri; + } + + /** + * Generated from protobuf field string uri = 1; + * @param string $var + * @return $this + */ + public function setUri($var) + { + GPBUtil::checkString($var, True); + $this->uri = $var; + + return $this; + } + + /** + * Generated from protobuf field map digest = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getDigest() + { + return $this->digest; + } + + /** + * Generated from protobuf field map digest = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setDigest($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->digest = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SlsaMaterial::class, \Grafeas\V1\SlsaProvenanceZeroTwo_SlsaMaterial::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaMetadata.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaMetadata.php new file mode 100644 index 000000000000..611a1e272054 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaMetadata.php @@ -0,0 +1,201 @@ +grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata + */ +class SlsaMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string build_invocation_id = 1; + */ + protected $build_invocation_id = ''; + /** + * Generated from protobuf field .google.protobuf.Timestamp build_started_on = 2; + */ + protected $build_started_on = null; + /** + * Generated from protobuf field .google.protobuf.Timestamp build_finished_on = 3; + */ + protected $build_finished_on = null; + /** + * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaCompleteness completeness = 4; + */ + protected $completeness = null; + /** + * Generated from protobuf field bool reproducible = 5; + */ + protected $reproducible = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $build_invocation_id + * @type \Google\Protobuf\Timestamp $build_started_on + * @type \Google\Protobuf\Timestamp $build_finished_on + * @type \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaCompleteness $completeness + * @type bool $reproducible + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\SlsaProvenanceZeroTwo::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string build_invocation_id = 1; + * @return string + */ + public function getBuildInvocationId() + { + return $this->build_invocation_id; + } + + /** + * Generated from protobuf field string build_invocation_id = 1; + * @param string $var + * @return $this + */ + public function setBuildInvocationId($var) + { + GPBUtil::checkString($var, True); + $this->build_invocation_id = $var; + + return $this; + } + + /** + * Generated from protobuf field .google.protobuf.Timestamp build_started_on = 2; + * @return \Google\Protobuf\Timestamp|null + */ + public function getBuildStartedOn() + { + return $this->build_started_on; + } + + public function hasBuildStartedOn() + { + return isset($this->build_started_on); + } + + public function clearBuildStartedOn() + { + unset($this->build_started_on); + } + + /** + * Generated from protobuf field .google.protobuf.Timestamp build_started_on = 2; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setBuildStartedOn($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->build_started_on = $var; + + return $this; + } + + /** + * Generated from protobuf field .google.protobuf.Timestamp build_finished_on = 3; + * @return \Google\Protobuf\Timestamp|null + */ + public function getBuildFinishedOn() + { + return $this->build_finished_on; + } + + public function hasBuildFinishedOn() + { + return isset($this->build_finished_on); + } + + public function clearBuildFinishedOn() + { + unset($this->build_finished_on); + } + + /** + * Generated from protobuf field .google.protobuf.Timestamp build_finished_on = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setBuildFinishedOn($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->build_finished_on = $var; + + return $this; + } + + /** + * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaCompleteness completeness = 4; + * @return \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaCompleteness|null + */ + public function getCompleteness() + { + return $this->completeness; + } + + public function hasCompleteness() + { + return isset($this->completeness); + } + + public function clearCompleteness() + { + unset($this->completeness); + } + + /** + * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaCompleteness completeness = 4; + * @param \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaCompleteness $var + * @return $this + */ + public function setCompleteness($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaCompleteness::class); + $this->completeness = $var; + + return $this; + } + + /** + * Generated from protobuf field bool reproducible = 5; + * @return bool + */ + public function getReproducible() + { + return $this->reproducible; + } + + /** + * Generated from protobuf field bool reproducible = 5; + * @param bool $var + * @return $this + */ + public function setReproducible($var) + { + GPBUtil::checkBool($var); + $this->reproducible = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SlsaMetadata::class, \Grafeas\V1\SlsaProvenanceZeroTwo_SlsaMetadata::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Source.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Source.php new file mode 100644 index 000000000000..6006031e2e69 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Source.php @@ -0,0 +1,215 @@ +grafeas.v1.Source + */ +class Source extends \Google\Protobuf\Internal\Message +{ + /** + * If provided, the input binary artifacts for the build came from this + * location. + * + * Generated from protobuf field string artifact_storage_source_uri = 1; + */ + protected $artifact_storage_source_uri = ''; + /** + * Hash(es) of the build source, which can be used to verify that the original + * source integrity was maintained in the build. + * The keys to this map are file paths used as build source and the values + * contain the hash values for those files. + * If the build source came in a single package such as a gzipped tarfile + * (.tar.gz), the FileHash will be for the single path to that file. + * + * Generated from protobuf field map file_hashes = 2; + */ + private $file_hashes; + /** + * If provided, the source code used for the build came from this location. + * + * Generated from protobuf field .grafeas.v1.SourceContext context = 3; + */ + protected $context = null; + /** + * If provided, some of the source code used for the build may be found in + * these locations, in the case where the source repository had multiple + * remotes or submodules. This list will not include the context specified in + * the context field. + * + * Generated from protobuf field repeated .grafeas.v1.SourceContext additional_contexts = 4; + */ + private $additional_contexts; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $artifact_storage_source_uri + * If provided, the input binary artifacts for the build came from this + * location. + * @type array|\Google\Protobuf\Internal\MapField $file_hashes + * Hash(es) of the build source, which can be used to verify that the original + * source integrity was maintained in the build. + * The keys to this map are file paths used as build source and the values + * contain the hash values for those files. + * If the build source came in a single package such as a gzipped tarfile + * (.tar.gz), the FileHash will be for the single path to that file. + * @type \Grafeas\V1\SourceContext $context + * If provided, the source code used for the build came from this location. + * @type array<\Grafeas\V1\SourceContext>|\Google\Protobuf\Internal\RepeatedField $additional_contexts + * If provided, some of the source code used for the build may be found in + * these locations, in the case where the source repository had multiple + * remotes or submodules. This list will not include the context specified in + * the context field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Provenance::initOnce(); + parent::__construct($data); + } + + /** + * If provided, the input binary artifacts for the build came from this + * location. + * + * Generated from protobuf field string artifact_storage_source_uri = 1; + * @return string + */ + public function getArtifactStorageSourceUri() + { + return $this->artifact_storage_source_uri; + } + + /** + * If provided, the input binary artifacts for the build came from this + * location. + * + * Generated from protobuf field string artifact_storage_source_uri = 1; + * @param string $var + * @return $this + */ + public function setArtifactStorageSourceUri($var) + { + GPBUtil::checkString($var, True); + $this->artifact_storage_source_uri = $var; + + return $this; + } + + /** + * Hash(es) of the build source, which can be used to verify that the original + * source integrity was maintained in the build. + * The keys to this map are file paths used as build source and the values + * contain the hash values for those files. + * If the build source came in a single package such as a gzipped tarfile + * (.tar.gz), the FileHash will be for the single path to that file. + * + * Generated from protobuf field map file_hashes = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getFileHashes() + { + return $this->file_hashes; + } + + /** + * Hash(es) of the build source, which can be used to verify that the original + * source integrity was maintained in the build. + * The keys to this map are file paths used as build source and the values + * contain the hash values for those files. + * If the build source came in a single package such as a gzipped tarfile + * (.tar.gz), the FileHash will be for the single path to that file. + * + * Generated from protobuf field map file_hashes = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setFileHashes($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\FileHashes::class); + $this->file_hashes = $arr; + + return $this; + } + + /** + * If provided, the source code used for the build came from this location. + * + * Generated from protobuf field .grafeas.v1.SourceContext context = 3; + * @return \Grafeas\V1\SourceContext|null + */ + public function getContext() + { + return $this->context; + } + + public function hasContext() + { + return isset($this->context); + } + + public function clearContext() + { + unset($this->context); + } + + /** + * If provided, the source code used for the build came from this location. + * + * Generated from protobuf field .grafeas.v1.SourceContext context = 3; + * @param \Grafeas\V1\SourceContext $var + * @return $this + */ + public function setContext($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\SourceContext::class); + $this->context = $var; + + return $this; + } + + /** + * If provided, some of the source code used for the build may be found in + * these locations, in the case where the source repository had multiple + * remotes or submodules. This list will not include the context specified in + * the context field. + * + * Generated from protobuf field repeated .grafeas.v1.SourceContext additional_contexts = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAdditionalContexts() + { + return $this->additional_contexts; + } + + /** + * If provided, some of the source code used for the build may be found in + * these locations, in the case where the source repository had multiple + * remotes or submodules. This list will not include the context specified in + * the context field. + * + * Generated from protobuf field repeated .grafeas.v1.SourceContext additional_contexts = 4; + * @param array<\Grafeas\V1\SourceContext>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAdditionalContexts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\SourceContext::class); + $this->additional_contexts = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SourceContext.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SourceContext.php new file mode 100644 index 000000000000..fced17b0d002 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SourceContext.php @@ -0,0 +1,176 @@ +grafeas.v1.SourceContext + */ +class SourceContext extends \Google\Protobuf\Internal\Message +{ + /** + * Labels with user defined metadata. + * + * Generated from protobuf field map labels = 4; + */ + private $labels; + protected $context; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Grafeas\V1\CloudRepoSourceContext $cloud_repo + * A SourceContext referring to a revision in a Google Cloud Source Repo. + * @type \Grafeas\V1\GerritSourceContext $gerrit + * A SourceContext referring to a Gerrit project. + * @type \Grafeas\V1\GitSourceContext $git + * A SourceContext referring to any third party Git repo (e.g., GitHub). + * @type array|\Google\Protobuf\Internal\MapField $labels + * Labels with user defined metadata. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Provenance::initOnce(); + parent::__construct($data); + } + + /** + * A SourceContext referring to a revision in a Google Cloud Source Repo. + * + * Generated from protobuf field .grafeas.v1.CloudRepoSourceContext cloud_repo = 1; + * @return \Grafeas\V1\CloudRepoSourceContext|null + */ + public function getCloudRepo() + { + return $this->readOneof(1); + } + + public function hasCloudRepo() + { + return $this->hasOneof(1); + } + + /** + * A SourceContext referring to a revision in a Google Cloud Source Repo. + * + * Generated from protobuf field .grafeas.v1.CloudRepoSourceContext cloud_repo = 1; + * @param \Grafeas\V1\CloudRepoSourceContext $var + * @return $this + */ + public function setCloudRepo($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\CloudRepoSourceContext::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A SourceContext referring to a Gerrit project. + * + * Generated from protobuf field .grafeas.v1.GerritSourceContext gerrit = 2; + * @return \Grafeas\V1\GerritSourceContext|null + */ + public function getGerrit() + { + return $this->readOneof(2); + } + + public function hasGerrit() + { + return $this->hasOneof(2); + } + + /** + * A SourceContext referring to a Gerrit project. + * + * Generated from protobuf field .grafeas.v1.GerritSourceContext gerrit = 2; + * @param \Grafeas\V1\GerritSourceContext $var + * @return $this + */ + public function setGerrit($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\GerritSourceContext::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * A SourceContext referring to any third party Git repo (e.g., GitHub). + * + * Generated from protobuf field .grafeas.v1.GitSourceContext git = 3; + * @return \Grafeas\V1\GitSourceContext|null + */ + public function getGit() + { + return $this->readOneof(3); + } + + public function hasGit() + { + return $this->hasOneof(3); + } + + /** + * A SourceContext referring to any third party Git repo (e.g., GitHub). + * + * Generated from protobuf field .grafeas.v1.GitSourceContext git = 3; + * @param \Grafeas\V1\GitSourceContext $var + * @return $this + */ + public function setGit($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\GitSourceContext::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Labels with user defined metadata. + * + * Generated from protobuf field map labels = 4; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Labels with user defined metadata. + * + * Generated from protobuf field map labels = 4; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * @return string + */ + public function getContext() + { + return $this->whichOneof("context"); + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Subject.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Subject.php new file mode 100644 index 000000000000..14d4fa6fe2e7 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Subject.php @@ -0,0 +1,104 @@ +grafeas.v1.Subject + */ +class Subject extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * `"": ""` + * Algorithms can be e.g. sha256, sha512 + * See + * https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet + * + * Generated from protobuf field map digest = 2; + */ + private $digest; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * @type array|\Google\Protobuf\Internal\MapField $digest + * `"": ""` + * Algorithms can be e.g. sha256, sha512 + * See + * https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\IntotoStatement::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * `"": ""` + * Algorithms can be e.g. sha256, sha512 + * See + * https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet + * + * Generated from protobuf field map digest = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getDigest() + { + return $this->digest; + } + + /** + * `"": ""` + * Algorithms can be e.g. sha256, sha512 + * See + * https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet + * + * Generated from protobuf field map digest = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setDigest($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->digest = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpdateNoteRequest.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpdateNoteRequest.php new file mode 100644 index 000000000000..e12623cfcdf4 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpdateNoteRequest.php @@ -0,0 +1,178 @@ +grafeas.v1.UpdateNoteRequest + */ +class UpdateNoteRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the note in the form of + * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * The updated note. + * + * Generated from protobuf field .grafeas.v1.Note note = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $note = null; + /** + * The fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + */ + protected $update_mask = null; + + /** + * @param string $name The name of the note in the form of + * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. Please see + * {@see GrafeasClient::noteName()} for help formatting this field. + * @param \Grafeas\V1\Note $note The updated note. + * @param \Google\Protobuf\FieldMask $updateMask The fields to update. + * + * @return \Grafeas\V1\UpdateNoteRequest + * + * @experimental + */ + public static function build(string $name, \Grafeas\V1\Note $note, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setName($name) + ->setNote($note) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the note in the form of + * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. + * @type \Grafeas\V1\Note $note + * The updated note. + * @type \Google\Protobuf\FieldMask $update_mask + * The fields to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); + parent::__construct($data); + } + + /** + * The name of the note in the form of + * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the note in the form of + * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The updated note. + * + * Generated from protobuf field .grafeas.v1.Note note = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Grafeas\V1\Note|null + */ + public function getNote() + { + return $this->note; + } + + public function hasNote() + { + return isset($this->note); + } + + public function clearNote() + { + unset($this->note); + } + + /** + * The updated note. + * + * Generated from protobuf field .grafeas.v1.Note note = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Grafeas\V1\Note $var + * @return $this + */ + public function setNote($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\Note::class); + $this->note = $var; + + return $this; + } + + /** + * The fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * The fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpdateOccurrenceRequest.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpdateOccurrenceRequest.php new file mode 100644 index 000000000000..0d87112304a1 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpdateOccurrenceRequest.php @@ -0,0 +1,178 @@ +grafeas.v1.UpdateOccurrenceRequest + */ +class UpdateOccurrenceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the occurrence in the form of + * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * The updated occurrence. + * + * Generated from protobuf field .grafeas.v1.Occurrence occurrence = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $occurrence = null; + /** + * The fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + */ + protected $update_mask = null; + + /** + * @param string $name The name of the occurrence in the form of + * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. Please see + * {@see GrafeasClient::occurrenceName()} for help formatting this field. + * @param \Grafeas\V1\Occurrence $occurrence The updated occurrence. + * @param \Google\Protobuf\FieldMask $updateMask The fields to update. + * + * @return \Grafeas\V1\UpdateOccurrenceRequest + * + * @experimental + */ + public static function build(string $name, \Grafeas\V1\Occurrence $occurrence, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setName($name) + ->setOccurrence($occurrence) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the occurrence in the form of + * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. + * @type \Grafeas\V1\Occurrence $occurrence + * The updated occurrence. + * @type \Google\Protobuf\FieldMask $update_mask + * The fields to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); + parent::__construct($data); + } + + /** + * The name of the occurrence in the form of + * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the occurrence in the form of + * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The updated occurrence. + * + * Generated from protobuf field .grafeas.v1.Occurrence occurrence = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Grafeas\V1\Occurrence|null + */ + public function getOccurrence() + { + return $this->occurrence; + } + + public function hasOccurrence() + { + return isset($this->occurrence); + } + + public function clearOccurrence() + { + unset($this->occurrence); + } + + /** + * The updated occurrence. + * + * Generated from protobuf field .grafeas.v1.Occurrence occurrence = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Grafeas\V1\Occurrence $var + * @return $this + */ + public function setOccurrence($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\Occurrence::class); + $this->occurrence = $var; + + return $this; + } + + /** + * The fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * The fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpgradeDistribution.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpgradeDistribution.php new file mode 100644 index 000000000000..b5b16a112b02 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpgradeDistribution.php @@ -0,0 +1,187 @@ +grafeas.v1.UpgradeDistribution + */ +class UpgradeDistribution extends \Google\Protobuf\Internal\Message +{ + /** + * Required - The specific operating system this metadata applies to. See + * https://cpe.mitre.org/specification/. + * + * Generated from protobuf field string cpe_uri = 1; + */ + protected $cpe_uri = ''; + /** + * The operating system classification of this Upgrade, as specified by the + * upstream operating system upgrade feed. For Windows the classification is + * one of the category_ids listed at + * https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ff357803(v=vs.85) + * + * Generated from protobuf field string classification = 2; + */ + protected $classification = ''; + /** + * The severity as specified by the upstream operating system. + * + * Generated from protobuf field string severity = 3; + */ + protected $severity = ''; + /** + * The cve tied to this Upgrade. + * + * Generated from protobuf field repeated string cve = 4; + */ + private $cve; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $cpe_uri + * Required - The specific operating system this metadata applies to. See + * https://cpe.mitre.org/specification/. + * @type string $classification + * The operating system classification of this Upgrade, as specified by the + * upstream operating system upgrade feed. For Windows the classification is + * one of the category_ids listed at + * https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ff357803(v=vs.85) + * @type string $severity + * The severity as specified by the upstream operating system. + * @type array|\Google\Protobuf\Internal\RepeatedField $cve + * The cve tied to this Upgrade. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Upgrade::initOnce(); + parent::__construct($data); + } + + /** + * Required - The specific operating system this metadata applies to. See + * https://cpe.mitre.org/specification/. + * + * Generated from protobuf field string cpe_uri = 1; + * @return string + */ + public function getCpeUri() + { + return $this->cpe_uri; + } + + /** + * Required - The specific operating system this metadata applies to. See + * https://cpe.mitre.org/specification/. + * + * Generated from protobuf field string cpe_uri = 1; + * @param string $var + * @return $this + */ + public function setCpeUri($var) + { + GPBUtil::checkString($var, True); + $this->cpe_uri = $var; + + return $this; + } + + /** + * The operating system classification of this Upgrade, as specified by the + * upstream operating system upgrade feed. For Windows the classification is + * one of the category_ids listed at + * https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ff357803(v=vs.85) + * + * Generated from protobuf field string classification = 2; + * @return string + */ + public function getClassification() + { + return $this->classification; + } + + /** + * The operating system classification of this Upgrade, as specified by the + * upstream operating system upgrade feed. For Windows the classification is + * one of the category_ids listed at + * https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ff357803(v=vs.85) + * + * Generated from protobuf field string classification = 2; + * @param string $var + * @return $this + */ + public function setClassification($var) + { + GPBUtil::checkString($var, True); + $this->classification = $var; + + return $this; + } + + /** + * The severity as specified by the upstream operating system. + * + * Generated from protobuf field string severity = 3; + * @return string + */ + public function getSeverity() + { + return $this->severity; + } + + /** + * The severity as specified by the upstream operating system. + * + * Generated from protobuf field string severity = 3; + * @param string $var + * @return $this + */ + public function setSeverity($var) + { + GPBUtil::checkString($var, True); + $this->severity = $var; + + return $this; + } + + /** + * The cve tied to this Upgrade. + * + * Generated from protobuf field repeated string cve = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCve() + { + return $this->cve; + } + + /** + * The cve tied to this Upgrade. + * + * Generated from protobuf field repeated string cve = 4; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCve($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->cve = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpgradeNote.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpgradeNote.php new file mode 100644 index 000000000000..b91b637b0c3b --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpgradeNote.php @@ -0,0 +1,196 @@ +grafeas.v1.UpgradeNote + */ +class UpgradeNote extends \Google\Protobuf\Internal\Message +{ + /** + * Required for non-Windows OS. The package this Upgrade is for. + * + * Generated from protobuf field string package = 1; + */ + protected $package = ''; + /** + * Required for non-Windows OS. The version of the package in machine + human + * readable form. + * + * Generated from protobuf field .grafeas.v1.Version version = 2; + */ + protected $version = null; + /** + * Metadata about the upgrade for each specific operating system. + * + * Generated from protobuf field repeated .grafeas.v1.UpgradeDistribution distributions = 3; + */ + private $distributions; + /** + * Required for Windows OS. Represents the metadata about the Windows update. + * + * Generated from protobuf field .grafeas.v1.WindowsUpdate windows_update = 4; + */ + protected $windows_update = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $package + * Required for non-Windows OS. The package this Upgrade is for. + * @type \Grafeas\V1\Version $version + * Required for non-Windows OS. The version of the package in machine + human + * readable form. + * @type array<\Grafeas\V1\UpgradeDistribution>|\Google\Protobuf\Internal\RepeatedField $distributions + * Metadata about the upgrade for each specific operating system. + * @type \Grafeas\V1\WindowsUpdate $windows_update + * Required for Windows OS. Represents the metadata about the Windows update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Upgrade::initOnce(); + parent::__construct($data); + } + + /** + * Required for non-Windows OS. The package this Upgrade is for. + * + * Generated from protobuf field string package = 1; + * @return string + */ + public function getPackage() + { + return $this->package; + } + + /** + * Required for non-Windows OS. The package this Upgrade is for. + * + * Generated from protobuf field string package = 1; + * @param string $var + * @return $this + */ + public function setPackage($var) + { + GPBUtil::checkString($var, True); + $this->package = $var; + + return $this; + } + + /** + * Required for non-Windows OS. The version of the package in machine + human + * readable form. + * + * Generated from protobuf field .grafeas.v1.Version version = 2; + * @return \Grafeas\V1\Version|null + */ + public function getVersion() + { + return $this->version; + } + + public function hasVersion() + { + return isset($this->version); + } + + public function clearVersion() + { + unset($this->version); + } + + /** + * Required for non-Windows OS. The version of the package in machine + human + * readable form. + * + * Generated from protobuf field .grafeas.v1.Version version = 2; + * @param \Grafeas\V1\Version $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\Version::class); + $this->version = $var; + + return $this; + } + + /** + * Metadata about the upgrade for each specific operating system. + * + * Generated from protobuf field repeated .grafeas.v1.UpgradeDistribution distributions = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDistributions() + { + return $this->distributions; + } + + /** + * Metadata about the upgrade for each specific operating system. + * + * Generated from protobuf field repeated .grafeas.v1.UpgradeDistribution distributions = 3; + * @param array<\Grafeas\V1\UpgradeDistribution>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDistributions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\UpgradeDistribution::class); + $this->distributions = $arr; + + return $this; + } + + /** + * Required for Windows OS. Represents the metadata about the Windows update. + * + * Generated from protobuf field .grafeas.v1.WindowsUpdate windows_update = 4; + * @return \Grafeas\V1\WindowsUpdate|null + */ + public function getWindowsUpdate() + { + return $this->windows_update; + } + + public function hasWindowsUpdate() + { + return isset($this->windows_update); + } + + public function clearWindowsUpdate() + { + unset($this->windows_update); + } + + /** + * Required for Windows OS. Represents the metadata about the Windows update. + * + * Generated from protobuf field .grafeas.v1.WindowsUpdate windows_update = 4; + * @param \Grafeas\V1\WindowsUpdate $var + * @return $this + */ + public function setWindowsUpdate($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\WindowsUpdate::class); + $this->windows_update = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpgradeOccurrence.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpgradeOccurrence.php new file mode 100644 index 000000000000..15c700918d0f --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpgradeOccurrence.php @@ -0,0 +1,215 @@ +grafeas.v1.UpgradeOccurrence + */ +class UpgradeOccurrence extends \Google\Protobuf\Internal\Message +{ + /** + * Required for non-Windows OS. The package this Upgrade is for. + * + * Generated from protobuf field string package = 1; + */ + protected $package = ''; + /** + * Required for non-Windows OS. The version of the package in a machine + + * human readable form. + * + * Generated from protobuf field .grafeas.v1.Version parsed_version = 3; + */ + protected $parsed_version = null; + /** + * Metadata about the upgrade for available for the specific operating system + * for the resource_url. This allows efficient filtering, as well as + * making it easier to use the occurrence. + * + * Generated from protobuf field .grafeas.v1.UpgradeDistribution distribution = 4; + */ + protected $distribution = null; + /** + * Required for Windows OS. Represents the metadata about the Windows update. + * + * Generated from protobuf field .grafeas.v1.WindowsUpdate windows_update = 5; + */ + protected $windows_update = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $package + * Required for non-Windows OS. The package this Upgrade is for. + * @type \Grafeas\V1\Version $parsed_version + * Required for non-Windows OS. The version of the package in a machine + + * human readable form. + * @type \Grafeas\V1\UpgradeDistribution $distribution + * Metadata about the upgrade for available for the specific operating system + * for the resource_url. This allows efficient filtering, as well as + * making it easier to use the occurrence. + * @type \Grafeas\V1\WindowsUpdate $windows_update + * Required for Windows OS. Represents the metadata about the Windows update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Upgrade::initOnce(); + parent::__construct($data); + } + + /** + * Required for non-Windows OS. The package this Upgrade is for. + * + * Generated from protobuf field string package = 1; + * @return string + */ + public function getPackage() + { + return $this->package; + } + + /** + * Required for non-Windows OS. The package this Upgrade is for. + * + * Generated from protobuf field string package = 1; + * @param string $var + * @return $this + */ + public function setPackage($var) + { + GPBUtil::checkString($var, True); + $this->package = $var; + + return $this; + } + + /** + * Required for non-Windows OS. The version of the package in a machine + + * human readable form. + * + * Generated from protobuf field .grafeas.v1.Version parsed_version = 3; + * @return \Grafeas\V1\Version|null + */ + public function getParsedVersion() + { + return $this->parsed_version; + } + + public function hasParsedVersion() + { + return isset($this->parsed_version); + } + + public function clearParsedVersion() + { + unset($this->parsed_version); + } + + /** + * Required for non-Windows OS. The version of the package in a machine + + * human readable form. + * + * Generated from protobuf field .grafeas.v1.Version parsed_version = 3; + * @param \Grafeas\V1\Version $var + * @return $this + */ + public function setParsedVersion($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\Version::class); + $this->parsed_version = $var; + + return $this; + } + + /** + * Metadata about the upgrade for available for the specific operating system + * for the resource_url. This allows efficient filtering, as well as + * making it easier to use the occurrence. + * + * Generated from protobuf field .grafeas.v1.UpgradeDistribution distribution = 4; + * @return \Grafeas\V1\UpgradeDistribution|null + */ + public function getDistribution() + { + return $this->distribution; + } + + public function hasDistribution() + { + return isset($this->distribution); + } + + public function clearDistribution() + { + unset($this->distribution); + } + + /** + * Metadata about the upgrade for available for the specific operating system + * for the resource_url. This allows efficient filtering, as well as + * making it easier to use the occurrence. + * + * Generated from protobuf field .grafeas.v1.UpgradeDistribution distribution = 4; + * @param \Grafeas\V1\UpgradeDistribution $var + * @return $this + */ + public function setDistribution($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\UpgradeDistribution::class); + $this->distribution = $var; + + return $this; + } + + /** + * Required for Windows OS. Represents the metadata about the Windows update. + * + * Generated from protobuf field .grafeas.v1.WindowsUpdate windows_update = 5; + * @return \Grafeas\V1\WindowsUpdate|null + */ + public function getWindowsUpdate() + { + return $this->windows_update; + } + + public function hasWindowsUpdate() + { + return isset($this->windows_update); + } + + public function clearWindowsUpdate() + { + unset($this->windows_update); + } + + /** + * Required for Windows OS. Represents the metadata about the Windows update. + * + * Generated from protobuf field .grafeas.v1.WindowsUpdate windows_update = 5; + * @param \Grafeas\V1\WindowsUpdate $var + * @return $this + */ + public function setWindowsUpdate($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\WindowsUpdate::class); + $this->windows_update = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Version.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Version.php new file mode 100644 index 000000000000..ed635362b2f0 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Version.php @@ -0,0 +1,269 @@ +grafeas.v1.Version + */ +class Version extends \Google\Protobuf\Internal\Message +{ + /** + * Used to correct mistakes in the version numbering scheme. + * + * Generated from protobuf field int32 epoch = 1; + */ + protected $epoch = 0; + /** + * Required only when version kind is NORMAL. The main part of the version + * name. + * + * Generated from protobuf field string name = 2; + */ + protected $name = ''; + /** + * The iteration of the package build from the above version. + * + * Generated from protobuf field string revision = 3; + */ + protected $revision = ''; + /** + * Whether this version is specifying part of an inclusive range. Grafeas + * does not have the capability to specify version ranges; instead we have + * fields that specify start version and end versions. At times this is + * insufficient - we also need to specify whether the version is included in + * the range or is excluded from the range. This boolean is expected to be set + * to true when the version is included in a range. + * + * Generated from protobuf field bool inclusive = 6; + */ + protected $inclusive = false; + /** + * Required. Distinguishes between sentinel MIN/MAX versions and normal + * versions. + * + * Generated from protobuf field .grafeas.v1.Version.VersionKind kind = 4; + */ + protected $kind = 0; + /** + * Human readable version string. This string is of the form + * :- and is only set when kind is NORMAL. + * + * Generated from protobuf field string full_name = 5; + */ + protected $full_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $epoch + * Used to correct mistakes in the version numbering scheme. + * @type string $name + * Required only when version kind is NORMAL. The main part of the version + * name. + * @type string $revision + * The iteration of the package build from the above version. + * @type bool $inclusive + * Whether this version is specifying part of an inclusive range. Grafeas + * does not have the capability to specify version ranges; instead we have + * fields that specify start version and end versions. At times this is + * insufficient - we also need to specify whether the version is included in + * the range or is excluded from the range. This boolean is expected to be set + * to true when the version is included in a range. + * @type int $kind + * Required. Distinguishes between sentinel MIN/MAX versions and normal + * versions. + * @type string $full_name + * Human readable version string. This string is of the form + * :- and is only set when kind is NORMAL. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Package::initOnce(); + parent::__construct($data); + } + + /** + * Used to correct mistakes in the version numbering scheme. + * + * Generated from protobuf field int32 epoch = 1; + * @return int + */ + public function getEpoch() + { + return $this->epoch; + } + + /** + * Used to correct mistakes in the version numbering scheme. + * + * Generated from protobuf field int32 epoch = 1; + * @param int $var + * @return $this + */ + public function setEpoch($var) + { + GPBUtil::checkInt32($var); + $this->epoch = $var; + + return $this; + } + + /** + * Required only when version kind is NORMAL. The main part of the version + * name. + * + * Generated from protobuf field string name = 2; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required only when version kind is NORMAL. The main part of the version + * name. + * + * Generated from protobuf field string name = 2; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The iteration of the package build from the above version. + * + * Generated from protobuf field string revision = 3; + * @return string + */ + public function getRevision() + { + return $this->revision; + } + + /** + * The iteration of the package build from the above version. + * + * Generated from protobuf field string revision = 3; + * @param string $var + * @return $this + */ + public function setRevision($var) + { + GPBUtil::checkString($var, True); + $this->revision = $var; + + return $this; + } + + /** + * Whether this version is specifying part of an inclusive range. Grafeas + * does not have the capability to specify version ranges; instead we have + * fields that specify start version and end versions. At times this is + * insufficient - we also need to specify whether the version is included in + * the range or is excluded from the range. This boolean is expected to be set + * to true when the version is included in a range. + * + * Generated from protobuf field bool inclusive = 6; + * @return bool + */ + public function getInclusive() + { + return $this->inclusive; + } + + /** + * Whether this version is specifying part of an inclusive range. Grafeas + * does not have the capability to specify version ranges; instead we have + * fields that specify start version and end versions. At times this is + * insufficient - we also need to specify whether the version is included in + * the range or is excluded from the range. This boolean is expected to be set + * to true when the version is included in a range. + * + * Generated from protobuf field bool inclusive = 6; + * @param bool $var + * @return $this + */ + public function setInclusive($var) + { + GPBUtil::checkBool($var); + $this->inclusive = $var; + + return $this; + } + + /** + * Required. Distinguishes between sentinel MIN/MAX versions and normal + * versions. + * + * Generated from protobuf field .grafeas.v1.Version.VersionKind kind = 4; + * @return int + */ + public function getKind() + { + return $this->kind; + } + + /** + * Required. Distinguishes between sentinel MIN/MAX versions and normal + * versions. + * + * Generated from protobuf field .grafeas.v1.Version.VersionKind kind = 4; + * @param int $var + * @return $this + */ + public function setKind($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\Version\VersionKind::class); + $this->kind = $var; + + return $this; + } + + /** + * Human readable version string. This string is of the form + * :- and is only set when kind is NORMAL. + * + * Generated from protobuf field string full_name = 5; + * @return string + */ + public function getFullName() + { + return $this->full_name; + } + + /** + * Human readable version string. This string is of the form + * :- and is only set when kind is NORMAL. + * + * Generated from protobuf field string full_name = 5; + * @param string $var + * @return $this + */ + public function setFullName($var) + { + GPBUtil::checkString($var, True); + $this->full_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Version/VersionKind.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Version/VersionKind.php new file mode 100644 index 000000000000..d978c7d44cf5 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Version/VersionKind.php @@ -0,0 +1,71 @@ +grafeas.v1.Version.VersionKind + */ +class VersionKind +{ + /** + * Unknown. + * + * Generated from protobuf enum VERSION_KIND_UNSPECIFIED = 0; + */ + const VERSION_KIND_UNSPECIFIED = 0; + /** + * A standard package version. + * + * Generated from protobuf enum NORMAL = 1; + */ + const NORMAL = 1; + /** + * A special version representing negative infinity. + * + * Generated from protobuf enum MINIMUM = 2; + */ + const MINIMUM = 2; + /** + * A special version representing positive infinity. + * + * Generated from protobuf enum MAXIMUM = 3; + */ + const MAXIMUM = 3; + + private static $valueToName = [ + self::VERSION_KIND_UNSPECIFIED => 'VERSION_KIND_UNSPECIFIED', + self::NORMAL => 'NORMAL', + self::MINIMUM => 'MINIMUM', + self::MAXIMUM => 'MAXIMUM', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(VersionKind::class, \Grafeas\V1\Version_VersionKind::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote.php new file mode 100644 index 000000000000..b0b4b7cd0c34 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote.php @@ -0,0 +1,306 @@ +grafeas.v1.VulnerabilityAssessmentNote + */ +class VulnerabilityAssessmentNote extends \Google\Protobuf\Internal\Message +{ + /** + * The title of the note. E.g. `Vex-Debian-11.4` + * + * Generated from protobuf field string title = 1; + */ + protected $title = ''; + /** + * A one sentence description of this Vex. + * + * Generated from protobuf field string short_description = 2; + */ + protected $short_description = ''; + /** + * A detailed description of this Vex. + * + * Generated from protobuf field string long_description = 3; + */ + protected $long_description = ''; + /** + * Identifies the language used by this document, + * corresponding to IETF BCP 47 / RFC 5646. + * + * Generated from protobuf field string language_code = 4; + */ + protected $language_code = ''; + /** + * Publisher details of this Note. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Publisher publisher = 5; + */ + protected $publisher = null; + /** + * The product affected by this vex. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Product product = 6; + */ + protected $product = null; + /** + * Represents a vulnerability assessment for the product. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment assessment = 7; + */ + protected $assessment = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $title + * The title of the note. E.g. `Vex-Debian-11.4` + * @type string $short_description + * A one sentence description of this Vex. + * @type string $long_description + * A detailed description of this Vex. + * @type string $language_code + * Identifies the language used by this document, + * corresponding to IETF BCP 47 / RFC 5646. + * @type \Grafeas\V1\VulnerabilityAssessmentNote\Publisher $publisher + * Publisher details of this Note. + * @type \Grafeas\V1\VulnerabilityAssessmentNote\Product $product + * The product affected by this vex. + * @type \Grafeas\V1\VulnerabilityAssessmentNote\Assessment $assessment + * Represents a vulnerability assessment for the product. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Vex::initOnce(); + parent::__construct($data); + } + + /** + * The title of the note. E.g. `Vex-Debian-11.4` + * + * Generated from protobuf field string title = 1; + * @return string + */ + public function getTitle() + { + return $this->title; + } + + /** + * The title of the note. E.g. `Vex-Debian-11.4` + * + * Generated from protobuf field string title = 1; + * @param string $var + * @return $this + */ + public function setTitle($var) + { + GPBUtil::checkString($var, True); + $this->title = $var; + + return $this; + } + + /** + * A one sentence description of this Vex. + * + * Generated from protobuf field string short_description = 2; + * @return string + */ + public function getShortDescription() + { + return $this->short_description; + } + + /** + * A one sentence description of this Vex. + * + * Generated from protobuf field string short_description = 2; + * @param string $var + * @return $this + */ + public function setShortDescription($var) + { + GPBUtil::checkString($var, True); + $this->short_description = $var; + + return $this; + } + + /** + * A detailed description of this Vex. + * + * Generated from protobuf field string long_description = 3; + * @return string + */ + public function getLongDescription() + { + return $this->long_description; + } + + /** + * A detailed description of this Vex. + * + * Generated from protobuf field string long_description = 3; + * @param string $var + * @return $this + */ + public function setLongDescription($var) + { + GPBUtil::checkString($var, True); + $this->long_description = $var; + + return $this; + } + + /** + * Identifies the language used by this document, + * corresponding to IETF BCP 47 / RFC 5646. + * + * Generated from protobuf field string language_code = 4; + * @return string + */ + public function getLanguageCode() + { + return $this->language_code; + } + + /** + * Identifies the language used by this document, + * corresponding to IETF BCP 47 / RFC 5646. + * + * Generated from protobuf field string language_code = 4; + * @param string $var + * @return $this + */ + public function setLanguageCode($var) + { + GPBUtil::checkString($var, True); + $this->language_code = $var; + + return $this; + } + + /** + * Publisher details of this Note. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Publisher publisher = 5; + * @return \Grafeas\V1\VulnerabilityAssessmentNote\Publisher|null + */ + public function getPublisher() + { + return $this->publisher; + } + + public function hasPublisher() + { + return isset($this->publisher); + } + + public function clearPublisher() + { + unset($this->publisher); + } + + /** + * Publisher details of this Note. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Publisher publisher = 5; + * @param \Grafeas\V1\VulnerabilityAssessmentNote\Publisher $var + * @return $this + */ + public function setPublisher($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\VulnerabilityAssessmentNote\Publisher::class); + $this->publisher = $var; + + return $this; + } + + /** + * The product affected by this vex. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Product product = 6; + * @return \Grafeas\V1\VulnerabilityAssessmentNote\Product|null + */ + public function getProduct() + { + return $this->product; + } + + public function hasProduct() + { + return isset($this->product); + } + + public function clearProduct() + { + unset($this->product); + } + + /** + * The product affected by this vex. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Product product = 6; + * @param \Grafeas\V1\VulnerabilityAssessmentNote\Product $var + * @return $this + */ + public function setProduct($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\VulnerabilityAssessmentNote\Product::class); + $this->product = $var; + + return $this; + } + + /** + * Represents a vulnerability assessment for the product. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment assessment = 7; + * @return \Grafeas\V1\VulnerabilityAssessmentNote\Assessment|null + */ + public function getAssessment() + { + return $this->assessment; + } + + public function hasAssessment() + { + return isset($this->assessment); + } + + public function clearAssessment() + { + unset($this->assessment); + } + + /** + * Represents a vulnerability assessment for the product. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment assessment = 7; + * @param \Grafeas\V1\VulnerabilityAssessmentNote\Assessment $var + * @return $this + */ + public function setAssessment($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\VulnerabilityAssessmentNote\Assessment::class); + $this->assessment = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment.php new file mode 100644 index 000000000000..4baa6c06cb65 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment.php @@ -0,0 +1,392 @@ +grafeas.v1.VulnerabilityAssessmentNote.Assessment + */ +class Assessment extends \Google\Protobuf\Internal\Message +{ + /** + * Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) + * tracking number for the vulnerability. + * Deprecated: Use vulnerability_id instead to denote CVEs. + * + * Generated from protobuf field string cve = 1 [deprecated = true]; + * @deprecated + */ + protected $cve = ''; + /** + * The vulnerability identifier for this Assessment. Will hold one of + * common identifiers e.g. CVE, GHSA etc. + * + * Generated from protobuf field string vulnerability_id = 9; + */ + protected $vulnerability_id = ''; + /** + * A one sentence description of this Vex. + * + * Generated from protobuf field string short_description = 2; + */ + protected $short_description = ''; + /** + * A detailed description of this Vex. + * + * Generated from protobuf field string long_description = 3; + */ + protected $long_description = ''; + /** + * Holds a list of references associated with this vulnerability item and + * assessment. These uris have additional information about the + * vulnerability and the assessment itself. E.g. Link to a document which + * details how this assessment concluded the state of this vulnerability. + * + * Generated from protobuf field repeated .grafeas.v1.RelatedUrl related_uris = 4; + */ + private $related_uris; + /** + * Provides the state of this Vulnerability assessment. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.State state = 5; + */ + protected $state = 0; + /** + * Contains information about the impact of this vulnerability, + * this will change with time. + * + * Generated from protobuf field repeated string impacts = 6; + */ + private $impacts; + /** + * Justification provides the justification when the state of the + * assessment if NOT_AFFECTED. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7; + */ + protected $justification = null; + /** + * Specifies details on how to handle (and presumably, fix) a vulnerability. + * + * Generated from protobuf field repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8; + */ + private $remediations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $cve + * Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) + * tracking number for the vulnerability. + * Deprecated: Use vulnerability_id instead to denote CVEs. + * @type string $vulnerability_id + * The vulnerability identifier for this Assessment. Will hold one of + * common identifiers e.g. CVE, GHSA etc. + * @type string $short_description + * A one sentence description of this Vex. + * @type string $long_description + * A detailed description of this Vex. + * @type array<\Grafeas\V1\RelatedUrl>|\Google\Protobuf\Internal\RepeatedField $related_uris + * Holds a list of references associated with this vulnerability item and + * assessment. These uris have additional information about the + * vulnerability and the assessment itself. E.g. Link to a document which + * details how this assessment concluded the state of this vulnerability. + * @type int $state + * Provides the state of this Vulnerability assessment. + * @type array|\Google\Protobuf\Internal\RepeatedField $impacts + * Contains information about the impact of this vulnerability, + * this will change with time. + * @type \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Justification $justification + * Justification provides the justification when the state of the + * assessment if NOT_AFFECTED. + * @type array<\Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Remediation>|\Google\Protobuf\Internal\RepeatedField $remediations + * Specifies details on how to handle (and presumably, fix) a vulnerability. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Vex::initOnce(); + parent::__construct($data); + } + + /** + * Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) + * tracking number for the vulnerability. + * Deprecated: Use vulnerability_id instead to denote CVEs. + * + * Generated from protobuf field string cve = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getCve() + { + if ($this->cve !== '') { + @trigger_error('cve is deprecated.', E_USER_DEPRECATED); + } + return $this->cve; + } + + /** + * Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) + * tracking number for the vulnerability. + * Deprecated: Use vulnerability_id instead to denote CVEs. + * + * Generated from protobuf field string cve = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setCve($var) + { + @trigger_error('cve is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cve = $var; + + return $this; + } + + /** + * The vulnerability identifier for this Assessment. Will hold one of + * common identifiers e.g. CVE, GHSA etc. + * + * Generated from protobuf field string vulnerability_id = 9; + * @return string + */ + public function getVulnerabilityId() + { + return $this->vulnerability_id; + } + + /** + * The vulnerability identifier for this Assessment. Will hold one of + * common identifiers e.g. CVE, GHSA etc. + * + * Generated from protobuf field string vulnerability_id = 9; + * @param string $var + * @return $this + */ + public function setVulnerabilityId($var) + { + GPBUtil::checkString($var, True); + $this->vulnerability_id = $var; + + return $this; + } + + /** + * A one sentence description of this Vex. + * + * Generated from protobuf field string short_description = 2; + * @return string + */ + public function getShortDescription() + { + return $this->short_description; + } + + /** + * A one sentence description of this Vex. + * + * Generated from protobuf field string short_description = 2; + * @param string $var + * @return $this + */ + public function setShortDescription($var) + { + GPBUtil::checkString($var, True); + $this->short_description = $var; + + return $this; + } + + /** + * A detailed description of this Vex. + * + * Generated from protobuf field string long_description = 3; + * @return string + */ + public function getLongDescription() + { + return $this->long_description; + } + + /** + * A detailed description of this Vex. + * + * Generated from protobuf field string long_description = 3; + * @param string $var + * @return $this + */ + public function setLongDescription($var) + { + GPBUtil::checkString($var, True); + $this->long_description = $var; + + return $this; + } + + /** + * Holds a list of references associated with this vulnerability item and + * assessment. These uris have additional information about the + * vulnerability and the assessment itself. E.g. Link to a document which + * details how this assessment concluded the state of this vulnerability. + * + * Generated from protobuf field repeated .grafeas.v1.RelatedUrl related_uris = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRelatedUris() + { + return $this->related_uris; + } + + /** + * Holds a list of references associated with this vulnerability item and + * assessment. These uris have additional information about the + * vulnerability and the assessment itself. E.g. Link to a document which + * details how this assessment concluded the state of this vulnerability. + * + * Generated from protobuf field repeated .grafeas.v1.RelatedUrl related_uris = 4; + * @param array<\Grafeas\V1\RelatedUrl>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRelatedUris($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\RelatedUrl::class); + $this->related_uris = $arr; + + return $this; + } + + /** + * Provides the state of this Vulnerability assessment. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.State state = 5; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Provides the state of this Vulnerability assessment. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.State state = 5; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\State::class); + $this->state = $var; + + return $this; + } + + /** + * Contains information about the impact of this vulnerability, + * this will change with time. + * + * Generated from protobuf field repeated string impacts = 6; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getImpacts() + { + return $this->impacts; + } + + /** + * Contains information about the impact of this vulnerability, + * this will change with time. + * + * Generated from protobuf field repeated string impacts = 6; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setImpacts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->impacts = $arr; + + return $this; + } + + /** + * Justification provides the justification when the state of the + * assessment if NOT_AFFECTED. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7; + * @return \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Justification|null + */ + public function getJustification() + { + return $this->justification; + } + + public function hasJustification() + { + return isset($this->justification); + } + + public function clearJustification() + { + unset($this->justification); + } + + /** + * Justification provides the justification when the state of the + * assessment if NOT_AFFECTED. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7; + * @param \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Justification $var + * @return $this + */ + public function setJustification($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Justification::class); + $this->justification = $var; + + return $this; + } + + /** + * Specifies details on how to handle (and presumably, fix) a vulnerability. + * + * Generated from protobuf field repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRemediations() + { + return $this->remediations; + } + + /** + * Specifies details on how to handle (and presumably, fix) a vulnerability. + * + * Generated from protobuf field repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8; + * @param array<\Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Remediation>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRemediations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Remediation::class); + $this->remediations = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Assessment::class, \Grafeas\V1\VulnerabilityAssessmentNote_Assessment::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Justification.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Justification.php new file mode 100644 index 000000000000..fdb666012d62 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Justification.php @@ -0,0 +1,105 @@ +grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification + */ +class Justification extends \Google\Protobuf\Internal\Message +{ + /** + * The justification type for this vulnerability. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType justification_type = 1; + */ + protected $justification_type = 0; + /** + * Additional details on why this justification was chosen. + * + * Generated from protobuf field string details = 2; + */ + protected $details = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $justification_type + * The justification type for this vulnerability. + * @type string $details + * Additional details on why this justification was chosen. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Vex::initOnce(); + parent::__construct($data); + } + + /** + * The justification type for this vulnerability. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType justification_type = 1; + * @return int + */ + public function getJustificationType() + { + return $this->justification_type; + } + + /** + * The justification type for this vulnerability. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType justification_type = 1; + * @param int $var + * @return $this + */ + public function setJustificationType($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Justification\JustificationType::class); + $this->justification_type = $var; + + return $this; + } + + /** + * Additional details on why this justification was chosen. + * + * Generated from protobuf field string details = 2; + * @return string + */ + public function getDetails() + { + return $this->details; + } + + /** + * Additional details on why this justification was chosen. + * + * Generated from protobuf field string details = 2; + * @param string $var + * @return $this + */ + public function setDetails($var) + { + GPBUtil::checkString($var, True); + $this->details = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Justification::class, \Grafeas\V1\VulnerabilityAssessmentNote_Assessment_Justification::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Justification/JustificationType.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Justification/JustificationType.php new file mode 100644 index 000000000000..8d0a24170835 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Justification/JustificationType.php @@ -0,0 +1,94 @@ +grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType + */ +class JustificationType +{ + /** + * JUSTIFICATION_TYPE_UNSPECIFIED. + * + * Generated from protobuf enum JUSTIFICATION_TYPE_UNSPECIFIED = 0; + */ + const JUSTIFICATION_TYPE_UNSPECIFIED = 0; + /** + * The vulnerable component is not present in the product. + * + * Generated from protobuf enum COMPONENT_NOT_PRESENT = 1; + */ + const COMPONENT_NOT_PRESENT = 1; + /** + * The vulnerable code is not present. Typically this case + * occurs when source code is configured or built in a way that excludes + * the vulnerable code. + * + * Generated from protobuf enum VULNERABLE_CODE_NOT_PRESENT = 2; + */ + const VULNERABLE_CODE_NOT_PRESENT = 2; + /** + * The vulnerable code can not be executed. + * Typically this case occurs when the product includes the vulnerable + * code but does not call or use the vulnerable code. + * + * Generated from protobuf enum VULNERABLE_CODE_NOT_IN_EXECUTE_PATH = 3; + */ + const VULNERABLE_CODE_NOT_IN_EXECUTE_PATH = 3; + /** + * The vulnerable code cannot be controlled by an attacker to exploit + * the vulnerability. + * + * Generated from protobuf enum VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY = 4; + */ + const VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY = 4; + /** + * The product includes built-in protections or features that prevent + * exploitation of the vulnerability. These built-in protections cannot + * be subverted by the attacker and cannot be configured or disabled by + * the user. These mitigations completely prevent exploitation based on + * known attack vectors. + * + * Generated from protobuf enum INLINE_MITIGATIONS_ALREADY_EXIST = 5; + */ + const INLINE_MITIGATIONS_ALREADY_EXIST = 5; + + private static $valueToName = [ + self::JUSTIFICATION_TYPE_UNSPECIFIED => 'JUSTIFICATION_TYPE_UNSPECIFIED', + self::COMPONENT_NOT_PRESENT => 'COMPONENT_NOT_PRESENT', + self::VULNERABLE_CODE_NOT_PRESENT => 'VULNERABLE_CODE_NOT_PRESENT', + self::VULNERABLE_CODE_NOT_IN_EXECUTE_PATH => 'VULNERABLE_CODE_NOT_IN_EXECUTE_PATH', + self::VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY => 'VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY', + self::INLINE_MITIGATIONS_ALREADY_EXIST => 'INLINE_MITIGATIONS_ALREADY_EXIST', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(JustificationType::class, \Grafeas\V1\VulnerabilityAssessmentNote_Assessment_Justification_JustificationType::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Remediation.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Remediation.php new file mode 100644 index 000000000000..43bea6f40ecc --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Remediation.php @@ -0,0 +1,148 @@ +grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation + */ +class Remediation extends \Google\Protobuf\Internal\Message +{ + /** + * The type of remediation that can be applied. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType remediation_type = 1; + */ + protected $remediation_type = 0; + /** + * Contains a comprehensive human-readable discussion of the remediation. + * + * Generated from protobuf field string details = 2; + */ + protected $details = ''; + /** + * Contains the URL where to obtain the remediation. + * + * Generated from protobuf field .grafeas.v1.RelatedUrl remediation_uri = 3; + */ + protected $remediation_uri = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $remediation_type + * The type of remediation that can be applied. + * @type string $details + * Contains a comprehensive human-readable discussion of the remediation. + * @type \Grafeas\V1\RelatedUrl $remediation_uri + * Contains the URL where to obtain the remediation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Vex::initOnce(); + parent::__construct($data); + } + + /** + * The type of remediation that can be applied. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType remediation_type = 1; + * @return int + */ + public function getRemediationType() + { + return $this->remediation_type; + } + + /** + * The type of remediation that can be applied. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType remediation_type = 1; + * @param int $var + * @return $this + */ + public function setRemediationType($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Remediation\RemediationType::class); + $this->remediation_type = $var; + + return $this; + } + + /** + * Contains a comprehensive human-readable discussion of the remediation. + * + * Generated from protobuf field string details = 2; + * @return string + */ + public function getDetails() + { + return $this->details; + } + + /** + * Contains a comprehensive human-readable discussion of the remediation. + * + * Generated from protobuf field string details = 2; + * @param string $var + * @return $this + */ + public function setDetails($var) + { + GPBUtil::checkString($var, True); + $this->details = $var; + + return $this; + } + + /** + * Contains the URL where to obtain the remediation. + * + * Generated from protobuf field .grafeas.v1.RelatedUrl remediation_uri = 3; + * @return \Grafeas\V1\RelatedUrl|null + */ + public function getRemediationUri() + { + return $this->remediation_uri; + } + + public function hasRemediationUri() + { + return isset($this->remediation_uri); + } + + public function clearRemediationUri() + { + unset($this->remediation_uri); + } + + /** + * Contains the URL where to obtain the remediation. + * + * Generated from protobuf field .grafeas.v1.RelatedUrl remediation_uri = 3; + * @param \Grafeas\V1\RelatedUrl $var + * @return $this + */ + public function setRemediationUri($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\RelatedUrl::class); + $this->remediation_uri = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Remediation::class, \Grafeas\V1\VulnerabilityAssessmentNote_Assessment_Remediation::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Remediation/RemediationType.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Remediation/RemediationType.php new file mode 100644 index 000000000000..66c51c0be9f9 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Remediation/RemediationType.php @@ -0,0 +1,85 @@ +grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType + */ +class RemediationType +{ + /** + * No remediation type specified. + * + * Generated from protobuf enum REMEDIATION_TYPE_UNSPECIFIED = 0; + */ + const REMEDIATION_TYPE_UNSPECIFIED = 0; + /** + * A MITIGATION is available. + * + * Generated from protobuf enum MITIGATION = 1; + */ + const MITIGATION = 1; + /** + * No fix is planned. + * + * Generated from protobuf enum NO_FIX_PLANNED = 2; + */ + const NO_FIX_PLANNED = 2; + /** + * Not available. + * + * Generated from protobuf enum NONE_AVAILABLE = 3; + */ + const NONE_AVAILABLE = 3; + /** + * A vendor fix is available. + * + * Generated from protobuf enum VENDOR_FIX = 4; + */ + const VENDOR_FIX = 4; + /** + * A workaround is available. + * + * Generated from protobuf enum WORKAROUND = 5; + */ + const WORKAROUND = 5; + + private static $valueToName = [ + self::REMEDIATION_TYPE_UNSPECIFIED => 'REMEDIATION_TYPE_UNSPECIFIED', + self::MITIGATION => 'MITIGATION', + self::NO_FIX_PLANNED => 'NO_FIX_PLANNED', + self::NONE_AVAILABLE => 'NONE_AVAILABLE', + self::VENDOR_FIX => 'VENDOR_FIX', + self::WORKAROUND => 'WORKAROUND', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(RemediationType::class, \Grafeas\V1\VulnerabilityAssessmentNote_Assessment_Remediation_RemediationType::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/State.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/State.php new file mode 100644 index 000000000000..69b81a30cd45 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/State.php @@ -0,0 +1,79 @@ +grafeas.v1.VulnerabilityAssessmentNote.Assessment.State + */ +class State +{ + /** + * No state is specified. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * This product is known to be affected by this vulnerability. + * + * Generated from protobuf enum AFFECTED = 1; + */ + const AFFECTED = 1; + /** + * This product is known to be not affected by this vulnerability. + * + * Generated from protobuf enum NOT_AFFECTED = 2; + */ + const NOT_AFFECTED = 2; + /** + * This product contains a fix for this vulnerability. + * + * Generated from protobuf enum FIXED = 3; + */ + const FIXED = 3; + /** + * It is not known yet whether these versions are or are not affected + * by the vulnerability. However, it is still under investigation. + * + * Generated from protobuf enum UNDER_INVESTIGATION = 4; + */ + const UNDER_INVESTIGATION = 4; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::AFFECTED => 'AFFECTED', + self::NOT_AFFECTED => 'NOT_AFFECTED', + self::FIXED => 'FIXED', + self::UNDER_INVESTIGATION => 'UNDER_INVESTIGATION', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(State::class, \Grafeas\V1\VulnerabilityAssessmentNote_Assessment_State::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Product.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Product.php new file mode 100644 index 000000000000..a7fad624e32d --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Product.php @@ -0,0 +1,160 @@ +grafeas.v1.VulnerabilityAssessmentNote.Product + */ +class Product extends \Google\Protobuf\Internal\Message +{ + /** + * Name of the product. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Token that identifies a product so that it can be referred to from other + * parts in the document. There is no predefined format as long as it + * uniquely identifies a group in the context of the current document. + * + * Generated from protobuf field string id = 2; + */ + protected $id = ''; + protected $identifier; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Name of the product. + * @type string $id + * Token that identifies a product so that it can be referred to from other + * parts in the document. There is no predefined format as long as it + * uniquely identifies a group in the context of the current document. + * @type string $generic_uri + * Contains a URI which is vendor-specific. + * Example: The artifact repository URL of an image. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Vex::initOnce(); + parent::__construct($data); + } + + /** + * Name of the product. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Name of the product. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Token that identifies a product so that it can be referred to from other + * parts in the document. There is no predefined format as long as it + * uniquely identifies a group in the context of the current document. + * + * Generated from protobuf field string id = 2; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Token that identifies a product so that it can be referred to from other + * parts in the document. There is no predefined format as long as it + * uniquely identifies a group in the context of the current document. + * + * Generated from protobuf field string id = 2; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Contains a URI which is vendor-specific. + * Example: The artifact repository URL of an image. + * + * Generated from protobuf field string generic_uri = 3; + * @return string + */ + public function getGenericUri() + { + return $this->readOneof(3); + } + + public function hasGenericUri() + { + return $this->hasOneof(3); + } + + /** + * Contains a URI which is vendor-specific. + * Example: The artifact repository URL of an image. + * + * Generated from protobuf field string generic_uri = 3; + * @param string $var + * @return $this + */ + public function setGenericUri($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getIdentifier() + { + return $this->whichOneof("identifier"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Product::class, \Grafeas\V1\VulnerabilityAssessmentNote_Product::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Publisher.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Publisher.php new file mode 100644 index 000000000000..2801fd5a85c2 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Publisher.php @@ -0,0 +1,165 @@ +grafeas.v1.VulnerabilityAssessmentNote.Publisher + */ +class Publisher extends \Google\Protobuf\Internal\Message +{ + /** + * Name of the publisher. + * Examples: 'Google', 'Google Cloud Platform'. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Provides information about the authority of the issuing party to + * release the document, in particular, the party's constituency and + * responsibilities or other obligations. + * + * Generated from protobuf field string issuing_authority = 2; + */ + protected $issuing_authority = ''; + /** + * The context or namespace. + * Contains a URL which is under control of the issuing party and can + * be used as a globally unique identifier for that issuing party. + * Example: https://csaf.io + * + * Generated from protobuf field string publisher_namespace = 3; + */ + protected $publisher_namespace = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Name of the publisher. + * Examples: 'Google', 'Google Cloud Platform'. + * @type string $issuing_authority + * Provides information about the authority of the issuing party to + * release the document, in particular, the party's constituency and + * responsibilities or other obligations. + * @type string $publisher_namespace + * The context or namespace. + * Contains a URL which is under control of the issuing party and can + * be used as a globally unique identifier for that issuing party. + * Example: https://csaf.io + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Vex::initOnce(); + parent::__construct($data); + } + + /** + * Name of the publisher. + * Examples: 'Google', 'Google Cloud Platform'. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Name of the publisher. + * Examples: 'Google', 'Google Cloud Platform'. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Provides information about the authority of the issuing party to + * release the document, in particular, the party's constituency and + * responsibilities or other obligations. + * + * Generated from protobuf field string issuing_authority = 2; + * @return string + */ + public function getIssuingAuthority() + { + return $this->issuing_authority; + } + + /** + * Provides information about the authority of the issuing party to + * release the document, in particular, the party's constituency and + * responsibilities or other obligations. + * + * Generated from protobuf field string issuing_authority = 2; + * @param string $var + * @return $this + */ + public function setIssuingAuthority($var) + { + GPBUtil::checkString($var, True); + $this->issuing_authority = $var; + + return $this; + } + + /** + * The context or namespace. + * Contains a URL which is under control of the issuing party and can + * be used as a globally unique identifier for that issuing party. + * Example: https://csaf.io + * + * Generated from protobuf field string publisher_namespace = 3; + * @return string + */ + public function getPublisherNamespace() + { + return $this->publisher_namespace; + } + + /** + * The context or namespace. + * Contains a URL which is under control of the issuing party and can + * be used as a globally unique identifier for that issuing party. + * Example: https://csaf.io + * + * Generated from protobuf field string publisher_namespace = 3; + * @param string $var + * @return $this + */ + public function setPublisherNamespace($var) + { + GPBUtil::checkString($var, True); + $this->publisher_namespace = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Publisher::class, \Grafeas\V1\VulnerabilityAssessmentNote_Publisher::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote.php new file mode 100644 index 000000000000..2448507b64c7 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote.php @@ -0,0 +1,403 @@ +grafeas.v1.VulnerabilityNote + */ +class VulnerabilityNote extends \Google\Protobuf\Internal\Message +{ + /** + * The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10 + * where 0 indicates low severity and 10 indicates high severity. + * + * Generated from protobuf field float cvss_score = 1; + */ + protected $cvss_score = 0.0; + /** + * The note provider assigned severity of this vulnerability. + * + * Generated from protobuf field .grafeas.v1.Severity severity = 2; + */ + protected $severity = 0; + /** + * Details of all known distros and packages affected by this vulnerability. + * + * Generated from protobuf field repeated .grafeas.v1.VulnerabilityNote.Detail details = 3; + */ + private $details; + /** + * The full description of the CVSSv3 for this vulnerability. + * + * Generated from protobuf field .grafeas.v1.CVSSv3 cvss_v3 = 4; + */ + protected $cvss_v3 = null; + /** + * Windows details get their own format because the information format and + * model don't match a normal detail. Specifically Windows updates are done as + * patches, thus Windows vulnerabilities really are a missing package, rather + * than a package being at an incorrect version. + * + * Generated from protobuf field repeated .grafeas.v1.VulnerabilityNote.WindowsDetail windows_details = 5; + */ + private $windows_details; + /** + * The time this information was last changed at the source. This is an + * upstream timestamp from the underlying information source - e.g. Ubuntu + * security tracker. + * + * Generated from protobuf field .google.protobuf.Timestamp source_update_time = 6; + */ + protected $source_update_time = null; + /** + * CVSS version used to populate cvss_score and severity. + * + * Generated from protobuf field .grafeas.v1.CVSSVersion cvss_version = 7; + */ + protected $cvss_version = 0; + /** + * The full description of the v2 CVSS for this vulnerability. + * + * Generated from protobuf field .grafeas.v1.CVSS cvss_v2 = 8; + */ + protected $cvss_v2 = null; + /** + * The time this advisory was published by the source. + * + * Generated from protobuf field .google.protobuf.Timestamp advisory_publish_time = 9; + */ + protected $advisory_publish_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $cvss_score + * The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10 + * where 0 indicates low severity and 10 indicates high severity. + * @type int $severity + * The note provider assigned severity of this vulnerability. + * @type array<\Grafeas\V1\VulnerabilityNote\Detail>|\Google\Protobuf\Internal\RepeatedField $details + * Details of all known distros and packages affected by this vulnerability. + * @type \Grafeas\V1\CVSSv3 $cvss_v3 + * The full description of the CVSSv3 for this vulnerability. + * @type array<\Grafeas\V1\VulnerabilityNote\WindowsDetail>|\Google\Protobuf\Internal\RepeatedField $windows_details + * Windows details get their own format because the information format and + * model don't match a normal detail. Specifically Windows updates are done as + * patches, thus Windows vulnerabilities really are a missing package, rather + * than a package being at an incorrect version. + * @type \Google\Protobuf\Timestamp $source_update_time + * The time this information was last changed at the source. This is an + * upstream timestamp from the underlying information source - e.g. Ubuntu + * security tracker. + * @type int $cvss_version + * CVSS version used to populate cvss_score and severity. + * @type \Grafeas\V1\CVSS $cvss_v2 + * The full description of the v2 CVSS for this vulnerability. + * @type \Google\Protobuf\Timestamp $advisory_publish_time + * The time this advisory was published by the source. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Vulnerability::initOnce(); + parent::__construct($data); + } + + /** + * The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10 + * where 0 indicates low severity and 10 indicates high severity. + * + * Generated from protobuf field float cvss_score = 1; + * @return float + */ + public function getCvssScore() + { + return $this->cvss_score; + } + + /** + * The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10 + * where 0 indicates low severity and 10 indicates high severity. + * + * Generated from protobuf field float cvss_score = 1; + * @param float $var + * @return $this + */ + public function setCvssScore($var) + { + GPBUtil::checkFloat($var); + $this->cvss_score = $var; + + return $this; + } + + /** + * The note provider assigned severity of this vulnerability. + * + * Generated from protobuf field .grafeas.v1.Severity severity = 2; + * @return int + */ + public function getSeverity() + { + return $this->severity; + } + + /** + * The note provider assigned severity of this vulnerability. + * + * Generated from protobuf field .grafeas.v1.Severity severity = 2; + * @param int $var + * @return $this + */ + public function setSeverity($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\Severity::class); + $this->severity = $var; + + return $this; + } + + /** + * Details of all known distros and packages affected by this vulnerability. + * + * Generated from protobuf field repeated .grafeas.v1.VulnerabilityNote.Detail details = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDetails() + { + return $this->details; + } + + /** + * Details of all known distros and packages affected by this vulnerability. + * + * Generated from protobuf field repeated .grafeas.v1.VulnerabilityNote.Detail details = 3; + * @param array<\Grafeas\V1\VulnerabilityNote\Detail>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDetails($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\VulnerabilityNote\Detail::class); + $this->details = $arr; + + return $this; + } + + /** + * The full description of the CVSSv3 for this vulnerability. + * + * Generated from protobuf field .grafeas.v1.CVSSv3 cvss_v3 = 4; + * @return \Grafeas\V1\CVSSv3|null + */ + public function getCvssV3() + { + return $this->cvss_v3; + } + + public function hasCvssV3() + { + return isset($this->cvss_v3); + } + + public function clearCvssV3() + { + unset($this->cvss_v3); + } + + /** + * The full description of the CVSSv3 for this vulnerability. + * + * Generated from protobuf field .grafeas.v1.CVSSv3 cvss_v3 = 4; + * @param \Grafeas\V1\CVSSv3 $var + * @return $this + */ + public function setCvssV3($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\CVSSv3::class); + $this->cvss_v3 = $var; + + return $this; + } + + /** + * Windows details get their own format because the information format and + * model don't match a normal detail. Specifically Windows updates are done as + * patches, thus Windows vulnerabilities really are a missing package, rather + * than a package being at an incorrect version. + * + * Generated from protobuf field repeated .grafeas.v1.VulnerabilityNote.WindowsDetail windows_details = 5; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getWindowsDetails() + { + return $this->windows_details; + } + + /** + * Windows details get their own format because the information format and + * model don't match a normal detail. Specifically Windows updates are done as + * patches, thus Windows vulnerabilities really are a missing package, rather + * than a package being at an incorrect version. + * + * Generated from protobuf field repeated .grafeas.v1.VulnerabilityNote.WindowsDetail windows_details = 5; + * @param array<\Grafeas\V1\VulnerabilityNote\WindowsDetail>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setWindowsDetails($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\VulnerabilityNote\WindowsDetail::class); + $this->windows_details = $arr; + + return $this; + } + + /** + * The time this information was last changed at the source. This is an + * upstream timestamp from the underlying information source - e.g. Ubuntu + * security tracker. + * + * Generated from protobuf field .google.protobuf.Timestamp source_update_time = 6; + * @return \Google\Protobuf\Timestamp|null + */ + public function getSourceUpdateTime() + { + return $this->source_update_time; + } + + public function hasSourceUpdateTime() + { + return isset($this->source_update_time); + } + + public function clearSourceUpdateTime() + { + unset($this->source_update_time); + } + + /** + * The time this information was last changed at the source. This is an + * upstream timestamp from the underlying information source - e.g. Ubuntu + * security tracker. + * + * Generated from protobuf field .google.protobuf.Timestamp source_update_time = 6; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setSourceUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->source_update_time = $var; + + return $this; + } + + /** + * CVSS version used to populate cvss_score and severity. + * + * Generated from protobuf field .grafeas.v1.CVSSVersion cvss_version = 7; + * @return int + */ + public function getCvssVersion() + { + return $this->cvss_version; + } + + /** + * CVSS version used to populate cvss_score and severity. + * + * Generated from protobuf field .grafeas.v1.CVSSVersion cvss_version = 7; + * @param int $var + * @return $this + */ + public function setCvssVersion($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSSVersion::class); + $this->cvss_version = $var; + + return $this; + } + + /** + * The full description of the v2 CVSS for this vulnerability. + * + * Generated from protobuf field .grafeas.v1.CVSS cvss_v2 = 8; + * @return \Grafeas\V1\CVSS|null + */ + public function getCvssV2() + { + return $this->cvss_v2; + } + + public function hasCvssV2() + { + return isset($this->cvss_v2); + } + + public function clearCvssV2() + { + unset($this->cvss_v2); + } + + /** + * The full description of the v2 CVSS for this vulnerability. + * + * Generated from protobuf field .grafeas.v1.CVSS cvss_v2 = 8; + * @param \Grafeas\V1\CVSS $var + * @return $this + */ + public function setCvssV2($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\CVSS::class); + $this->cvss_v2 = $var; + + return $this; + } + + /** + * The time this advisory was published by the source. + * + * Generated from protobuf field .google.protobuf.Timestamp advisory_publish_time = 9; + * @return \Google\Protobuf\Timestamp|null + */ + public function getAdvisoryPublishTime() + { + return $this->advisory_publish_time; + } + + public function hasAdvisoryPublishTime() + { + return isset($this->advisory_publish_time); + } + + public function clearAdvisoryPublishTime() + { + unset($this->advisory_publish_time); + } + + /** + * The time this advisory was published by the source. + * + * Generated from protobuf field .google.protobuf.Timestamp advisory_publish_time = 9; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setAdvisoryPublishTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->advisory_publish_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote/Detail.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote/Detail.php new file mode 100644 index 000000000000..8bd53ea558d3 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote/Detail.php @@ -0,0 +1,645 @@ +grafeas.v1.VulnerabilityNote.Detail + */ +class Detail extends \Google\Protobuf\Internal\Message +{ + /** + * The distro assigned severity of this vulnerability. + * + * Generated from protobuf field string severity_name = 1; + */ + protected $severity_name = ''; + /** + * A vendor-specific description of this vulnerability. + * + * Generated from protobuf field string description = 2; + */ + protected $description = ''; + /** + * The type of package; whether native or non native (e.g., ruby gems, + * node.js packages, etc.). + * + * Generated from protobuf field string package_type = 3; + */ + protected $package_type = ''; + /** + * Required. The [CPE URI](https://cpe.mitre.org/specification/) this + * vulnerability affects. + * + * Generated from protobuf field string affected_cpe_uri = 4; + */ + protected $affected_cpe_uri = ''; + /** + * Required. The package this vulnerability affects. + * + * Generated from protobuf field string affected_package = 5; + */ + protected $affected_package = ''; + /** + * The version number at the start of an interval in which this + * vulnerability exists. A vulnerability can affect a package between + * version numbers that are disjoint sets of intervals (example: + * [1.0.0-1.1.0], [2.4.6-2.4.8] and [4.5.6-4.6.8]) each of which will be + * represented in its own Detail. If a specific affected version is provided + * by a vulnerability database, affected_version_start and + * affected_version_end will be the same in that Detail. + * + * Generated from protobuf field .grafeas.v1.Version affected_version_start = 6; + */ + protected $affected_version_start = null; + /** + * The version number at the end of an interval in which this vulnerability + * exists. A vulnerability can affect a package between version numbers + * that are disjoint sets of intervals (example: [1.0.0-1.1.0], + * [2.4.6-2.4.8] and [4.5.6-4.6.8]) each of which will be represented in its + * own Detail. If a specific affected version is provided by a vulnerability + * database, affected_version_start and affected_version_end will be the + * same in that Detail. + * + * Generated from protobuf field .grafeas.v1.Version affected_version_end = 7; + */ + protected $affected_version_end = null; + /** + * The distro recommended [CPE URI](https://cpe.mitre.org/specification/) + * to update to that contains a fix for this vulnerability. It is possible + * for this to be different from the affected_cpe_uri. + * + * Generated from protobuf field string fixed_cpe_uri = 8; + */ + protected $fixed_cpe_uri = ''; + /** + * The distro recommended package to update to that contains a fix for this + * vulnerability. It is possible for this to be different from the + * affected_package. + * + * Generated from protobuf field string fixed_package = 9; + */ + protected $fixed_package = ''; + /** + * The distro recommended version to update to that contains a + * fix for this vulnerability. Setting this to VersionKind.MAXIMUM means no + * such version is yet available. + * + * Generated from protobuf field .grafeas.v1.Version fixed_version = 10; + */ + protected $fixed_version = null; + /** + * Whether this detail is obsolete. Occurrences are expected not to point to + * obsolete details. + * + * Generated from protobuf field bool is_obsolete = 11; + */ + protected $is_obsolete = false; + /** + * The time this information was last changed at the source. This is an + * upstream timestamp from the underlying information source - e.g. Ubuntu + * security tracker. + * + * Generated from protobuf field .google.protobuf.Timestamp source_update_time = 12; + */ + protected $source_update_time = null; + /** + * The source from which the information in this Detail was obtained. + * + * Generated from protobuf field string source = 13; + */ + protected $source = ''; + /** + * The name of the vendor of the product. + * + * Generated from protobuf field string vendor = 14; + */ + protected $vendor = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $severity_name + * The distro assigned severity of this vulnerability. + * @type string $description + * A vendor-specific description of this vulnerability. + * @type string $package_type + * The type of package; whether native or non native (e.g., ruby gems, + * node.js packages, etc.). + * @type string $affected_cpe_uri + * Required. The [CPE URI](https://cpe.mitre.org/specification/) this + * vulnerability affects. + * @type string $affected_package + * Required. The package this vulnerability affects. + * @type \Grafeas\V1\Version $affected_version_start + * The version number at the start of an interval in which this + * vulnerability exists. A vulnerability can affect a package between + * version numbers that are disjoint sets of intervals (example: + * [1.0.0-1.1.0], [2.4.6-2.4.8] and [4.5.6-4.6.8]) each of which will be + * represented in its own Detail. If a specific affected version is provided + * by a vulnerability database, affected_version_start and + * affected_version_end will be the same in that Detail. + * @type \Grafeas\V1\Version $affected_version_end + * The version number at the end of an interval in which this vulnerability + * exists. A vulnerability can affect a package between version numbers + * that are disjoint sets of intervals (example: [1.0.0-1.1.0], + * [2.4.6-2.4.8] and [4.5.6-4.6.8]) each of which will be represented in its + * own Detail. If a specific affected version is provided by a vulnerability + * database, affected_version_start and affected_version_end will be the + * same in that Detail. + * @type string $fixed_cpe_uri + * The distro recommended [CPE URI](https://cpe.mitre.org/specification/) + * to update to that contains a fix for this vulnerability. It is possible + * for this to be different from the affected_cpe_uri. + * @type string $fixed_package + * The distro recommended package to update to that contains a fix for this + * vulnerability. It is possible for this to be different from the + * affected_package. + * @type \Grafeas\V1\Version $fixed_version + * The distro recommended version to update to that contains a + * fix for this vulnerability. Setting this to VersionKind.MAXIMUM means no + * such version is yet available. + * @type bool $is_obsolete + * Whether this detail is obsolete. Occurrences are expected not to point to + * obsolete details. + * @type \Google\Protobuf\Timestamp $source_update_time + * The time this information was last changed at the source. This is an + * upstream timestamp from the underlying information source - e.g. Ubuntu + * security tracker. + * @type string $source + * The source from which the information in this Detail was obtained. + * @type string $vendor + * The name of the vendor of the product. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Vulnerability::initOnce(); + parent::__construct($data); + } + + /** + * The distro assigned severity of this vulnerability. + * + * Generated from protobuf field string severity_name = 1; + * @return string + */ + public function getSeverityName() + { + return $this->severity_name; + } + + /** + * The distro assigned severity of this vulnerability. + * + * Generated from protobuf field string severity_name = 1; + * @param string $var + * @return $this + */ + public function setSeverityName($var) + { + GPBUtil::checkString($var, True); + $this->severity_name = $var; + + return $this; + } + + /** + * A vendor-specific description of this vulnerability. + * + * Generated from protobuf field string description = 2; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * A vendor-specific description of this vulnerability. + * + * Generated from protobuf field string description = 2; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * The type of package; whether native or non native (e.g., ruby gems, + * node.js packages, etc.). + * + * Generated from protobuf field string package_type = 3; + * @return string + */ + public function getPackageType() + { + return $this->package_type; + } + + /** + * The type of package; whether native or non native (e.g., ruby gems, + * node.js packages, etc.). + * + * Generated from protobuf field string package_type = 3; + * @param string $var + * @return $this + */ + public function setPackageType($var) + { + GPBUtil::checkString($var, True); + $this->package_type = $var; + + return $this; + } + + /** + * Required. The [CPE URI](https://cpe.mitre.org/specification/) this + * vulnerability affects. + * + * Generated from protobuf field string affected_cpe_uri = 4; + * @return string + */ + public function getAffectedCpeUri() + { + return $this->affected_cpe_uri; + } + + /** + * Required. The [CPE URI](https://cpe.mitre.org/specification/) this + * vulnerability affects. + * + * Generated from protobuf field string affected_cpe_uri = 4; + * @param string $var + * @return $this + */ + public function setAffectedCpeUri($var) + { + GPBUtil::checkString($var, True); + $this->affected_cpe_uri = $var; + + return $this; + } + + /** + * Required. The package this vulnerability affects. + * + * Generated from protobuf field string affected_package = 5; + * @return string + */ + public function getAffectedPackage() + { + return $this->affected_package; + } + + /** + * Required. The package this vulnerability affects. + * + * Generated from protobuf field string affected_package = 5; + * @param string $var + * @return $this + */ + public function setAffectedPackage($var) + { + GPBUtil::checkString($var, True); + $this->affected_package = $var; + + return $this; + } + + /** + * The version number at the start of an interval in which this + * vulnerability exists. A vulnerability can affect a package between + * version numbers that are disjoint sets of intervals (example: + * [1.0.0-1.1.0], [2.4.6-2.4.8] and [4.5.6-4.6.8]) each of which will be + * represented in its own Detail. If a specific affected version is provided + * by a vulnerability database, affected_version_start and + * affected_version_end will be the same in that Detail. + * + * Generated from protobuf field .grafeas.v1.Version affected_version_start = 6; + * @return \Grafeas\V1\Version|null + */ + public function getAffectedVersionStart() + { + return $this->affected_version_start; + } + + public function hasAffectedVersionStart() + { + return isset($this->affected_version_start); + } + + public function clearAffectedVersionStart() + { + unset($this->affected_version_start); + } + + /** + * The version number at the start of an interval in which this + * vulnerability exists. A vulnerability can affect a package between + * version numbers that are disjoint sets of intervals (example: + * [1.0.0-1.1.0], [2.4.6-2.4.8] and [4.5.6-4.6.8]) each of which will be + * represented in its own Detail. If a specific affected version is provided + * by a vulnerability database, affected_version_start and + * affected_version_end will be the same in that Detail. + * + * Generated from protobuf field .grafeas.v1.Version affected_version_start = 6; + * @param \Grafeas\V1\Version $var + * @return $this + */ + public function setAffectedVersionStart($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\Version::class); + $this->affected_version_start = $var; + + return $this; + } + + /** + * The version number at the end of an interval in which this vulnerability + * exists. A vulnerability can affect a package between version numbers + * that are disjoint sets of intervals (example: [1.0.0-1.1.0], + * [2.4.6-2.4.8] and [4.5.6-4.6.8]) each of which will be represented in its + * own Detail. If a specific affected version is provided by a vulnerability + * database, affected_version_start and affected_version_end will be the + * same in that Detail. + * + * Generated from protobuf field .grafeas.v1.Version affected_version_end = 7; + * @return \Grafeas\V1\Version|null + */ + public function getAffectedVersionEnd() + { + return $this->affected_version_end; + } + + public function hasAffectedVersionEnd() + { + return isset($this->affected_version_end); + } + + public function clearAffectedVersionEnd() + { + unset($this->affected_version_end); + } + + /** + * The version number at the end of an interval in which this vulnerability + * exists. A vulnerability can affect a package between version numbers + * that are disjoint sets of intervals (example: [1.0.0-1.1.0], + * [2.4.6-2.4.8] and [4.5.6-4.6.8]) each of which will be represented in its + * own Detail. If a specific affected version is provided by a vulnerability + * database, affected_version_start and affected_version_end will be the + * same in that Detail. + * + * Generated from protobuf field .grafeas.v1.Version affected_version_end = 7; + * @param \Grafeas\V1\Version $var + * @return $this + */ + public function setAffectedVersionEnd($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\Version::class); + $this->affected_version_end = $var; + + return $this; + } + + /** + * The distro recommended [CPE URI](https://cpe.mitre.org/specification/) + * to update to that contains a fix for this vulnerability. It is possible + * for this to be different from the affected_cpe_uri. + * + * Generated from protobuf field string fixed_cpe_uri = 8; + * @return string + */ + public function getFixedCpeUri() + { + return $this->fixed_cpe_uri; + } + + /** + * The distro recommended [CPE URI](https://cpe.mitre.org/specification/) + * to update to that contains a fix for this vulnerability. It is possible + * for this to be different from the affected_cpe_uri. + * + * Generated from protobuf field string fixed_cpe_uri = 8; + * @param string $var + * @return $this + */ + public function setFixedCpeUri($var) + { + GPBUtil::checkString($var, True); + $this->fixed_cpe_uri = $var; + + return $this; + } + + /** + * The distro recommended package to update to that contains a fix for this + * vulnerability. It is possible for this to be different from the + * affected_package. + * + * Generated from protobuf field string fixed_package = 9; + * @return string + */ + public function getFixedPackage() + { + return $this->fixed_package; + } + + /** + * The distro recommended package to update to that contains a fix for this + * vulnerability. It is possible for this to be different from the + * affected_package. + * + * Generated from protobuf field string fixed_package = 9; + * @param string $var + * @return $this + */ + public function setFixedPackage($var) + { + GPBUtil::checkString($var, True); + $this->fixed_package = $var; + + return $this; + } + + /** + * The distro recommended version to update to that contains a + * fix for this vulnerability. Setting this to VersionKind.MAXIMUM means no + * such version is yet available. + * + * Generated from protobuf field .grafeas.v1.Version fixed_version = 10; + * @return \Grafeas\V1\Version|null + */ + public function getFixedVersion() + { + return $this->fixed_version; + } + + public function hasFixedVersion() + { + return isset($this->fixed_version); + } + + public function clearFixedVersion() + { + unset($this->fixed_version); + } + + /** + * The distro recommended version to update to that contains a + * fix for this vulnerability. Setting this to VersionKind.MAXIMUM means no + * such version is yet available. + * + * Generated from protobuf field .grafeas.v1.Version fixed_version = 10; + * @param \Grafeas\V1\Version $var + * @return $this + */ + public function setFixedVersion($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\Version::class); + $this->fixed_version = $var; + + return $this; + } + + /** + * Whether this detail is obsolete. Occurrences are expected not to point to + * obsolete details. + * + * Generated from protobuf field bool is_obsolete = 11; + * @return bool + */ + public function getIsObsolete() + { + return $this->is_obsolete; + } + + /** + * Whether this detail is obsolete. Occurrences are expected not to point to + * obsolete details. + * + * Generated from protobuf field bool is_obsolete = 11; + * @param bool $var + * @return $this + */ + public function setIsObsolete($var) + { + GPBUtil::checkBool($var); + $this->is_obsolete = $var; + + return $this; + } + + /** + * The time this information was last changed at the source. This is an + * upstream timestamp from the underlying information source - e.g. Ubuntu + * security tracker. + * + * Generated from protobuf field .google.protobuf.Timestamp source_update_time = 12; + * @return \Google\Protobuf\Timestamp|null + */ + public function getSourceUpdateTime() + { + return $this->source_update_time; + } + + public function hasSourceUpdateTime() + { + return isset($this->source_update_time); + } + + public function clearSourceUpdateTime() + { + unset($this->source_update_time); + } + + /** + * The time this information was last changed at the source. This is an + * upstream timestamp from the underlying information source - e.g. Ubuntu + * security tracker. + * + * Generated from protobuf field .google.protobuf.Timestamp source_update_time = 12; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setSourceUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->source_update_time = $var; + + return $this; + } + + /** + * The source from which the information in this Detail was obtained. + * + * Generated from protobuf field string source = 13; + * @return string + */ + public function getSource() + { + return $this->source; + } + + /** + * The source from which the information in this Detail was obtained. + * + * Generated from protobuf field string source = 13; + * @param string $var + * @return $this + */ + public function setSource($var) + { + GPBUtil::checkString($var, True); + $this->source = $var; + + return $this; + } + + /** + * The name of the vendor of the product. + * + * Generated from protobuf field string vendor = 14; + * @return string + */ + public function getVendor() + { + return $this->vendor; + } + + /** + * The name of the vendor of the product. + * + * Generated from protobuf field string vendor = 14; + * @param string $var + * @return $this + */ + public function setVendor($var) + { + GPBUtil::checkString($var, True); + $this->vendor = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Detail::class, \Grafeas\V1\VulnerabilityNote_Detail::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote/WindowsDetail.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote/WindowsDetail.php new file mode 100644 index 000000000000..e20cc151c87d --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote/WindowsDetail.php @@ -0,0 +1,186 @@ +grafeas.v1.VulnerabilityNote.WindowsDetail + */ +class WindowsDetail extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The [CPE URI](https://cpe.mitre.org/specification/) this + * vulnerability affects. + * + * Generated from protobuf field string cpe_uri = 1; + */ + protected $cpe_uri = ''; + /** + * Required. The name of this vulnerability. + * + * Generated from protobuf field string name = 2; + */ + protected $name = ''; + /** + * The description of this vulnerability. + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + /** + * Required. The names of the KBs which have hotfixes to mitigate this + * vulnerability. Note that there may be multiple hotfixes (and thus + * multiple KBs) that mitigate a given vulnerability. Currently any listed + * KBs presence is considered a fix. + * + * Generated from protobuf field repeated .grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase fixing_kbs = 4; + */ + private $fixing_kbs; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $cpe_uri + * Required. The [CPE URI](https://cpe.mitre.org/specification/) this + * vulnerability affects. + * @type string $name + * Required. The name of this vulnerability. + * @type string $description + * The description of this vulnerability. + * @type array<\Grafeas\V1\VulnerabilityNote\WindowsDetail\KnowledgeBase>|\Google\Protobuf\Internal\RepeatedField $fixing_kbs + * Required. The names of the KBs which have hotfixes to mitigate this + * vulnerability. Note that there may be multiple hotfixes (and thus + * multiple KBs) that mitigate a given vulnerability. Currently any listed + * KBs presence is considered a fix. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Vulnerability::initOnce(); + parent::__construct($data); + } + + /** + * Required. The [CPE URI](https://cpe.mitre.org/specification/) this + * vulnerability affects. + * + * Generated from protobuf field string cpe_uri = 1; + * @return string + */ + public function getCpeUri() + { + return $this->cpe_uri; + } + + /** + * Required. The [CPE URI](https://cpe.mitre.org/specification/) this + * vulnerability affects. + * + * Generated from protobuf field string cpe_uri = 1; + * @param string $var + * @return $this + */ + public function setCpeUri($var) + { + GPBUtil::checkString($var, True); + $this->cpe_uri = $var; + + return $this; + } + + /** + * Required. The name of this vulnerability. + * + * Generated from protobuf field string name = 2; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of this vulnerability. + * + * Generated from protobuf field string name = 2; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The description of this vulnerability. + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * The description of this vulnerability. + * + * Generated from protobuf field string description = 3; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Required. The names of the KBs which have hotfixes to mitigate this + * vulnerability. Note that there may be multiple hotfixes (and thus + * multiple KBs) that mitigate a given vulnerability. Currently any listed + * KBs presence is considered a fix. + * + * Generated from protobuf field repeated .grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase fixing_kbs = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getFixingKbs() + { + return $this->fixing_kbs; + } + + /** + * Required. The names of the KBs which have hotfixes to mitigate this + * vulnerability. Note that there may be multiple hotfixes (and thus + * multiple KBs) that mitigate a given vulnerability. Currently any listed + * KBs presence is considered a fix. + * + * Generated from protobuf field repeated .grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase fixing_kbs = 4; + * @param array<\Grafeas\V1\VulnerabilityNote\WindowsDetail\KnowledgeBase>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setFixingKbs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\VulnerabilityNote\WindowsDetail\KnowledgeBase::class); + $this->fixing_kbs = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(WindowsDetail::class, \Grafeas\V1\VulnerabilityNote_WindowsDetail::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote/WindowsDetail/KnowledgeBase.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote/WindowsDetail/KnowledgeBase.php new file mode 100644 index 000000000000..26ec0c58b2f6 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote/WindowsDetail/KnowledgeBase.php @@ -0,0 +1,106 @@ +grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase + */ +class KnowledgeBase extends \Google\Protobuf\Internal\Message +{ + /** + * The KB name (generally of the form KB[0-9]+ (e.g., KB123456)). + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * A link to the KB in the [Windows update catalog] + * (https://www.catalog.update.microsoft.com/). + * + * Generated from protobuf field string url = 2; + */ + protected $url = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The KB name (generally of the form KB[0-9]+ (e.g., KB123456)). + * @type string $url + * A link to the KB in the [Windows update catalog] + * (https://www.catalog.update.microsoft.com/). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Vulnerability::initOnce(); + parent::__construct($data); + } + + /** + * The KB name (generally of the form KB[0-9]+ (e.g., KB123456)). + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The KB name (generally of the form KB[0-9]+ (e.g., KB123456)). + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * A link to the KB in the [Windows update catalog] + * (https://www.catalog.update.microsoft.com/). + * + * Generated from protobuf field string url = 2; + * @return string + */ + public function getUrl() + { + return $this->url; + } + + /** + * A link to the KB in the [Windows update catalog] + * (https://www.catalog.update.microsoft.com/). + * + * Generated from protobuf field string url = 2; + * @param string $var + * @return $this + */ + public function setUrl($var) + { + GPBUtil::checkString($var, True); + $this->url = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(KnowledgeBase::class, \Grafeas\V1\VulnerabilityNote_WindowsDetail_KnowledgeBase::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityOccurrence.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityOccurrence.php new file mode 100644 index 000000000000..f64a0bc62ec8 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityOccurrence.php @@ -0,0 +1,628 @@ +grafeas.v1.VulnerabilityOccurrence + */ +class VulnerabilityOccurrence extends \Google\Protobuf\Internal\Message +{ + /** + * The type of package; whether native or non native (e.g., ruby gems, node.js + * packages, etc.). + * + * Generated from protobuf field string type = 1; + */ + protected $type = ''; + /** + * Output only. The note provider assigned severity of this vulnerability. + * + * Generated from protobuf field .grafeas.v1.Severity severity = 2; + */ + protected $severity = 0; + /** + * Output only. The CVSS score of this vulnerability. CVSS score is on a + * scale of 0 - 10 where 0 indicates low severity and 10 indicates high + * severity. + * + * Generated from protobuf field float cvss_score = 3; + */ + protected $cvss_score = 0.0; + /** + * The cvss v3 score for the vulnerability. + * + * Generated from protobuf field .grafeas.v1.CVSS cvssv3 = 10; + */ + protected $cvssv3 = null; + /** + * Required. The set of affected locations and their fixes (if available) + * within the associated resource. + * + * Generated from protobuf field repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4; + */ + private $package_issue; + /** + * Output only. A one sentence description of this vulnerability. + * + * Generated from protobuf field string short_description = 5; + */ + protected $short_description = ''; + /** + * Output only. A detailed description of this vulnerability. + * + * Generated from protobuf field string long_description = 6; + */ + protected $long_description = ''; + /** + * Output only. URLs related to this vulnerability. + * + * Generated from protobuf field repeated .grafeas.v1.RelatedUrl related_urls = 7; + */ + private $related_urls; + /** + * The distro assigned severity for this vulnerability when it is available, + * otherwise this is the note provider assigned severity. + * When there are multiple PackageIssues for this vulnerability, they can have + * different effective severities because some might be provided by the distro + * while others are provided by the language ecosystem for a language pack. + * For this reason, it is advised to use the effective severity on the + * PackageIssue level. In the case where multiple PackageIssues have differing + * effective severities, this field should be the highest severity for any of + * the PackageIssues. + * + * Generated from protobuf field .grafeas.v1.Severity effective_severity = 8; + */ + protected $effective_severity = 0; + /** + * Output only. Whether at least one of the affected packages has a fix + * available. + * + * Generated from protobuf field bool fix_available = 9; + */ + protected $fix_available = false; + /** + * Output only. CVSS version used to populate cvss_score and severity. + * + * Generated from protobuf field .grafeas.v1.CVSSVersion cvss_version = 11; + */ + protected $cvss_version = 0; + /** + * The cvss v2 score for the vulnerability. + * + * Generated from protobuf field .grafeas.v1.CVSS cvss_v2 = 12; + */ + protected $cvss_v2 = null; + /** + * Generated from protobuf field .grafeas.v1.VulnerabilityOccurrence.VexAssessment vex_assessment = 13; + */ + protected $vex_assessment = null; + /** + * Occurrence-specific extra details about the vulnerability. + * + * Generated from protobuf field string extra_details = 14; + */ + protected $extra_details = ''; + /** + * Risk information about the vulnerability, such as CISA, EPSS, etc. + * + * Generated from protobuf field .grafeas.v1.Risk risk = 15; + */ + protected $risk = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $type + * The type of package; whether native or non native (e.g., ruby gems, node.js + * packages, etc.). + * @type int $severity + * Output only. The note provider assigned severity of this vulnerability. + * @type float $cvss_score + * Output only. The CVSS score of this vulnerability. CVSS score is on a + * scale of 0 - 10 where 0 indicates low severity and 10 indicates high + * severity. + * @type \Grafeas\V1\CVSS $cvssv3 + * The cvss v3 score for the vulnerability. + * @type array<\Grafeas\V1\VulnerabilityOccurrence\PackageIssue>|\Google\Protobuf\Internal\RepeatedField $package_issue + * Required. The set of affected locations and their fixes (if available) + * within the associated resource. + * @type string $short_description + * Output only. A one sentence description of this vulnerability. + * @type string $long_description + * Output only. A detailed description of this vulnerability. + * @type array<\Grafeas\V1\RelatedUrl>|\Google\Protobuf\Internal\RepeatedField $related_urls + * Output only. URLs related to this vulnerability. + * @type int $effective_severity + * The distro assigned severity for this vulnerability when it is available, + * otherwise this is the note provider assigned severity. + * When there are multiple PackageIssues for this vulnerability, they can have + * different effective severities because some might be provided by the distro + * while others are provided by the language ecosystem for a language pack. + * For this reason, it is advised to use the effective severity on the + * PackageIssue level. In the case where multiple PackageIssues have differing + * effective severities, this field should be the highest severity for any of + * the PackageIssues. + * @type bool $fix_available + * Output only. Whether at least one of the affected packages has a fix + * available. + * @type int $cvss_version + * Output only. CVSS version used to populate cvss_score and severity. + * @type \Grafeas\V1\CVSS $cvss_v2 + * The cvss v2 score for the vulnerability. + * @type \Grafeas\V1\VulnerabilityOccurrence\VexAssessment $vex_assessment + * @type string $extra_details + * Occurrence-specific extra details about the vulnerability. + * @type \Grafeas\V1\Risk $risk + * Risk information about the vulnerability, such as CISA, EPSS, etc. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Vulnerability::initOnce(); + parent::__construct($data); + } + + /** + * The type of package; whether native or non native (e.g., ruby gems, node.js + * packages, etc.). + * + * Generated from protobuf field string type = 1; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * The type of package; whether native or non native (e.g., ruby gems, node.js + * packages, etc.). + * + * Generated from protobuf field string type = 1; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * Output only. The note provider assigned severity of this vulnerability. + * + * Generated from protobuf field .grafeas.v1.Severity severity = 2; + * @return int + */ + public function getSeverity() + { + return $this->severity; + } + + /** + * Output only. The note provider assigned severity of this vulnerability. + * + * Generated from protobuf field .grafeas.v1.Severity severity = 2; + * @param int $var + * @return $this + */ + public function setSeverity($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\Severity::class); + $this->severity = $var; + + return $this; + } + + /** + * Output only. The CVSS score of this vulnerability. CVSS score is on a + * scale of 0 - 10 where 0 indicates low severity and 10 indicates high + * severity. + * + * Generated from protobuf field float cvss_score = 3; + * @return float + */ + public function getCvssScore() + { + return $this->cvss_score; + } + + /** + * Output only. The CVSS score of this vulnerability. CVSS score is on a + * scale of 0 - 10 where 0 indicates low severity and 10 indicates high + * severity. + * + * Generated from protobuf field float cvss_score = 3; + * @param float $var + * @return $this + */ + public function setCvssScore($var) + { + GPBUtil::checkFloat($var); + $this->cvss_score = $var; + + return $this; + } + + /** + * The cvss v3 score for the vulnerability. + * + * Generated from protobuf field .grafeas.v1.CVSS cvssv3 = 10; + * @return \Grafeas\V1\CVSS|null + */ + public function getCvssv3() + { + return $this->cvssv3; + } + + public function hasCvssv3() + { + return isset($this->cvssv3); + } + + public function clearCvssv3() + { + unset($this->cvssv3); + } + + /** + * The cvss v3 score for the vulnerability. + * + * Generated from protobuf field .grafeas.v1.CVSS cvssv3 = 10; + * @param \Grafeas\V1\CVSS $var + * @return $this + */ + public function setCvssv3($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\CVSS::class); + $this->cvssv3 = $var; + + return $this; + } + + /** + * Required. The set of affected locations and their fixes (if available) + * within the associated resource. + * + * Generated from protobuf field repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPackageIssue() + { + return $this->package_issue; + } + + /** + * Required. The set of affected locations and their fixes (if available) + * within the associated resource. + * + * Generated from protobuf field repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4; + * @param array<\Grafeas\V1\VulnerabilityOccurrence\PackageIssue>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPackageIssue($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\VulnerabilityOccurrence\PackageIssue::class); + $this->package_issue = $arr; + + return $this; + } + + /** + * Output only. A one sentence description of this vulnerability. + * + * Generated from protobuf field string short_description = 5; + * @return string + */ + public function getShortDescription() + { + return $this->short_description; + } + + /** + * Output only. A one sentence description of this vulnerability. + * + * Generated from protobuf field string short_description = 5; + * @param string $var + * @return $this + */ + public function setShortDescription($var) + { + GPBUtil::checkString($var, True); + $this->short_description = $var; + + return $this; + } + + /** + * Output only. A detailed description of this vulnerability. + * + * Generated from protobuf field string long_description = 6; + * @return string + */ + public function getLongDescription() + { + return $this->long_description; + } + + /** + * Output only. A detailed description of this vulnerability. + * + * Generated from protobuf field string long_description = 6; + * @param string $var + * @return $this + */ + public function setLongDescription($var) + { + GPBUtil::checkString($var, True); + $this->long_description = $var; + + return $this; + } + + /** + * Output only. URLs related to this vulnerability. + * + * Generated from protobuf field repeated .grafeas.v1.RelatedUrl related_urls = 7; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRelatedUrls() + { + return $this->related_urls; + } + + /** + * Output only. URLs related to this vulnerability. + * + * Generated from protobuf field repeated .grafeas.v1.RelatedUrl related_urls = 7; + * @param array<\Grafeas\V1\RelatedUrl>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRelatedUrls($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\RelatedUrl::class); + $this->related_urls = $arr; + + return $this; + } + + /** + * The distro assigned severity for this vulnerability when it is available, + * otherwise this is the note provider assigned severity. + * When there are multiple PackageIssues for this vulnerability, they can have + * different effective severities because some might be provided by the distro + * while others are provided by the language ecosystem for a language pack. + * For this reason, it is advised to use the effective severity on the + * PackageIssue level. In the case where multiple PackageIssues have differing + * effective severities, this field should be the highest severity for any of + * the PackageIssues. + * + * Generated from protobuf field .grafeas.v1.Severity effective_severity = 8; + * @return int + */ + public function getEffectiveSeverity() + { + return $this->effective_severity; + } + + /** + * The distro assigned severity for this vulnerability when it is available, + * otherwise this is the note provider assigned severity. + * When there are multiple PackageIssues for this vulnerability, they can have + * different effective severities because some might be provided by the distro + * while others are provided by the language ecosystem for a language pack. + * For this reason, it is advised to use the effective severity on the + * PackageIssue level. In the case where multiple PackageIssues have differing + * effective severities, this field should be the highest severity for any of + * the PackageIssues. + * + * Generated from protobuf field .grafeas.v1.Severity effective_severity = 8; + * @param int $var + * @return $this + */ + public function setEffectiveSeverity($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\Severity::class); + $this->effective_severity = $var; + + return $this; + } + + /** + * Output only. Whether at least one of the affected packages has a fix + * available. + * + * Generated from protobuf field bool fix_available = 9; + * @return bool + */ + public function getFixAvailable() + { + return $this->fix_available; + } + + /** + * Output only. Whether at least one of the affected packages has a fix + * available. + * + * Generated from protobuf field bool fix_available = 9; + * @param bool $var + * @return $this + */ + public function setFixAvailable($var) + { + GPBUtil::checkBool($var); + $this->fix_available = $var; + + return $this; + } + + /** + * Output only. CVSS version used to populate cvss_score and severity. + * + * Generated from protobuf field .grafeas.v1.CVSSVersion cvss_version = 11; + * @return int + */ + public function getCvssVersion() + { + return $this->cvss_version; + } + + /** + * Output only. CVSS version used to populate cvss_score and severity. + * + * Generated from protobuf field .grafeas.v1.CVSSVersion cvss_version = 11; + * @param int $var + * @return $this + */ + public function setCvssVersion($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSSVersion::class); + $this->cvss_version = $var; + + return $this; + } + + /** + * The cvss v2 score for the vulnerability. + * + * Generated from protobuf field .grafeas.v1.CVSS cvss_v2 = 12; + * @return \Grafeas\V1\CVSS|null + */ + public function getCvssV2() + { + return $this->cvss_v2; + } + + public function hasCvssV2() + { + return isset($this->cvss_v2); + } + + public function clearCvssV2() + { + unset($this->cvss_v2); + } + + /** + * The cvss v2 score for the vulnerability. + * + * Generated from protobuf field .grafeas.v1.CVSS cvss_v2 = 12; + * @param \Grafeas\V1\CVSS $var + * @return $this + */ + public function setCvssV2($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\CVSS::class); + $this->cvss_v2 = $var; + + return $this; + } + + /** + * Generated from protobuf field .grafeas.v1.VulnerabilityOccurrence.VexAssessment vex_assessment = 13; + * @return \Grafeas\V1\VulnerabilityOccurrence\VexAssessment|null + */ + public function getVexAssessment() + { + return $this->vex_assessment; + } + + public function hasVexAssessment() + { + return isset($this->vex_assessment); + } + + public function clearVexAssessment() + { + unset($this->vex_assessment); + } + + /** + * Generated from protobuf field .grafeas.v1.VulnerabilityOccurrence.VexAssessment vex_assessment = 13; + * @param \Grafeas\V1\VulnerabilityOccurrence\VexAssessment $var + * @return $this + */ + public function setVexAssessment($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\VulnerabilityOccurrence\VexAssessment::class); + $this->vex_assessment = $var; + + return $this; + } + + /** + * Occurrence-specific extra details about the vulnerability. + * + * Generated from protobuf field string extra_details = 14; + * @return string + */ + public function getExtraDetails() + { + return $this->extra_details; + } + + /** + * Occurrence-specific extra details about the vulnerability. + * + * Generated from protobuf field string extra_details = 14; + * @param string $var + * @return $this + */ + public function setExtraDetails($var) + { + GPBUtil::checkString($var, True); + $this->extra_details = $var; + + return $this; + } + + /** + * Risk information about the vulnerability, such as CISA, EPSS, etc. + * + * Generated from protobuf field .grafeas.v1.Risk risk = 15; + * @return \Grafeas\V1\Risk|null + */ + public function getRisk() + { + return $this->risk; + } + + public function hasRisk() + { + return isset($this->risk); + } + + public function clearRisk() + { + unset($this->risk); + } + + /** + * Risk information about the vulnerability, such as CISA, EPSS, etc. + * + * Generated from protobuf field .grafeas.v1.Risk risk = 15; + * @param \Grafeas\V1\Risk $var + * @return $this + */ + public function setRisk($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\Risk::class); + $this->risk = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityOccurrence/PackageIssue.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityOccurrence/PackageIssue.php new file mode 100644 index 000000000000..50eb18f7d2f5 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityOccurrence/PackageIssue.php @@ -0,0 +1,429 @@ +grafeas.v1.VulnerabilityOccurrence.PackageIssue + */ +class PackageIssue extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The [CPE URI](https://cpe.mitre.org/specification/) this + * vulnerability was found in. + * + * Generated from protobuf field string affected_cpe_uri = 1; + */ + protected $affected_cpe_uri = ''; + /** + * Required. The package this vulnerability was found in. + * + * Generated from protobuf field string affected_package = 2; + */ + protected $affected_package = ''; + /** + * Required. The version of the package that is installed on the resource + * affected by this vulnerability. + * + * Generated from protobuf field .grafeas.v1.Version affected_version = 3; + */ + protected $affected_version = null; + /** + * The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability + * was fixed in. It is possible for this to be different from the + * affected_cpe_uri. + * + * Generated from protobuf field string fixed_cpe_uri = 4; + */ + protected $fixed_cpe_uri = ''; + /** + * The package this vulnerability was fixed in. It is possible for this to + * be different from the affected_package. + * + * Generated from protobuf field string fixed_package = 5; + */ + protected $fixed_package = ''; + /** + * Required. The version of the package this vulnerability was fixed in. + * Setting this to VersionKind.MAXIMUM means no fix is yet available. + * + * Generated from protobuf field .grafeas.v1.Version fixed_version = 6; + */ + protected $fixed_version = null; + /** + * Output only. Whether a fix is available for this package. + * + * Generated from protobuf field bool fix_available = 7; + */ + protected $fix_available = false; + /** + * The type of package (e.g. OS, MAVEN, GO). + * + * Generated from protobuf field string package_type = 8; + */ + protected $package_type = ''; + /** + * The distro or language system assigned severity for this vulnerability + * when that is available and note provider assigned severity when it is not + * available. + * + * Generated from protobuf field .grafeas.v1.Severity effective_severity = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $effective_severity = 0; + /** + * The location at which this package was found. + * + * Generated from protobuf field repeated .grafeas.v1.FileLocation file_location = 10; + */ + private $file_location; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $affected_cpe_uri + * Required. The [CPE URI](https://cpe.mitre.org/specification/) this + * vulnerability was found in. + * @type string $affected_package + * Required. The package this vulnerability was found in. + * @type \Grafeas\V1\Version $affected_version + * Required. The version of the package that is installed on the resource + * affected by this vulnerability. + * @type string $fixed_cpe_uri + * The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability + * was fixed in. It is possible for this to be different from the + * affected_cpe_uri. + * @type string $fixed_package + * The package this vulnerability was fixed in. It is possible for this to + * be different from the affected_package. + * @type \Grafeas\V1\Version $fixed_version + * Required. The version of the package this vulnerability was fixed in. + * Setting this to VersionKind.MAXIMUM means no fix is yet available. + * @type bool $fix_available + * Output only. Whether a fix is available for this package. + * @type string $package_type + * The type of package (e.g. OS, MAVEN, GO). + * @type int $effective_severity + * The distro or language system assigned severity for this vulnerability + * when that is available and note provider assigned severity when it is not + * available. + * @type array<\Grafeas\V1\FileLocation>|\Google\Protobuf\Internal\RepeatedField $file_location + * The location at which this package was found. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Vulnerability::initOnce(); + parent::__construct($data); + } + + /** + * Required. The [CPE URI](https://cpe.mitre.org/specification/) this + * vulnerability was found in. + * + * Generated from protobuf field string affected_cpe_uri = 1; + * @return string + */ + public function getAffectedCpeUri() + { + return $this->affected_cpe_uri; + } + + /** + * Required. The [CPE URI](https://cpe.mitre.org/specification/) this + * vulnerability was found in. + * + * Generated from protobuf field string affected_cpe_uri = 1; + * @param string $var + * @return $this + */ + public function setAffectedCpeUri($var) + { + GPBUtil::checkString($var, True); + $this->affected_cpe_uri = $var; + + return $this; + } + + /** + * Required. The package this vulnerability was found in. + * + * Generated from protobuf field string affected_package = 2; + * @return string + */ + public function getAffectedPackage() + { + return $this->affected_package; + } + + /** + * Required. The package this vulnerability was found in. + * + * Generated from protobuf field string affected_package = 2; + * @param string $var + * @return $this + */ + public function setAffectedPackage($var) + { + GPBUtil::checkString($var, True); + $this->affected_package = $var; + + return $this; + } + + /** + * Required. The version of the package that is installed on the resource + * affected by this vulnerability. + * + * Generated from protobuf field .grafeas.v1.Version affected_version = 3; + * @return \Grafeas\V1\Version|null + */ + public function getAffectedVersion() + { + return $this->affected_version; + } + + public function hasAffectedVersion() + { + return isset($this->affected_version); + } + + public function clearAffectedVersion() + { + unset($this->affected_version); + } + + /** + * Required. The version of the package that is installed on the resource + * affected by this vulnerability. + * + * Generated from protobuf field .grafeas.v1.Version affected_version = 3; + * @param \Grafeas\V1\Version $var + * @return $this + */ + public function setAffectedVersion($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\Version::class); + $this->affected_version = $var; + + return $this; + } + + /** + * The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability + * was fixed in. It is possible for this to be different from the + * affected_cpe_uri. + * + * Generated from protobuf field string fixed_cpe_uri = 4; + * @return string + */ + public function getFixedCpeUri() + { + return $this->fixed_cpe_uri; + } + + /** + * The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability + * was fixed in. It is possible for this to be different from the + * affected_cpe_uri. + * + * Generated from protobuf field string fixed_cpe_uri = 4; + * @param string $var + * @return $this + */ + public function setFixedCpeUri($var) + { + GPBUtil::checkString($var, True); + $this->fixed_cpe_uri = $var; + + return $this; + } + + /** + * The package this vulnerability was fixed in. It is possible for this to + * be different from the affected_package. + * + * Generated from protobuf field string fixed_package = 5; + * @return string + */ + public function getFixedPackage() + { + return $this->fixed_package; + } + + /** + * The package this vulnerability was fixed in. It is possible for this to + * be different from the affected_package. + * + * Generated from protobuf field string fixed_package = 5; + * @param string $var + * @return $this + */ + public function setFixedPackage($var) + { + GPBUtil::checkString($var, True); + $this->fixed_package = $var; + + return $this; + } + + /** + * Required. The version of the package this vulnerability was fixed in. + * Setting this to VersionKind.MAXIMUM means no fix is yet available. + * + * Generated from protobuf field .grafeas.v1.Version fixed_version = 6; + * @return \Grafeas\V1\Version|null + */ + public function getFixedVersion() + { + return $this->fixed_version; + } + + public function hasFixedVersion() + { + return isset($this->fixed_version); + } + + public function clearFixedVersion() + { + unset($this->fixed_version); + } + + /** + * Required. The version of the package this vulnerability was fixed in. + * Setting this to VersionKind.MAXIMUM means no fix is yet available. + * + * Generated from protobuf field .grafeas.v1.Version fixed_version = 6; + * @param \Grafeas\V1\Version $var + * @return $this + */ + public function setFixedVersion($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\Version::class); + $this->fixed_version = $var; + + return $this; + } + + /** + * Output only. Whether a fix is available for this package. + * + * Generated from protobuf field bool fix_available = 7; + * @return bool + */ + public function getFixAvailable() + { + return $this->fix_available; + } + + /** + * Output only. Whether a fix is available for this package. + * + * Generated from protobuf field bool fix_available = 7; + * @param bool $var + * @return $this + */ + public function setFixAvailable($var) + { + GPBUtil::checkBool($var); + $this->fix_available = $var; + + return $this; + } + + /** + * The type of package (e.g. OS, MAVEN, GO). + * + * Generated from protobuf field string package_type = 8; + * @return string + */ + public function getPackageType() + { + return $this->package_type; + } + + /** + * The type of package (e.g. OS, MAVEN, GO). + * + * Generated from protobuf field string package_type = 8; + * @param string $var + * @return $this + */ + public function setPackageType($var) + { + GPBUtil::checkString($var, True); + $this->package_type = $var; + + return $this; + } + + /** + * The distro or language system assigned severity for this vulnerability + * when that is available and note provider assigned severity when it is not + * available. + * + * Generated from protobuf field .grafeas.v1.Severity effective_severity = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getEffectiveSeverity() + { + return $this->effective_severity; + } + + /** + * The distro or language system assigned severity for this vulnerability + * when that is available and note provider assigned severity when it is not + * available. + * + * Generated from protobuf field .grafeas.v1.Severity effective_severity = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setEffectiveSeverity($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\Severity::class); + $this->effective_severity = $var; + + return $this; + } + + /** + * The location at which this package was found. + * + * Generated from protobuf field repeated .grafeas.v1.FileLocation file_location = 10; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getFileLocation() + { + return $this->file_location; + } + + /** + * The location at which this package was found. + * + * Generated from protobuf field repeated .grafeas.v1.FileLocation file_location = 10; + * @param array<\Grafeas\V1\FileLocation>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setFileLocation($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\FileLocation::class); + $this->file_location = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(PackageIssue::class, \Grafeas\V1\VulnerabilityOccurrence_PackageIssue::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityOccurrence/VexAssessment.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityOccurrence/VexAssessment.php new file mode 100644 index 000000000000..3489e7d0fdb2 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityOccurrence/VexAssessment.php @@ -0,0 +1,366 @@ +grafeas.v1.VulnerabilityOccurrence.VexAssessment + */ +class VexAssessment extends \Google\Protobuf\Internal\Message +{ + /** + * Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) + * tracking number for the vulnerability. + * Deprecated: Use vulnerability_id instead to denote CVEs. + * + * Generated from protobuf field string cve = 1 [deprecated = true]; + * @deprecated + */ + protected $cve = ''; + /** + * The vulnerability identifier for this Assessment. Will hold one of + * common identifiers e.g. CVE, GHSA etc. + * + * Generated from protobuf field string vulnerability_id = 8; + */ + protected $vulnerability_id = ''; + /** + * Holds a list of references associated with this vulnerability item and + * assessment. + * + * Generated from protobuf field repeated .grafeas.v1.RelatedUrl related_uris = 2; + */ + private $related_uris; + /** + * The VulnerabilityAssessment note from which this VexAssessment was + * generated. + * This will be of the form: `projects/[PROJECT_ID]/notes/[NOTE_ID]`. + * (-- api-linter: core::0122::name-suffix=disabled + * aip.dev/not-precedent: The suffix is kept for consistency. --) + * + * Generated from protobuf field string note_name = 3; + */ + protected $note_name = ''; + /** + * Provides the state of this Vulnerability assessment. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.State state = 4; + */ + protected $state = 0; + /** + * Contains information about the impact of this vulnerability, + * this will change with time. + * + * Generated from protobuf field repeated string impacts = 5; + */ + private $impacts; + /** + * Specifies details on how to handle (and presumably, fix) a vulnerability. + * + * Generated from protobuf field repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 6; + */ + private $remediations; + /** + * Justification provides the justification when the state of the + * assessment if NOT_AFFECTED. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7; + */ + protected $justification = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $cve + * Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) + * tracking number for the vulnerability. + * Deprecated: Use vulnerability_id instead to denote CVEs. + * @type string $vulnerability_id + * The vulnerability identifier for this Assessment. Will hold one of + * common identifiers e.g. CVE, GHSA etc. + * @type array<\Grafeas\V1\RelatedUrl>|\Google\Protobuf\Internal\RepeatedField $related_uris + * Holds a list of references associated with this vulnerability item and + * assessment. + * @type string $note_name + * The VulnerabilityAssessment note from which this VexAssessment was + * generated. + * This will be of the form: `projects/[PROJECT_ID]/notes/[NOTE_ID]`. + * (-- api-linter: core::0122::name-suffix=disabled + * aip.dev/not-precedent: The suffix is kept for consistency. --) + * @type int $state + * Provides the state of this Vulnerability assessment. + * @type array|\Google\Protobuf\Internal\RepeatedField $impacts + * Contains information about the impact of this vulnerability, + * this will change with time. + * @type array<\Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Remediation>|\Google\Protobuf\Internal\RepeatedField $remediations + * Specifies details on how to handle (and presumably, fix) a vulnerability. + * @type \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Justification $justification + * Justification provides the justification when the state of the + * assessment if NOT_AFFECTED. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Vulnerability::initOnce(); + parent::__construct($data); + } + + /** + * Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) + * tracking number for the vulnerability. + * Deprecated: Use vulnerability_id instead to denote CVEs. + * + * Generated from protobuf field string cve = 1 [deprecated = true]; + * @return string + * @deprecated + */ + public function getCve() + { + if ($this->cve !== '') { + @trigger_error('cve is deprecated.', E_USER_DEPRECATED); + } + return $this->cve; + } + + /** + * Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) + * tracking number for the vulnerability. + * Deprecated: Use vulnerability_id instead to denote CVEs. + * + * Generated from protobuf field string cve = 1 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setCve($var) + { + @trigger_error('cve is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->cve = $var; + + return $this; + } + + /** + * The vulnerability identifier for this Assessment. Will hold one of + * common identifiers e.g. CVE, GHSA etc. + * + * Generated from protobuf field string vulnerability_id = 8; + * @return string + */ + public function getVulnerabilityId() + { + return $this->vulnerability_id; + } + + /** + * The vulnerability identifier for this Assessment. Will hold one of + * common identifiers e.g. CVE, GHSA etc. + * + * Generated from protobuf field string vulnerability_id = 8; + * @param string $var + * @return $this + */ + public function setVulnerabilityId($var) + { + GPBUtil::checkString($var, True); + $this->vulnerability_id = $var; + + return $this; + } + + /** + * Holds a list of references associated with this vulnerability item and + * assessment. + * + * Generated from protobuf field repeated .grafeas.v1.RelatedUrl related_uris = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRelatedUris() + { + return $this->related_uris; + } + + /** + * Holds a list of references associated with this vulnerability item and + * assessment. + * + * Generated from protobuf field repeated .grafeas.v1.RelatedUrl related_uris = 2; + * @param array<\Grafeas\V1\RelatedUrl>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRelatedUris($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\RelatedUrl::class); + $this->related_uris = $arr; + + return $this; + } + + /** + * The VulnerabilityAssessment note from which this VexAssessment was + * generated. + * This will be of the form: `projects/[PROJECT_ID]/notes/[NOTE_ID]`. + * (-- api-linter: core::0122::name-suffix=disabled + * aip.dev/not-precedent: The suffix is kept for consistency. --) + * + * Generated from protobuf field string note_name = 3; + * @return string + */ + public function getNoteName() + { + return $this->note_name; + } + + /** + * The VulnerabilityAssessment note from which this VexAssessment was + * generated. + * This will be of the form: `projects/[PROJECT_ID]/notes/[NOTE_ID]`. + * (-- api-linter: core::0122::name-suffix=disabled + * aip.dev/not-precedent: The suffix is kept for consistency. --) + * + * Generated from protobuf field string note_name = 3; + * @param string $var + * @return $this + */ + public function setNoteName($var) + { + GPBUtil::checkString($var, True); + $this->note_name = $var; + + return $this; + } + + /** + * Provides the state of this Vulnerability assessment. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.State state = 4; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Provides the state of this Vulnerability assessment. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.State state = 4; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\State::class); + $this->state = $var; + + return $this; + } + + /** + * Contains information about the impact of this vulnerability, + * this will change with time. + * + * Generated from protobuf field repeated string impacts = 5; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getImpacts() + { + return $this->impacts; + } + + /** + * Contains information about the impact of this vulnerability, + * this will change with time. + * + * Generated from protobuf field repeated string impacts = 5; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setImpacts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->impacts = $arr; + + return $this; + } + + /** + * Specifies details on how to handle (and presumably, fix) a vulnerability. + * + * Generated from protobuf field repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 6; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRemediations() + { + return $this->remediations; + } + + /** + * Specifies details on how to handle (and presumably, fix) a vulnerability. + * + * Generated from protobuf field repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 6; + * @param array<\Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Remediation>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRemediations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Remediation::class); + $this->remediations = $arr; + + return $this; + } + + /** + * Justification provides the justification when the state of the + * assessment if NOT_AFFECTED. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7; + * @return \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Justification|null + */ + public function getJustification() + { + return $this->justification; + } + + public function hasJustification() + { + return isset($this->justification); + } + + public function clearJustification() + { + unset($this->justification); + } + + /** + * Justification provides the justification when the state of the + * assessment if NOT_AFFECTED. + * + * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7; + * @param \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Justification $var + * @return $this + */ + public function setJustification($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Justification::class); + $this->justification = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(VexAssessment::class, \Grafeas\V1\VulnerabilityOccurrence_VexAssessment::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/WindowsUpdate.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/WindowsUpdate.php new file mode 100644 index 000000000000..49f8fd4e9db6 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/WindowsUpdate.php @@ -0,0 +1,298 @@ +grafeas.v1.WindowsUpdate + */ +class WindowsUpdate extends \Google\Protobuf\Internal\Message +{ + /** + * Required - The unique identifier for the update. + * + * Generated from protobuf field .grafeas.v1.WindowsUpdate.Identity identity = 1; + */ + protected $identity = null; + /** + * The localized title of the update. + * + * Generated from protobuf field string title = 2; + */ + protected $title = ''; + /** + * The localized description of the update. + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + /** + * The list of categories to which the update belongs. + * + * Generated from protobuf field repeated .grafeas.v1.WindowsUpdate.Category categories = 4; + */ + private $categories; + /** + * The Microsoft Knowledge Base article IDs that are associated with the + * update. + * + * Generated from protobuf field repeated string kb_article_ids = 5; + */ + private $kb_article_ids; + /** + * The hyperlink to the support information for the update. + * + * Generated from protobuf field string support_url = 6; + */ + protected $support_url = ''; + /** + * The last published timestamp of the update. + * + * Generated from protobuf field .google.protobuf.Timestamp last_published_timestamp = 7; + */ + protected $last_published_timestamp = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Grafeas\V1\WindowsUpdate\Identity $identity + * Required - The unique identifier for the update. + * @type string $title + * The localized title of the update. + * @type string $description + * The localized description of the update. + * @type array<\Grafeas\V1\WindowsUpdate\Category>|\Google\Protobuf\Internal\RepeatedField $categories + * The list of categories to which the update belongs. + * @type array|\Google\Protobuf\Internal\RepeatedField $kb_article_ids + * The Microsoft Knowledge Base article IDs that are associated with the + * update. + * @type string $support_url + * The hyperlink to the support information for the update. + * @type \Google\Protobuf\Timestamp $last_published_timestamp + * The last published timestamp of the update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Upgrade::initOnce(); + parent::__construct($data); + } + + /** + * Required - The unique identifier for the update. + * + * Generated from protobuf field .grafeas.v1.WindowsUpdate.Identity identity = 1; + * @return \Grafeas\V1\WindowsUpdate\Identity|null + */ + public function getIdentity() + { + return $this->identity; + } + + public function hasIdentity() + { + return isset($this->identity); + } + + public function clearIdentity() + { + unset($this->identity); + } + + /** + * Required - The unique identifier for the update. + * + * Generated from protobuf field .grafeas.v1.WindowsUpdate.Identity identity = 1; + * @param \Grafeas\V1\WindowsUpdate\Identity $var + * @return $this + */ + public function setIdentity($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\WindowsUpdate\Identity::class); + $this->identity = $var; + + return $this; + } + + /** + * The localized title of the update. + * + * Generated from protobuf field string title = 2; + * @return string + */ + public function getTitle() + { + return $this->title; + } + + /** + * The localized title of the update. + * + * Generated from protobuf field string title = 2; + * @param string $var + * @return $this + */ + public function setTitle($var) + { + GPBUtil::checkString($var, True); + $this->title = $var; + + return $this; + } + + /** + * The localized description of the update. + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * The localized description of the update. + * + * Generated from protobuf field string description = 3; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * The list of categories to which the update belongs. + * + * Generated from protobuf field repeated .grafeas.v1.WindowsUpdate.Category categories = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCategories() + { + return $this->categories; + } + + /** + * The list of categories to which the update belongs. + * + * Generated from protobuf field repeated .grafeas.v1.WindowsUpdate.Category categories = 4; + * @param array<\Grafeas\V1\WindowsUpdate\Category>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCategories($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\WindowsUpdate\Category::class); + $this->categories = $arr; + + return $this; + } + + /** + * The Microsoft Knowledge Base article IDs that are associated with the + * update. + * + * Generated from protobuf field repeated string kb_article_ids = 5; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getKbArticleIds() + { + return $this->kb_article_ids; + } + + /** + * The Microsoft Knowledge Base article IDs that are associated with the + * update. + * + * Generated from protobuf field repeated string kb_article_ids = 5; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setKbArticleIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->kb_article_ids = $arr; + + return $this; + } + + /** + * The hyperlink to the support information for the update. + * + * Generated from protobuf field string support_url = 6; + * @return string + */ + public function getSupportUrl() + { + return $this->support_url; + } + + /** + * The hyperlink to the support information for the update. + * + * Generated from protobuf field string support_url = 6; + * @param string $var + * @return $this + */ + public function setSupportUrl($var) + { + GPBUtil::checkString($var, True); + $this->support_url = $var; + + return $this; + } + + /** + * The last published timestamp of the update. + * + * Generated from protobuf field .google.protobuf.Timestamp last_published_timestamp = 7; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLastPublishedTimestamp() + { + return $this->last_published_timestamp; + } + + public function hasLastPublishedTimestamp() + { + return isset($this->last_published_timestamp); + } + + public function clearLastPublishedTimestamp() + { + unset($this->last_published_timestamp); + } + + /** + * The last published timestamp of the update. + * + * Generated from protobuf field .google.protobuf.Timestamp last_published_timestamp = 7; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLastPublishedTimestamp($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->last_published_timestamp = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/WindowsUpdate/Category.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/WindowsUpdate/Category.php new file mode 100644 index 000000000000..f3fc03d57a42 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/WindowsUpdate/Category.php @@ -0,0 +1,104 @@ +grafeas.v1.WindowsUpdate.Category + */ +class Category extends \Google\Protobuf\Internal\Message +{ + /** + * The identifier of the category. + * + * Generated from protobuf field string category_id = 1; + */ + protected $category_id = ''; + /** + * The localized name of the category. + * + * Generated from protobuf field string name = 2; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $category_id + * The identifier of the category. + * @type string $name + * The localized name of the category. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Upgrade::initOnce(); + parent::__construct($data); + } + + /** + * The identifier of the category. + * + * Generated from protobuf field string category_id = 1; + * @return string + */ + public function getCategoryId() + { + return $this->category_id; + } + + /** + * The identifier of the category. + * + * Generated from protobuf field string category_id = 1; + * @param string $var + * @return $this + */ + public function setCategoryId($var) + { + GPBUtil::checkString($var, True); + $this->category_id = $var; + + return $this; + } + + /** + * The localized name of the category. + * + * Generated from protobuf field string name = 2; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The localized name of the category. + * + * Generated from protobuf field string name = 2; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Category::class, \Grafeas\V1\WindowsUpdate_Category::class); + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/WindowsUpdate/Identity.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/WindowsUpdate/Identity.php new file mode 100644 index 000000000000..8d4340a93fc8 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/WindowsUpdate/Identity.php @@ -0,0 +1,104 @@ +grafeas.v1.WindowsUpdate.Identity + */ +class Identity extends \Google\Protobuf\Internal\Message +{ + /** + * The revision independent identifier of the update. + * + * Generated from protobuf field string update_id = 1; + */ + protected $update_id = ''; + /** + * The revision number of the update. + * + * Generated from protobuf field int32 revision = 2; + */ + protected $revision = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $update_id + * The revision independent identifier of the update. + * @type int $revision + * The revision number of the update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Grafeas\V1\Upgrade::initOnce(); + parent::__construct($data); + } + + /** + * The revision independent identifier of the update. + * + * Generated from protobuf field string update_id = 1; + * @return string + */ + public function getUpdateId() + { + return $this->update_id; + } + + /** + * The revision independent identifier of the update. + * + * Generated from protobuf field string update_id = 1; + * @param string $var + * @return $this + */ + public function setUpdateId($var) + { + GPBUtil::checkString($var, True); + $this->update_id = $var; + + return $this; + } + + /** + * The revision number of the update. + * + * Generated from protobuf field int32 revision = 2; + * @return int + */ + public function getRevision() + { + return $this->revision; + } + + /** + * The revision number of the update. + * + * Generated from protobuf field int32 revision = 2; + * @param int $var + * @return $this + */ + public function setRevision($var) + { + GPBUtil::checkInt32($var); + $this->revision = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Identity::class, \Grafeas\V1\WindowsUpdate_Identity::class); + diff --git a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/batch_create_notes.php b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/batch_create_notes.php new file mode 100644 index 000000000000..e77b9640d774 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/batch_create_notes.php @@ -0,0 +1,74 @@ +setParent($formattedParent) + ->setNotes($notes); + + // Call the API and handle any network failures. + try { + /** @var BatchCreateNotesResponse $response */ + $response = $grafeasClient->batchCreateNotes($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = GrafeasClient::projectName('[PROJECT]'); + + batch_create_notes_sample($formattedParent); +} +// [END containeranalysis_v1_generated_Grafeas_BatchCreateNotes_sync] diff --git a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/batch_create_occurrences.php b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/batch_create_occurrences.php new file mode 100644 index 000000000000..901bf3fa07ce --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/batch_create_occurrences.php @@ -0,0 +1,75 @@ +setParent($formattedParent) + ->setOccurrences($occurrences); + + // Call the API and handle any network failures. + try { + /** @var BatchCreateOccurrencesResponse $response */ + $response = $grafeasClient->batchCreateOccurrences($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = GrafeasClient::projectName('[PROJECT]'); + + batch_create_occurrences_sample($formattedParent); +} +// [END containeranalysis_v1_generated_Grafeas_BatchCreateOccurrences_sync] diff --git a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/create_note.php b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/create_note.php new file mode 100644 index 000000000000..a0e288c39341 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/create_note.php @@ -0,0 +1,77 @@ +setParent($formattedParent) + ->setNoteId($noteId) + ->setNote($note); + + // Call the API and handle any network failures. + try { + /** @var Note $response */ + $response = $grafeasClient->createNote($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = GrafeasClient::projectName('[PROJECT]'); + $noteId = '[NOTE_ID]'; + + create_note_sample($formattedParent, $noteId); +} +// [END containeranalysis_v1_generated_Grafeas_CreateNote_sync] diff --git a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/create_occurrence.php b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/create_occurrence.php new file mode 100644 index 000000000000..5cd87a2f20b3 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/create_occurrence.php @@ -0,0 +1,74 @@ +setParent($formattedParent) + ->setOccurrence($occurrence); + + // Call the API and handle any network failures. + try { + /** @var Occurrence $response */ + $response = $grafeasClient->createOccurrence($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = GrafeasClient::projectName('[PROJECT]'); + + create_occurrence_sample($formattedParent); +} +// [END containeranalysis_v1_generated_Grafeas_CreateOccurrence_sync] diff --git a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/delete_note.php b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/delete_note.php new file mode 100644 index 000000000000..8f7859b4b496 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/delete_note.php @@ -0,0 +1,70 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $grafeasClient->deleteNote($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = GrafeasClient::noteName('[PROJECT]', '[NOTE]'); + + delete_note_sample($formattedName); +} +// [END containeranalysis_v1_generated_Grafeas_DeleteNote_sync] diff --git a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/delete_occurrence.php b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/delete_occurrence.php new file mode 100644 index 000000000000..d32356e96d3c --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/delete_occurrence.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $grafeasClient->deleteOccurrence($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = GrafeasClient::occurrenceName('[PROJECT]', '[OCCURRENCE]'); + + delete_occurrence_sample($formattedName); +} +// [END containeranalysis_v1_generated_Grafeas_DeleteOccurrence_sync] diff --git a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/get_note.php b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/get_note.php new file mode 100644 index 000000000000..ca7da3201d5e --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/get_note.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Note $response */ + $response = $grafeasClient->getNote($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = GrafeasClient::noteName('[PROJECT]', '[NOTE]'); + + get_note_sample($formattedName); +} +// [END containeranalysis_v1_generated_Grafeas_GetNote_sync] diff --git a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/get_occurrence.php b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/get_occurrence.php new file mode 100644 index 000000000000..db0443c6bbfb --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/get_occurrence.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Occurrence $response */ + $response = $grafeasClient->getOccurrence($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = GrafeasClient::occurrenceName('[PROJECT]', '[OCCURRENCE]'); + + get_occurrence_sample($formattedName); +} +// [END containeranalysis_v1_generated_Grafeas_GetOccurrence_sync] diff --git a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/get_occurrence_note.php b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/get_occurrence_note.php new file mode 100644 index 000000000000..2144b22a5ee3 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/get_occurrence_note.php @@ -0,0 +1,73 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Note $response */ + $response = $grafeasClient->getOccurrenceNote($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = GrafeasClient::occurrenceName('[PROJECT]', '[OCCURRENCE]'); + + get_occurrence_note_sample($formattedName); +} +// [END containeranalysis_v1_generated_Grafeas_GetOccurrenceNote_sync] diff --git a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/list_note_occurrences.php b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/list_note_occurrences.php new file mode 100644 index 000000000000..5c5f85473366 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/list_note_occurrences.php @@ -0,0 +1,79 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $grafeasClient->listNoteOccurrences($request); + + /** @var Occurrence $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = GrafeasClient::noteName('[PROJECT]', '[NOTE]'); + + list_note_occurrences_sample($formattedName); +} +// [END containeranalysis_v1_generated_Grafeas_ListNoteOccurrences_sync] diff --git a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/list_notes.php b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/list_notes.php new file mode 100644 index 000000000000..d5c185c3e99f --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/list_notes.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $grafeasClient->listNotes($request); + + /** @var Note $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = GrafeasClient::projectName('[PROJECT]'); + + list_notes_sample($formattedParent); +} +// [END containeranalysis_v1_generated_Grafeas_ListNotes_sync] diff --git a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/list_occurrences.php b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/list_occurrences.php new file mode 100644 index 000000000000..ddfd0bc932a0 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/list_occurrences.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $grafeasClient->listOccurrences($request); + + /** @var Occurrence $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = GrafeasClient::projectName('[PROJECT]'); + + list_occurrences_sample($formattedParent); +} +// [END containeranalysis_v1_generated_Grafeas_ListOccurrences_sync] diff --git a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/update_note.php b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/update_note.php new file mode 100644 index 000000000000..0787efb18b44 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/update_note.php @@ -0,0 +1,74 @@ +setName($formattedName) + ->setNote($note); + + // Call the API and handle any network failures. + try { + /** @var Note $response */ + $response = $grafeasClient->updateNote($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = GrafeasClient::noteName('[PROJECT]', '[NOTE]'); + + update_note_sample($formattedName); +} +// [END containeranalysis_v1_generated_Grafeas_UpdateNote_sync] diff --git a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/update_occurrence.php b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/update_occurrence.php new file mode 100644 index 000000000000..92d03ecea012 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/update_occurrence.php @@ -0,0 +1,74 @@ +setName($formattedName) + ->setOccurrence($occurrence); + + // Call the API and handle any network failures. + try { + /** @var Occurrence $response */ + $response = $grafeasClient->updateOccurrence($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = GrafeasClient::occurrenceName('[PROJECT]', '[OCCURRENCE]'); + + update_occurrence_sample($formattedName); +} +// [END containeranalysis_v1_generated_Grafeas_UpdateOccurrence_sync] diff --git a/owl-bot-staging/Grafeas/v1/src/V1/Client/GrafeasClient.php b/owl-bot-staging/Grafeas/v1/src/V1/Client/GrafeasClient.php new file mode 100644 index 000000000000..d23450a34c31 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/src/V1/Client/GrafeasClient.php @@ -0,0 +1,667 @@ + batchCreateNotesAsync(BatchCreateNotesRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchCreateOccurrencesAsync(BatchCreateOccurrencesRequest $request, array $optionalArgs = []) + * @method PromiseInterface createNoteAsync(CreateNoteRequest $request, array $optionalArgs = []) + * @method PromiseInterface createOccurrenceAsync(CreateOccurrenceRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteNoteAsync(DeleteNoteRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteOccurrenceAsync(DeleteOccurrenceRequest $request, array $optionalArgs = []) + * @method PromiseInterface getNoteAsync(GetNoteRequest $request, array $optionalArgs = []) + * @method PromiseInterface getOccurrenceAsync(GetOccurrenceRequest $request, array $optionalArgs = []) + * @method PromiseInterface getOccurrenceNoteAsync(GetOccurrenceNoteRequest $request, array $optionalArgs = []) + * @method PromiseInterface listNoteOccurrencesAsync(ListNoteOccurrencesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listNotesAsync(ListNotesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listOccurrencesAsync(ListOccurrencesRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateNoteAsync(UpdateNoteRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateOccurrenceAsync(UpdateOccurrenceRequest $request, array $optionalArgs = []) + */ +final class GrafeasClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'grafeas.v1.Grafeas'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'containeranalysis.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'containeranalysis.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = []; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/grafeas_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/grafeas_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/grafeas_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/grafeas_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a note + * resource. + * + * @param string $project + * @param string $note + * + * @return string The formatted note resource. + */ + public static function noteName(string $project, string $note): string + { + return self::getPathTemplate('note')->render([ + 'project' => $project, + 'note' => $note, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a occurrence + * resource. + * + * @param string $project + * @param string $occurrence + * + * @return string The formatted occurrence resource. + */ + public static function occurrenceName(string $project, string $occurrence): string + { + return self::getPathTemplate('occurrence')->render([ + 'project' => $project, + 'occurrence' => $occurrence, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a project + * resource. + * + * @param string $project + * + * @return string The formatted project resource. + */ + public static function projectName(string $project): string + { + return self::getPathTemplate('project')->render([ + 'project' => $project, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - note: projects/{project}/notes/{note} + * - occurrence: projects/{project}/occurrences/{occurrence} + * - project: projects/{project} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'containeranalysis.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Grafeas\V1\GrafeasClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new GrafeasClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Creates new notes in batch. + * + * The async variant is {@see GrafeasClient::batchCreateNotesAsync()} . + * + * @example samples/V1/GrafeasClient/batch_create_notes.php + * + * @param BatchCreateNotesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchCreateNotesResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchCreateNotes(BatchCreateNotesRequest $request, array $callOptions = []): BatchCreateNotesResponse + { + return $this->startApiCall('BatchCreateNotes', $request, $callOptions)->wait(); + } + + /** + * Creates new occurrences in batch. + * + * The async variant is {@see GrafeasClient::batchCreateOccurrencesAsync()} . + * + * @example samples/V1/GrafeasClient/batch_create_occurrences.php + * + * @param BatchCreateOccurrencesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchCreateOccurrencesResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchCreateOccurrences(BatchCreateOccurrencesRequest $request, array $callOptions = []): BatchCreateOccurrencesResponse + { + return $this->startApiCall('BatchCreateOccurrences', $request, $callOptions)->wait(); + } + + /** + * Creates a new note. + * + * The async variant is {@see GrafeasClient::createNoteAsync()} . + * + * @example samples/V1/GrafeasClient/create_note.php + * + * @param CreateNoteRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Note + * + * @throws ApiException Thrown if the API call fails. + */ + public function createNote(CreateNoteRequest $request, array $callOptions = []): Note + { + return $this->startApiCall('CreateNote', $request, $callOptions)->wait(); + } + + /** + * Creates a new occurrence. + * + * The async variant is {@see GrafeasClient::createOccurrenceAsync()} . + * + * @example samples/V1/GrafeasClient/create_occurrence.php + * + * @param CreateOccurrenceRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Occurrence + * + * @throws ApiException Thrown if the API call fails. + */ + public function createOccurrence(CreateOccurrenceRequest $request, array $callOptions = []): Occurrence + { + return $this->startApiCall('CreateOccurrence', $request, $callOptions)->wait(); + } + + /** + * Deletes the specified note. + * + * The async variant is {@see GrafeasClient::deleteNoteAsync()} . + * + * @example samples/V1/GrafeasClient/delete_note.php + * + * @param DeleteNoteRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteNote(DeleteNoteRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteNote', $request, $callOptions)->wait(); + } + + /** + * Deletes the specified occurrence. For example, use this method to delete an + * occurrence when the occurrence is no longer applicable for the given + * resource. + * + * The async variant is {@see GrafeasClient::deleteOccurrenceAsync()} . + * + * @example samples/V1/GrafeasClient/delete_occurrence.php + * + * @param DeleteOccurrenceRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteOccurrence(DeleteOccurrenceRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteOccurrence', $request, $callOptions)->wait(); + } + + /** + * Gets the specified note. + * + * The async variant is {@see GrafeasClient::getNoteAsync()} . + * + * @example samples/V1/GrafeasClient/get_note.php + * + * @param GetNoteRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Note + * + * @throws ApiException Thrown if the API call fails. + */ + public function getNote(GetNoteRequest $request, array $callOptions = []): Note + { + return $this->startApiCall('GetNote', $request, $callOptions)->wait(); + } + + /** + * Gets the specified occurrence. + * + * The async variant is {@see GrafeasClient::getOccurrenceAsync()} . + * + * @example samples/V1/GrafeasClient/get_occurrence.php + * + * @param GetOccurrenceRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Occurrence + * + * @throws ApiException Thrown if the API call fails. + */ + public function getOccurrence(GetOccurrenceRequest $request, array $callOptions = []): Occurrence + { + return $this->startApiCall('GetOccurrence', $request, $callOptions)->wait(); + } + + /** + * Gets the note attached to the specified occurrence. Consumer projects can + * use this method to get a note that belongs to a provider project. + * + * The async variant is {@see GrafeasClient::getOccurrenceNoteAsync()} . + * + * @example samples/V1/GrafeasClient/get_occurrence_note.php + * + * @param GetOccurrenceNoteRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Note + * + * @throws ApiException Thrown if the API call fails. + */ + public function getOccurrenceNote(GetOccurrenceNoteRequest $request, array $callOptions = []): Note + { + return $this->startApiCall('GetOccurrenceNote', $request, $callOptions)->wait(); + } + + /** + * Lists occurrences referencing the specified note. Provider projects can use + * this method to get all occurrences across consumer projects referencing the + * specified note. + * + * The async variant is {@see GrafeasClient::listNoteOccurrencesAsync()} . + * + * @example samples/V1/GrafeasClient/list_note_occurrences.php + * + * @param ListNoteOccurrencesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listNoteOccurrences(ListNoteOccurrencesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListNoteOccurrences', $request, $callOptions); + } + + /** + * Lists notes for the specified project. + * + * The async variant is {@see GrafeasClient::listNotesAsync()} . + * + * @example samples/V1/GrafeasClient/list_notes.php + * + * @param ListNotesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listNotes(ListNotesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListNotes', $request, $callOptions); + } + + /** + * Lists occurrences for the specified project. + * + * The async variant is {@see GrafeasClient::listOccurrencesAsync()} . + * + * @example samples/V1/GrafeasClient/list_occurrences.php + * + * @param ListOccurrencesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listOccurrences(ListOccurrencesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListOccurrences', $request, $callOptions); + } + + /** + * Updates the specified note. + * + * The async variant is {@see GrafeasClient::updateNoteAsync()} . + * + * @example samples/V1/GrafeasClient/update_note.php + * + * @param UpdateNoteRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Note + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateNote(UpdateNoteRequest $request, array $callOptions = []): Note + { + return $this->startApiCall('UpdateNote', $request, $callOptions)->wait(); + } + + /** + * Updates the specified occurrence. + * + * The async variant is {@see GrafeasClient::updateOccurrenceAsync()} . + * + * @example samples/V1/GrafeasClient/update_occurrence.php + * + * @param UpdateOccurrenceRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Occurrence + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateOccurrence(UpdateOccurrenceRequest $request, array $callOptions = []): Occurrence + { + return $this->startApiCall('UpdateOccurrence', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Grafeas/v1/src/V1/gapic_metadata.json b/owl-bot-staging/Grafeas/v1/src/V1/gapic_metadata.json new file mode 100644 index 000000000000..c113418d85c6 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/src/V1/gapic_metadata.json @@ -0,0 +1,88 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "grafeas.v1", + "libraryPackage": "Grafeas\\V1", + "services": { + "Grafeas": { + "clients": { + "grpc": { + "libraryClient": "GrafeasGapicClient", + "rpcs": { + "BatchCreateNotes": { + "methods": [ + "batchCreateNotes" + ] + }, + "BatchCreateOccurrences": { + "methods": [ + "batchCreateOccurrences" + ] + }, + "CreateNote": { + "methods": [ + "createNote" + ] + }, + "CreateOccurrence": { + "methods": [ + "createOccurrence" + ] + }, + "DeleteNote": { + "methods": [ + "deleteNote" + ] + }, + "DeleteOccurrence": { + "methods": [ + "deleteOccurrence" + ] + }, + "GetNote": { + "methods": [ + "getNote" + ] + }, + "GetOccurrence": { + "methods": [ + "getOccurrence" + ] + }, + "GetOccurrenceNote": { + "methods": [ + "getOccurrenceNote" + ] + }, + "ListNoteOccurrences": { + "methods": [ + "listNoteOccurrences" + ] + }, + "ListNotes": { + "methods": [ + "listNotes" + ] + }, + "ListOccurrences": { + "methods": [ + "listOccurrences" + ] + }, + "UpdateNote": { + "methods": [ + "updateNote" + ] + }, + "UpdateOccurrence": { + "methods": [ + "updateOccurrence" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/Grafeas/v1/src/V1/resources/grafeas_client_config.json b/owl-bot-staging/Grafeas/v1/src/V1/resources/grafeas_client_config.json new file mode 100644 index 000000000000..5cb46837e7a6 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/src/V1/resources/grafeas_client_config.json @@ -0,0 +1,115 @@ +{ + "interfaces": { + "grafeas.v1.Grafeas": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE", + "DEADLINE_EXCEEDED" + ], + "no_retry_1_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 30000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 30000, + "total_timeout_millis": 30000 + }, + "no_retry_1_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 30000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 30000, + "total_timeout_millis": 30000 + } + }, + "methods": { + "BatchCreateNotes": { + "timeout_millis": 30000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "BatchCreateOccurrences": { + "timeout_millis": 30000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateNote": { + "timeout_millis": 30000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateOccurrence": { + "timeout_millis": 30000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteNote": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "DeleteOccurrence": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetNote": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetOccurrence": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetOccurrenceNote": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListNoteOccurrences": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListNotes": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListOccurrences": { + "timeout_millis": 30000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "UpdateNote": { + "timeout_millis": 30000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateOccurrence": { + "timeout_millis": 30000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/Grafeas/v1/src/V1/resources/grafeas_descriptor_config.php b/owl-bot-staging/Grafeas/v1/src/V1/resources/grafeas_descriptor_config.php new file mode 100644 index 000000000000..06632b4f7987 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/src/V1/resources/grafeas_descriptor_config.php @@ -0,0 +1,225 @@ + [ + 'grafeas.v1.Grafeas' => [ + 'BatchCreateNotes' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Grafeas\V1\BatchCreateNotesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchCreateOccurrences' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Grafeas\V1\BatchCreateOccurrencesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateNote' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Grafeas\V1\Note', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateOccurrence' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Grafeas\V1\Occurrence', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteNote' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOccurrence' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetNote' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Grafeas\V1\Note', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetOccurrence' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Grafeas\V1\Occurrence', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetOccurrenceNote' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Grafeas\V1\Note', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListNoteOccurrences' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getOccurrences', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Grafeas\V1\ListNoteOccurrencesResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListNotes' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getNotes', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Grafeas\V1\ListNotesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListOccurrences' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getOccurrences', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Grafeas\V1\ListOccurrencesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateNote' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Grafeas\V1\Note', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateOccurrence' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Grafeas\V1\Occurrence', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'note' => 'projects/{project}/notes/{note}', + 'occurrence' => 'projects/{project}/occurrences/{occurrence}', + 'project' => 'projects/{project}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Grafeas/v1/src/V1/resources/grafeas_rest_client_config.php b/owl-bot-staging/Grafeas/v1/src/V1/resources/grafeas_rest_client_config.php new file mode 100644 index 000000000000..2c9129698ddd --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/src/V1/resources/grafeas_rest_client_config.php @@ -0,0 +1,285 @@ + [ + 'grafeas.v1.Grafeas' => [ + 'BatchCreateNotes' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*}/notes:batchCreate', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/notes:batchCreate', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchCreateOccurrences' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*}/occurrences:batchCreate', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/occurrences:batchCreate', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateNote' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*}/notes', + 'body' => 'note', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/notes', + 'body' => 'note', + 'queryParams' => [ + 'note_id', + ], + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'note_id', + ], + ], + 'CreateOccurrence' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*}/occurrences', + 'body' => 'occurrence', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/occurrences', + 'body' => 'occurrence', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteNote' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/notes/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/notes/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOccurrence' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/occurrences/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/occurrences/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetNote' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/notes/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/notes/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOccurrence' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/occurrences/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/occurrences/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOccurrenceNote' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/occurrences/*}/notes', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/occurrences/*}/notes', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListNoteOccurrences' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/notes/*}/occurrences', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/notes/*}/occurrences', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListNotes' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*}/notes', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/notes', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListOccurrences' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*}/occurrences', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/occurrences', + ], + ], + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateNote' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{name=projects/*/notes/*}', + 'body' => 'note', + 'additionalBindings' => [ + [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/notes/*}', + 'body' => 'note', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'UpdateOccurrence' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{name=projects/*/occurrences/*}', + 'body' => 'occurrence', + 'additionalBindings' => [ + [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/occurrences/*}', + 'body' => 'occurrence', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Grafeas/v1/tests/Unit/V1/Client/GrafeasClientTest.php b/owl-bot-staging/Grafeas/v1/tests/Unit/V1/Client/GrafeasClientTest.php new file mode 100644 index 000000000000..a27db0de4d68 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/tests/Unit/V1/Client/GrafeasClientTest.php @@ -0,0 +1,1108 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return GrafeasClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new GrafeasClient($options); + } + + /** @test */ + public function batchCreateNotesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchCreateNotesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $notesValue = new Note(); + $notes = [ + 'notesKey' => $notesValue, + ]; + $request = (new BatchCreateNotesRequest()) + ->setParent($formattedParent) + ->setNotes($notes); + $response = $gapicClient->batchCreateNotes($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/grafeas.v1.Grafeas/BatchCreateNotes', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNotes(); + $this->assertProtobufEquals($notes, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreateNotesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $notesValue = new Note(); + $notes = [ + 'notesKey' => $notesValue, + ]; + $request = (new BatchCreateNotesRequest()) + ->setParent($formattedParent) + ->setNotes($notes); + try { + $gapicClient->batchCreateNotes($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreateOccurrencesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchCreateOccurrencesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $occurrences = []; + $request = (new BatchCreateOccurrencesRequest()) + ->setParent($formattedParent) + ->setOccurrences($occurrences); + $response = $gapicClient->batchCreateOccurrences($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/grafeas.v1.Grafeas/BatchCreateOccurrences', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getOccurrences(); + $this->assertProtobufEquals($occurrences, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreateOccurrencesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $occurrences = []; + $request = (new BatchCreateOccurrencesRequest()) + ->setParent($formattedParent) + ->setOccurrences($occurrences); + try { + $gapicClient->batchCreateOccurrences($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createNoteTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $shortDescription = 'shortDescription-235369287'; + $longDescription = 'longDescription-1747792199'; + $expectedResponse = new Note(); + $expectedResponse->setName($name); + $expectedResponse->setShortDescription($shortDescription); + $expectedResponse->setLongDescription($longDescription); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $noteId = 'noteId2129224840'; + $note = new Note(); + $request = (new CreateNoteRequest()) + ->setParent($formattedParent) + ->setNoteId($noteId) + ->setNote($note); + $response = $gapicClient->createNote($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/grafeas.v1.Grafeas/CreateNote', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNoteId(); + $this->assertProtobufEquals($noteId, $actualValue); + $actualValue = $actualRequestObject->getNote(); + $this->assertProtobufEquals($note, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createNoteExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $noteId = 'noteId2129224840'; + $note = new Note(); + $request = (new CreateNoteRequest()) + ->setParent($formattedParent) + ->setNoteId($noteId) + ->setNote($note); + try { + $gapicClient->createNote($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createOccurrenceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $resourceUri = 'resourceUri-384040517'; + $noteName = 'noteName1780787896'; + $remediation = 'remediation779381797'; + $expectedResponse = new Occurrence(); + $expectedResponse->setName($name); + $expectedResponse->setResourceUri($resourceUri); + $expectedResponse->setNoteName($noteName); + $expectedResponse->setRemediation($remediation); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $occurrence = new Occurrence(); + $request = (new CreateOccurrenceRequest()) + ->setParent($formattedParent) + ->setOccurrence($occurrence); + $response = $gapicClient->createOccurrence($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/grafeas.v1.Grafeas/CreateOccurrence', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getOccurrence(); + $this->assertProtobufEquals($occurrence, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createOccurrenceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $occurrence = new Occurrence(); + $request = (new CreateOccurrenceRequest()) + ->setParent($formattedParent) + ->setOccurrence($occurrence); + try { + $gapicClient->createOccurrence($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteNoteTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->noteName('[PROJECT]', '[NOTE]'); + $request = (new DeleteNoteRequest()) + ->setName($formattedName); + $gapicClient->deleteNote($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/grafeas.v1.Grafeas/DeleteNote', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteNoteExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->noteName('[PROJECT]', '[NOTE]'); + $request = (new DeleteNoteRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteNote($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteOccurrenceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->occurrenceName('[PROJECT]', '[OCCURRENCE]'); + $request = (new DeleteOccurrenceRequest()) + ->setName($formattedName); + $gapicClient->deleteOccurrence($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/grafeas.v1.Grafeas/DeleteOccurrence', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteOccurrenceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->occurrenceName('[PROJECT]', '[OCCURRENCE]'); + $request = (new DeleteOccurrenceRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteOccurrence($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getNoteTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $shortDescription = 'shortDescription-235369287'; + $longDescription = 'longDescription-1747792199'; + $expectedResponse = new Note(); + $expectedResponse->setName($name2); + $expectedResponse->setShortDescription($shortDescription); + $expectedResponse->setLongDescription($longDescription); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->noteName('[PROJECT]', '[NOTE]'); + $request = (new GetNoteRequest()) + ->setName($formattedName); + $response = $gapicClient->getNote($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/grafeas.v1.Grafeas/GetNote', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getNoteExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->noteName('[PROJECT]', '[NOTE]'); + $request = (new GetNoteRequest()) + ->setName($formattedName); + try { + $gapicClient->getNote($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getOccurrenceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $resourceUri = 'resourceUri-384040517'; + $noteName = 'noteName1780787896'; + $remediation = 'remediation779381797'; + $expectedResponse = new Occurrence(); + $expectedResponse->setName($name2); + $expectedResponse->setResourceUri($resourceUri); + $expectedResponse->setNoteName($noteName); + $expectedResponse->setRemediation($remediation); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->occurrenceName('[PROJECT]', '[OCCURRENCE]'); + $request = (new GetOccurrenceRequest()) + ->setName($formattedName); + $response = $gapicClient->getOccurrence($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/grafeas.v1.Grafeas/GetOccurrence', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getOccurrenceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->occurrenceName('[PROJECT]', '[OCCURRENCE]'); + $request = (new GetOccurrenceRequest()) + ->setName($formattedName); + try { + $gapicClient->getOccurrence($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getOccurrenceNoteTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $shortDescription = 'shortDescription-235369287'; + $longDescription = 'longDescription-1747792199'; + $expectedResponse = new Note(); + $expectedResponse->setName($name2); + $expectedResponse->setShortDescription($shortDescription); + $expectedResponse->setLongDescription($longDescription); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->occurrenceName('[PROJECT]', '[OCCURRENCE]'); + $request = (new GetOccurrenceNoteRequest()) + ->setName($formattedName); + $response = $gapicClient->getOccurrenceNote($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/grafeas.v1.Grafeas/GetOccurrenceNote', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getOccurrenceNoteExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->occurrenceName('[PROJECT]', '[OCCURRENCE]'); + $request = (new GetOccurrenceNoteRequest()) + ->setName($formattedName); + try { + $gapicClient->getOccurrenceNote($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listNoteOccurrencesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $occurrencesElement = new Occurrence(); + $occurrences = [ + $occurrencesElement, + ]; + $expectedResponse = new ListNoteOccurrencesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setOccurrences($occurrences); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->noteName('[PROJECT]', '[NOTE]'); + $request = (new ListNoteOccurrencesRequest()) + ->setName($formattedName); + $response = $gapicClient->listNoteOccurrences($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getOccurrences()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/grafeas.v1.Grafeas/ListNoteOccurrences', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listNoteOccurrencesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->noteName('[PROJECT]', '[NOTE]'); + $request = (new ListNoteOccurrencesRequest()) + ->setName($formattedName); + try { + $gapicClient->listNoteOccurrences($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listNotesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $notesElement = new Note(); + $notes = [ + $notesElement, + ]; + $expectedResponse = new ListNotesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setNotes($notes); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $request = (new ListNotesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listNotes($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getNotes()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/grafeas.v1.Grafeas/ListNotes', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listNotesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $request = (new ListNotesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listNotes($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listOccurrencesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $occurrencesElement = new Occurrence(); + $occurrences = [ + $occurrencesElement, + ]; + $expectedResponse = new ListOccurrencesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setOccurrences($occurrences); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $request = (new ListOccurrencesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listOccurrences($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getOccurrences()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/grafeas.v1.Grafeas/ListOccurrences', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listOccurrencesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $request = (new ListOccurrencesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listOccurrences($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateNoteTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $shortDescription = 'shortDescription-235369287'; + $longDescription = 'longDescription-1747792199'; + $expectedResponse = new Note(); + $expectedResponse->setName($name2); + $expectedResponse->setShortDescription($shortDescription); + $expectedResponse->setLongDescription($longDescription); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->noteName('[PROJECT]', '[NOTE]'); + $note = new Note(); + $request = (new UpdateNoteRequest()) + ->setName($formattedName) + ->setNote($note); + $response = $gapicClient->updateNote($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/grafeas.v1.Grafeas/UpdateNote', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getNote(); + $this->assertProtobufEquals($note, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateNoteExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->noteName('[PROJECT]', '[NOTE]'); + $note = new Note(); + $request = (new UpdateNoteRequest()) + ->setName($formattedName) + ->setNote($note); + try { + $gapicClient->updateNote($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateOccurrenceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $resourceUri = 'resourceUri-384040517'; + $noteName = 'noteName1780787896'; + $remediation = 'remediation779381797'; + $expectedResponse = new Occurrence(); + $expectedResponse->setName($name2); + $expectedResponse->setResourceUri($resourceUri); + $expectedResponse->setNoteName($noteName); + $expectedResponse->setRemediation($remediation); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->occurrenceName('[PROJECT]', '[OCCURRENCE]'); + $occurrence = new Occurrence(); + $request = (new UpdateOccurrenceRequest()) + ->setName($formattedName) + ->setOccurrence($occurrence); + $response = $gapicClient->updateOccurrence($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/grafeas.v1.Grafeas/UpdateOccurrence', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getOccurrence(); + $this->assertProtobufEquals($occurrence, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateOccurrenceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->occurrenceName('[PROJECT]', '[OCCURRENCE]'); + $occurrence = new Occurrence(); + $request = (new UpdateOccurrenceRequest()) + ->setName($formattedName) + ->setOccurrence($occurrence); + try { + $gapicClient->updateOccurrence($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreateNotesAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchCreateNotesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->projectName('[PROJECT]'); + $notesValue = new Note(); + $notes = [ + 'notesKey' => $notesValue, + ]; + $request = (new BatchCreateNotesRequest()) + ->setParent($formattedParent) + ->setNotes($notes); + $response = $gapicClient->batchCreateNotesAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/grafeas.v1.Grafeas/BatchCreateNotes', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNotes(); + $this->assertProtobufEquals($notes, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} From fc8f4d855ed6b0a324ef19cff959ef8c2f7b2846 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Sat, 14 Feb 2026 03:09:31 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- Grafeas/metadata/V1/Common.php | Bin 1519 -> 1537 bytes Grafeas/metadata/V1/Vulnerability.php | 7 +- Grafeas/src/V1/BaseImage.php | 34 + Grafeas/src/V1/VulnerabilityNote.php | 44 + .../GPBMetadata/Grafeas/V1/Attestation.php | 40 - .../src/GPBMetadata/Grafeas/V1/Build.php | 40 - .../src/GPBMetadata/Grafeas/V1/Common.php | Bin 1537 -> 0 bytes .../src/GPBMetadata/Grafeas/V1/Compliance.php | Bin 1402 -> 0 bytes .../proto/src/GPBMetadata/Grafeas/V1/Cvss.php | Bin 3425 -> 0 bytes .../src/GPBMetadata/Grafeas/V1/Deployment.php | Bin 1084 -> 0 bytes .../src/GPBMetadata/Grafeas/V1/Discovery.php | Bin 2683 -> 0 bytes .../Grafeas/V1/DsseAttestation.php | Bin 1079 -> 0 bytes .../src/GPBMetadata/Grafeas/V1/Grafeas.php | Bin 9429 -> 0 bytes .../src/GPBMetadata/Grafeas/V1/Image.php | 44 - .../Grafeas/V1/IntotoProvenance.php | 54 - .../Grafeas/V1/IntotoStatement.php | Bin 3174 -> 0 bytes .../src/GPBMetadata/Grafeas/V1/Package.php | Bin 1945 -> 0 bytes .../src/GPBMetadata/Grafeas/V1/Provenance.php | Bin 2688 -> 0 bytes .../proto/src/GPBMetadata/Grafeas/V1/Risk.php | 37 - .../proto/src/GPBMetadata/Grafeas/V1/Sbom.php | 51 - .../src/GPBMetadata/Grafeas/V1/Secret.php | Bin 2441 -> 0 bytes .../src/GPBMetadata/Grafeas/V1/Severity.php | Bin 744 -> 0 bytes .../GPBMetadata/Grafeas/V1/SlsaProvenance.php | 61 - .../Grafeas/V1/SlsaProvenanceZeroTwo.php | 71 -- .../src/GPBMetadata/Grafeas/V1/Upgrade.php | 60 - .../proto/src/GPBMetadata/Grafeas/V1/Vex.php | Bin 2425 -> 0 bytes .../GPBMetadata/Grafeas/V1/Vulnerability.php | 112 -- .../v1/proto/src/Grafeas/V1/AliasContext.php | 101 -- .../src/Grafeas/V1/AliasContext/Kind.php | 72 -- .../v1/proto/src/Grafeas/V1/Architecture.php | 61 - .../v1/proto/src/Grafeas/V1/Artifact.php | 159 --- .../proto/src/Grafeas/V1/AttestationNote.php | 84 -- .../src/Grafeas/V1/AttestationNote/Hint.php | 80 -- .../src/Grafeas/V1/AttestationOccurrence.php | 190 --- .../v1/proto/src/Grafeas/V1/BaseImage.php | 169 --- .../Grafeas/V1/BatchCreateNotesRequest.php | 122 -- .../Grafeas/V1/BatchCreateNotesResponse.php | 67 - .../V1/BatchCreateOccurrencesRequest.php | 122 -- .../V1/BatchCreateOccurrencesResponse.php | 67 - .../v1/proto/src/Grafeas/V1/BuildNote.php | 68 - .../proto/src/Grafeas/V1/BuildOccurrence.php | 307 ----- .../proto/src/Grafeas/V1/BuildProvenance.php | 528 -------- .../v1/proto/src/Grafeas/V1/BuilderConfig.php | 58 - .../V1/CISAKnownExploitedVulnerabilities.php | 69 - .../Grafeas/v1/proto/src/Grafeas/V1/CVSS.php | 382 ------ .../src/Grafeas/V1/CVSS/AttackComplexity.php | 61 - .../src/Grafeas/V1/CVSS/AttackVector.php | 66 - .../src/Grafeas/V1/CVSS/Authentication.php | 61 - .../v1/proto/src/Grafeas/V1/CVSS/Impact.php | 71 -- .../Grafeas/V1/CVSS/PrivilegesRequired.php | 61 - .../v1/proto/src/Grafeas/V1/CVSS/Scope.php | 56 - .../src/Grafeas/V1/CVSS/UserInteraction.php | 56 - .../v1/proto/src/Grafeas/V1/CVSSVersion.php | 55 - .../v1/proto/src/Grafeas/V1/CVSSv3.php | 353 ------ .../Grafeas/V1/CVSSv3/AttackComplexity.php | 56 - .../src/Grafeas/V1/CVSSv3/AttackVector.php | 66 - .../v1/proto/src/Grafeas/V1/CVSSv3/Impact.php | 61 - .../Grafeas/V1/CVSSv3/PrivilegesRequired.php | 61 - .../v1/proto/src/Grafeas/V1/CVSSv3/Scope.php | 56 - .../src/Grafeas/V1/CVSSv3/UserInteraction.php | 56 - .../src/Grafeas/V1/CloudRepoSourceContext.php | 153 --- .../v1/proto/src/Grafeas/V1/Command.php | 249 ---- .../v1/proto/src/Grafeas/V1/Completeness.php | 148 --- .../proto/src/Grafeas/V1/ComplianceNote.php | 309 ----- .../V1/ComplianceNote/CisBenchmark.php | 90 -- .../src/Grafeas/V1/ComplianceOccurrence.php | 132 -- .../src/Grafeas/V1/ComplianceVersion.php | 148 --- .../src/Grafeas/V1/CreateNoteRequest.php | 168 --- .../Grafeas/V1/CreateOccurrenceRequest.php | 132 -- .../src/Grafeas/V1/DSSEAttestationNote.php | 75 -- .../V1/DSSEAttestationNote/DSSEHint.php | 80 -- .../Grafeas/V1/DSSEAttestationOccurrence.php | 119 -- .../src/Grafeas/V1/DeleteNoteRequest.php | 86 -- .../Grafeas/V1/DeleteOccurrenceRequest.php | 86 -- .../proto/src/Grafeas/V1/DeploymentNote.php | 67 - .../src/Grafeas/V1/DeploymentOccurrence.php | 295 ----- .../V1/DeploymentOccurrence/Platform.php | 71 -- .../v1/proto/src/Grafeas/V1/Digest.php | 101 -- .../v1/proto/src/Grafeas/V1/DiscoveryNote.php | 73 -- .../src/Grafeas/V1/DiscoveryOccurrence.php | 516 -------- .../DiscoveryOccurrence/AnalysisCompleted.php | 64 - .../V1/DiscoveryOccurrence/AnalysisStatus.php | 94 -- .../ContinuousAnalysis.php | 64 - .../Grafeas/V1/DiscoveryOccurrence/File.php | 88 -- .../V1/DiscoveryOccurrence/SBOMStatus.php | 108 -- .../SBOMStatus/SBOMState.php | 64 - .../VulnerabilityAttestation.php | 148 --- .../VulnerabilityAttestationState.php | 64 - .../v1/proto/src/Grafeas/V1/Distribution.php | 256 ---- .../v1/proto/src/Grafeas/V1/Envelope.php | 116 -- .../src/Grafeas/V1/EnvelopeSignature.php | 85 -- .../V1/ExploitPredictionScoringSystem.php | 107 -- .../v1/proto/src/Grafeas/V1/FileHashes.php | 68 - .../v1/proto/src/Grafeas/V1/FileLocation.php | 119 -- .../v1/proto/src/Grafeas/V1/Fingerprint.php | 151 --- .../src/Grafeas/V1/GerritSourceContext.php | 184 --- .../proto/src/Grafeas/V1/GetNoteRequest.php | 86 -- .../Grafeas/V1/GetOccurrenceNoteRequest.php | 86 -- .../src/Grafeas/V1/GetOccurrenceRequest.php | 86 -- .../proto/src/Grafeas/V1/GitSourceContext.php | 102 -- .../Grafeas/v1/proto/src/Grafeas/V1/Hash.php | 101 -- .../v1/proto/src/Grafeas/V1/ImageNote.php | 119 -- .../proto/src/Grafeas/V1/ImageOccurrence.php | 197 --- .../proto/src/Grafeas/V1/InTotoProvenance.php | 214 ---- .../src/Grafeas/V1/InTotoSlsaProvenanceV1.php | 160 --- .../BuildDefinition.php | 162 --- .../InTotoSlsaProvenanceV1/BuildMetadata.php | 135 -- .../ProvenanceBuilder.php | 115 -- .../ResourceDescriptor.php | 223 ---- .../V1/InTotoSlsaProvenanceV1/RunDetails.php | 135 -- .../SlsaProvenanceV1.php | 112 -- .../proto/src/Grafeas/V1/InTotoStatement.php | 224 ---- .../Grafeas/v1/proto/src/Grafeas/V1/Jwt.php | 73 -- .../Grafeas/v1/proto/src/Grafeas/V1/Layer.php | 105 -- .../v1/proto/src/Grafeas/V1/LayerDetails.php | 211 ---- .../v1/proto/src/Grafeas/V1/License.php | 117 -- .../Grafeas/V1/ListNoteOccurrencesRequest.php | 190 --- .../V1/ListNoteOccurrencesResponse.php | 101 -- .../proto/src/Grafeas/V1/ListNotesRequest.php | 240 ---- .../src/Grafeas/V1/ListNotesResponse.php | 151 --- .../src/Grafeas/V1/ListOccurrencesRequest.php | 240 ---- .../Grafeas/V1/ListOccurrencesResponse.php | 151 --- .../v1/proto/src/Grafeas/V1/Location.php | 154 --- .../v1/proto/src/Grafeas/V1/Metadata.php | 249 ---- .../proto/src/Grafeas/V1/NonCompliantFile.php | 135 -- .../Grafeas/v1/proto/src/Grafeas/V1/Note.php | 823 ------------ .../v1/proto/src/Grafeas/V1/NoteKind.php | 138 -- .../v1/proto/src/Grafeas/V1/Occurrence.php | 767 ------------ .../v1/proto/src/Grafeas/V1/PackageNote.php | 451 ------- .../src/Grafeas/V1/PackageOccurrence.php | 311 ----- .../v1/proto/src/Grafeas/V1/ProjectRepoId.php | 102 -- .../v1/proto/src/Grafeas/V1/Recipe.php | 273 ---- .../v1/proto/src/Grafeas/V1/RelatedUrl.php | 101 -- .../v1/proto/src/Grafeas/V1/RepoId.php | 108 -- .../Grafeas/v1/proto/src/Grafeas/V1/Risk.php | 127 -- .../src/Grafeas/V1/SBOMReferenceNote.php | 105 -- .../Grafeas/V1/SBOMReferenceOccurrence.php | 156 --- .../Grafeas/V1/SbomReferenceIntotoPayload.php | 190 --- .../V1/SbomReferenceIntotoPredicate.php | 169 --- .../v1/proto/src/Grafeas/V1/SecretKind.php | 205 --- .../proto/src/Grafeas/V1/SecretLocation.php | 75 -- .../v1/proto/src/Grafeas/V1/SecretNote.php | 33 - .../proto/src/Grafeas/V1/SecretOccurrence.php | 227 ---- .../v1/proto/src/Grafeas/V1/SecretStatus.php | 145 --- .../src/Grafeas/V1/SecretStatus/Status.php | 71 -- .../v1/proto/src/Grafeas/V1/Severity.php | 82 -- .../v1/proto/src/Grafeas/V1/Signature.php | 192 --- .../proto/src/Grafeas/V1/SlsaProvenance.php | 214 ---- .../Grafeas/V1/SlsaProvenance/Material.php | 88 -- .../Grafeas/V1/SlsaProvenance/SlsaBuilder.php | 61 - .../V1/SlsaProvenance/SlsaCompleteness.php | 151 --- .../V1/SlsaProvenance/SlsaMetadata.php | 252 ---- .../Grafeas/V1/SlsaProvenance/SlsaRecipe.php | 296 ----- .../src/Grafeas/V1/SlsaProvenanceZeroTwo.php | 235 ---- .../V1/SlsaProvenanceZeroTwo/SlsaBuilder.php | 64 - .../SlsaCompleteness.php | 118 -- .../SlsaConfigSource.php | 118 -- .../SlsaProvenanceZeroTwo/SlsaInvocation.php | 147 --- .../V1/SlsaProvenanceZeroTwo/SlsaMaterial.php | 91 -- .../V1/SlsaProvenanceZeroTwo/SlsaMetadata.php | 201 --- .../v1/proto/src/Grafeas/V1/Source.php | 215 ---- .../v1/proto/src/Grafeas/V1/SourceContext.php | 176 --- .../v1/proto/src/Grafeas/V1/Subject.php | 104 -- .../src/Grafeas/V1/UpdateNoteRequest.php | 178 --- .../Grafeas/V1/UpdateOccurrenceRequest.php | 178 --- .../src/Grafeas/V1/UpgradeDistribution.php | 187 --- .../v1/proto/src/Grafeas/V1/UpgradeNote.php | 196 --- .../src/Grafeas/V1/UpgradeOccurrence.php | 215 ---- .../v1/proto/src/Grafeas/V1/Version.php | 269 ---- .../src/Grafeas/V1/Version/VersionKind.php | 71 -- .../V1/VulnerabilityAssessmentNote.php | 306 ----- .../Assessment.php | 392 ------ .../Assessment/Justification.php | 105 -- .../Justification/JustificationType.php | 94 -- .../Assessment/Remediation.php | 148 --- .../Remediation/RemediationType.php | 85 -- .../Assessment/State.php | 79 -- .../VulnerabilityAssessmentNote/Product.php | 160 --- .../VulnerabilityAssessmentNote/Publisher.php | 165 --- .../src/Grafeas/V1/VulnerabilityNote.php | 403 ------ .../Grafeas/V1/VulnerabilityNote/Detail.php | 645 ---------- .../V1/VulnerabilityNote/WindowsDetail.php | 186 --- .../WindowsDetail/KnowledgeBase.php | 106 -- .../Grafeas/V1/VulnerabilityOccurrence.php | 628 ---------- .../VulnerabilityOccurrence/PackageIssue.php | 429 ------- .../VulnerabilityOccurrence/VexAssessment.php | 366 ------ .../v1/proto/src/Grafeas/V1/WindowsUpdate.php | 298 ----- .../src/Grafeas/V1/WindowsUpdate/Category.php | 104 -- .../src/Grafeas/V1/WindowsUpdate/Identity.php | 104 -- .../V1/GrafeasClient/batch_create_notes.php | 74 -- .../batch_create_occurrences.php | 75 -- .../samples/V1/GrafeasClient/create_note.php | 77 -- .../V1/GrafeasClient/create_occurrence.php | 74 -- .../samples/V1/GrafeasClient/delete_note.php | 70 -- .../V1/GrafeasClient/delete_occurrence.php | 72 -- .../v1/samples/V1/GrafeasClient/get_note.php | 72 -- .../V1/GrafeasClient/get_occurrence.php | 72 -- .../V1/GrafeasClient/get_occurrence_note.php | 73 -- .../GrafeasClient/list_note_occurrences.php | 79 -- .../samples/V1/GrafeasClient/list_notes.php | 77 -- .../V1/GrafeasClient/list_occurrences.php | 77 -- .../samples/V1/GrafeasClient/update_note.php | 74 -- .../V1/GrafeasClient/update_occurrence.php | 74 -- .../v1/src/V1/Client/GrafeasClient.php | 667 ---------- .../Grafeas/v1/src/V1/gapic_metadata.json | 88 -- .../V1/resources/grafeas_client_config.json | 115 -- .../resources/grafeas_descriptor_config.php | 225 ---- .../resources/grafeas_rest_client_config.php | 285 ----- .../Unit/V1/Client/GrafeasClientTest.php | 1108 ----------------- 209 files changed, 82 insertions(+), 30734 deletions(-) delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Attestation.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Build.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Common.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Compliance.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Cvss.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Deployment.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Discovery.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/DsseAttestation.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Grafeas.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Image.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/IntotoProvenance.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/IntotoStatement.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Package.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Provenance.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Risk.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Sbom.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Secret.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Severity.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/SlsaProvenance.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/SlsaProvenanceZeroTwo.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Upgrade.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Vex.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Vulnerability.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AliasContext.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AliasContext/Kind.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Architecture.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Artifact.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AttestationNote.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AttestationNote/Hint.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AttestationOccurrence.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BaseImage.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateNotesRequest.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateNotesResponse.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateOccurrencesRequest.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateOccurrencesResponse.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuildNote.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuildOccurrence.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuildProvenance.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuilderConfig.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CISAKnownExploitedVulnerabilities.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/AttackComplexity.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/AttackVector.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/Authentication.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/Impact.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/PrivilegesRequired.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/Scope.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/UserInteraction.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSVersion.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/AttackComplexity.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/AttackVector.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/Impact.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/PrivilegesRequired.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/Scope.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/UserInteraction.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CloudRepoSourceContext.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Command.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Completeness.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceNote.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceNote/CisBenchmark.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceOccurrence.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceVersion.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CreateNoteRequest.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CreateOccurrenceRequest.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DSSEAttestationNote.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DSSEAttestationNote/DSSEHint.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DSSEAttestationOccurrence.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeleteNoteRequest.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeleteOccurrenceRequest.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeploymentNote.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeploymentOccurrence.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeploymentOccurrence/Platform.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Digest.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryNote.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/AnalysisCompleted.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/AnalysisStatus.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/ContinuousAnalysis.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/File.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/SBOMStatus.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/SBOMStatus/SBOMState.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/VulnerabilityAttestation.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/VulnerabilityAttestation/VulnerabilityAttestationState.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Distribution.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Envelope.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/EnvelopeSignature.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ExploitPredictionScoringSystem.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/FileHashes.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/FileLocation.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Fingerprint.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GerritSourceContext.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GetNoteRequest.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GetOccurrenceNoteRequest.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GetOccurrenceRequest.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GitSourceContext.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Hash.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ImageNote.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ImageOccurrence.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoProvenance.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/BuildDefinition.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/BuildMetadata.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/ProvenanceBuilder.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/ResourceDescriptor.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/RunDetails.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/SlsaProvenanceV1.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoStatement.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Jwt.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Layer.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/LayerDetails.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/License.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNoteOccurrencesRequest.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNoteOccurrencesResponse.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNotesRequest.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNotesResponse.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListOccurrencesRequest.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListOccurrencesResponse.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Location.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Metadata.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/NonCompliantFile.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Note.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/NoteKind.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Occurrence.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/PackageNote.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/PackageOccurrence.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ProjectRepoId.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Recipe.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/RelatedUrl.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/RepoId.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Risk.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SBOMReferenceNote.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SBOMReferenceOccurrence.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SbomReferenceIntotoPayload.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SbomReferenceIntotoPredicate.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretKind.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretLocation.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretNote.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretOccurrence.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretStatus.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretStatus/Status.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Severity.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Signature.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/Material.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaBuilder.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaCompleteness.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaMetadata.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaRecipe.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaBuilder.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaCompleteness.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaConfigSource.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaInvocation.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaMaterial.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaMetadata.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Source.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SourceContext.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Subject.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpdateNoteRequest.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpdateOccurrenceRequest.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpgradeDistribution.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpgradeNote.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpgradeOccurrence.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Version.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Version/VersionKind.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Justification.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Justification/JustificationType.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Remediation.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Remediation/RemediationType.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/State.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Product.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Publisher.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote/Detail.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote/WindowsDetail.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote/WindowsDetail/KnowledgeBase.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityOccurrence.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityOccurrence/PackageIssue.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityOccurrence/VexAssessment.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/WindowsUpdate.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/WindowsUpdate/Category.php delete mode 100644 owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/WindowsUpdate/Identity.php delete mode 100644 owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/batch_create_notes.php delete mode 100644 owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/batch_create_occurrences.php delete mode 100644 owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/create_note.php delete mode 100644 owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/create_occurrence.php delete mode 100644 owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/delete_note.php delete mode 100644 owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/delete_occurrence.php delete mode 100644 owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/get_note.php delete mode 100644 owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/get_occurrence.php delete mode 100644 owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/get_occurrence_note.php delete mode 100644 owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/list_note_occurrences.php delete mode 100644 owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/list_notes.php delete mode 100644 owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/list_occurrences.php delete mode 100644 owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/update_note.php delete mode 100644 owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/update_occurrence.php delete mode 100644 owl-bot-staging/Grafeas/v1/src/V1/Client/GrafeasClient.php delete mode 100644 owl-bot-staging/Grafeas/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/Grafeas/v1/src/V1/resources/grafeas_client_config.json delete mode 100644 owl-bot-staging/Grafeas/v1/src/V1/resources/grafeas_descriptor_config.php delete mode 100644 owl-bot-staging/Grafeas/v1/src/V1/resources/grafeas_rest_client_config.php delete mode 100644 owl-bot-staging/Grafeas/v1/tests/Unit/V1/Client/GrafeasClientTest.php diff --git a/Grafeas/metadata/V1/Common.php b/Grafeas/metadata/V1/Common.php index 69974a9d78f48882205e564e95ff1a64f17a0c11..4cc4cb8a98439dc7a317fd2b9db88f688825f0be 100644 GIT binary patch delta 44 zcmaFQ-N>_HHzVW!&3hP&85u(+8!$Tw2?=m<6s4wT7MB!NO0Xy}YH)5YVy<{9 delta 25 hcmZqVdC$FJHzVWQ&3hP&85x}>8!$UinternalAddGeneratedFile( ' -ä +Ÿ grafeas/v1/vulnerability.proto -grafeas.v1google/protobuf/timestamp.protografeas/v1/common.protografeas/v1/cvss.protografeas/v1/package.protografeas/v1/risk.protografeas/v1/severity.protografeas/v1/vex.proto"ì +grafeas.v1google/protobuf/timestamp.protografeas/v1/common.protografeas/v1/cvss.protografeas/v1/package.protografeas/v1/risk.protografeas/v1/severity.protografeas/v1/vex.proto"§ VulnerabilityNote cvss_score (& @@ -36,7 +36,8 @@ public static function initOnce() { windows_details ( 2+.grafeas.v1.VulnerabilityNote.WindowsDetail6 source_update_time ( 2.google.protobuf.Timestamp- cvss_version (2.grafeas.v1.CVSSVersion! -cvss_v2 ( 2.grafeas.v1.CVSS­ +cvss_v2 ( 2.grafeas.v1.CVSS9 +advisory_publish_time ( 2.google.protobuf.Timestamp­ Detail severity_name (  description (  diff --git a/Grafeas/src/V1/BaseImage.php b/Grafeas/src/V1/BaseImage.php index 9298db2e3a4e..4ebce25a5062 100644 --- a/Grafeas/src/V1/BaseImage.php +++ b/Grafeas/src/V1/BaseImage.php @@ -33,6 +33,12 @@ class BaseImage extends \Google\Protobuf\Internal\Message * Generated from protobuf field int32 layer_count = 3; */ protected $layer_count = 0; + /** + * The registry in which the base image is from. + * + * Generated from protobuf field string registry = 4; + */ + protected $registry = ''; /** * Constructor. @@ -46,6 +52,8 @@ class BaseImage extends \Google\Protobuf\Internal\Message * The repository name in which the base image is from. * @type int $layer_count * The number of layers that the base image is composed of. + * @type string $registry + * The registry in which the base image is from. * } */ public function __construct($data = NULL) { @@ -131,5 +139,31 @@ public function setLayerCount($var) return $this; } + /** + * The registry in which the base image is from. + * + * Generated from protobuf field string registry = 4; + * @return string + */ + public function getRegistry() + { + return $this->registry; + } + + /** + * The registry in which the base image is from. + * + * Generated from protobuf field string registry = 4; + * @param string $var + * @return $this + */ + public function setRegistry($var) + { + GPBUtil::checkString($var, True); + $this->registry = $var; + + return $this; + } + } diff --git a/Grafeas/src/V1/VulnerabilityNote.php b/Grafeas/src/V1/VulnerabilityNote.php index 0565c30c64ab..2448507b64c7 100644 --- a/Grafeas/src/V1/VulnerabilityNote.php +++ b/Grafeas/src/V1/VulnerabilityNote.php @@ -69,6 +69,12 @@ class VulnerabilityNote extends \Google\Protobuf\Internal\Message * Generated from protobuf field .grafeas.v1.CVSS cvss_v2 = 8; */ protected $cvss_v2 = null; + /** + * The time this advisory was published by the source. + * + * Generated from protobuf field .google.protobuf.Timestamp advisory_publish_time = 9; + */ + protected $advisory_publish_time = null; /** * Constructor. @@ -98,6 +104,8 @@ class VulnerabilityNote extends \Google\Protobuf\Internal\Message * CVSS version used to populate cvss_score and severity. * @type \Grafeas\V1\CVSS $cvss_v2 * The full description of the v2 CVSS for this vulnerability. + * @type \Google\Protobuf\Timestamp $advisory_publish_time + * The time this advisory was published by the source. * } */ public function __construct($data = NULL) { @@ -355,5 +363,41 @@ public function setCvssV2($var) return $this; } + /** + * The time this advisory was published by the source. + * + * Generated from protobuf field .google.protobuf.Timestamp advisory_publish_time = 9; + * @return \Google\Protobuf\Timestamp|null + */ + public function getAdvisoryPublishTime() + { + return $this->advisory_publish_time; + } + + public function hasAdvisoryPublishTime() + { + return isset($this->advisory_publish_time); + } + + public function clearAdvisoryPublishTime() + { + unset($this->advisory_publish_time); + } + + /** + * The time this advisory was published by the source. + * + * Generated from protobuf field .google.protobuf.Timestamp advisory_publish_time = 9; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setAdvisoryPublishTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->advisory_publish_time = $var; + + return $this; + } + } diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Attestation.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Attestation.php deleted file mode 100644 index 8db0f36078c4..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Attestation.php +++ /dev/null @@ -1,40 +0,0 @@ -internalAddGeneratedFile( - ' -ˆ -grafeas/v1/attestation.proto -grafeas.v1"f -AttestationNote. -hint ( 2 .grafeas.v1.AttestationNote.Hint# -Hint -human_readable_name ( " -Jwt - compact_jwt ( "} -AttestationOccurrence -serialized_payload ( ) - -signatures ( 2.grafeas.v1.Signature -jwts ( 2.grafeas.v1.JwtBQ - io.grafeas.v1PZ8google.golang.org/genproto/googleapis/grafeas/v1;grafeas¢GRAbproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Build.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Build.php deleted file mode 100644 index 7f2b13ffa0c6..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Build.php +++ /dev/null @@ -1,40 +0,0 @@ -internalAddGeneratedFile( - ' -ü -grafeas/v1/build.proto -grafeas.v1!grafeas/v1/intoto_statement.protografeas/v1/provenance.proto"$ - BuildNote -builder_version ( "” -BuildOccurrence/ - -provenance ( 2.grafeas.v1.BuildProvenance -provenance_bytes ( 7 -intoto_provenance ( 2.grafeas.v1.InTotoProvenance5 -intoto_statement ( 2.grafeas.v1.InTotoStatementF -in_toto_slsa_provenance_v1 ( 2".grafeas.v1.InTotoSlsaProvenanceV1BQ - io.grafeas.v1PZ8google.golang.org/genproto/googleapis/grafeas/v1;grafeas¢GRAbproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Common.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Common.php deleted file mode 100644 index 4cc4cb8a98439dc7a317fd2b9db88f688825f0be..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1537 zcmZ`(e{17L6s+Soj-TzTPQ6eUTG+Y==R2-8xl$-j(_&kS5%I5Dav;SZ*3w#8s_Y7B z9nLNJGX0!|c30BrT*CPuYghB;&CIUe&%Z`@5qyWngpn8v;-k$Ti93R#m<#Ul5N&qb zEs2rG?;{$LxQmc6N3*$uOv7@%m8A*a#UAOSAjVsQlitI5PlE3`>!ut44BwL^!X826 z#c)al_OZb0aRy)CoL>NVAx;uBO3UCcK=K#uHX-#;BCwEuFKOaZMg_$o{Zp#EL|Yst zM3z3qZgTFkWsMn#qi^En4l{z)O36&6UNZ2}3 z%l3~@vuVJv6iD>vP)j~6Qg}l@gJyOr?jL0DQa>;A;nZXgB;*m%KZk0B_aVoAUh@JP z`Gza@5y?vQbAW<8X_ZmAQ-AkO_oL|U2f{*6y9dvoY$`XBCvPR)NL_`jB{WoQ6Yj|y z#F;X*m1{S`;x6~!gJy{LBzApyD`}Xd>gw-Whe{?2U}W#x4%CJ?A=W((h~9u>b+vOY z9UvwVPpG^%``qRiP|x^1zGFiAEOjcn2B$FzXd)!+IL-YL8i!rfu~6od_bGElW$M%I zwg_A?cz2jGwNptCQbN=>hnb%?sp)T^zL7#*s+1z?^vV3aow{T)mNh?$YI1G4>lxOXy`|f5hWLI^o8gKq7!Rd?(axFdS zU%{E29j1G2%?x)nvlr&by0T0|`%Ios^JX=fnajb@npn=QR?=%w8Lq5}p&hA5YdRR4 zT3H@?buk!StHrVY48SlKllkq`oH<%WW>+&Tdo;f>m$%x9%&tCg9Mg6Njy0cYRaLxN zjF$t$)J|3LXg*y`tifz#YBl`@XohW@?qLb&UqkDE!rXzx*ml~mE+czp59d>NX+lxt+?H$ z5)sjhSV*Od&}jo*G_KJ5)3d9`rc{Yo5?VzaiQ5#b%FTYoCWj1jLfr%hfa4xj5hfJX zo3(SQaey`U>Vp#RdjAlBgjgwbGAf1dfXoxct&kC3#Ex_&Q%ez}5?=!ujlIec6 zIv!|TpUm_84NKV{2f>K!2V-1$1aF(|!mm6${D)%>q(9x8{nGC#SQ-0rAvATCVOBF8 z(qazf$_vgqEC#7sM)2ZP5_DnC5LPxYji$?s2ixu#)Exs}50ab$ESMEE>Db`T3~?px z(SRlK;%pLp2g}5)L5p(I?P2+~m^b0Y18?_kc+1y4VX8LF|9H=N00l)bH>;$KGs%{y z;+%n5a@HWvdS+8~ao%?OnAMLY-Hz&IR{}w6t%BQ)UY5+N10g7lIEFv|TG_8#c40g!!^4if1rj6Ey>}A$@HSWv3$<=ojrT@=-cDtZ>={L?4Tkxu&ubb zgWB(q`vxP+HeFLSb=2;6yVypmd0}ZfwsQy-s;E+x5nmAGZ9;X-zOCXs>e)&cE6)Dl zU|$_LPL4(ZFq8}ISc-~KQ9LbUSLrCO(k%MmX5-)pK-Cq;K^!5$dqCu4_1n6pBF9x+ z^7TM-TAHD`nxbpJkPJ^ySJ53zh*4~}Z>X+j8ptD54HfS_LVipS`@k~Ej!sasXqr78 zH$`ugWP?q?aItMDdb5BX)z&Q6v_%5V=X=;4md3N}Jqnif!f9Q!=jWKuN0K~2uHDC@ zt0QD%w{IIqG;c4!4hRdFjvhNLn9&H!?S%cNsdNUB1bAyBI-?K2o zHEOlNA;SQ)6$iH*)wFRYff9R3W)tq>x0Y^duF}?Y&3zYmlhk_`=CuoQZf;;rQR`D! zP+V70e`*b|N~)BZCg#P*_jA|F=KLjdEX6e_jCl^r0nckB9ls^ZWo9UMXCjvyLYY%o zv21NXO3}kk%f>(VH5+#_pV9~qVBoe zz&30Jfw*c}Eb%`G^6QByjzCJ)S7RxTxXy**c{-W>JpoKi!|cF)Q4$(Li7)cCmc+lT z3ld)lEx8GqI8dcp;mN9>!Frt6OUZiyW2rQ$RQ3Xv!aay!vtHw+mQay-iREOWS_x%C z&M1NiQX!`sab4|+)Zh%J{q|jjV^Nt&TZOE4GM=}r^OB0ym9>v9dCsi(4k&B2tXDz_$MPr@=bMPHV!@S8agi4XP{JUY?6}<8PEAs6r^84FY zWFo|ifneV|o^KjsKh2)+dU!!P}w%maq6?poOxfw9~XkNFrUcknDIHy9Pu?deP=HnkH zlGRJ3(pcU4UWUy%aOk>;l&I4;41gp?ImRhvp$3;4t40&n@?{w-ZLD6_muq`Z%ph}} zFOQyyS-3V@u%7TmO69+l4XC<;`z)w0Wj!CmGW9&IJgz^?F7EoMrap`|tVAJIzL3-U zvc_%f?V9sA%s*K)?HOU~2v&ZbjXG@F#|NX{@a$xKae8idj|RO#w^MsyEJLOLp<62% zE3ni%?tZG3bw<^ri}TU&q*gin2BgA0+|fu))732LDn+DOXTYJ>62oE>sT-1I%!PP0wq;)< zu_+(-5B3YTPy4(-v_CRw_xcU8k`TUN`<~~y=RD^**M9xRy>j6RYGNCEI>CL^n;>$9 zk?T3cF&qo^g24cL$Z$rkX zy$K)E0NDBn`>t+a)NI$zG12=v(YwtE(Y-u41~4q$_faE3!mohn&kcH(X&|5Ig#PWC zzGm7cF?GxQh30yK2D;^AivBQm5ZDGW9UCz~%Qo=dGZb;M*j?A5wVj}D({Y9t?zUOE zwA8L-6YSZ#)oozk@JyFDUYmwit3ymuk=T>HXYsa-&K#h%`x$*5#O73 zznDRpz4gOwewqi*0>7tg<$qUUD}}cVBk(*-eaN+7%W!OB+JO`JTEZ7o9nMnCLG$$# zD#V#^P1s0Sw5YIRHq47(M3zuQUFOb#ONrRPTbP~*#RrtDaCmTEF53MF$nC>=N{2nq z@rn;oj#6=a)Crz;f{(X8fX8WURD%{la^ddtAO*-7E-o(7fIN2y>+}F2ns4Z~#yVeI z4uPd)uf!I7Itbh=Sk*n_${gbev9btJ%l#wdxHnMnd(J44Iv=9;7s;d4TIX@CKf$Nt zz+wk(&$LW3(R4!CY_j932qE3kBD%|20%3~hUc&N#4w7Figj(+|B4Sg=)!>Uzy_;zT zE1bGXPD#}9GOntK`@hP59E-|+T z%aLu^0OZRx$WPZw@G-m56je|~ts^UKu`ZoTVq^0ot^g0(qTG<==4OUlg@^UldHYOM z#m#K#?<^E=Rr?h@3WZ}G9JwU&5i6i@c$f1qEVF*&cup@D)q30h{A~-&X)|iDA8x|XRQoLhOQE$^ zVTrx{!>;DJ?_i~G4yoB`MdE7SOy_GQZ<a%rc_H$ diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/DsseAttestation.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/DsseAttestation.php deleted file mode 100644 index ef80894effc944fe157dddad5b1351735c4cb183..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1079 zcmah|(QeZ)6r~$NnO0@T7x0NVNtH&d6M0JPbB@pPJ$d&bnn&ar^iiOq8aS zh=-_bfbI~khZE>^2a{7njb)-3IuI!8BaQ3JM%{~JoKmeZ)>LyT>`aXiK^GWDlp*v- zozJMLM>Tc(Inn*rXcEFg8pqHz0__c-{3KwWD4B(vK_<%JoX1lxxaKtEKaBAf_%w{s zXxzs7iD0P_NC`v1(7J$JGsT`q(gbaR+m|v3(H*7PO>TD}G%7(uw~H}TJknB)4AgM~ z)WwaZE7ryO*i?@DVC5bi=a$J9Xq903bO41qQKFgoP6bxQo4fs<+>dgxkiu~`aW?F` zI3|pVH8vB$1q!{LoL$As_k10^?RiDcPiFj9;Vku8BY$?u>3`>5C2NSiY#f*2<`m;- zn%-4rDX+=dk{ou&<6de0*HUBk4Y@xzjH3!vtb;;Mv-h!5_OdvX=tVkLn3I zoF@w^rV35@W+6_~PG*|>XTK`s=|56K#uBB_G^YBT?4ej`56o5R>v8uI_anlSdvh>7h4`=uIf8*ZD#oa#>=HD&OA*Sv&1OhExQ$R6#vJ wk^Ncqe2Ydru5ZTCT)+O_+3kOA&mLsZ*R^7VFY+puntNw!Gh|+|6Zn`3TP6mf`h;7`aYUp>0JYPtuetsLTu?W*rr z^*w*}Rn6S`w!iJ8i~1UINnl2#t+#gdXq)JM;6XvJX4{O+%{4B+ z`Rv9rLY8BOp)Q8dE2P7Z-)lLxrH7Fj!LLhp*tA_cvQ5W+33{&RTc#5dz-DE)daf1O zo~u*9L)Rh;S9QK7mA&M9VAqPix#oEthitA>Q^Cy5du~Jm*K{^lNoWPOA9=w#h}LQy z5+x3zBMVo>wsbjrOJCqR)@m6gSM(_85qWoA4@lGt+-0UWU0^TyYg6$L*RJl{n|0Uq zs24mptkqJR(j^7~Z#y<|qhgr5HgVbwvTg3zUQi7Bh=^nuTFJ!sVELV{AMFmmVFG0e z-#5eO2f#kDAvGhj>korX5_Yp5MHEIOQViJW*-pC{)3>V@qa}Vk%%7JgwkY>BTY`Lqz-dV!5DX)x&WI^?&;W&33FQzmsrOIv z)w{qHeOo8+D5e7;@SbFvnby3Rot0)=w6MkaoHP#SCRDGOIHOL863v-xCv_+$=Otu2 zE;ccDL7sz(YQ9}lo7Rnh%Atb;nihwcIVCL`LIsFn*|d`{xX1-m7I7%xz5hQZ#G z_vI&)B7YejA?^-wJfCQoA(V2tBj##rZ|bWkW`~OHRnt}QH6YS2h!us^SK_a|s+SZo zjHdtWH73w_8}0(O6B@rcf)3Go>?`xrXgb{Xf~eUR{W!E+qSiHZ!tvaWGBbS1U!x`O z(CZG+hXW-)3e`O;JLnOgei}IV12jcm_%_^*VEY1eAoIt&>7b84I2pW+aOM$?ZAe%z z1UeW6e*CDPTX@|ob*yj;bw04l<(O4?-Jg;@!dNAh<9xzPU6EsaBIL>`lkn=ElUEc> zB4n>C9Kwql?B~rQCG3<#1fn9d2e0ST3Ls_=A-|;Z1}|oXIi*reEr=O|m#<=hV2soP zi7R*wDHfz$ArQ+sEWwLhr9qV?1o%^=DF;XsZqOtQY4a{he)Ed#4kh6AL{_Z!afWS9 zF%nR6MqwKPTu69kmI0J9;ylA8YahO;FQKV8qQD$<9G}nO3>PMVE$FYk#uz#j?fS&H zjb_$Jl(Nku@?{S$VfdQd8Z^$nu8;huJ~x1&j9-<|>}Pf;EfdD;l+l=P0?|gi$!N^8 zm1Yo@G+yWYhL5AME!%o{WUqPdK6p%1ry0#;6@MPu}JeayIv=2nSAB9bl>JEo9>chKBz);ML?DdONNLaDjT$$bQ!E>HCz zF@9G`UwDOXq8d9}`@u^{JFFDirD=WO(p!rqAUc!Y6xMb6^^>$6L0 zc*l)`T^9fOPY|Mk=R{dh8nX!k?O5mJe z7xBh*^*rM~QF@1T1D^Z$(YZm}A0XaKKbb}2YrMO}e<-123bSJ6_Nq(?&YmBjt3meb z?5X01fB)AnMn18sc)`XsTEG&*JFQdHjCxPhy=Vvc9=SO0211bt$=R$I9}W@NY{4R^nOjQ2u|yvmr%uyit&u|{~cOO{Mw0|}> z2cp2971Jjf_9;SN6w1RzpZcHz@-d7z-JWe>8$-^J@-Ym2)j$CN{M^jHt-GpMm)}V}8i&-x*|# zYJV%`>RPG1@f~BC)m8x)s4L)qLy-GhOEt*-v$5raIO3OJryWsUXd8#fHD zZ$>P~p&Ww$2_z!XdBFLLU)SLaJT5%8(@%fl8!o${ z9g5BgK93D6@NU`oK00Q5lF{p>jhmvm>UfUnb}C-bsdk79eQe}a`4mORU-tpdTo!L- zza1G}dsKf@U&wtu!$~Kcd`!?9W2=5}CHZ)Hk$-bW`l8LiFWE3j{$-dww1?1t0hf9o Ax&QzG diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Image.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Image.php deleted file mode 100644 index 4756c06563d8..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Image.php +++ /dev/null @@ -1,44 +0,0 @@ -internalAddGeneratedFile( - ' -× -grafeas/v1/image.proto -grafeas.v1"- -Layer - directive (  - arguments ( "@ - Fingerprint -v1_name (  -v2_blob (  -v2_name ( "O - ImageNote - resource_url ( , - fingerprint ( 2.grafeas.v1.Fingerprint"“ -ImageOccurrence, - fingerprint ( 2.grafeas.v1.Fingerprint -distance (% - -layer_info ( 2.grafeas.v1.Layer -base_resource_url ( BQ - io.grafeas.v1PZ8google.golang.org/genproto/googleapis/grafeas/v1;grafeas¢GRAbproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/IntotoProvenance.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/IntotoProvenance.php deleted file mode 100644 index 5861d7ce8a1b..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/IntotoProvenance.php +++ /dev/null @@ -1,54 +0,0 @@ -internalAddGeneratedFile( - ' -Î -"grafeas/v1/intoto_provenance.proto -grafeas.v1google/protobuf/timestamp.proto"œ -Recipe -type (  -defined_in_material ( - entry_point ( \' - arguments ( 2.google.protobuf.Any) - environment ( 2.google.protobuf.Any"I - Completeness - arguments ( - environment ( - materials ("Ú -Metadata -build_invocation_id ( 4 -build_started_on ( 2.google.protobuf.Timestamp5 -build_finished_on ( 2.google.protobuf.Timestamp. - completeness ( 2.grafeas.v1.Completeness - reproducible (" - BuilderConfig - -id ( "€ -InTotoProvenance1 -builder_config ( 2.grafeas.v1.BuilderConfig" -recipe ( 2.grafeas.v1.Recipe& -metadata ( 2.grafeas.v1.Metadata - materials ( Bh - io.grafeas.v1BInTotoProvenanceProtoPZ8google.golang.org/genproto/googleapis/grafeas/v1;grafeas¢GRAbproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/IntotoStatement.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/IntotoStatement.php deleted file mode 100644 index f7c025c02f990285e192970f0b5944aa3538b19a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3174 zcmcIm-EJF26t3f>CTA0pZrWfhq)tLm9f_=o+e(!~K(X@EARr;Ja#1W<>)o-lu$fuy z&N`$h*SrHaNWk0h7ToX(Tykb+yE=;_!>W^J!=ivU^0nK5CG?-NVKTLL(lB4y}=HXm_X`ReGBh zj|oJ#B7uw-lnG0*0WkZ5MuF{6a&TP#iVEAch21>Rz~<4ow0SIJ$GDs51`V0*H+N~|gkB(cc#NjCT9=A6WAaUTJvmm=c^y*LKGteuPHqzs z#x#36At4oU$hMTBKq0XDle^$^Pz2$v&1IbEDExIdxa)ddY=|T&4~M9AQmkENvByMsRoVa} z^Jp57|DIkYWb-i7v;CMN7v`)s^(?pg#~dst0l3Ba9hx3ET4{l`*5bF#*v@ z%yu=X^j8iRMtMyD?d6~Y%qOr!f6ybL71$wGA0PT>zGvy4*8PM%ZRyb}QT;)ZMah0J zsyCt<@F1iS_j^<(Dxl1z%<*W1<&aJHbdm@WFK^Ysy;J%*59Z0(Yjar3sKq$+wD`<# zQeo%S!8^A)I4gZ~0SXSs(aMC<)|~l1+;jOQ^SSM|e2yanFIm;%vnH0|0>_B0XNYXu zS@T;kY{s~}z&VSG1?AWN?flvq5Z$IPOJBg^D8+Cuf0XTIqq;n%k~7)qvd2q*<^Tq& z#Q9ZF3Z!Au9#19+aWFWQplOH=@($`$ElEjtd@=!#Lid*|^AMZi3g@u)$s4`eHwvwN}PUR0ycG`E9 b>ElP~!t}A;Tr-RAjZ3bw)XV5KTm$?AbDZ=Z diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Package.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Package.php deleted file mode 100644 index b9aecb5e41fdafd83f6639fa2565ddefeb7d45e0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1945 zcmaJ?|85#b5H6ezX21?UN9whz)Gf6V+$117RTSYm)!AT*Vt$0!R#YLO4{IKd{>m#;F zMS%dgct!%TM^LkO+9n*2F~@^uWIwn*JO;2F90aHr`N5xn#Lo{$4z*CgF&B@08VspR zImHhBL*#jaCfEsx@V#$430;d*&qdOq>sq9IfFew3yYG9Vt`jt9dYRbl8lZJBRpj8vC3Nl z+$`P(EBr*+nLZtyQ{s$I$rR72$7;1@RZEan*9EnMGjBHY+|T?I!4xsl;%Mi{s4PQN%*46=40ar$-GC40garcE(1b_+XfNq; z9UbX9zzmC$#h)-^Lq^r}poPpaHq~Me^5eMw5-KA%OI_Hy@GK!jk@Tarr1gEs-UXJa zJ`lJ78$RY!m0Pa#UmEhU+&dm8f{6_|CNT{eLBp-NDVZ22_%Z-#0)B;wH9iaR><#%R zpBQ;nQ6k}j+E^!eTkL*`;6#Bt4;Q$~>?0K^X11snYs~JdO@S?@oVWoo^!wNs(UD$) z%$VAu#m1hZKu@-|u1-pSrC~Rwv};)*V?<2;XNlGHC$Qzj{S@+&q&`j}E_(e9tP(1P zrBtdVwX0MlwX5kb*R(4&^#y7prvwL5ZfgR%b&nY&RXZKM!oozkWr@7?YGT~ zVoFSAw%zKq+E?vjS}n{EYN7q~1_~>efWS2SXTP;B8)uhS{l*$*7PJqqUkO0@^6KYe z`t%)aQ!i0UFZKItTV1&o+jFpMS3G7{ZQ`nrST#DrJ`JkN+wC}h{X4BS`{pR4OkX}- Y+?&s%+duKKc<@7^ETilE25tcU2e*VT&;S4c diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Provenance.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Provenance.php deleted file mode 100644 index 26eac47b31ced6d96f06119abcebb8a3b04a1c0e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2688 zcma)8ZFAE`5XO#i;&n`nLa7_t>7l?73Q;D80%J;A0i0NN44WB56)% zw`qqz&`+J|@TDL7Gy3bgcPHDj6QKTL>F(LR-DjWO(>ITkqXd>on?+1e$$WBnLgW!6 ziHK$F#UVND_j*haFFsCq$b>`4_8xh$cR+TwI|o!YhV=WR0+G8|b8?3LP@qk4% z@|dIj07Uedr3v*IY42}7XOj9<(r(+BbYHJO1n@$dreuF)3cmxvU(!Dexkpk-CH`IG zsmmiSISu)580{m{qhZR>{4}=Lk37lah$w?S3})pfF+LUcS`uS+k4U#2$3e)tc(9By z*={G2Ohh#7ZnM-AJdv^3M`)`RFgc=0t*qS4j#ch>kF1y&Tdh+;J|a@|S^jiF1e1Lc zJ=Ae42X9AD-3f}OqC4P7q@>45t2It*>_um_`Yq3L*zo;P$WO3*E2BfykvHJqI$Zfc z-7Ls9ox!^OX9*TI`#ki=C9(jD+;0>}VWnc>3l{rl=1CXVihAuj%%O0OY2>Gk88Wj{ zZ7w=vm(G^ivsPi@5Iswm3dwualWC)*(UPG?<*xiAh=w=a03qE}YoqG=Ns zDau--0ot>bPw|!RB}JtaJP4RjR93Z%ZKx@Zd^b*%sME&0W@t5UK2;t^zwa6RP9(*N z^{HXnN6!N$Qgqa)Dfdfv;Nod?6=vSBldQfqI6t6apPACOiVq6*yCRgckeA`guy}5Y zEkgt5W+^Kgj7083wTCKnk7#iu?09axw?b|U}l`TVQR%lQb#hMJdkfboj843*w6Ya~MD zT+bV;MD1lLsefx8O7bLOXK_An{{*wcmO-4FsTmFfWzj$rT2U^j2u#COEZp+BzRxcEbyjVDnWw6)ccx8l!AyX7qm0id z@LW!VzlL&14_P==#PvLW0_;4~IIX~?RjB4(6{{cWjLphOu=XDXnBNFFO^4jvg3=ov znX!4H`9=QxJkEKFAXQ9VXU)6)7)pBe64ak|UTnMHzj(F3v(dddE)0GH3E9%VYKilruw>egy=Vlt^xb$sg+s0udV zYH*CEye?V|FJzhy+byd_<9)g9p4$YN8+x+e6=3m<(kh7_#i`VT)J%}eaKWfU4N`U2 zm}xW}my$x|thiJgRGa@duDeigPbo-MzAwV8Cl=43!+r(jjIFz{FuW2csht=@`z8}( zgF)Bugy9W}M3vMXYu|&~1a9iOHSAo3iauwon9c8?#^YQW_6t8g$S%qt4rvrPu?W@z z7Ga<=UNc)X;py7=yWnB=_)l@B{c_{5tf6;qjJ_pqo6nov*U)>vgf!B8uDpe}0RI8H Cun3p{ diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Risk.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Risk.php deleted file mode 100644 index 408126caaa1e..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Risk.php +++ /dev/null @@ -1,37 +0,0 @@ -internalAddGeneratedFile( - ' -“ -grafeas/v1/risk.proto -grafeas.v1" -Risk? -cisa_kev ( 2-.grafeas.v1.CISAKnownExploitedVulnerabilities8 -epss ( 2*.grafeas.v1.ExploitPredictionScoringSystem"J -!CISAKnownExploitedVulnerabilities% -known_ransomware_campaign_use ( "C -ExploitPredictionScoringSystem - -percentile ( -score (BQ - io.grafeas.v1PZ8google.golang.org/genproto/googleapis/grafeas/v1;grafeas¢GRAbproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Sbom.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Sbom.php deleted file mode 100644 index d36bb8a06471..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Sbom.php +++ /dev/null @@ -1,51 +0,0 @@ -internalAddGeneratedFile( - ' -ô -grafeas/v1/sbom.proto -grafeas.v1!grafeas/v1/intoto_statement.proto"4 -SBOMReferenceNote -format (  -version ( "› -SBOMReferenceOccurrence7 -payload ( 2&.grafeas.v1.SbomReferenceIntotoPayload - payload_type ( 1 - -signatures ( 2.grafeas.v1.EnvelopeSignature"¬ -SbomReferenceIntotoPayload -type ( R_type -predicate_type ( $ -subject ( 2.grafeas.v1.Subject; - predicate ( 2(.grafeas.v1.SbomReferenceIntotoPredicate"Í -SbomReferenceIntotoPredicate - referrer_id (  -location (  - mime_type ( D -digest ( 24.grafeas.v1.SbomReferenceIntotoPredicate.DigestEntry- - DigestEntry -key (  -value ( :8BQ - io.grafeas.v1PZ8google.golang.org/genproto/googleapis/grafeas/v1;grafeas¢GRAbproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Secret.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Secret.php deleted file mode 100644 index 50535634973ef79d78d33a8d1b0b9b6ab94a648d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2441 zcmbVOYj5I46kS4|lSk=nn$T3;osd)^?FKeq)u(>83FB)>w6O1P~v({ z;F!*kT#x#F>Jihqb*&-w3WQW;BFP#Ns-kuXRNonSCM}bJXY{Gz7w^uCJ~cfW6v7+` z*~TsPUBjfLu2kOAz~~u)(XB`D?$!APLgvu$eWHdm^cy1Zb4S-h%Orka1aLXFeBH9G zz%qu`uTbSB=^I0z0(BnSAK7MLIW}Pg**0nZlteih_Skhm)g|fH9cM74U4;n+kzLUa zsAn6)Zk76`XSspnDF7{(2Q--2!`|di<7HVot55P#jpg!Ok(VU!Ml`uPAz;kNvoFHB zS%QbjUH6eaQFWYab!!$K_A2zoxU(FuT%M|$CRs$C2;=Pg|H0BM=vrXhy8nec>1CI9 zZf_lXF(<240n(Or@zSdy2@)IYRFDK}aZM6TyP+=4Y3U}uRpAJH=is86HCyR!C zAI;vu%h^ycRuu!13&4m&=}{oJg-|q(k`vI}KPi-n9%a)Uc^-wS!l!8Y7t8KtQzVt& zDeV=eB^4rU6QY&$-`o-|p^c$q!X!JkpIsv9{ATH39^Z-~jFZAew9W==>;dboYqnGj-)CAFV;k% znt6sd(OO4pO7c4?lfoNl<%(;G)yxumFG|rv`pZAp#$&>IjXy*Cs=&7eO>c@)btd6H zdj2>#PToC1N6AQ?S9DcqUx~b+b38A1B*-VchqY(&Ga#pkVK9x)(CKUznd@kclFqk8 z0dhcLRk(^=OU*3fMXSbmSX59|U6Y%Flv$ZWa+20)%ZkYBT=lIeO-fkBhv@TU2?=0a z*y*XzPtmMOTEjDob38xi`&= za2_2e8Ff)(Xiib|woq#eY9r3Q2?Kxj1d=rdmeJ&}Md2NDX$!XNS5Htnz?ma#!zOsW zfWWsnRRwDoYuLfxp>GzjYN90Q^)?5W>J!wDX04CqhdqylXYdhvnM~j4)a#;DuW@V? z;~svDU!a2|NLB=i6DM&zyAViGTEfpF^lqHv`Ru5uT3b{E@HE;zFzvhe3v@VsX1ghd zK%W51Yao0sep<5c(G;+|)h* diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Severity.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Severity.php deleted file mode 100644 index bd0c81933da82d252d670e0445a98d5e1628beae..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 744 zcmZ`%U2EGg6kVFG4R;#^vxn{Njuo1Y&7tgNB+Evcq^_a)Sd(^am=?vkb_K3vBstKH z{F(i<{gTOcmKI9&BB6WEx#u3~^Vjq`g}3ODAjJ$VaDI#CnlM$;$WSIY&!UJFhVmxm z2`Lw`KgQ8`hJ(I8dt<3uW-6o>#)?J6baQ#w)U+hU&8=Ig00?$NI%OfDH#r)TVGCwh z;FW~n;;;=6CQNIbu8Hs)(5^I_Cp<)Ln6cX)*H>I{!&$d zwz(XSuu*z!wH}!4pivp!?~bU*WJt0^efV2} z*N^7zz`Eov58quv?SHt=D|k5_Tnx_q*^jI9(R4EC`N#gCUw`5}gWaJ&@`v5idd1m= z>go70} z#I96vGbT}diDp@1Dc8+A|Lyhh&sNnt>&|xy=*Rud%IJe4cm*qfe}6pT A_y7O^ diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/SlsaProvenance.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/SlsaProvenance.php deleted file mode 100644 index 0a0032106807..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/SlsaProvenance.php +++ /dev/null @@ -1,61 +0,0 @@ -internalAddGeneratedFile( - ' -À - grafeas/v1/slsa_provenance.proto -grafeas.v1google/protobuf/timestamp.proto"þ -SlsaProvenance7 -builder ( 2&.grafeas.v1.SlsaProvenance.SlsaBuilder5 -recipe ( 2%.grafeas.v1.SlsaProvenance.SlsaRecipe9 -metadata ( 2\'.grafeas.v1.SlsaProvenance.SlsaMetadata6 - materials ( 2#.grafeas.v1.SlsaProvenance.Material  - -SlsaRecipe -type (  -defined_in_material ( - entry_point ( \' - arguments ( 2.google.protobuf.Any) - environment ( 2.google.protobuf.AnyM -SlsaCompleteness - arguments ( - environment ( - materials (ñ - SlsaMetadata -build_invocation_id ( 4 -build_started_on ( 2.google.protobuf.Timestamp5 -build_finished_on ( 2.google.protobuf.TimestampA - completeness ( 2+.grafeas.v1.SlsaProvenance.SlsaCompleteness - reproducible ( - SlsaBuilder - -id ( ‡ -Material -uri ( ? -digest ( 2/.grafeas.v1.SlsaProvenance.Material.DigestEntry- - DigestEntry -key (  -value ( :8Bf - io.grafeas.v1BSlsaProvenanceProtoPZ8google.golang.org/genproto/googleapis/grafeas/v1;grafeas¢GRAbproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/SlsaProvenanceZeroTwo.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/SlsaProvenanceZeroTwo.php deleted file mode 100644 index 2df7242755b6..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/SlsaProvenanceZeroTwo.php +++ /dev/null @@ -1,71 +0,0 @@ -internalAddGeneratedFile( - ' -¥ -)grafeas/v1/slsa_provenance_zero_two.proto -grafeas.v1google/protobuf/timestamp.proto"Ó -SlsaProvenanceZeroTwo> -builder ( 2-.grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder - -build_type ( D - -invocation ( 20.grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation- - build_config ( 2.google.protobuf.Struct@ -metadata ( 2..grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadataA - materials ( 2..grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial - SlsaBuilder - -id ( – - SlsaMaterial -uri ( J -digest ( 2:.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial.DigestEntry- - DigestEntry -key (  -value ( :8¶ -SlsaInvocationI - config_source ( 22.grafeas.v1.SlsaProvenanceZeroTwo.SlsaConfigSource+ - -parameters ( 2.google.protobuf.Struct, - environment ( 2.google.protobuf.Struct³ -SlsaConfigSource -uri ( N -digest ( 2>.grafeas.v1.SlsaProvenanceZeroTwo.SlsaConfigSource.DigestEntry - entry_point ( - - DigestEntry -key (  -value ( :8ø - SlsaMetadata -build_invocation_id ( 4 -build_started_on ( 2.google.protobuf.Timestamp5 -build_finished_on ( 2.google.protobuf.TimestampH - completeness ( 22.grafeas.v1.SlsaProvenanceZeroTwo.SlsaCompleteness - reproducible (N -SlsaCompleteness - -parameters ( - environment ( - materials (Bm - io.grafeas.v1BSlsaProvenanceZeroTwoProtoPZ8google.golang.org/genproto/googleapis/grafeas/v1;grafeas¢GRAbproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Upgrade.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Upgrade.php deleted file mode 100644 index ccca29a0b7e1..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Upgrade.php +++ /dev/null @@ -1,60 +0,0 @@ -internalAddGeneratedFile( - ' -Ù -grafeas/v1/upgrade.proto -grafeas.v1grafeas/v1/package.proto"¯ - UpgradeNote -package ( $ -version ( 2.grafeas.v1.Version6 - distributions ( 2.grafeas.v1.UpgradeDistribution1 -windows_update ( 2.grafeas.v1.WindowsUpdate"] -UpgradeDistribution -cpe_uri (  -classification (  -severity (  -cve ( "ì - WindowsUpdate4 -identity ( 2".grafeas.v1.WindowsUpdate.Identity -title (  - description ( 6 - -categories ( 2".grafeas.v1.WindowsUpdate.Category -kb_article_ids (  - support_url ( < -last_published_timestamp ( 2.google.protobuf.Timestamp/ -Identity - update_id (  -revision (- -Category - category_id (  -name ( "» -UpgradeOccurrence -package ( + -parsed_version ( 2.grafeas.v1.Version5 - distribution ( 2.grafeas.v1.UpgradeDistribution1 -windows_update ( 2.grafeas.v1.WindowsUpdateBQ - io.grafeas.v1PZ8google.golang.org/genproto/googleapis/grafeas/v1;grafeas¢GRAbproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Vex.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Vex.php deleted file mode 100644 index 9b897bf4c76df9a8378f3e5b9b214f5e0e52ac54..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2425 zcmbVO|8Ck=6fO{&auO2aE*ndy?JkX!RO&#R|AH+BQ`aLHWQL%%!S;^*vLPk zW>cPEdy2ix`WSnS{kL;%2Bt}>D*S_e?>XN&=ljmR$3OlwJ)gp3(xeXc%zzHb;F1LA zluSK0a4pv+gK#vW9bs$5(Fz%R=7^ep`QosALEn`k z0076FP=9J#lr-DbQyQ2$TCeQW?`=P7Gf;crpvi;n;{A#5qg3kQ2UyE&ts00%JJi4XH1t zqpczoY}Xkt?PQ{zZOGfEGY-u$H7s{Xi!0G`9deQG{yFuESzKB>IxHaA-wzqm zV}=0|h(yn5djt>XEEw~nQ;e9~c?ql7vb;E984w`NhBJh1SR3=R%q%1HSnT=oUUeOS z4N*omV$|FDCkL>|RoH}#bur7Xnl7dURPQ3$1_r|CBAM`sqEQ!Y96d{#eXI)>1(iD7AIn;06TEr?ADbbA{rU#-zlJ{Nz{0Bq zdo`B##T_ENO5zAQFK|MKEQ0lm526B}-vL)!!0h~)f&6kD2ZW^pjNoz_>$Y*E-67f% zdTHrRM`X_65U*@z`*C;e{+oiW>t?&~^{Z}2mm6|T)MZsM^s}~Pbd^q9s^OwkFWkes zV!NiEwpB$^bOXnS(bl96J{MBLH+boETZ*KK)s|$`)Vj1}kQVy;@c1SRSuv!yQmv~? zMqAWh7Ba#QaQLBNO;mWeDo0jyO>MQLx=}qd#ClKCI-+(~SP}Ms$Vy9AB;!=pL8S1Ga35-lYZ-=+WjL1 zn;)VQ_)3#bag5(8+6KUa5L8Nl4MjB?@>`?bLRwMSbi9Vli9JznaRpHZ^y^7VUDdcP z@{8|pRPAR`Q@cvNklh_XHa?=;u+`B;)Ni?2*5QHJXh=03Bcy}^taAnDD`_DISp>$- zjPM0KL`+FDWThuz560pZR;sTd&)kF#?bI*N#?jy}ja@#0O0G99<6RkjsFdR^bISbk pVoV;-9{);bnwmJcADMo?KOe16<0+r`D7f{5AhL|7_Z3_L{0Eg%internalAddGeneratedFile( - ' -Ÿ -grafeas/v1/vulnerability.proto -grafeas.v1google/protobuf/timestamp.protografeas/v1/common.protografeas/v1/cvss.protografeas/v1/package.protografeas/v1/risk.protografeas/v1/severity.protografeas/v1/vex.proto"§ -VulnerabilityNote - -cvss_score (& -severity (2.grafeas.v1.Severity5 -details ( 2$.grafeas.v1.VulnerabilityNote.Detail# -cvss_v3 ( 2.grafeas.v1.CVSSv3D -windows_details ( 2+.grafeas.v1.VulnerabilityNote.WindowsDetail6 -source_update_time ( 2.google.protobuf.Timestamp- - cvss_version (2.grafeas.v1.CVSSVersion! -cvss_v2 ( 2.grafeas.v1.CVSS9 -advisory_publish_time ( 2.google.protobuf.Timestamp­ -Detail - severity_name (  - description (  - package_type (  -affected_cpe_uri (  -affected_package ( 3 -affected_version_start ( 2.grafeas.v1.Version1 -affected_version_end ( 2.grafeas.v1.Version - fixed_cpe_uri (  - fixed_package ( * - fixed_version - ( 2.grafeas.v1.Version - is_obsolete (6 -source_update_time ( 2.google.protobuf.Timestamp -source (  -vendor ( Ÿ - WindowsDetail -cpe_uri (  -name (  - description ( M - -fixing_kbs ( 29.grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase* - KnowledgeBase -name (  -url ( "ž - -VulnerabilityOccurrence -type ( & -severity (2.grafeas.v1.Severity - -cvss_score ( -cvssv3 - ( 2.grafeas.v1.CVSSG - package_issue ( 20.grafeas.v1.VulnerabilityOccurrence.PackageIssue -short_description (  -long_description ( , - related_urls ( 2.grafeas.v1.RelatedUrl0 -effective_severity (2.grafeas.v1.Severity - fix_available (- - cvss_version (2.grafeas.v1.CVSSVersion! -cvss_v2 ( 2.grafeas.v1.CVSSI -vex_assessment ( 21.grafeas.v1.VulnerabilityOccurrence.VexAssessment - extra_details (  -risk ( 2.grafeas.v1.Riskà - PackageIssue -affected_cpe_uri (  -affected_package ( - -affected_version ( 2.grafeas.v1.Version - fixed_cpe_uri (  - fixed_package ( * - fixed_version ( 2.grafeas.v1.Version - fix_available ( - package_type ( 5 -effective_severity (2.grafeas.v1.SeverityBàA/ - file_location - ( 2.grafeas.v1.FileLocation„ - VexAssessment -cve ( B -vulnerability_id ( , - related_uris ( 2.grafeas.v1.RelatedUrl - note_name ( G -state (28.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State -impacts ( T - remediations ( 2>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.RemediationW - justification ( 2@.grafeas.v1.VulnerabilityAssessmentNote.Assessment.JustificationBQ - io.grafeas.v1PZ8google.golang.org/genproto/googleapis/grafeas/v1;grafeas¢GRAbproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AliasContext.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AliasContext.php deleted file mode 100644 index 36f9800b4f76..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AliasContext.php +++ /dev/null @@ -1,101 +0,0 @@ -grafeas.v1.AliasContext - */ -class AliasContext extends \Google\Protobuf\Internal\Message -{ - /** - * The alias kind. - * - * Generated from protobuf field .grafeas.v1.AliasContext.Kind kind = 1; - */ - protected $kind = 0; - /** - * The alias name. - * - * Generated from protobuf field string name = 2; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $kind - * The alias kind. - * @type string $name - * The alias name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Provenance::initOnce(); - parent::__construct($data); - } - - /** - * The alias kind. - * - * Generated from protobuf field .grafeas.v1.AliasContext.Kind kind = 1; - * @return int - */ - public function getKind() - { - return $this->kind; - } - - /** - * The alias kind. - * - * Generated from protobuf field .grafeas.v1.AliasContext.Kind kind = 1; - * @param int $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\AliasContext\Kind::class); - $this->kind = $var; - - return $this; - } - - /** - * The alias name. - * - * Generated from protobuf field string name = 2; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The alias name. - * - * Generated from protobuf field string name = 2; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AliasContext/Kind.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AliasContext/Kind.php deleted file mode 100644 index f46137817ef2..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AliasContext/Kind.php +++ /dev/null @@ -1,72 +0,0 @@ -grafeas.v1.AliasContext.Kind - */ -class Kind -{ - /** - * Unknown. - * - * Generated from protobuf enum KIND_UNSPECIFIED = 0; - */ - const KIND_UNSPECIFIED = 0; - /** - * Git tag. - * - * Generated from protobuf enum FIXED = 1; - */ - const FIXED = 1; - /** - * Git branch. - * - * Generated from protobuf enum MOVABLE = 2; - */ - const MOVABLE = 2; - /** - * Used to specify non-standard aliases. For example, if a Git repo has a - * ref named "refs/foo/bar". - * - * Generated from protobuf enum OTHER = 4; - */ - const OTHER = 4; - - private static $valueToName = [ - self::KIND_UNSPECIFIED => 'KIND_UNSPECIFIED', - self::FIXED => 'FIXED', - self::MOVABLE => 'MOVABLE', - self::OTHER => 'OTHER', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Kind::class, \Grafeas\V1\AliasContext_Kind::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Architecture.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Architecture.php deleted file mode 100644 index ea83dfee8e77..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Architecture.php +++ /dev/null @@ -1,61 +0,0 @@ -grafeas.v1.Architecture - */ -class Architecture -{ - /** - * Unknown architecture. - * - * Generated from protobuf enum ARCHITECTURE_UNSPECIFIED = 0; - */ - const ARCHITECTURE_UNSPECIFIED = 0; - /** - * X86 architecture. - * - * Generated from protobuf enum X86 = 1; - */ - const X86 = 1; - /** - * X64 architecture. - * - * Generated from protobuf enum X64 = 2; - */ - const X64 = 2; - - private static $valueToName = [ - self::ARCHITECTURE_UNSPECIFIED => 'ARCHITECTURE_UNSPECIFIED', - self::X86 => 'X86', - self::X64 => 'X64', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Artifact.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Artifact.php deleted file mode 100644 index ff6f4d0a38d3..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Artifact.php +++ /dev/null @@ -1,159 +0,0 @@ -grafeas.v1.Artifact - */ -class Artifact extends \Google\Protobuf\Internal\Message -{ - /** - * Hash or checksum value of a binary, or Docker Registry 2.0 digest of a - * container. - * - * Generated from protobuf field string checksum = 1; - */ - protected $checksum = ''; - /** - * Artifact ID, if any; for container images, this will be a URL by digest - * like `gcr.io/projectID/imagename@sha256:123456`. - * - * Generated from protobuf field string id = 2; - */ - protected $id = ''; - /** - * Related artifact names. This may be the path to a binary or jar file, or in - * the case of a container build, the name used to push the container image to - * Google Container Registry, as presented to `docker push`. Note that a - * single Artifact ID can have multiple names, for example if two tags are - * applied to one image. - * - * Generated from protobuf field repeated string names = 3; - */ - private $names; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $checksum - * Hash or checksum value of a binary, or Docker Registry 2.0 digest of a - * container. - * @type string $id - * Artifact ID, if any; for container images, this will be a URL by digest - * like `gcr.io/projectID/imagename@sha256:123456`. - * @type array|\Google\Protobuf\Internal\RepeatedField $names - * Related artifact names. This may be the path to a binary or jar file, or in - * the case of a container build, the name used to push the container image to - * Google Container Registry, as presented to `docker push`. Note that a - * single Artifact ID can have multiple names, for example if two tags are - * applied to one image. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Provenance::initOnce(); - parent::__construct($data); - } - - /** - * Hash or checksum value of a binary, or Docker Registry 2.0 digest of a - * container. - * - * Generated from protobuf field string checksum = 1; - * @return string - */ - public function getChecksum() - { - return $this->checksum; - } - - /** - * Hash or checksum value of a binary, or Docker Registry 2.0 digest of a - * container. - * - * Generated from protobuf field string checksum = 1; - * @param string $var - * @return $this - */ - public function setChecksum($var) - { - GPBUtil::checkString($var, True); - $this->checksum = $var; - - return $this; - } - - /** - * Artifact ID, if any; for container images, this will be a URL by digest - * like `gcr.io/projectID/imagename@sha256:123456`. - * - * Generated from protobuf field string id = 2; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Artifact ID, if any; for container images, this will be a URL by digest - * like `gcr.io/projectID/imagename@sha256:123456`. - * - * Generated from protobuf field string id = 2; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Related artifact names. This may be the path to a binary or jar file, or in - * the case of a container build, the name used to push the container image to - * Google Container Registry, as presented to `docker push`. Note that a - * single Artifact ID can have multiple names, for example if two tags are - * applied to one image. - * - * Generated from protobuf field repeated string names = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNames() - { - return $this->names; - } - - /** - * Related artifact names. This may be the path to a binary or jar file, or in - * the case of a container build, the name used to push the container image to - * Google Container Registry, as presented to `docker push`. Note that a - * single Artifact ID can have multiple names, for example if two tags are - * applied to one image. - * - * Generated from protobuf field repeated string names = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->names = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AttestationNote.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AttestationNote.php deleted file mode 100644 index f6c61a7ac8f0..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AttestationNote.php +++ /dev/null @@ -1,84 +0,0 @@ -grafeas.v1.AttestationNote - */ -class AttestationNote extends \Google\Protobuf\Internal\Message -{ - /** - * Hint hints at the purpose of the attestation authority. - * - * Generated from protobuf field .grafeas.v1.AttestationNote.Hint hint = 1; - */ - protected $hint = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Grafeas\V1\AttestationNote\Hint $hint - * Hint hints at the purpose of the attestation authority. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Attestation::initOnce(); - parent::__construct($data); - } - - /** - * Hint hints at the purpose of the attestation authority. - * - * Generated from protobuf field .grafeas.v1.AttestationNote.Hint hint = 1; - * @return \Grafeas\V1\AttestationNote\Hint|null - */ - public function getHint() - { - return $this->hint; - } - - public function hasHint() - { - return isset($this->hint); - } - - public function clearHint() - { - unset($this->hint); - } - - /** - * Hint hints at the purpose of the attestation authority. - * - * Generated from protobuf field .grafeas.v1.AttestationNote.Hint hint = 1; - * @param \Grafeas\V1\AttestationNote\Hint $var - * @return $this - */ - public function setHint($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\AttestationNote\Hint::class); - $this->hint = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AttestationNote/Hint.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AttestationNote/Hint.php deleted file mode 100644 index a9646f504708..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AttestationNote/Hint.php +++ /dev/null @@ -1,80 +0,0 @@ -grafeas.v1.AttestationNote.Hint - */ -class Hint extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The human readable name of this attestation authority, for - * example "qa". - * - * Generated from protobuf field string human_readable_name = 1; - */ - protected $human_readable_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $human_readable_name - * Required. The human readable name of this attestation authority, for - * example "qa". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Attestation::initOnce(); - parent::__construct($data); - } - - /** - * Required. The human readable name of this attestation authority, for - * example "qa". - * - * Generated from protobuf field string human_readable_name = 1; - * @return string - */ - public function getHumanReadableName() - { - return $this->human_readable_name; - } - - /** - * Required. The human readable name of this attestation authority, for - * example "qa". - * - * Generated from protobuf field string human_readable_name = 1; - * @param string $var - * @return $this - */ - public function setHumanReadableName($var) - { - GPBUtil::checkString($var, True); - $this->human_readable_name = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Hint::class, \Grafeas\V1\AttestationNote_Hint::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AttestationOccurrence.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AttestationOccurrence.php deleted file mode 100644 index 08020cd64fc6..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AttestationOccurrence.php +++ /dev/null @@ -1,190 +0,0 @@ -grafeas.v1.AttestationOccurrence - */ -class AttestationOccurrence extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The serialized payload that is verified by one or more - * `signatures`. - * - * Generated from protobuf field bytes serialized_payload = 1; - */ - protected $serialized_payload = ''; - /** - * One or more signatures over `serialized_payload`. Verifier implementations - * should consider this attestation message verified if at least one - * `signature` verifies `serialized_payload`. See `Signature` in common.proto - * for more details on signature structure and verification. - * - * Generated from protobuf field repeated .grafeas.v1.Signature signatures = 2; - */ - private $signatures; - /** - * One or more JWTs encoding a self-contained attestation. - * Each JWT encodes the payload that it verifies within the JWT itself. - * Verifier implementation SHOULD ignore the `serialized_payload` field - * when verifying these JWTs. - * If only JWTs are present on this AttestationOccurrence, then the - * `serialized_payload` SHOULD be left empty. - * Each JWT SHOULD encode a claim specific to the `resource_uri` of this - * Occurrence, but this is not validated by Grafeas metadata API - * implementations. The JWT itself is opaque to Grafeas. - * - * Generated from protobuf field repeated .grafeas.v1.Jwt jwts = 3; - */ - private $jwts; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $serialized_payload - * Required. The serialized payload that is verified by one or more - * `signatures`. - * @type array<\Grafeas\V1\Signature>|\Google\Protobuf\Internal\RepeatedField $signatures - * One or more signatures over `serialized_payload`. Verifier implementations - * should consider this attestation message verified if at least one - * `signature` verifies `serialized_payload`. See `Signature` in common.proto - * for more details on signature structure and verification. - * @type array<\Grafeas\V1\Jwt>|\Google\Protobuf\Internal\RepeatedField $jwts - * One or more JWTs encoding a self-contained attestation. - * Each JWT encodes the payload that it verifies within the JWT itself. - * Verifier implementation SHOULD ignore the `serialized_payload` field - * when verifying these JWTs. - * If only JWTs are present on this AttestationOccurrence, then the - * `serialized_payload` SHOULD be left empty. - * Each JWT SHOULD encode a claim specific to the `resource_uri` of this - * Occurrence, but this is not validated by Grafeas metadata API - * implementations. The JWT itself is opaque to Grafeas. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Attestation::initOnce(); - parent::__construct($data); - } - - /** - * Required. The serialized payload that is verified by one or more - * `signatures`. - * - * Generated from protobuf field bytes serialized_payload = 1; - * @return string - */ - public function getSerializedPayload() - { - return $this->serialized_payload; - } - - /** - * Required. The serialized payload that is verified by one or more - * `signatures`. - * - * Generated from protobuf field bytes serialized_payload = 1; - * @param string $var - * @return $this - */ - public function setSerializedPayload($var) - { - GPBUtil::checkString($var, False); - $this->serialized_payload = $var; - - return $this; - } - - /** - * One or more signatures over `serialized_payload`. Verifier implementations - * should consider this attestation message verified if at least one - * `signature` verifies `serialized_payload`. See `Signature` in common.proto - * for more details on signature structure and verification. - * - * Generated from protobuf field repeated .grafeas.v1.Signature signatures = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSignatures() - { - return $this->signatures; - } - - /** - * One or more signatures over `serialized_payload`. Verifier implementations - * should consider this attestation message verified if at least one - * `signature` verifies `serialized_payload`. See `Signature` in common.proto - * for more details on signature structure and verification. - * - * Generated from protobuf field repeated .grafeas.v1.Signature signatures = 2; - * @param array<\Grafeas\V1\Signature>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSignatures($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Signature::class); - $this->signatures = $arr; - - return $this; - } - - /** - * One or more JWTs encoding a self-contained attestation. - * Each JWT encodes the payload that it verifies within the JWT itself. - * Verifier implementation SHOULD ignore the `serialized_payload` field - * when verifying these JWTs. - * If only JWTs are present on this AttestationOccurrence, then the - * `serialized_payload` SHOULD be left empty. - * Each JWT SHOULD encode a claim specific to the `resource_uri` of this - * Occurrence, but this is not validated by Grafeas metadata API - * implementations. The JWT itself is opaque to Grafeas. - * - * Generated from protobuf field repeated .grafeas.v1.Jwt jwts = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getJwts() - { - return $this->jwts; - } - - /** - * One or more JWTs encoding a self-contained attestation. - * Each JWT encodes the payload that it verifies within the JWT itself. - * Verifier implementation SHOULD ignore the `serialized_payload` field - * when verifying these JWTs. - * If only JWTs are present on this AttestationOccurrence, then the - * `serialized_payload` SHOULD be left empty. - * Each JWT SHOULD encode a claim specific to the `resource_uri` of this - * Occurrence, but this is not validated by Grafeas metadata API - * implementations. The JWT itself is opaque to Grafeas. - * - * Generated from protobuf field repeated .grafeas.v1.Jwt jwts = 3; - * @param array<\Grafeas\V1\Jwt>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setJwts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Jwt::class); - $this->jwts = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BaseImage.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BaseImage.php deleted file mode 100644 index 4ebce25a5062..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BaseImage.php +++ /dev/null @@ -1,169 +0,0 @@ -grafeas.v1.BaseImage - */ -class BaseImage extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the base image. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The repository name in which the base image is from. - * - * Generated from protobuf field string repository = 2; - */ - protected $repository = ''; - /** - * The number of layers that the base image is composed of. - * - * Generated from protobuf field int32 layer_count = 3; - */ - protected $layer_count = 0; - /** - * The registry in which the base image is from. - * - * Generated from protobuf field string registry = 4; - */ - protected $registry = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the base image. - * @type string $repository - * The repository name in which the base image is from. - * @type int $layer_count - * The number of layers that the base image is composed of. - * @type string $registry - * The registry in which the base image is from. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Common::initOnce(); - parent::__construct($data); - } - - /** - * The name of the base image. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the base image. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The repository name in which the base image is from. - * - * Generated from protobuf field string repository = 2; - * @return string - */ - public function getRepository() - { - return $this->repository; - } - - /** - * The repository name in which the base image is from. - * - * Generated from protobuf field string repository = 2; - * @param string $var - * @return $this - */ - public function setRepository($var) - { - GPBUtil::checkString($var, True); - $this->repository = $var; - - return $this; - } - - /** - * The number of layers that the base image is composed of. - * - * Generated from protobuf field int32 layer_count = 3; - * @return int - */ - public function getLayerCount() - { - return $this->layer_count; - } - - /** - * The number of layers that the base image is composed of. - * - * Generated from protobuf field int32 layer_count = 3; - * @param int $var - * @return $this - */ - public function setLayerCount($var) - { - GPBUtil::checkInt32($var); - $this->layer_count = $var; - - return $this; - } - - /** - * The registry in which the base image is from. - * - * Generated from protobuf field string registry = 4; - * @return string - */ - public function getRegistry() - { - return $this->registry; - } - - /** - * The registry in which the base image is from. - * - * Generated from protobuf field string registry = 4; - * @param string $var - * @return $this - */ - public function setRegistry($var) - { - GPBUtil::checkString($var, True); - $this->registry = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateNotesRequest.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateNotesRequest.php deleted file mode 100644 index 57d5ba438a91..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateNotesRequest.php +++ /dev/null @@ -1,122 +0,0 @@ -grafeas.v1.BatchCreateNotesRequest - */ -class BatchCreateNotesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the project in the form of `projects/[PROJECT_ID]`, under which - * the notes are to be created. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The notes to create. Max allowed length is 1000. - * - * Generated from protobuf field map notes = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $notes; - - /** - * @param string $parent The name of the project in the form of `projects/[PROJECT_ID]`, under which - * the notes are to be created. Please see - * {@see GrafeasClient::projectName()} for help formatting this field. - * @param array $notes The notes to create. Max allowed length is 1000. - * - * @return \Grafeas\V1\BatchCreateNotesRequest - * - * @experimental - */ - public static function build(string $parent, array $notes): self - { - return (new self()) - ->setParent($parent) - ->setNotes($notes); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * The name of the project in the form of `projects/[PROJECT_ID]`, under which - * the notes are to be created. - * @type array|\Google\Protobuf\Internal\MapField $notes - * The notes to create. Max allowed length is 1000. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); - parent::__construct($data); - } - - /** - * The name of the project in the form of `projects/[PROJECT_ID]`, under which - * the notes are to be created. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The name of the project in the form of `projects/[PROJECT_ID]`, under which - * the notes are to be created. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The notes to create. Max allowed length is 1000. - * - * Generated from protobuf field map notes = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getNotes() - { - return $this->notes; - } - - /** - * The notes to create. Max allowed length is 1000. - * - * Generated from protobuf field map notes = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setNotes($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Note::class); - $this->notes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateNotesResponse.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateNotesResponse.php deleted file mode 100644 index da4f910330f7..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateNotesResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -grafeas.v1.BatchCreateNotesResponse - */ -class BatchCreateNotesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The notes that were created. - * - * Generated from protobuf field repeated .grafeas.v1.Note notes = 1; - */ - private $notes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Grafeas\V1\Note>|\Google\Protobuf\Internal\RepeatedField $notes - * The notes that were created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); - parent::__construct($data); - } - - /** - * The notes that were created. - * - * Generated from protobuf field repeated .grafeas.v1.Note notes = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNotes() - { - return $this->notes; - } - - /** - * The notes that were created. - * - * Generated from protobuf field repeated .grafeas.v1.Note notes = 1; - * @param array<\Grafeas\V1\Note>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNotes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Note::class); - $this->notes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateOccurrencesRequest.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateOccurrencesRequest.php deleted file mode 100644 index 353ab9a1b68f..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateOccurrencesRequest.php +++ /dev/null @@ -1,122 +0,0 @@ -grafeas.v1.BatchCreateOccurrencesRequest - */ -class BatchCreateOccurrencesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the project in the form of `projects/[PROJECT_ID]`, under which - * the occurrences are to be created. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The occurrences to create. Max allowed length is 1000. - * - * Generated from protobuf field repeated .grafeas.v1.Occurrence occurrences = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $occurrences; - - /** - * @param string $parent The name of the project in the form of `projects/[PROJECT_ID]`, under which - * the occurrences are to be created. Please see - * {@see GrafeasClient::projectName()} for help formatting this field. - * @param \Grafeas\V1\Occurrence[] $occurrences The occurrences to create. Max allowed length is 1000. - * - * @return \Grafeas\V1\BatchCreateOccurrencesRequest - * - * @experimental - */ - public static function build(string $parent, array $occurrences): self - { - return (new self()) - ->setParent($parent) - ->setOccurrences($occurrences); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * The name of the project in the form of `projects/[PROJECT_ID]`, under which - * the occurrences are to be created. - * @type array<\Grafeas\V1\Occurrence>|\Google\Protobuf\Internal\RepeatedField $occurrences - * The occurrences to create. Max allowed length is 1000. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); - parent::__construct($data); - } - - /** - * The name of the project in the form of `projects/[PROJECT_ID]`, under which - * the occurrences are to be created. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The name of the project in the form of `projects/[PROJECT_ID]`, under which - * the occurrences are to be created. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The occurrences to create. Max allowed length is 1000. - * - * Generated from protobuf field repeated .grafeas.v1.Occurrence occurrences = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOccurrences() - { - return $this->occurrences; - } - - /** - * The occurrences to create. Max allowed length is 1000. - * - * Generated from protobuf field repeated .grafeas.v1.Occurrence occurrences = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Grafeas\V1\Occurrence>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOccurrences($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Occurrence::class); - $this->occurrences = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateOccurrencesResponse.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateOccurrencesResponse.php deleted file mode 100644 index ff03d5abda45..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BatchCreateOccurrencesResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -grafeas.v1.BatchCreateOccurrencesResponse - */ -class BatchCreateOccurrencesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The occurrences that were created. - * - * Generated from protobuf field repeated .grafeas.v1.Occurrence occurrences = 1; - */ - private $occurrences; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Grafeas\V1\Occurrence>|\Google\Protobuf\Internal\RepeatedField $occurrences - * The occurrences that were created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); - parent::__construct($data); - } - - /** - * The occurrences that were created. - * - * Generated from protobuf field repeated .grafeas.v1.Occurrence occurrences = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOccurrences() - { - return $this->occurrences; - } - - /** - * The occurrences that were created. - * - * Generated from protobuf field repeated .grafeas.v1.Occurrence occurrences = 1; - * @param array<\Grafeas\V1\Occurrence>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOccurrences($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Occurrence::class); - $this->occurrences = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuildNote.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuildNote.php deleted file mode 100644 index 033b8e22bb8c..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuildNote.php +++ /dev/null @@ -1,68 +0,0 @@ -grafeas.v1.BuildNote - */ -class BuildNote extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Immutable. Version of the builder which produced this build. - * - * Generated from protobuf field string builder_version = 1; - */ - protected $builder_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $builder_version - * Required. Immutable. Version of the builder which produced this build. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Build::initOnce(); - parent::__construct($data); - } - - /** - * Required. Immutable. Version of the builder which produced this build. - * - * Generated from protobuf field string builder_version = 1; - * @return string - */ - public function getBuilderVersion() - { - return $this->builder_version; - } - - /** - * Required. Immutable. Version of the builder which produced this build. - * - * Generated from protobuf field string builder_version = 1; - * @param string $var - * @return $this - */ - public function setBuilderVersion($var) - { - GPBUtil::checkString($var, True); - $this->builder_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuildOccurrence.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuildOccurrence.php deleted file mode 100644 index e7f35ae36569..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuildOccurrence.php +++ /dev/null @@ -1,307 +0,0 @@ -grafeas.v1.BuildOccurrence - */ -class BuildOccurrence extends \Google\Protobuf\Internal\Message -{ - /** - * The actual provenance for the build. - * - * Generated from protobuf field .grafeas.v1.BuildProvenance provenance = 1; - */ - protected $provenance = null; - /** - * Serialized JSON representation of the provenance, used in generating the - * build signature in the corresponding build note. After verifying the - * signature, `provenance_bytes` can be unmarshalled and compared to the - * provenance to confirm that it is unchanged. A base64-encoded string - * representation of the provenance bytes is used for the signature in order - * to interoperate with openssl which expects this format for signature - * verification. - * The serialized form is captured both to avoid ambiguity in how the - * provenance is marshalled to json as well to prevent incompatibilities with - * future changes. - * - * Generated from protobuf field string provenance_bytes = 2; - */ - protected $provenance_bytes = ''; - /** - * Deprecated. See InTotoStatement for the replacement. - * In-toto Provenance representation as defined in spec. - * - * Generated from protobuf field .grafeas.v1.InTotoProvenance intoto_provenance = 3; - */ - protected $intoto_provenance = null; - /** - * In-toto Statement representation as defined in spec. - * The intoto_statement can contain any type of provenance. The serialized - * payload of the statement can be stored and signed in the Occurrence's - * envelope. - * - * Generated from protobuf field .grafeas.v1.InTotoStatement intoto_statement = 4; - */ - protected $intoto_statement = null; - /** - * In-Toto Slsa Provenance V1 represents a slsa provenance meeting the slsa - * spec, wrapped in an in-toto statement. This allows for direct - * jsonification of a to-spec in-toto slsa statement with a to-spec - * slsa provenance. - * - * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1 in_toto_slsa_provenance_v1 = 5; - */ - protected $in_toto_slsa_provenance_v1 = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Grafeas\V1\BuildProvenance $provenance - * The actual provenance for the build. - * @type string $provenance_bytes - * Serialized JSON representation of the provenance, used in generating the - * build signature in the corresponding build note. After verifying the - * signature, `provenance_bytes` can be unmarshalled and compared to the - * provenance to confirm that it is unchanged. A base64-encoded string - * representation of the provenance bytes is used for the signature in order - * to interoperate with openssl which expects this format for signature - * verification. - * The serialized form is captured both to avoid ambiguity in how the - * provenance is marshalled to json as well to prevent incompatibilities with - * future changes. - * @type \Grafeas\V1\InTotoProvenance $intoto_provenance - * Deprecated. See InTotoStatement for the replacement. - * In-toto Provenance representation as defined in spec. - * @type \Grafeas\V1\InTotoStatement $intoto_statement - * In-toto Statement representation as defined in spec. - * The intoto_statement can contain any type of provenance. The serialized - * payload of the statement can be stored and signed in the Occurrence's - * envelope. - * @type \Grafeas\V1\InTotoSlsaProvenanceV1 $in_toto_slsa_provenance_v1 - * In-Toto Slsa Provenance V1 represents a slsa provenance meeting the slsa - * spec, wrapped in an in-toto statement. This allows for direct - * jsonification of a to-spec in-toto slsa statement with a to-spec - * slsa provenance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Build::initOnce(); - parent::__construct($data); - } - - /** - * The actual provenance for the build. - * - * Generated from protobuf field .grafeas.v1.BuildProvenance provenance = 1; - * @return \Grafeas\V1\BuildProvenance|null - */ - public function getProvenance() - { - return $this->provenance; - } - - public function hasProvenance() - { - return isset($this->provenance); - } - - public function clearProvenance() - { - unset($this->provenance); - } - - /** - * The actual provenance for the build. - * - * Generated from protobuf field .grafeas.v1.BuildProvenance provenance = 1; - * @param \Grafeas\V1\BuildProvenance $var - * @return $this - */ - public function setProvenance($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\BuildProvenance::class); - $this->provenance = $var; - - return $this; - } - - /** - * Serialized JSON representation of the provenance, used in generating the - * build signature in the corresponding build note. After verifying the - * signature, `provenance_bytes` can be unmarshalled and compared to the - * provenance to confirm that it is unchanged. A base64-encoded string - * representation of the provenance bytes is used for the signature in order - * to interoperate with openssl which expects this format for signature - * verification. - * The serialized form is captured both to avoid ambiguity in how the - * provenance is marshalled to json as well to prevent incompatibilities with - * future changes. - * - * Generated from protobuf field string provenance_bytes = 2; - * @return string - */ - public function getProvenanceBytes() - { - return $this->provenance_bytes; - } - - /** - * Serialized JSON representation of the provenance, used in generating the - * build signature in the corresponding build note. After verifying the - * signature, `provenance_bytes` can be unmarshalled and compared to the - * provenance to confirm that it is unchanged. A base64-encoded string - * representation of the provenance bytes is used for the signature in order - * to interoperate with openssl which expects this format for signature - * verification. - * The serialized form is captured both to avoid ambiguity in how the - * provenance is marshalled to json as well to prevent incompatibilities with - * future changes. - * - * Generated from protobuf field string provenance_bytes = 2; - * @param string $var - * @return $this - */ - public function setProvenanceBytes($var) - { - GPBUtil::checkString($var, True); - $this->provenance_bytes = $var; - - return $this; - } - - /** - * Deprecated. See InTotoStatement for the replacement. - * In-toto Provenance representation as defined in spec. - * - * Generated from protobuf field .grafeas.v1.InTotoProvenance intoto_provenance = 3; - * @return \Grafeas\V1\InTotoProvenance|null - */ - public function getIntotoProvenance() - { - return $this->intoto_provenance; - } - - public function hasIntotoProvenance() - { - return isset($this->intoto_provenance); - } - - public function clearIntotoProvenance() - { - unset($this->intoto_provenance); - } - - /** - * Deprecated. See InTotoStatement for the replacement. - * In-toto Provenance representation as defined in spec. - * - * Generated from protobuf field .grafeas.v1.InTotoProvenance intoto_provenance = 3; - * @param \Grafeas\V1\InTotoProvenance $var - * @return $this - */ - public function setIntotoProvenance($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\InTotoProvenance::class); - $this->intoto_provenance = $var; - - return $this; - } - - /** - * In-toto Statement representation as defined in spec. - * The intoto_statement can contain any type of provenance. The serialized - * payload of the statement can be stored and signed in the Occurrence's - * envelope. - * - * Generated from protobuf field .grafeas.v1.InTotoStatement intoto_statement = 4; - * @return \Grafeas\V1\InTotoStatement|null - */ - public function getIntotoStatement() - { - return $this->intoto_statement; - } - - public function hasIntotoStatement() - { - return isset($this->intoto_statement); - } - - public function clearIntotoStatement() - { - unset($this->intoto_statement); - } - - /** - * In-toto Statement representation as defined in spec. - * The intoto_statement can contain any type of provenance. The serialized - * payload of the statement can be stored and signed in the Occurrence's - * envelope. - * - * Generated from protobuf field .grafeas.v1.InTotoStatement intoto_statement = 4; - * @param \Grafeas\V1\InTotoStatement $var - * @return $this - */ - public function setIntotoStatement($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\InTotoStatement::class); - $this->intoto_statement = $var; - - return $this; - } - - /** - * In-Toto Slsa Provenance V1 represents a slsa provenance meeting the slsa - * spec, wrapped in an in-toto statement. This allows for direct - * jsonification of a to-spec in-toto slsa statement with a to-spec - * slsa provenance. - * - * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1 in_toto_slsa_provenance_v1 = 5; - * @return \Grafeas\V1\InTotoSlsaProvenanceV1|null - */ - public function getInTotoSlsaProvenanceV1() - { - return $this->in_toto_slsa_provenance_v1; - } - - public function hasInTotoSlsaProvenanceV1() - { - return isset($this->in_toto_slsa_provenance_v1); - } - - public function clearInTotoSlsaProvenanceV1() - { - unset($this->in_toto_slsa_provenance_v1); - } - - /** - * In-Toto Slsa Provenance V1 represents a slsa provenance meeting the slsa - * spec, wrapped in an in-toto statement. This allows for direct - * jsonification of a to-spec in-toto slsa statement with a to-spec - * slsa provenance. - * - * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1 in_toto_slsa_provenance_v1 = 5; - * @param \Grafeas\V1\InTotoSlsaProvenanceV1 $var - * @return $this - */ - public function setInTotoSlsaProvenanceV1($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\InTotoSlsaProvenanceV1::class); - $this->in_toto_slsa_provenance_v1 = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuildProvenance.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuildProvenance.php deleted file mode 100644 index 8e8c3289d1ee..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuildProvenance.php +++ /dev/null @@ -1,528 +0,0 @@ -grafeas.v1.BuildProvenance - */ -class BuildProvenance extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Unique identifier of the build. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * ID of the project. - * - * Generated from protobuf field string project_id = 2; - */ - protected $project_id = ''; - /** - * Commands requested by the build. - * - * Generated from protobuf field repeated .grafeas.v1.Command commands = 3; - */ - private $commands; - /** - * Output of the build. - * - * Generated from protobuf field repeated .grafeas.v1.Artifact built_artifacts = 4; - */ - private $built_artifacts; - /** - * Time at which the build was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5; - */ - protected $create_time = null; - /** - * Time at which execution of the build was started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 6; - */ - protected $start_time = null; - /** - * Time at which execution of the build was finished. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 7; - */ - protected $end_time = null; - /** - * E-mail address of the user who initiated this build. Note that this was the - * user's e-mail address at the time the build was initiated; this address may - * not represent the same end-user for all time. - * - * Generated from protobuf field string creator = 8; - */ - protected $creator = ''; - /** - * URI where any logs for this provenance were written. - * - * Generated from protobuf field string logs_uri = 9; - */ - protected $logs_uri = ''; - /** - * Details of the Source input to the build. - * - * Generated from protobuf field .grafeas.v1.Source source_provenance = 10; - */ - protected $source_provenance = null; - /** - * Trigger identifier if the build was triggered automatically; empty if not. - * - * Generated from protobuf field string trigger_id = 11; - */ - protected $trigger_id = ''; - /** - * Special options applied to this build. This is a catch-all field where - * build providers can enter any desired additional details. - * - * Generated from protobuf field map build_options = 12; - */ - private $build_options; - /** - * Version string of the builder at the time this build was executed. - * - * Generated from protobuf field string builder_version = 13; - */ - protected $builder_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Required. Unique identifier of the build. - * @type string $project_id - * ID of the project. - * @type array<\Grafeas\V1\Command>|\Google\Protobuf\Internal\RepeatedField $commands - * Commands requested by the build. - * @type array<\Grafeas\V1\Artifact>|\Google\Protobuf\Internal\RepeatedField $built_artifacts - * Output of the build. - * @type \Google\Protobuf\Timestamp $create_time - * Time at which the build was created. - * @type \Google\Protobuf\Timestamp $start_time - * Time at which execution of the build was started. - * @type \Google\Protobuf\Timestamp $end_time - * Time at which execution of the build was finished. - * @type string $creator - * E-mail address of the user who initiated this build. Note that this was the - * user's e-mail address at the time the build was initiated; this address may - * not represent the same end-user for all time. - * @type string $logs_uri - * URI where any logs for this provenance were written. - * @type \Grafeas\V1\Source $source_provenance - * Details of the Source input to the build. - * @type string $trigger_id - * Trigger identifier if the build was triggered automatically; empty if not. - * @type array|\Google\Protobuf\Internal\MapField $build_options - * Special options applied to this build. This is a catch-all field where - * build providers can enter any desired additional details. - * @type string $builder_version - * Version string of the builder at the time this build was executed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Provenance::initOnce(); - parent::__construct($data); - } - - /** - * Required. Unique identifier of the build. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Required. Unique identifier of the build. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * ID of the project. - * - * Generated from protobuf field string project_id = 2; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * ID of the project. - * - * Generated from protobuf field string project_id = 2; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Commands requested by the build. - * - * Generated from protobuf field repeated .grafeas.v1.Command commands = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCommands() - { - return $this->commands; - } - - /** - * Commands requested by the build. - * - * Generated from protobuf field repeated .grafeas.v1.Command commands = 3; - * @param array<\Grafeas\V1\Command>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCommands($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Command::class); - $this->commands = $arr; - - return $this; - } - - /** - * Output of the build. - * - * Generated from protobuf field repeated .grafeas.v1.Artifact built_artifacts = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBuiltArtifacts() - { - return $this->built_artifacts; - } - - /** - * Output of the build. - * - * Generated from protobuf field repeated .grafeas.v1.Artifact built_artifacts = 4; - * @param array<\Grafeas\V1\Artifact>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBuiltArtifacts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Artifact::class); - $this->built_artifacts = $arr; - - return $this; - } - - /** - * Time at which the build was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Time at which the build was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Time at which execution of the build was started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 6; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Time at which execution of the build was started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 6; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * Time at which execution of the build was finished. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 7; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Time at which execution of the build was finished. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 7; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * E-mail address of the user who initiated this build. Note that this was the - * user's e-mail address at the time the build was initiated; this address may - * not represent the same end-user for all time. - * - * Generated from protobuf field string creator = 8; - * @return string - */ - public function getCreator() - { - return $this->creator; - } - - /** - * E-mail address of the user who initiated this build. Note that this was the - * user's e-mail address at the time the build was initiated; this address may - * not represent the same end-user for all time. - * - * Generated from protobuf field string creator = 8; - * @param string $var - * @return $this - */ - public function setCreator($var) - { - GPBUtil::checkString($var, True); - $this->creator = $var; - - return $this; - } - - /** - * URI where any logs for this provenance were written. - * - * Generated from protobuf field string logs_uri = 9; - * @return string - */ - public function getLogsUri() - { - return $this->logs_uri; - } - - /** - * URI where any logs for this provenance were written. - * - * Generated from protobuf field string logs_uri = 9; - * @param string $var - * @return $this - */ - public function setLogsUri($var) - { - GPBUtil::checkString($var, True); - $this->logs_uri = $var; - - return $this; - } - - /** - * Details of the Source input to the build. - * - * Generated from protobuf field .grafeas.v1.Source source_provenance = 10; - * @return \Grafeas\V1\Source|null - */ - public function getSourceProvenance() - { - return $this->source_provenance; - } - - public function hasSourceProvenance() - { - return isset($this->source_provenance); - } - - public function clearSourceProvenance() - { - unset($this->source_provenance); - } - - /** - * Details of the Source input to the build. - * - * Generated from protobuf field .grafeas.v1.Source source_provenance = 10; - * @param \Grafeas\V1\Source $var - * @return $this - */ - public function setSourceProvenance($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\Source::class); - $this->source_provenance = $var; - - return $this; - } - - /** - * Trigger identifier if the build was triggered automatically; empty if not. - * - * Generated from protobuf field string trigger_id = 11; - * @return string - */ - public function getTriggerId() - { - return $this->trigger_id; - } - - /** - * Trigger identifier if the build was triggered automatically; empty if not. - * - * Generated from protobuf field string trigger_id = 11; - * @param string $var - * @return $this - */ - public function setTriggerId($var) - { - GPBUtil::checkString($var, True); - $this->trigger_id = $var; - - return $this; - } - - /** - * Special options applied to this build. This is a catch-all field where - * build providers can enter any desired additional details. - * - * Generated from protobuf field map build_options = 12; - * @return \Google\Protobuf\Internal\MapField - */ - public function getBuildOptions() - { - return $this->build_options; - } - - /** - * Special options applied to this build. This is a catch-all field where - * build providers can enter any desired additional details. - * - * Generated from protobuf field map build_options = 12; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setBuildOptions($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->build_options = $arr; - - return $this; - } - - /** - * Version string of the builder at the time this build was executed. - * - * Generated from protobuf field string builder_version = 13; - * @return string - */ - public function getBuilderVersion() - { - return $this->builder_version; - } - - /** - * Version string of the builder at the time this build was executed. - * - * Generated from protobuf field string builder_version = 13; - * @param string $var - * @return $this - */ - public function setBuilderVersion($var) - { - GPBUtil::checkString($var, True); - $this->builder_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuilderConfig.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuilderConfig.php deleted file mode 100644 index 97732fb870dd..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/BuilderConfig.php +++ /dev/null @@ -1,58 +0,0 @@ -grafeas.v1.BuilderConfig - */ -class BuilderConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\IntotoProvenance::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CISAKnownExploitedVulnerabilities.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CISAKnownExploitedVulnerabilities.php deleted file mode 100644 index b326e5659e19..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CISAKnownExploitedVulnerabilities.php +++ /dev/null @@ -1,69 +0,0 @@ -grafeas.v1.CISAKnownExploitedVulnerabilities - */ -class CISAKnownExploitedVulnerabilities extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the vulnerability is known to have been leveraged as part of a - * ransomware campaign. - * - * Generated from protobuf field string known_ransomware_campaign_use = 1; - */ - protected $known_ransomware_campaign_use = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $known_ransomware_campaign_use - * Whether the vulnerability is known to have been leveraged as part of a - * ransomware campaign. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Risk::initOnce(); - parent::__construct($data); - } - - /** - * Whether the vulnerability is known to have been leveraged as part of a - * ransomware campaign. - * - * Generated from protobuf field string known_ransomware_campaign_use = 1; - * @return string - */ - public function getKnownRansomwareCampaignUse() - { - return $this->known_ransomware_campaign_use; - } - - /** - * Whether the vulnerability is known to have been leveraged as part of a - * ransomware campaign. - * - * Generated from protobuf field string known_ransomware_campaign_use = 1; - * @param string $var - * @return $this - */ - public function setKnownRansomwareCampaignUse($var) - { - GPBUtil::checkString($var, True); - $this->known_ransomware_campaign_use = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS.php deleted file mode 100644 index eed433379f38..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS.php +++ /dev/null @@ -1,382 +0,0 @@ -grafeas.v1.CVSS - */ -class CVSS extends \Google\Protobuf\Internal\Message -{ - /** - * The base score is a function of the base metric scores. - * - * Generated from protobuf field float base_score = 1; - */ - protected $base_score = 0.0; - /** - * Generated from protobuf field float exploitability_score = 2; - */ - protected $exploitability_score = 0.0; - /** - * Generated from protobuf field float impact_score = 3; - */ - protected $impact_score = 0.0; - /** - * Base Metrics - * Represents the intrinsic characteristics of a vulnerability that are - * constant over time and across user environments. - * - * Generated from protobuf field .grafeas.v1.CVSS.AttackVector attack_vector = 4; - */ - protected $attack_vector = 0; - /** - * Generated from protobuf field .grafeas.v1.CVSS.AttackComplexity attack_complexity = 5; - */ - protected $attack_complexity = 0; - /** - * Generated from protobuf field .grafeas.v1.CVSS.Authentication authentication = 6; - */ - protected $authentication = 0; - /** - * Generated from protobuf field .grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7; - */ - protected $privileges_required = 0; - /** - * Generated from protobuf field .grafeas.v1.CVSS.UserInteraction user_interaction = 8; - */ - protected $user_interaction = 0; - /** - * Generated from protobuf field .grafeas.v1.CVSS.Scope scope = 9; - */ - protected $scope = 0; - /** - * Generated from protobuf field .grafeas.v1.CVSS.Impact confidentiality_impact = 10; - */ - protected $confidentiality_impact = 0; - /** - * Generated from protobuf field .grafeas.v1.CVSS.Impact integrity_impact = 11; - */ - protected $integrity_impact = 0; - /** - * Generated from protobuf field .grafeas.v1.CVSS.Impact availability_impact = 12; - */ - protected $availability_impact = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $base_score - * The base score is a function of the base metric scores. - * @type float $exploitability_score - * @type float $impact_score - * @type int $attack_vector - * Base Metrics - * Represents the intrinsic characteristics of a vulnerability that are - * constant over time and across user environments. - * @type int $attack_complexity - * @type int $authentication - * @type int $privileges_required - * @type int $user_interaction - * @type int $scope - * @type int $confidentiality_impact - * @type int $integrity_impact - * @type int $availability_impact - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Cvss::initOnce(); - parent::__construct($data); - } - - /** - * The base score is a function of the base metric scores. - * - * Generated from protobuf field float base_score = 1; - * @return float - */ - public function getBaseScore() - { - return $this->base_score; - } - - /** - * The base score is a function of the base metric scores. - * - * Generated from protobuf field float base_score = 1; - * @param float $var - * @return $this - */ - public function setBaseScore($var) - { - GPBUtil::checkFloat($var); - $this->base_score = $var; - - return $this; - } - - /** - * Generated from protobuf field float exploitability_score = 2; - * @return float - */ - public function getExploitabilityScore() - { - return $this->exploitability_score; - } - - /** - * Generated from protobuf field float exploitability_score = 2; - * @param float $var - * @return $this - */ - public function setExploitabilityScore($var) - { - GPBUtil::checkFloat($var); - $this->exploitability_score = $var; - - return $this; - } - - /** - * Generated from protobuf field float impact_score = 3; - * @return float - */ - public function getImpactScore() - { - return $this->impact_score; - } - - /** - * Generated from protobuf field float impact_score = 3; - * @param float $var - * @return $this - */ - public function setImpactScore($var) - { - GPBUtil::checkFloat($var); - $this->impact_score = $var; - - return $this; - } - - /** - * Base Metrics - * Represents the intrinsic characteristics of a vulnerability that are - * constant over time and across user environments. - * - * Generated from protobuf field .grafeas.v1.CVSS.AttackVector attack_vector = 4; - * @return int - */ - public function getAttackVector() - { - return $this->attack_vector; - } - - /** - * Base Metrics - * Represents the intrinsic characteristics of a vulnerability that are - * constant over time and across user environments. - * - * Generated from protobuf field .grafeas.v1.CVSS.AttackVector attack_vector = 4; - * @param int $var - * @return $this - */ - public function setAttackVector($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\AttackVector::class); - $this->attack_vector = $var; - - return $this; - } - - /** - * Generated from protobuf field .grafeas.v1.CVSS.AttackComplexity attack_complexity = 5; - * @return int - */ - public function getAttackComplexity() - { - return $this->attack_complexity; - } - - /** - * Generated from protobuf field .grafeas.v1.CVSS.AttackComplexity attack_complexity = 5; - * @param int $var - * @return $this - */ - public function setAttackComplexity($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\AttackComplexity::class); - $this->attack_complexity = $var; - - return $this; - } - - /** - * Generated from protobuf field .grafeas.v1.CVSS.Authentication authentication = 6; - * @return int - */ - public function getAuthentication() - { - return $this->authentication; - } - - /** - * Generated from protobuf field .grafeas.v1.CVSS.Authentication authentication = 6; - * @param int $var - * @return $this - */ - public function setAuthentication($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\Authentication::class); - $this->authentication = $var; - - return $this; - } - - /** - * Generated from protobuf field .grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7; - * @return int - */ - public function getPrivilegesRequired() - { - return $this->privileges_required; - } - - /** - * Generated from protobuf field .grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7; - * @param int $var - * @return $this - */ - public function setPrivilegesRequired($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\PrivilegesRequired::class); - $this->privileges_required = $var; - - return $this; - } - - /** - * Generated from protobuf field .grafeas.v1.CVSS.UserInteraction user_interaction = 8; - * @return int - */ - public function getUserInteraction() - { - return $this->user_interaction; - } - - /** - * Generated from protobuf field .grafeas.v1.CVSS.UserInteraction user_interaction = 8; - * @param int $var - * @return $this - */ - public function setUserInteraction($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\UserInteraction::class); - $this->user_interaction = $var; - - return $this; - } - - /** - * Generated from protobuf field .grafeas.v1.CVSS.Scope scope = 9; - * @return int - */ - public function getScope() - { - return $this->scope; - } - - /** - * Generated from protobuf field .grafeas.v1.CVSS.Scope scope = 9; - * @param int $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\Scope::class); - $this->scope = $var; - - return $this; - } - - /** - * Generated from protobuf field .grafeas.v1.CVSS.Impact confidentiality_impact = 10; - * @return int - */ - public function getConfidentialityImpact() - { - return $this->confidentiality_impact; - } - - /** - * Generated from protobuf field .grafeas.v1.CVSS.Impact confidentiality_impact = 10; - * @param int $var - * @return $this - */ - public function setConfidentialityImpact($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\Impact::class); - $this->confidentiality_impact = $var; - - return $this; - } - - /** - * Generated from protobuf field .grafeas.v1.CVSS.Impact integrity_impact = 11; - * @return int - */ - public function getIntegrityImpact() - { - return $this->integrity_impact; - } - - /** - * Generated from protobuf field .grafeas.v1.CVSS.Impact integrity_impact = 11; - * @param int $var - * @return $this - */ - public function setIntegrityImpact($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\Impact::class); - $this->integrity_impact = $var; - - return $this; - } - - /** - * Generated from protobuf field .grafeas.v1.CVSS.Impact availability_impact = 12; - * @return int - */ - public function getAvailabilityImpact() - { - return $this->availability_impact; - } - - /** - * Generated from protobuf field .grafeas.v1.CVSS.Impact availability_impact = 12; - * @param int $var - * @return $this - */ - public function setAvailabilityImpact($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\Impact::class); - $this->availability_impact = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/AttackComplexity.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/AttackComplexity.php deleted file mode 100644 index 011e833e68aa..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/AttackComplexity.php +++ /dev/null @@ -1,61 +0,0 @@ -grafeas.v1.CVSS.AttackComplexity - */ -class AttackComplexity -{ - /** - * Generated from protobuf enum ATTACK_COMPLEXITY_UNSPECIFIED = 0; - */ - const ATTACK_COMPLEXITY_UNSPECIFIED = 0; - /** - * Generated from protobuf enum ATTACK_COMPLEXITY_LOW = 1; - */ - const ATTACK_COMPLEXITY_LOW = 1; - /** - * Generated from protobuf enum ATTACK_COMPLEXITY_HIGH = 2; - */ - const ATTACK_COMPLEXITY_HIGH = 2; - /** - * Generated from protobuf enum ATTACK_COMPLEXITY_MEDIUM = 3; - */ - const ATTACK_COMPLEXITY_MEDIUM = 3; - - private static $valueToName = [ - self::ATTACK_COMPLEXITY_UNSPECIFIED => 'ATTACK_COMPLEXITY_UNSPECIFIED', - self::ATTACK_COMPLEXITY_LOW => 'ATTACK_COMPLEXITY_LOW', - self::ATTACK_COMPLEXITY_HIGH => 'ATTACK_COMPLEXITY_HIGH', - self::ATTACK_COMPLEXITY_MEDIUM => 'ATTACK_COMPLEXITY_MEDIUM', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AttackComplexity::class, \Grafeas\V1\CVSS_AttackComplexity::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/AttackVector.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/AttackVector.php deleted file mode 100644 index e012b40cdfd8..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/AttackVector.php +++ /dev/null @@ -1,66 +0,0 @@ -grafeas.v1.CVSS.AttackVector - */ -class AttackVector -{ - /** - * Generated from protobuf enum ATTACK_VECTOR_UNSPECIFIED = 0; - */ - const ATTACK_VECTOR_UNSPECIFIED = 0; - /** - * Generated from protobuf enum ATTACK_VECTOR_NETWORK = 1; - */ - const ATTACK_VECTOR_NETWORK = 1; - /** - * Generated from protobuf enum ATTACK_VECTOR_ADJACENT = 2; - */ - const ATTACK_VECTOR_ADJACENT = 2; - /** - * Generated from protobuf enum ATTACK_VECTOR_LOCAL = 3; - */ - const ATTACK_VECTOR_LOCAL = 3; - /** - * Generated from protobuf enum ATTACK_VECTOR_PHYSICAL = 4; - */ - const ATTACK_VECTOR_PHYSICAL = 4; - - private static $valueToName = [ - self::ATTACK_VECTOR_UNSPECIFIED => 'ATTACK_VECTOR_UNSPECIFIED', - self::ATTACK_VECTOR_NETWORK => 'ATTACK_VECTOR_NETWORK', - self::ATTACK_VECTOR_ADJACENT => 'ATTACK_VECTOR_ADJACENT', - self::ATTACK_VECTOR_LOCAL => 'ATTACK_VECTOR_LOCAL', - self::ATTACK_VECTOR_PHYSICAL => 'ATTACK_VECTOR_PHYSICAL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AttackVector::class, \Grafeas\V1\CVSS_AttackVector::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/Authentication.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/Authentication.php deleted file mode 100644 index 3e49c8c45e11..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/Authentication.php +++ /dev/null @@ -1,61 +0,0 @@ -grafeas.v1.CVSS.Authentication - */ -class Authentication -{ - /** - * Generated from protobuf enum AUTHENTICATION_UNSPECIFIED = 0; - */ - const AUTHENTICATION_UNSPECIFIED = 0; - /** - * Generated from protobuf enum AUTHENTICATION_MULTIPLE = 1; - */ - const AUTHENTICATION_MULTIPLE = 1; - /** - * Generated from protobuf enum AUTHENTICATION_SINGLE = 2; - */ - const AUTHENTICATION_SINGLE = 2; - /** - * Generated from protobuf enum AUTHENTICATION_NONE = 3; - */ - const AUTHENTICATION_NONE = 3; - - private static $valueToName = [ - self::AUTHENTICATION_UNSPECIFIED => 'AUTHENTICATION_UNSPECIFIED', - self::AUTHENTICATION_MULTIPLE => 'AUTHENTICATION_MULTIPLE', - self::AUTHENTICATION_SINGLE => 'AUTHENTICATION_SINGLE', - self::AUTHENTICATION_NONE => 'AUTHENTICATION_NONE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Authentication::class, \Grafeas\V1\CVSS_Authentication::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/Impact.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/Impact.php deleted file mode 100644 index a7c402857bfd..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/Impact.php +++ /dev/null @@ -1,71 +0,0 @@ -grafeas.v1.CVSS.Impact - */ -class Impact -{ - /** - * Generated from protobuf enum IMPACT_UNSPECIFIED = 0; - */ - const IMPACT_UNSPECIFIED = 0; - /** - * Generated from protobuf enum IMPACT_HIGH = 1; - */ - const IMPACT_HIGH = 1; - /** - * Generated from protobuf enum IMPACT_LOW = 2; - */ - const IMPACT_LOW = 2; - /** - * Generated from protobuf enum IMPACT_NONE = 3; - */ - const IMPACT_NONE = 3; - /** - * Generated from protobuf enum IMPACT_PARTIAL = 4; - */ - const IMPACT_PARTIAL = 4; - /** - * Generated from protobuf enum IMPACT_COMPLETE = 5; - */ - const IMPACT_COMPLETE = 5; - - private static $valueToName = [ - self::IMPACT_UNSPECIFIED => 'IMPACT_UNSPECIFIED', - self::IMPACT_HIGH => 'IMPACT_HIGH', - self::IMPACT_LOW => 'IMPACT_LOW', - self::IMPACT_NONE => 'IMPACT_NONE', - self::IMPACT_PARTIAL => 'IMPACT_PARTIAL', - self::IMPACT_COMPLETE => 'IMPACT_COMPLETE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Impact::class, \Grafeas\V1\CVSS_Impact::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/PrivilegesRequired.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/PrivilegesRequired.php deleted file mode 100644 index b3f593d06893..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/PrivilegesRequired.php +++ /dev/null @@ -1,61 +0,0 @@ -grafeas.v1.CVSS.PrivilegesRequired - */ -class PrivilegesRequired -{ - /** - * Generated from protobuf enum PRIVILEGES_REQUIRED_UNSPECIFIED = 0; - */ - const PRIVILEGES_REQUIRED_UNSPECIFIED = 0; - /** - * Generated from protobuf enum PRIVILEGES_REQUIRED_NONE = 1; - */ - const PRIVILEGES_REQUIRED_NONE = 1; - /** - * Generated from protobuf enum PRIVILEGES_REQUIRED_LOW = 2; - */ - const PRIVILEGES_REQUIRED_LOW = 2; - /** - * Generated from protobuf enum PRIVILEGES_REQUIRED_HIGH = 3; - */ - const PRIVILEGES_REQUIRED_HIGH = 3; - - private static $valueToName = [ - self::PRIVILEGES_REQUIRED_UNSPECIFIED => 'PRIVILEGES_REQUIRED_UNSPECIFIED', - self::PRIVILEGES_REQUIRED_NONE => 'PRIVILEGES_REQUIRED_NONE', - self::PRIVILEGES_REQUIRED_LOW => 'PRIVILEGES_REQUIRED_LOW', - self::PRIVILEGES_REQUIRED_HIGH => 'PRIVILEGES_REQUIRED_HIGH', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PrivilegesRequired::class, \Grafeas\V1\CVSS_PrivilegesRequired::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/Scope.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/Scope.php deleted file mode 100644 index 44ac100792e8..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/Scope.php +++ /dev/null @@ -1,56 +0,0 @@ -grafeas.v1.CVSS.Scope - */ -class Scope -{ - /** - * Generated from protobuf enum SCOPE_UNSPECIFIED = 0; - */ - const SCOPE_UNSPECIFIED = 0; - /** - * Generated from protobuf enum SCOPE_UNCHANGED = 1; - */ - const SCOPE_UNCHANGED = 1; - /** - * Generated from protobuf enum SCOPE_CHANGED = 2; - */ - const SCOPE_CHANGED = 2; - - private static $valueToName = [ - self::SCOPE_UNSPECIFIED => 'SCOPE_UNSPECIFIED', - self::SCOPE_UNCHANGED => 'SCOPE_UNCHANGED', - self::SCOPE_CHANGED => 'SCOPE_CHANGED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Scope::class, \Grafeas\V1\CVSS_Scope::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/UserInteraction.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/UserInteraction.php deleted file mode 100644 index 2e0e911d1c88..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/UserInteraction.php +++ /dev/null @@ -1,56 +0,0 @@ -grafeas.v1.CVSS.UserInteraction - */ -class UserInteraction -{ - /** - * Generated from protobuf enum USER_INTERACTION_UNSPECIFIED = 0; - */ - const USER_INTERACTION_UNSPECIFIED = 0; - /** - * Generated from protobuf enum USER_INTERACTION_NONE = 1; - */ - const USER_INTERACTION_NONE = 1; - /** - * Generated from protobuf enum USER_INTERACTION_REQUIRED = 2; - */ - const USER_INTERACTION_REQUIRED = 2; - - private static $valueToName = [ - self::USER_INTERACTION_UNSPECIFIED => 'USER_INTERACTION_UNSPECIFIED', - self::USER_INTERACTION_NONE => 'USER_INTERACTION_NONE', - self::USER_INTERACTION_REQUIRED => 'USER_INTERACTION_REQUIRED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(UserInteraction::class, \Grafeas\V1\CVSS_UserInteraction::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSVersion.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSVersion.php deleted file mode 100644 index 8c25036f4fff..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSVersion.php +++ /dev/null @@ -1,55 +0,0 @@ -grafeas.v1.CVSSVersion - */ -class CVSSVersion -{ - /** - * Generated from protobuf enum CVSS_VERSION_UNSPECIFIED = 0; - */ - const CVSS_VERSION_UNSPECIFIED = 0; - /** - * Generated from protobuf enum CVSS_VERSION_2 = 1; - */ - const CVSS_VERSION_2 = 1; - /** - * Generated from protobuf enum CVSS_VERSION_3 = 2; - */ - const CVSS_VERSION_3 = 2; - - private static $valueToName = [ - self::CVSS_VERSION_UNSPECIFIED => 'CVSS_VERSION_UNSPECIFIED', - self::CVSS_VERSION_2 => 'CVSS_VERSION_2', - self::CVSS_VERSION_3 => 'CVSS_VERSION_3', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3.php deleted file mode 100644 index 9c1895cf5b46..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3.php +++ /dev/null @@ -1,353 +0,0 @@ -grafeas.v1.CVSSv3 - */ -class CVSSv3 extends \Google\Protobuf\Internal\Message -{ - /** - * The base score is a function of the base metric scores. - * - * Generated from protobuf field float base_score = 1; - */ - protected $base_score = 0.0; - /** - * Generated from protobuf field float exploitability_score = 2; - */ - protected $exploitability_score = 0.0; - /** - * Generated from protobuf field float impact_score = 3; - */ - protected $impact_score = 0.0; - /** - * Base Metrics - * Represents the intrinsic characteristics of a vulnerability that are - * constant over time and across user environments. - * - * Generated from protobuf field .grafeas.v1.CVSSv3.AttackVector attack_vector = 5; - */ - protected $attack_vector = 0; - /** - * Generated from protobuf field .grafeas.v1.CVSSv3.AttackComplexity attack_complexity = 6; - */ - protected $attack_complexity = 0; - /** - * Generated from protobuf field .grafeas.v1.CVSSv3.PrivilegesRequired privileges_required = 7; - */ - protected $privileges_required = 0; - /** - * Generated from protobuf field .grafeas.v1.CVSSv3.UserInteraction user_interaction = 8; - */ - protected $user_interaction = 0; - /** - * Generated from protobuf field .grafeas.v1.CVSSv3.Scope scope = 9; - */ - protected $scope = 0; - /** - * Generated from protobuf field .grafeas.v1.CVSSv3.Impact confidentiality_impact = 10; - */ - protected $confidentiality_impact = 0; - /** - * Generated from protobuf field .grafeas.v1.CVSSv3.Impact integrity_impact = 11; - */ - protected $integrity_impact = 0; - /** - * Generated from protobuf field .grafeas.v1.CVSSv3.Impact availability_impact = 12; - */ - protected $availability_impact = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $base_score - * The base score is a function of the base metric scores. - * @type float $exploitability_score - * @type float $impact_score - * @type int $attack_vector - * Base Metrics - * Represents the intrinsic characteristics of a vulnerability that are - * constant over time and across user environments. - * @type int $attack_complexity - * @type int $privileges_required - * @type int $user_interaction - * @type int $scope - * @type int $confidentiality_impact - * @type int $integrity_impact - * @type int $availability_impact - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Cvss::initOnce(); - parent::__construct($data); - } - - /** - * The base score is a function of the base metric scores. - * - * Generated from protobuf field float base_score = 1; - * @return float - */ - public function getBaseScore() - { - return $this->base_score; - } - - /** - * The base score is a function of the base metric scores. - * - * Generated from protobuf field float base_score = 1; - * @param float $var - * @return $this - */ - public function setBaseScore($var) - { - GPBUtil::checkFloat($var); - $this->base_score = $var; - - return $this; - } - - /** - * Generated from protobuf field float exploitability_score = 2; - * @return float - */ - public function getExploitabilityScore() - { - return $this->exploitability_score; - } - - /** - * Generated from protobuf field float exploitability_score = 2; - * @param float $var - * @return $this - */ - public function setExploitabilityScore($var) - { - GPBUtil::checkFloat($var); - $this->exploitability_score = $var; - - return $this; - } - - /** - * Generated from protobuf field float impact_score = 3; - * @return float - */ - public function getImpactScore() - { - return $this->impact_score; - } - - /** - * Generated from protobuf field float impact_score = 3; - * @param float $var - * @return $this - */ - public function setImpactScore($var) - { - GPBUtil::checkFloat($var); - $this->impact_score = $var; - - return $this; - } - - /** - * Base Metrics - * Represents the intrinsic characteristics of a vulnerability that are - * constant over time and across user environments. - * - * Generated from protobuf field .grafeas.v1.CVSSv3.AttackVector attack_vector = 5; - * @return int - */ - public function getAttackVector() - { - return $this->attack_vector; - } - - /** - * Base Metrics - * Represents the intrinsic characteristics of a vulnerability that are - * constant over time and across user environments. - * - * Generated from protobuf field .grafeas.v1.CVSSv3.AttackVector attack_vector = 5; - * @param int $var - * @return $this - */ - public function setAttackVector($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\CVSSv3\AttackVector::class); - $this->attack_vector = $var; - - return $this; - } - - /** - * Generated from protobuf field .grafeas.v1.CVSSv3.AttackComplexity attack_complexity = 6; - * @return int - */ - public function getAttackComplexity() - { - return $this->attack_complexity; - } - - /** - * Generated from protobuf field .grafeas.v1.CVSSv3.AttackComplexity attack_complexity = 6; - * @param int $var - * @return $this - */ - public function setAttackComplexity($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\CVSSv3\AttackComplexity::class); - $this->attack_complexity = $var; - - return $this; - } - - /** - * Generated from protobuf field .grafeas.v1.CVSSv3.PrivilegesRequired privileges_required = 7; - * @return int - */ - public function getPrivilegesRequired() - { - return $this->privileges_required; - } - - /** - * Generated from protobuf field .grafeas.v1.CVSSv3.PrivilegesRequired privileges_required = 7; - * @param int $var - * @return $this - */ - public function setPrivilegesRequired($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\CVSSv3\PrivilegesRequired::class); - $this->privileges_required = $var; - - return $this; - } - - /** - * Generated from protobuf field .grafeas.v1.CVSSv3.UserInteraction user_interaction = 8; - * @return int - */ - public function getUserInteraction() - { - return $this->user_interaction; - } - - /** - * Generated from protobuf field .grafeas.v1.CVSSv3.UserInteraction user_interaction = 8; - * @param int $var - * @return $this - */ - public function setUserInteraction($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\CVSSv3\UserInteraction::class); - $this->user_interaction = $var; - - return $this; - } - - /** - * Generated from protobuf field .grafeas.v1.CVSSv3.Scope scope = 9; - * @return int - */ - public function getScope() - { - return $this->scope; - } - - /** - * Generated from protobuf field .grafeas.v1.CVSSv3.Scope scope = 9; - * @param int $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\CVSSv3\Scope::class); - $this->scope = $var; - - return $this; - } - - /** - * Generated from protobuf field .grafeas.v1.CVSSv3.Impact confidentiality_impact = 10; - * @return int - */ - public function getConfidentialityImpact() - { - return $this->confidentiality_impact; - } - - /** - * Generated from protobuf field .grafeas.v1.CVSSv3.Impact confidentiality_impact = 10; - * @param int $var - * @return $this - */ - public function setConfidentialityImpact($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\CVSSv3\Impact::class); - $this->confidentiality_impact = $var; - - return $this; - } - - /** - * Generated from protobuf field .grafeas.v1.CVSSv3.Impact integrity_impact = 11; - * @return int - */ - public function getIntegrityImpact() - { - return $this->integrity_impact; - } - - /** - * Generated from protobuf field .grafeas.v1.CVSSv3.Impact integrity_impact = 11; - * @param int $var - * @return $this - */ - public function setIntegrityImpact($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\CVSSv3\Impact::class); - $this->integrity_impact = $var; - - return $this; - } - - /** - * Generated from protobuf field .grafeas.v1.CVSSv3.Impact availability_impact = 12; - * @return int - */ - public function getAvailabilityImpact() - { - return $this->availability_impact; - } - - /** - * Generated from protobuf field .grafeas.v1.CVSSv3.Impact availability_impact = 12; - * @param int $var - * @return $this - */ - public function setAvailabilityImpact($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\CVSSv3\Impact::class); - $this->availability_impact = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/AttackComplexity.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/AttackComplexity.php deleted file mode 100644 index 6086d84dc982..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/AttackComplexity.php +++ /dev/null @@ -1,56 +0,0 @@ -grafeas.v1.CVSSv3.AttackComplexity - */ -class AttackComplexity -{ - /** - * Generated from protobuf enum ATTACK_COMPLEXITY_UNSPECIFIED = 0; - */ - const ATTACK_COMPLEXITY_UNSPECIFIED = 0; - /** - * Generated from protobuf enum ATTACK_COMPLEXITY_LOW = 1; - */ - const ATTACK_COMPLEXITY_LOW = 1; - /** - * Generated from protobuf enum ATTACK_COMPLEXITY_HIGH = 2; - */ - const ATTACK_COMPLEXITY_HIGH = 2; - - private static $valueToName = [ - self::ATTACK_COMPLEXITY_UNSPECIFIED => 'ATTACK_COMPLEXITY_UNSPECIFIED', - self::ATTACK_COMPLEXITY_LOW => 'ATTACK_COMPLEXITY_LOW', - self::ATTACK_COMPLEXITY_HIGH => 'ATTACK_COMPLEXITY_HIGH', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AttackComplexity::class, \Grafeas\V1\CVSSv3_AttackComplexity::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/AttackVector.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/AttackVector.php deleted file mode 100644 index 9f0892749620..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/AttackVector.php +++ /dev/null @@ -1,66 +0,0 @@ -grafeas.v1.CVSSv3.AttackVector - */ -class AttackVector -{ - /** - * Generated from protobuf enum ATTACK_VECTOR_UNSPECIFIED = 0; - */ - const ATTACK_VECTOR_UNSPECIFIED = 0; - /** - * Generated from protobuf enum ATTACK_VECTOR_NETWORK = 1; - */ - const ATTACK_VECTOR_NETWORK = 1; - /** - * Generated from protobuf enum ATTACK_VECTOR_ADJACENT = 2; - */ - const ATTACK_VECTOR_ADJACENT = 2; - /** - * Generated from protobuf enum ATTACK_VECTOR_LOCAL = 3; - */ - const ATTACK_VECTOR_LOCAL = 3; - /** - * Generated from protobuf enum ATTACK_VECTOR_PHYSICAL = 4; - */ - const ATTACK_VECTOR_PHYSICAL = 4; - - private static $valueToName = [ - self::ATTACK_VECTOR_UNSPECIFIED => 'ATTACK_VECTOR_UNSPECIFIED', - self::ATTACK_VECTOR_NETWORK => 'ATTACK_VECTOR_NETWORK', - self::ATTACK_VECTOR_ADJACENT => 'ATTACK_VECTOR_ADJACENT', - self::ATTACK_VECTOR_LOCAL => 'ATTACK_VECTOR_LOCAL', - self::ATTACK_VECTOR_PHYSICAL => 'ATTACK_VECTOR_PHYSICAL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AttackVector::class, \Grafeas\V1\CVSSv3_AttackVector::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/Impact.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/Impact.php deleted file mode 100644 index d933d36fe7fb..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/Impact.php +++ /dev/null @@ -1,61 +0,0 @@ -grafeas.v1.CVSSv3.Impact - */ -class Impact -{ - /** - * Generated from protobuf enum IMPACT_UNSPECIFIED = 0; - */ - const IMPACT_UNSPECIFIED = 0; - /** - * Generated from protobuf enum IMPACT_HIGH = 1; - */ - const IMPACT_HIGH = 1; - /** - * Generated from protobuf enum IMPACT_LOW = 2; - */ - const IMPACT_LOW = 2; - /** - * Generated from protobuf enum IMPACT_NONE = 3; - */ - const IMPACT_NONE = 3; - - private static $valueToName = [ - self::IMPACT_UNSPECIFIED => 'IMPACT_UNSPECIFIED', - self::IMPACT_HIGH => 'IMPACT_HIGH', - self::IMPACT_LOW => 'IMPACT_LOW', - self::IMPACT_NONE => 'IMPACT_NONE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Impact::class, \Grafeas\V1\CVSSv3_Impact::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/PrivilegesRequired.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/PrivilegesRequired.php deleted file mode 100644 index dff9206db9b8..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/PrivilegesRequired.php +++ /dev/null @@ -1,61 +0,0 @@ -grafeas.v1.CVSSv3.PrivilegesRequired - */ -class PrivilegesRequired -{ - /** - * Generated from protobuf enum PRIVILEGES_REQUIRED_UNSPECIFIED = 0; - */ - const PRIVILEGES_REQUIRED_UNSPECIFIED = 0; - /** - * Generated from protobuf enum PRIVILEGES_REQUIRED_NONE = 1; - */ - const PRIVILEGES_REQUIRED_NONE = 1; - /** - * Generated from protobuf enum PRIVILEGES_REQUIRED_LOW = 2; - */ - const PRIVILEGES_REQUIRED_LOW = 2; - /** - * Generated from protobuf enum PRIVILEGES_REQUIRED_HIGH = 3; - */ - const PRIVILEGES_REQUIRED_HIGH = 3; - - private static $valueToName = [ - self::PRIVILEGES_REQUIRED_UNSPECIFIED => 'PRIVILEGES_REQUIRED_UNSPECIFIED', - self::PRIVILEGES_REQUIRED_NONE => 'PRIVILEGES_REQUIRED_NONE', - self::PRIVILEGES_REQUIRED_LOW => 'PRIVILEGES_REQUIRED_LOW', - self::PRIVILEGES_REQUIRED_HIGH => 'PRIVILEGES_REQUIRED_HIGH', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PrivilegesRequired::class, \Grafeas\V1\CVSSv3_PrivilegesRequired::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/Scope.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/Scope.php deleted file mode 100644 index fc48b6eed3d7..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/Scope.php +++ /dev/null @@ -1,56 +0,0 @@ -grafeas.v1.CVSSv3.Scope - */ -class Scope -{ - /** - * Generated from protobuf enum SCOPE_UNSPECIFIED = 0; - */ - const SCOPE_UNSPECIFIED = 0; - /** - * Generated from protobuf enum SCOPE_UNCHANGED = 1; - */ - const SCOPE_UNCHANGED = 1; - /** - * Generated from protobuf enum SCOPE_CHANGED = 2; - */ - const SCOPE_CHANGED = 2; - - private static $valueToName = [ - self::SCOPE_UNSPECIFIED => 'SCOPE_UNSPECIFIED', - self::SCOPE_UNCHANGED => 'SCOPE_UNCHANGED', - self::SCOPE_CHANGED => 'SCOPE_CHANGED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Scope::class, \Grafeas\V1\CVSSv3_Scope::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/UserInteraction.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/UserInteraction.php deleted file mode 100644 index 2348d20766da..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/UserInteraction.php +++ /dev/null @@ -1,56 +0,0 @@ -grafeas.v1.CVSSv3.UserInteraction - */ -class UserInteraction -{ - /** - * Generated from protobuf enum USER_INTERACTION_UNSPECIFIED = 0; - */ - const USER_INTERACTION_UNSPECIFIED = 0; - /** - * Generated from protobuf enum USER_INTERACTION_NONE = 1; - */ - const USER_INTERACTION_NONE = 1; - /** - * Generated from protobuf enum USER_INTERACTION_REQUIRED = 2; - */ - const USER_INTERACTION_REQUIRED = 2; - - private static $valueToName = [ - self::USER_INTERACTION_UNSPECIFIED => 'USER_INTERACTION_UNSPECIFIED', - self::USER_INTERACTION_NONE => 'USER_INTERACTION_NONE', - self::USER_INTERACTION_REQUIRED => 'USER_INTERACTION_REQUIRED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(UserInteraction::class, \Grafeas\V1\CVSSv3_UserInteraction::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CloudRepoSourceContext.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CloudRepoSourceContext.php deleted file mode 100644 index ffa168fdc342..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CloudRepoSourceContext.php +++ /dev/null @@ -1,153 +0,0 @@ -grafeas.v1.CloudRepoSourceContext - */ -class CloudRepoSourceContext extends \Google\Protobuf\Internal\Message -{ - /** - * The ID of the repo. - * - * Generated from protobuf field .grafeas.v1.RepoId repo_id = 1; - */ - protected $repo_id = null; - protected $revision; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Grafeas\V1\RepoId $repo_id - * The ID of the repo. - * @type string $revision_id - * A revision ID. - * @type \Grafeas\V1\AliasContext $alias_context - * An alias, which may be a branch or tag. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Provenance::initOnce(); - parent::__construct($data); - } - - /** - * The ID of the repo. - * - * Generated from protobuf field .grafeas.v1.RepoId repo_id = 1; - * @return \Grafeas\V1\RepoId|null - */ - public function getRepoId() - { - return $this->repo_id; - } - - public function hasRepoId() - { - return isset($this->repo_id); - } - - public function clearRepoId() - { - unset($this->repo_id); - } - - /** - * The ID of the repo. - * - * Generated from protobuf field .grafeas.v1.RepoId repo_id = 1; - * @param \Grafeas\V1\RepoId $var - * @return $this - */ - public function setRepoId($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\RepoId::class); - $this->repo_id = $var; - - return $this; - } - - /** - * A revision ID. - * - * Generated from protobuf field string revision_id = 2; - * @return string - */ - public function getRevisionId() - { - return $this->readOneof(2); - } - - public function hasRevisionId() - { - return $this->hasOneof(2); - } - - /** - * A revision ID. - * - * Generated from protobuf field string revision_id = 2; - * @param string $var - * @return $this - */ - public function setRevisionId($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * An alias, which may be a branch or tag. - * - * Generated from protobuf field .grafeas.v1.AliasContext alias_context = 3; - * @return \Grafeas\V1\AliasContext|null - */ - public function getAliasContext() - { - return $this->readOneof(3); - } - - public function hasAliasContext() - { - return $this->hasOneof(3); - } - - /** - * An alias, which may be a branch or tag. - * - * Generated from protobuf field .grafeas.v1.AliasContext alias_context = 3; - * @param \Grafeas\V1\AliasContext $var - * @return $this - */ - public function setAliasContext($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\AliasContext::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getRevision() - { - return $this->whichOneof("revision"); - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Command.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Command.php deleted file mode 100644 index 40d507cfd67f..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Command.php +++ /dev/null @@ -1,249 +0,0 @@ -grafeas.v1.Command - */ -class Command extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the command, as presented on the command line, or if the - * command is packaged as a Docker container, as presented to `docker pull`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Environment variables set before running this command. - * - * Generated from protobuf field repeated string env = 2; - */ - private $env; - /** - * Command-line arguments used when executing this command. - * - * Generated from protobuf field repeated string args = 3; - */ - private $args; - /** - * Working directory (relative to project source root) used when running this - * command. - * - * Generated from protobuf field string dir = 4; - */ - protected $dir = ''; - /** - * Optional unique identifier for this command, used in wait_for to reference - * this command as a dependency. - * - * Generated from protobuf field string id = 5; - */ - protected $id = ''; - /** - * The ID(s) of the command(s) that this command depends on. - * - * Generated from protobuf field repeated string wait_for = 6; - */ - private $wait_for; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the command, as presented on the command line, or if the - * command is packaged as a Docker container, as presented to `docker pull`. - * @type array|\Google\Protobuf\Internal\RepeatedField $env - * Environment variables set before running this command. - * @type array|\Google\Protobuf\Internal\RepeatedField $args - * Command-line arguments used when executing this command. - * @type string $dir - * Working directory (relative to project source root) used when running this - * command. - * @type string $id - * Optional unique identifier for this command, used in wait_for to reference - * this command as a dependency. - * @type array|\Google\Protobuf\Internal\RepeatedField $wait_for - * The ID(s) of the command(s) that this command depends on. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Provenance::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the command, as presented on the command line, or if the - * command is packaged as a Docker container, as presented to `docker pull`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the command, as presented on the command line, or if the - * command is packaged as a Docker container, as presented to `docker pull`. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Environment variables set before running this command. - * - * Generated from protobuf field repeated string env = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEnv() - { - return $this->env; - } - - /** - * Environment variables set before running this command. - * - * Generated from protobuf field repeated string env = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEnv($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->env = $arr; - - return $this; - } - - /** - * Command-line arguments used when executing this command. - * - * Generated from protobuf field repeated string args = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getArgs() - { - return $this->args; - } - - /** - * Command-line arguments used when executing this command. - * - * Generated from protobuf field repeated string args = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setArgs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->args = $arr; - - return $this; - } - - /** - * Working directory (relative to project source root) used when running this - * command. - * - * Generated from protobuf field string dir = 4; - * @return string - */ - public function getDir() - { - return $this->dir; - } - - /** - * Working directory (relative to project source root) used when running this - * command. - * - * Generated from protobuf field string dir = 4; - * @param string $var - * @return $this - */ - public function setDir($var) - { - GPBUtil::checkString($var, True); - $this->dir = $var; - - return $this; - } - - /** - * Optional unique identifier for this command, used in wait_for to reference - * this command as a dependency. - * - * Generated from protobuf field string id = 5; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Optional unique identifier for this command, used in wait_for to reference - * this command as a dependency. - * - * Generated from protobuf field string id = 5; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * The ID(s) of the command(s) that this command depends on. - * - * Generated from protobuf field repeated string wait_for = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getWaitFor() - { - return $this->wait_for; - } - - /** - * The ID(s) of the command(s) that this command depends on. - * - * Generated from protobuf field repeated string wait_for = 6; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setWaitFor($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->wait_for = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Completeness.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Completeness.php deleted file mode 100644 index d5cd151e9b5d..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Completeness.php +++ /dev/null @@ -1,148 +0,0 @@ -grafeas.v1.Completeness - */ -class Completeness extends \Google\Protobuf\Internal\Message -{ - /** - * If true, the builder claims that recipe.arguments is complete, meaning that - * all external inputs are properly captured in the recipe. - * - * Generated from protobuf field bool arguments = 1; - */ - protected $arguments = false; - /** - * If true, the builder claims that recipe.environment is claimed to be - * complete. - * - * Generated from protobuf field bool environment = 2; - */ - protected $environment = false; - /** - * If true, the builder claims that materials are complete, usually through - * some controls to prevent network access. Sometimes called "hermetic". - * - * Generated from protobuf field bool materials = 3; - */ - protected $materials = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $arguments - * If true, the builder claims that recipe.arguments is complete, meaning that - * all external inputs are properly captured in the recipe. - * @type bool $environment - * If true, the builder claims that recipe.environment is claimed to be - * complete. - * @type bool $materials - * If true, the builder claims that materials are complete, usually through - * some controls to prevent network access. Sometimes called "hermetic". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\IntotoProvenance::initOnce(); - parent::__construct($data); - } - - /** - * If true, the builder claims that recipe.arguments is complete, meaning that - * all external inputs are properly captured in the recipe. - * - * Generated from protobuf field bool arguments = 1; - * @return bool - */ - public function getArguments() - { - return $this->arguments; - } - - /** - * If true, the builder claims that recipe.arguments is complete, meaning that - * all external inputs are properly captured in the recipe. - * - * Generated from protobuf field bool arguments = 1; - * @param bool $var - * @return $this - */ - public function setArguments($var) - { - GPBUtil::checkBool($var); - $this->arguments = $var; - - return $this; - } - - /** - * If true, the builder claims that recipe.environment is claimed to be - * complete. - * - * Generated from protobuf field bool environment = 2; - * @return bool - */ - public function getEnvironment() - { - return $this->environment; - } - - /** - * If true, the builder claims that recipe.environment is claimed to be - * complete. - * - * Generated from protobuf field bool environment = 2; - * @param bool $var - * @return $this - */ - public function setEnvironment($var) - { - GPBUtil::checkBool($var); - $this->environment = $var; - - return $this; - } - - /** - * If true, the builder claims that materials are complete, usually through - * some controls to prevent network access. Sometimes called "hermetic". - * - * Generated from protobuf field bool materials = 3; - * @return bool - */ - public function getMaterials() - { - return $this->materials; - } - - /** - * If true, the builder claims that materials are complete, usually through - * some controls to prevent network access. Sometimes called "hermetic". - * - * Generated from protobuf field bool materials = 3; - * @param bool $var - * @return $this - */ - public function setMaterials($var) - { - GPBUtil::checkBool($var); - $this->materials = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceNote.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceNote.php deleted file mode 100644 index a204ef071db4..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceNote.php +++ /dev/null @@ -1,309 +0,0 @@ -grafeas.v1.ComplianceNote - */ -class ComplianceNote extends \Google\Protobuf\Internal\Message -{ - /** - * The title that identifies this compliance check. - * - * Generated from protobuf field string title = 1; - */ - protected $title = ''; - /** - * A description about this compliance check. - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - /** - * The OS and config versions the benchmark applies to. - * - * Generated from protobuf field repeated .grafeas.v1.ComplianceVersion version = 3; - */ - private $version; - /** - * A rationale for the existence of this compliance check. - * - * Generated from protobuf field string rationale = 4; - */ - protected $rationale = ''; - /** - * A description of remediation steps if the compliance check fails. - * - * Generated from protobuf field string remediation = 5; - */ - protected $remediation = ''; - /** - * Serialized scan instructions with a predefined format. - * - * Generated from protobuf field bytes scan_instructions = 7; - */ - protected $scan_instructions = ''; - protected $compliance_type; - protected $potential_impact; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $title - * The title that identifies this compliance check. - * @type string $description - * A description about this compliance check. - * @type array<\Grafeas\V1\ComplianceVersion>|\Google\Protobuf\Internal\RepeatedField $version - * The OS and config versions the benchmark applies to. - * @type string $rationale - * A rationale for the existence of this compliance check. - * @type string $remediation - * A description of remediation steps if the compliance check fails. - * @type \Grafeas\V1\ComplianceNote\CisBenchmark $cis_benchmark - * @type string $scan_instructions - * Serialized scan instructions with a predefined format. - * @type string $impact - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Compliance::initOnce(); - parent::__construct($data); - } - - /** - * The title that identifies this compliance check. - * - * Generated from protobuf field string title = 1; - * @return string - */ - public function getTitle() - { - return $this->title; - } - - /** - * The title that identifies this compliance check. - * - * Generated from protobuf field string title = 1; - * @param string $var - * @return $this - */ - public function setTitle($var) - { - GPBUtil::checkString($var, True); - $this->title = $var; - - return $this; - } - - /** - * A description about this compliance check. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * A description about this compliance check. - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * The OS and config versions the benchmark applies to. - * - * Generated from protobuf field repeated .grafeas.v1.ComplianceVersion version = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getVersion() - { - return $this->version; - } - - /** - * The OS and config versions the benchmark applies to. - * - * Generated from protobuf field repeated .grafeas.v1.ComplianceVersion version = 3; - * @param array<\Grafeas\V1\ComplianceVersion>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setVersion($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\ComplianceVersion::class); - $this->version = $arr; - - return $this; - } - - /** - * A rationale for the existence of this compliance check. - * - * Generated from protobuf field string rationale = 4; - * @return string - */ - public function getRationale() - { - return $this->rationale; - } - - /** - * A rationale for the existence of this compliance check. - * - * Generated from protobuf field string rationale = 4; - * @param string $var - * @return $this - */ - public function setRationale($var) - { - GPBUtil::checkString($var, True); - $this->rationale = $var; - - return $this; - } - - /** - * A description of remediation steps if the compliance check fails. - * - * Generated from protobuf field string remediation = 5; - * @return string - */ - public function getRemediation() - { - return $this->remediation; - } - - /** - * A description of remediation steps if the compliance check fails. - * - * Generated from protobuf field string remediation = 5; - * @param string $var - * @return $this - */ - public function setRemediation($var) - { - GPBUtil::checkString($var, True); - $this->remediation = $var; - - return $this; - } - - /** - * Generated from protobuf field .grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6; - * @return \Grafeas\V1\ComplianceNote\CisBenchmark|null - */ - public function getCisBenchmark() - { - return $this->readOneof(6); - } - - public function hasCisBenchmark() - { - return $this->hasOneof(6); - } - - /** - * Generated from protobuf field .grafeas.v1.ComplianceNote.CisBenchmark cis_benchmark = 6; - * @param \Grafeas\V1\ComplianceNote\CisBenchmark $var - * @return $this - */ - public function setCisBenchmark($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\ComplianceNote\CisBenchmark::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Serialized scan instructions with a predefined format. - * - * Generated from protobuf field bytes scan_instructions = 7; - * @return string - */ - public function getScanInstructions() - { - return $this->scan_instructions; - } - - /** - * Serialized scan instructions with a predefined format. - * - * Generated from protobuf field bytes scan_instructions = 7; - * @param string $var - * @return $this - */ - public function setScanInstructions($var) - { - GPBUtil::checkString($var, False); - $this->scan_instructions = $var; - - return $this; - } - - /** - * Generated from protobuf field string impact = 8; - * @return string - */ - public function getImpact() - { - return $this->readOneof(8); - } - - public function hasImpact() - { - return $this->hasOneof(8); - } - - /** - * Generated from protobuf field string impact = 8; - * @param string $var - * @return $this - */ - public function setImpact($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * @return string - */ - public function getComplianceType() - { - return $this->whichOneof("compliance_type"); - } - - /** - * @return string - */ - public function getPotentialImpact() - { - return $this->whichOneof("potential_impact"); - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceNote/CisBenchmark.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceNote/CisBenchmark.php deleted file mode 100644 index be70e77b1666..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceNote/CisBenchmark.php +++ /dev/null @@ -1,90 +0,0 @@ -grafeas.v1.ComplianceNote.CisBenchmark - */ -class CisBenchmark extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field int32 profile_level = 1; - */ - protected $profile_level = 0; - /** - * Generated from protobuf field .grafeas.v1.Severity severity = 2; - */ - protected $severity = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $profile_level - * @type int $severity - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Compliance::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field int32 profile_level = 1; - * @return int - */ - public function getProfileLevel() - { - return $this->profile_level; - } - - /** - * Generated from protobuf field int32 profile_level = 1; - * @param int $var - * @return $this - */ - public function setProfileLevel($var) - { - GPBUtil::checkInt32($var); - $this->profile_level = $var; - - return $this; - } - - /** - * Generated from protobuf field .grafeas.v1.Severity severity = 2; - * @return int - */ - public function getSeverity() - { - return $this->severity; - } - - /** - * Generated from protobuf field .grafeas.v1.Severity severity = 2; - * @param int $var - * @return $this - */ - public function setSeverity($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\Severity::class); - $this->severity = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CisBenchmark::class, \Grafeas\V1\ComplianceNote_CisBenchmark::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceOccurrence.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceOccurrence.php deleted file mode 100644 index 48224305c9f7..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceOccurrence.php +++ /dev/null @@ -1,132 +0,0 @@ -grafeas.v1.ComplianceOccurrence - */ -class ComplianceOccurrence extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2; - */ - private $non_compliant_files; - /** - * Generated from protobuf field string non_compliance_reason = 3; - */ - protected $non_compliance_reason = ''; - /** - * The OS and config version the benchmark was run on. - * - * Generated from protobuf field .grafeas.v1.ComplianceVersion version = 4; - */ - protected $version = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Grafeas\V1\NonCompliantFile>|\Google\Protobuf\Internal\RepeatedField $non_compliant_files - * @type string $non_compliance_reason - * @type \Grafeas\V1\ComplianceVersion $version - * The OS and config version the benchmark was run on. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Compliance::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNonCompliantFiles() - { - return $this->non_compliant_files; - } - - /** - * Generated from protobuf field repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2; - * @param array<\Grafeas\V1\NonCompliantFile>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNonCompliantFiles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\NonCompliantFile::class); - $this->non_compliant_files = $arr; - - return $this; - } - - /** - * Generated from protobuf field string non_compliance_reason = 3; - * @return string - */ - public function getNonComplianceReason() - { - return $this->non_compliance_reason; - } - - /** - * Generated from protobuf field string non_compliance_reason = 3; - * @param string $var - * @return $this - */ - public function setNonComplianceReason($var) - { - GPBUtil::checkString($var, True); - $this->non_compliance_reason = $var; - - return $this; - } - - /** - * The OS and config version the benchmark was run on. - * - * Generated from protobuf field .grafeas.v1.ComplianceVersion version = 4; - * @return \Grafeas\V1\ComplianceVersion|null - */ - public function getVersion() - { - return $this->version; - } - - public function hasVersion() - { - return isset($this->version); - } - - public function clearVersion() - { - unset($this->version); - } - - /** - * The OS and config version the benchmark was run on. - * - * Generated from protobuf field .grafeas.v1.ComplianceVersion version = 4; - * @param \Grafeas\V1\ComplianceVersion $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\ComplianceVersion::class); - $this->version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceVersion.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceVersion.php deleted file mode 100644 index 19d19abd80bd..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceVersion.php +++ /dev/null @@ -1,148 +0,0 @@ -grafeas.v1.ComplianceVersion - */ -class ComplianceVersion extends \Google\Protobuf\Internal\Message -{ - /** - * The CPE URI (https://cpe.mitre.org/specification/) this benchmark is - * applicable to. - * - * Generated from protobuf field string cpe_uri = 1; - */ - protected $cpe_uri = ''; - /** - * The name of the document that defines this benchmark, e.g. "CIS - * Container-Optimized OS". - * - * Generated from protobuf field string benchmark_document = 3; - */ - protected $benchmark_document = ''; - /** - * The version of the benchmark. This is set to the version of the OS-specific - * CIS document the benchmark is defined in. - * - * Generated from protobuf field string version = 2; - */ - protected $version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $cpe_uri - * The CPE URI (https://cpe.mitre.org/specification/) this benchmark is - * applicable to. - * @type string $benchmark_document - * The name of the document that defines this benchmark, e.g. "CIS - * Container-Optimized OS". - * @type string $version - * The version of the benchmark. This is set to the version of the OS-specific - * CIS document the benchmark is defined in. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Compliance::initOnce(); - parent::__construct($data); - } - - /** - * The CPE URI (https://cpe.mitre.org/specification/) this benchmark is - * applicable to. - * - * Generated from protobuf field string cpe_uri = 1; - * @return string - */ - public function getCpeUri() - { - return $this->cpe_uri; - } - - /** - * The CPE URI (https://cpe.mitre.org/specification/) this benchmark is - * applicable to. - * - * Generated from protobuf field string cpe_uri = 1; - * @param string $var - * @return $this - */ - public function setCpeUri($var) - { - GPBUtil::checkString($var, True); - $this->cpe_uri = $var; - - return $this; - } - - /** - * The name of the document that defines this benchmark, e.g. "CIS - * Container-Optimized OS". - * - * Generated from protobuf field string benchmark_document = 3; - * @return string - */ - public function getBenchmarkDocument() - { - return $this->benchmark_document; - } - - /** - * The name of the document that defines this benchmark, e.g. "CIS - * Container-Optimized OS". - * - * Generated from protobuf field string benchmark_document = 3; - * @param string $var - * @return $this - */ - public function setBenchmarkDocument($var) - { - GPBUtil::checkString($var, True); - $this->benchmark_document = $var; - - return $this; - } - - /** - * The version of the benchmark. This is set to the version of the OS-specific - * CIS document the benchmark is defined in. - * - * Generated from protobuf field string version = 2; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * The version of the benchmark. This is set to the version of the OS-specific - * CIS document the benchmark is defined in. - * - * Generated from protobuf field string version = 2; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CreateNoteRequest.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CreateNoteRequest.php deleted file mode 100644 index b03b9181f323..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CreateNoteRequest.php +++ /dev/null @@ -1,168 +0,0 @@ -grafeas.v1.CreateNoteRequest - */ -class CreateNoteRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the project in the form of `projects/[PROJECT_ID]`, under which - * the note is to be created. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The ID to use for this note. - * - * Generated from protobuf field string note_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $note_id = ''; - /** - * The note to create. - * - * Generated from protobuf field .grafeas.v1.Note note = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $note = null; - - /** - * @param string $parent The name of the project in the form of `projects/[PROJECT_ID]`, under which - * the note is to be created. Please see - * {@see GrafeasClient::projectName()} for help formatting this field. - * @param string $noteId The ID to use for this note. - * @param \Grafeas\V1\Note $note The note to create. - * - * @return \Grafeas\V1\CreateNoteRequest - * - * @experimental - */ - public static function build(string $parent, string $noteId, \Grafeas\V1\Note $note): self - { - return (new self()) - ->setParent($parent) - ->setNoteId($noteId) - ->setNote($note); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * The name of the project in the form of `projects/[PROJECT_ID]`, under which - * the note is to be created. - * @type string $note_id - * The ID to use for this note. - * @type \Grafeas\V1\Note $note - * The note to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); - parent::__construct($data); - } - - /** - * The name of the project in the form of `projects/[PROJECT_ID]`, under which - * the note is to be created. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The name of the project in the form of `projects/[PROJECT_ID]`, under which - * the note is to be created. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The ID to use for this note. - * - * Generated from protobuf field string note_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getNoteId() - { - return $this->note_id; - } - - /** - * The ID to use for this note. - * - * Generated from protobuf field string note_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setNoteId($var) - { - GPBUtil::checkString($var, True); - $this->note_id = $var; - - return $this; - } - - /** - * The note to create. - * - * Generated from protobuf field .grafeas.v1.Note note = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Grafeas\V1\Note|null - */ - public function getNote() - { - return $this->note; - } - - public function hasNote() - { - return isset($this->note); - } - - public function clearNote() - { - unset($this->note); - } - - /** - * The note to create. - * - * Generated from protobuf field .grafeas.v1.Note note = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Grafeas\V1\Note $var - * @return $this - */ - public function setNote($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\Note::class); - $this->note = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CreateOccurrenceRequest.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CreateOccurrenceRequest.php deleted file mode 100644 index ac9031ca5a6f..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CreateOccurrenceRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -grafeas.v1.CreateOccurrenceRequest - */ -class CreateOccurrenceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the project in the form of `projects/[PROJECT_ID]`, under which - * the occurrence is to be created. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The occurrence to create. - * - * Generated from protobuf field .grafeas.v1.Occurrence occurrence = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $occurrence = null; - - /** - * @param string $parent The name of the project in the form of `projects/[PROJECT_ID]`, under which - * the occurrence is to be created. Please see - * {@see GrafeasClient::projectName()} for help formatting this field. - * @param \Grafeas\V1\Occurrence $occurrence The occurrence to create. - * - * @return \Grafeas\V1\CreateOccurrenceRequest - * - * @experimental - */ - public static function build(string $parent, \Grafeas\V1\Occurrence $occurrence): self - { - return (new self()) - ->setParent($parent) - ->setOccurrence($occurrence); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * The name of the project in the form of `projects/[PROJECT_ID]`, under which - * the occurrence is to be created. - * @type \Grafeas\V1\Occurrence $occurrence - * The occurrence to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); - parent::__construct($data); - } - - /** - * The name of the project in the form of `projects/[PROJECT_ID]`, under which - * the occurrence is to be created. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The name of the project in the form of `projects/[PROJECT_ID]`, under which - * the occurrence is to be created. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The occurrence to create. - * - * Generated from protobuf field .grafeas.v1.Occurrence occurrence = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Grafeas\V1\Occurrence|null - */ - public function getOccurrence() - { - return $this->occurrence; - } - - public function hasOccurrence() - { - return isset($this->occurrence); - } - - public function clearOccurrence() - { - unset($this->occurrence); - } - - /** - * The occurrence to create. - * - * Generated from protobuf field .grafeas.v1.Occurrence occurrence = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Grafeas\V1\Occurrence $var - * @return $this - */ - public function setOccurrence($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\Occurrence::class); - $this->occurrence = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DSSEAttestationNote.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DSSEAttestationNote.php deleted file mode 100644 index b40b73c92c36..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DSSEAttestationNote.php +++ /dev/null @@ -1,75 +0,0 @@ -grafeas.v1.DSSEAttestationNote - */ -class DSSEAttestationNote extends \Google\Protobuf\Internal\Message -{ - /** - * DSSEHint hints at the purpose of the attestation authority. - * - * Generated from protobuf field .grafeas.v1.DSSEAttestationNote.DSSEHint hint = 1; - */ - protected $hint = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Grafeas\V1\DSSEAttestationNote\DSSEHint $hint - * DSSEHint hints at the purpose of the attestation authority. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\DsseAttestation::initOnce(); - parent::__construct($data); - } - - /** - * DSSEHint hints at the purpose of the attestation authority. - * - * Generated from protobuf field .grafeas.v1.DSSEAttestationNote.DSSEHint hint = 1; - * @return \Grafeas\V1\DSSEAttestationNote\DSSEHint|null - */ - public function getHint() - { - return $this->hint; - } - - public function hasHint() - { - return isset($this->hint); - } - - public function clearHint() - { - unset($this->hint); - } - - /** - * DSSEHint hints at the purpose of the attestation authority. - * - * Generated from protobuf field .grafeas.v1.DSSEAttestationNote.DSSEHint hint = 1; - * @param \Grafeas\V1\DSSEAttestationNote\DSSEHint $var - * @return $this - */ - public function setHint($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\DSSEAttestationNote\DSSEHint::class); - $this->hint = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DSSEAttestationNote/DSSEHint.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DSSEAttestationNote/DSSEHint.php deleted file mode 100644 index 972f84285167..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DSSEAttestationNote/DSSEHint.php +++ /dev/null @@ -1,80 +0,0 @@ -grafeas.v1.DSSEAttestationNote.DSSEHint - */ -class DSSEHint extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The human readable name of this attestation authority, for - * example "cloudbuild-prod". - * - * Generated from protobuf field string human_readable_name = 1; - */ - protected $human_readable_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $human_readable_name - * Required. The human readable name of this attestation authority, for - * example "cloudbuild-prod". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\DsseAttestation::initOnce(); - parent::__construct($data); - } - - /** - * Required. The human readable name of this attestation authority, for - * example "cloudbuild-prod". - * - * Generated from protobuf field string human_readable_name = 1; - * @return string - */ - public function getHumanReadableName() - { - return $this->human_readable_name; - } - - /** - * Required. The human readable name of this attestation authority, for - * example "cloudbuild-prod". - * - * Generated from protobuf field string human_readable_name = 1; - * @param string $var - * @return $this - */ - public function setHumanReadableName($var) - { - GPBUtil::checkString($var, True); - $this->human_readable_name = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DSSEHint::class, \Grafeas\V1\DSSEAttestationNote_DSSEHint::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DSSEAttestationOccurrence.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DSSEAttestationOccurrence.php deleted file mode 100644 index 28ccbbd9f0f6..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DSSEAttestationOccurrence.php +++ /dev/null @@ -1,119 +0,0 @@ -grafeas.v1.DSSEAttestationOccurrence - */ -class DSSEAttestationOccurrence extends \Google\Protobuf\Internal\Message -{ - /** - * If doing something security critical, make sure to verify the signatures in - * this metadata. - * - * Generated from protobuf field .grafeas.v1.Envelope envelope = 1; - */ - protected $envelope = null; - protected $decoded_payload; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Grafeas\V1\Envelope $envelope - * If doing something security critical, make sure to verify the signatures in - * this metadata. - * @type \Grafeas\V1\InTotoStatement $statement - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\DsseAttestation::initOnce(); - parent::__construct($data); - } - - /** - * If doing something security critical, make sure to verify the signatures in - * this metadata. - * - * Generated from protobuf field .grafeas.v1.Envelope envelope = 1; - * @return \Grafeas\V1\Envelope|null - */ - public function getEnvelope() - { - return $this->envelope; - } - - public function hasEnvelope() - { - return isset($this->envelope); - } - - public function clearEnvelope() - { - unset($this->envelope); - } - - /** - * If doing something security critical, make sure to verify the signatures in - * this metadata. - * - * Generated from protobuf field .grafeas.v1.Envelope envelope = 1; - * @param \Grafeas\V1\Envelope $var - * @return $this - */ - public function setEnvelope($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\Envelope::class); - $this->envelope = $var; - - return $this; - } - - /** - * Generated from protobuf field .grafeas.v1.InTotoStatement statement = 2; - * @return \Grafeas\V1\InTotoStatement|null - */ - public function getStatement() - { - return $this->readOneof(2); - } - - public function hasStatement() - { - return $this->hasOneof(2); - } - - /** - * Generated from protobuf field .grafeas.v1.InTotoStatement statement = 2; - * @param \Grafeas\V1\InTotoStatement $var - * @return $this - */ - public function setStatement($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\InTotoStatement::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getDecodedPayload() - { - return $this->whichOneof("decoded_payload"); - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeleteNoteRequest.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeleteNoteRequest.php deleted file mode 100644 index 14fcef007666..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeleteNoteRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -grafeas.v1.DeleteNoteRequest - */ -class DeleteNoteRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the note in the form of - * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name The name of the note in the form of - * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. Please see - * {@see GrafeasClient::noteName()} for help formatting this field. - * - * @return \Grafeas\V1\DeleteNoteRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the note in the form of - * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); - parent::__construct($data); - } - - /** - * The name of the note in the form of - * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the note in the form of - * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeleteOccurrenceRequest.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeleteOccurrenceRequest.php deleted file mode 100644 index 4318a5540847..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeleteOccurrenceRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -grafeas.v1.DeleteOccurrenceRequest - */ -class DeleteOccurrenceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the occurrence in the form of - * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name The name of the occurrence in the form of - * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. Please see - * {@see GrafeasClient::occurrenceName()} for help formatting this field. - * - * @return \Grafeas\V1\DeleteOccurrenceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the occurrence in the form of - * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); - parent::__construct($data); - } - - /** - * The name of the occurrence in the form of - * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the occurrence in the form of - * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeploymentNote.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeploymentNote.php deleted file mode 100644 index d934670e3bb8..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeploymentNote.php +++ /dev/null @@ -1,67 +0,0 @@ -grafeas.v1.DeploymentNote - */ -class DeploymentNote extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource URI for the artifact being deployed. - * - * Generated from protobuf field repeated string resource_uri = 1; - */ - private $resource_uri; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $resource_uri - * Required. Resource URI for the artifact being deployed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Deployment::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource URI for the artifact being deployed. - * - * Generated from protobuf field repeated string resource_uri = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResourceUri() - { - return $this->resource_uri; - } - - /** - * Required. Resource URI for the artifact being deployed. - * - * Generated from protobuf field repeated string resource_uri = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResourceUri($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->resource_uri = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeploymentOccurrence.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeploymentOccurrence.php deleted file mode 100644 index 9971d3eb3d44..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeploymentOccurrence.php +++ /dev/null @@ -1,295 +0,0 @@ -grafeas.v1.DeploymentOccurrence - */ -class DeploymentOccurrence extends \Google\Protobuf\Internal\Message -{ - /** - * Identity of the user that triggered this deployment. - * - * Generated from protobuf field string user_email = 1; - */ - protected $user_email = ''; - /** - * Required. Beginning of the lifetime of this deployment. - * - * Generated from protobuf field .google.protobuf.Timestamp deploy_time = 2; - */ - protected $deploy_time = null; - /** - * End of the lifetime of this deployment. - * - * Generated from protobuf field .google.protobuf.Timestamp undeploy_time = 3; - */ - protected $undeploy_time = null; - /** - * Configuration used to create this deployment. - * - * Generated from protobuf field string config = 4; - */ - protected $config = ''; - /** - * Address of the runtime element hosting this deployment. - * - * Generated from protobuf field string address = 5; - */ - protected $address = ''; - /** - * Output only. Resource URI for the artifact being deployed taken from - * the deployable field with the same name. - * - * Generated from protobuf field repeated string resource_uri = 6; - */ - private $resource_uri; - /** - * Platform hosting this deployment. - * - * Generated from protobuf field .grafeas.v1.DeploymentOccurrence.Platform platform = 7; - */ - protected $platform = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $user_email - * Identity of the user that triggered this deployment. - * @type \Google\Protobuf\Timestamp $deploy_time - * Required. Beginning of the lifetime of this deployment. - * @type \Google\Protobuf\Timestamp $undeploy_time - * End of the lifetime of this deployment. - * @type string $config - * Configuration used to create this deployment. - * @type string $address - * Address of the runtime element hosting this deployment. - * @type array|\Google\Protobuf\Internal\RepeatedField $resource_uri - * Output only. Resource URI for the artifact being deployed taken from - * the deployable field with the same name. - * @type int $platform - * Platform hosting this deployment. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Deployment::initOnce(); - parent::__construct($data); - } - - /** - * Identity of the user that triggered this deployment. - * - * Generated from protobuf field string user_email = 1; - * @return string - */ - public function getUserEmail() - { - return $this->user_email; - } - - /** - * Identity of the user that triggered this deployment. - * - * Generated from protobuf field string user_email = 1; - * @param string $var - * @return $this - */ - public function setUserEmail($var) - { - GPBUtil::checkString($var, True); - $this->user_email = $var; - - return $this; - } - - /** - * Required. Beginning of the lifetime of this deployment. - * - * Generated from protobuf field .google.protobuf.Timestamp deploy_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getDeployTime() - { - return $this->deploy_time; - } - - public function hasDeployTime() - { - return isset($this->deploy_time); - } - - public function clearDeployTime() - { - unset($this->deploy_time); - } - - /** - * Required. Beginning of the lifetime of this deployment. - * - * Generated from protobuf field .google.protobuf.Timestamp deploy_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setDeployTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->deploy_time = $var; - - return $this; - } - - /** - * End of the lifetime of this deployment. - * - * Generated from protobuf field .google.protobuf.Timestamp undeploy_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUndeployTime() - { - return $this->undeploy_time; - } - - public function hasUndeployTime() - { - return isset($this->undeploy_time); - } - - public function clearUndeployTime() - { - unset($this->undeploy_time); - } - - /** - * End of the lifetime of this deployment. - * - * Generated from protobuf field .google.protobuf.Timestamp undeploy_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUndeployTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->undeploy_time = $var; - - return $this; - } - - /** - * Configuration used to create this deployment. - * - * Generated from protobuf field string config = 4; - * @return string - */ - public function getConfig() - { - return $this->config; - } - - /** - * Configuration used to create this deployment. - * - * Generated from protobuf field string config = 4; - * @param string $var - * @return $this - */ - public function setConfig($var) - { - GPBUtil::checkString($var, True); - $this->config = $var; - - return $this; - } - - /** - * Address of the runtime element hosting this deployment. - * - * Generated from protobuf field string address = 5; - * @return string - */ - public function getAddress() - { - return $this->address; - } - - /** - * Address of the runtime element hosting this deployment. - * - * Generated from protobuf field string address = 5; - * @param string $var - * @return $this - */ - public function setAddress($var) - { - GPBUtil::checkString($var, True); - $this->address = $var; - - return $this; - } - - /** - * Output only. Resource URI for the artifact being deployed taken from - * the deployable field with the same name. - * - * Generated from protobuf field repeated string resource_uri = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResourceUri() - { - return $this->resource_uri; - } - - /** - * Output only. Resource URI for the artifact being deployed taken from - * the deployable field with the same name. - * - * Generated from protobuf field repeated string resource_uri = 6; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResourceUri($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->resource_uri = $arr; - - return $this; - } - - /** - * Platform hosting this deployment. - * - * Generated from protobuf field .grafeas.v1.DeploymentOccurrence.Platform platform = 7; - * @return int - */ - public function getPlatform() - { - return $this->platform; - } - - /** - * Platform hosting this deployment. - * - * Generated from protobuf field .grafeas.v1.DeploymentOccurrence.Platform platform = 7; - * @param int $var - * @return $this - */ - public function setPlatform($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\DeploymentOccurrence\Platform::class); - $this->platform = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeploymentOccurrence/Platform.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeploymentOccurrence/Platform.php deleted file mode 100644 index 35b13b4c7858..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeploymentOccurrence/Platform.php +++ /dev/null @@ -1,71 +0,0 @@ -grafeas.v1.DeploymentOccurrence.Platform - */ -class Platform -{ - /** - * Unknown. - * - * Generated from protobuf enum PLATFORM_UNSPECIFIED = 0; - */ - const PLATFORM_UNSPECIFIED = 0; - /** - * Google Container Engine. - * - * Generated from protobuf enum GKE = 1; - */ - const GKE = 1; - /** - * Google App Engine: Flexible Environment. - * - * Generated from protobuf enum FLEX = 2; - */ - const FLEX = 2; - /** - * Custom user-defined platform. - * - * Generated from protobuf enum CUSTOM = 3; - */ - const CUSTOM = 3; - - private static $valueToName = [ - self::PLATFORM_UNSPECIFIED => 'PLATFORM_UNSPECIFIED', - self::GKE => 'GKE', - self::FLEX => 'FLEX', - self::CUSTOM => 'CUSTOM', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Platform::class, \Grafeas\V1\DeploymentOccurrence_Platform::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Digest.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Digest.php deleted file mode 100644 index 2e3c7163d6fc..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Digest.php +++ /dev/null @@ -1,101 +0,0 @@ -grafeas.v1.Digest - */ -class Digest extends \Google\Protobuf\Internal\Message -{ - /** - * `SHA1`, `SHA512` etc. - * - * Generated from protobuf field string algo = 1; - */ - protected $algo = ''; - /** - * Value of the digest. - * - * Generated from protobuf field bytes digest_bytes = 2; - */ - protected $digest_bytes = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $algo - * `SHA1`, `SHA512` etc. - * @type string $digest_bytes - * Value of the digest. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Common::initOnce(); - parent::__construct($data); - } - - /** - * `SHA1`, `SHA512` etc. - * - * Generated from protobuf field string algo = 1; - * @return string - */ - public function getAlgo() - { - return $this->algo; - } - - /** - * `SHA1`, `SHA512` etc. - * - * Generated from protobuf field string algo = 1; - * @param string $var - * @return $this - */ - public function setAlgo($var) - { - GPBUtil::checkString($var, True); - $this->algo = $var; - - return $this; - } - - /** - * Value of the digest. - * - * Generated from protobuf field bytes digest_bytes = 2; - * @return string - */ - public function getDigestBytes() - { - return $this->digest_bytes; - } - - /** - * Value of the digest. - * - * Generated from protobuf field bytes digest_bytes = 2; - * @param string $var - * @return $this - */ - public function setDigestBytes($var) - { - GPBUtil::checkString($var, False); - $this->digest_bytes = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryNote.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryNote.php deleted file mode 100644 index d1fa446c046d..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryNote.php +++ /dev/null @@ -1,73 +0,0 @@ -grafeas.v1.DiscoveryNote - */ -class DiscoveryNote extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Immutable. The kind of analysis that is handled by this - * discovery. - * - * Generated from protobuf field .grafeas.v1.NoteKind analysis_kind = 1; - */ - protected $analysis_kind = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $analysis_kind - * Required. Immutable. The kind of analysis that is handled by this - * discovery. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Discovery::initOnce(); - parent::__construct($data); - } - - /** - * Required. Immutable. The kind of analysis that is handled by this - * discovery. - * - * Generated from protobuf field .grafeas.v1.NoteKind analysis_kind = 1; - * @return int - */ - public function getAnalysisKind() - { - return $this->analysis_kind; - } - - /** - * Required. Immutable. The kind of analysis that is handled by this - * discovery. - * - * Generated from protobuf field .grafeas.v1.NoteKind analysis_kind = 1; - * @param int $var - * @return $this - */ - public function setAnalysisKind($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\NoteKind::class); - $this->analysis_kind = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence.php deleted file mode 100644 index aebbab9c0b74..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence.php +++ /dev/null @@ -1,516 +0,0 @@ -grafeas.v1.DiscoveryOccurrence - */ -class DiscoveryOccurrence extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the resource is continuously analyzed. - * - * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis continuous_analysis = 1; - */ - protected $continuous_analysis = 0; - /** - * The status of discovery for the resource. - * - * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.AnalysisStatus analysis_status = 2; - */ - protected $analysis_status = 0; - /** - * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7; - */ - protected $analysis_completed = null; - /** - * Indicates any errors encountered during analysis of a resource. There - * could be 0 or more of these errors. - * - * Generated from protobuf field repeated .google.rpc.Status analysis_error = 8; - */ - private $analysis_error; - /** - * When an error is encountered this will contain a LocalizedMessage under - * details to show to the user. The LocalizedMessage is output only and - * populated by the API. - * - * Generated from protobuf field .google.rpc.Status analysis_status_error = 3; - */ - protected $analysis_status_error = null; - /** - * The CPE of the resource being scanned. - * - * Generated from protobuf field string cpe = 4; - */ - protected $cpe = ''; - /** - * The last time this resource was scanned. - * - * Generated from protobuf field .google.protobuf.Timestamp last_scan_time = 5; - */ - protected $last_scan_time = null; - /** - * The time occurrences related to this discovery occurrence were archived. - * - * Generated from protobuf field .google.protobuf.Timestamp archive_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $archive_time = null; - /** - * The status of an SBOM generation. - * - * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.SBOMStatus sbom_status = 9; - */ - protected $sbom_status = null; - /** - * The status of an vulnerability attestation generation. - * - * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation vulnerability_attestation = 10; - */ - protected $vulnerability_attestation = null; - /** - * Files that make up the resource described by the occurrence. - * - * Generated from protobuf field repeated .grafeas.v1.DiscoveryOccurrence.File files = 11; - */ - private $files; - /** - * The last time vulnerability scan results changed. - * - * Generated from protobuf field .google.protobuf.Timestamp last_vulnerability_update_time = 12; - */ - protected $last_vulnerability_update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $continuous_analysis - * Whether the resource is continuously analyzed. - * @type int $analysis_status - * The status of discovery for the resource. - * @type \Grafeas\V1\DiscoveryOccurrence\AnalysisCompleted $analysis_completed - * @type array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $analysis_error - * Indicates any errors encountered during analysis of a resource. There - * could be 0 or more of these errors. - * @type \Google\Rpc\Status $analysis_status_error - * When an error is encountered this will contain a LocalizedMessage under - * details to show to the user. The LocalizedMessage is output only and - * populated by the API. - * @type string $cpe - * The CPE of the resource being scanned. - * @type \Google\Protobuf\Timestamp $last_scan_time - * The last time this resource was scanned. - * @type \Google\Protobuf\Timestamp $archive_time - * The time occurrences related to this discovery occurrence were archived. - * @type \Grafeas\V1\DiscoveryOccurrence\SBOMStatus $sbom_status - * The status of an SBOM generation. - * @type \Grafeas\V1\DiscoveryOccurrence\VulnerabilityAttestation $vulnerability_attestation - * The status of an vulnerability attestation generation. - * @type array<\Grafeas\V1\DiscoveryOccurrence\File>|\Google\Protobuf\Internal\RepeatedField $files - * Files that make up the resource described by the occurrence. - * @type \Google\Protobuf\Timestamp $last_vulnerability_update_time - * The last time vulnerability scan results changed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Discovery::initOnce(); - parent::__construct($data); - } - - /** - * Whether the resource is continuously analyzed. - * - * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis continuous_analysis = 1; - * @return int - */ - public function getContinuousAnalysis() - { - return $this->continuous_analysis; - } - - /** - * Whether the resource is continuously analyzed. - * - * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis continuous_analysis = 1; - * @param int $var - * @return $this - */ - public function setContinuousAnalysis($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\DiscoveryOccurrence\ContinuousAnalysis::class); - $this->continuous_analysis = $var; - - return $this; - } - - /** - * The status of discovery for the resource. - * - * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.AnalysisStatus analysis_status = 2; - * @return int - */ - public function getAnalysisStatus() - { - return $this->analysis_status; - } - - /** - * The status of discovery for the resource. - * - * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.AnalysisStatus analysis_status = 2; - * @param int $var - * @return $this - */ - public function setAnalysisStatus($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\DiscoveryOccurrence\AnalysisStatus::class); - $this->analysis_status = $var; - - return $this; - } - - /** - * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7; - * @return \Grafeas\V1\DiscoveryOccurrence\AnalysisCompleted|null - */ - public function getAnalysisCompleted() - { - return $this->analysis_completed; - } - - public function hasAnalysisCompleted() - { - return isset($this->analysis_completed); - } - - public function clearAnalysisCompleted() - { - unset($this->analysis_completed); - } - - /** - * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7; - * @param \Grafeas\V1\DiscoveryOccurrence\AnalysisCompleted $var - * @return $this - */ - public function setAnalysisCompleted($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\DiscoveryOccurrence\AnalysisCompleted::class); - $this->analysis_completed = $var; - - return $this; - } - - /** - * Indicates any errors encountered during analysis of a resource. There - * could be 0 or more of these errors. - * - * Generated from protobuf field repeated .google.rpc.Status analysis_error = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAnalysisError() - { - return $this->analysis_error; - } - - /** - * Indicates any errors encountered during analysis of a resource. There - * could be 0 or more of these errors. - * - * Generated from protobuf field repeated .google.rpc.Status analysis_error = 8; - * @param array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAnalysisError($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); - $this->analysis_error = $arr; - - return $this; - } - - /** - * When an error is encountered this will contain a LocalizedMessage under - * details to show to the user. The LocalizedMessage is output only and - * populated by the API. - * - * Generated from protobuf field .google.rpc.Status analysis_status_error = 3; - * @return \Google\Rpc\Status|null - */ - public function getAnalysisStatusError() - { - return $this->analysis_status_error; - } - - public function hasAnalysisStatusError() - { - return isset($this->analysis_status_error); - } - - public function clearAnalysisStatusError() - { - unset($this->analysis_status_error); - } - - /** - * When an error is encountered this will contain a LocalizedMessage under - * details to show to the user. The LocalizedMessage is output only and - * populated by the API. - * - * Generated from protobuf field .google.rpc.Status analysis_status_error = 3; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setAnalysisStatusError($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->analysis_status_error = $var; - - return $this; - } - - /** - * The CPE of the resource being scanned. - * - * Generated from protobuf field string cpe = 4; - * @return string - */ - public function getCpe() - { - return $this->cpe; - } - - /** - * The CPE of the resource being scanned. - * - * Generated from protobuf field string cpe = 4; - * @param string $var - * @return $this - */ - public function setCpe($var) - { - GPBUtil::checkString($var, True); - $this->cpe = $var; - - return $this; - } - - /** - * The last time this resource was scanned. - * - * Generated from protobuf field .google.protobuf.Timestamp last_scan_time = 5; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastScanTime() - { - return $this->last_scan_time; - } - - public function hasLastScanTime() - { - return isset($this->last_scan_time); - } - - public function clearLastScanTime() - { - unset($this->last_scan_time); - } - - /** - * The last time this resource was scanned. - * - * Generated from protobuf field .google.protobuf.Timestamp last_scan_time = 5; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastScanTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_scan_time = $var; - - return $this; - } - - /** - * The time occurrences related to this discovery occurrence were archived. - * - * Generated from protobuf field .google.protobuf.Timestamp archive_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getArchiveTime() - { - return $this->archive_time; - } - - public function hasArchiveTime() - { - return isset($this->archive_time); - } - - public function clearArchiveTime() - { - unset($this->archive_time); - } - - /** - * The time occurrences related to this discovery occurrence were archived. - * - * Generated from protobuf field .google.protobuf.Timestamp archive_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setArchiveTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->archive_time = $var; - - return $this; - } - - /** - * The status of an SBOM generation. - * - * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.SBOMStatus sbom_status = 9; - * @return \Grafeas\V1\DiscoveryOccurrence\SBOMStatus|null - */ - public function getSbomStatus() - { - return $this->sbom_status; - } - - public function hasSbomStatus() - { - return isset($this->sbom_status); - } - - public function clearSbomStatus() - { - unset($this->sbom_status); - } - - /** - * The status of an SBOM generation. - * - * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.SBOMStatus sbom_status = 9; - * @param \Grafeas\V1\DiscoveryOccurrence\SBOMStatus $var - * @return $this - */ - public function setSbomStatus($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\DiscoveryOccurrence\SBOMStatus::class); - $this->sbom_status = $var; - - return $this; - } - - /** - * The status of an vulnerability attestation generation. - * - * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation vulnerability_attestation = 10; - * @return \Grafeas\V1\DiscoveryOccurrence\VulnerabilityAttestation|null - */ - public function getVulnerabilityAttestation() - { - return $this->vulnerability_attestation; - } - - public function hasVulnerabilityAttestation() - { - return isset($this->vulnerability_attestation); - } - - public function clearVulnerabilityAttestation() - { - unset($this->vulnerability_attestation); - } - - /** - * The status of an vulnerability attestation generation. - * - * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation vulnerability_attestation = 10; - * @param \Grafeas\V1\DiscoveryOccurrence\VulnerabilityAttestation $var - * @return $this - */ - public function setVulnerabilityAttestation($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\DiscoveryOccurrence\VulnerabilityAttestation::class); - $this->vulnerability_attestation = $var; - - return $this; - } - - /** - * Files that make up the resource described by the occurrence. - * - * Generated from protobuf field repeated .grafeas.v1.DiscoveryOccurrence.File files = 11; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFiles() - { - return $this->files; - } - - /** - * Files that make up the resource described by the occurrence. - * - * Generated from protobuf field repeated .grafeas.v1.DiscoveryOccurrence.File files = 11; - * @param array<\Grafeas\V1\DiscoveryOccurrence\File>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFiles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\DiscoveryOccurrence\File::class); - $this->files = $arr; - - return $this; - } - - /** - * The last time vulnerability scan results changed. - * - * Generated from protobuf field .google.protobuf.Timestamp last_vulnerability_update_time = 12; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastVulnerabilityUpdateTime() - { - return $this->last_vulnerability_update_time; - } - - public function hasLastVulnerabilityUpdateTime() - { - return isset($this->last_vulnerability_update_time); - } - - public function clearLastVulnerabilityUpdateTime() - { - unset($this->last_vulnerability_update_time); - } - - /** - * The last time vulnerability scan results changed. - * - * Generated from protobuf field .google.protobuf.Timestamp last_vulnerability_update_time = 12; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastVulnerabilityUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_vulnerability_update_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/AnalysisCompleted.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/AnalysisCompleted.php deleted file mode 100644 index 5d1e7201fb22..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/AnalysisCompleted.php +++ /dev/null @@ -1,64 +0,0 @@ -grafeas.v1.DiscoveryOccurrence.AnalysisCompleted - */ -class AnalysisCompleted extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field repeated string analysis_type = 1; - */ - private $analysis_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $analysis_type - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Discovery::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field repeated string analysis_type = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAnalysisType() - { - return $this->analysis_type; - } - - /** - * Generated from protobuf field repeated string analysis_type = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAnalysisType($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->analysis_type = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AnalysisCompleted::class, \Grafeas\V1\DiscoveryOccurrence_AnalysisCompleted::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/AnalysisStatus.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/AnalysisStatus.php deleted file mode 100644 index fcef24fb33a3..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/AnalysisStatus.php +++ /dev/null @@ -1,94 +0,0 @@ -grafeas.v1.DiscoveryOccurrence.AnalysisStatus - */ -class AnalysisStatus -{ - /** - * Unknown. - * - * Generated from protobuf enum ANALYSIS_STATUS_UNSPECIFIED = 0; - */ - const ANALYSIS_STATUS_UNSPECIFIED = 0; - /** - * Resource is known but no action has been taken yet. - * - * Generated from protobuf enum PENDING = 1; - */ - const PENDING = 1; - /** - * Resource is being analyzed. - * - * Generated from protobuf enum SCANNING = 2; - */ - const SCANNING = 2; - /** - * Analysis has finished successfully. - * - * Generated from protobuf enum FINISHED_SUCCESS = 3; - */ - const FINISHED_SUCCESS = 3; - /** - * Analysis has completed. - * - * Generated from protobuf enum COMPLETE = 3; - */ - const COMPLETE = 3; - /** - * Analysis has finished unsuccessfully, the analysis itself is in a bad - * state. - * - * Generated from protobuf enum FINISHED_FAILED = 4; - */ - const FINISHED_FAILED = 4; - /** - * The resource is known not to be supported. - * - * Generated from protobuf enum FINISHED_UNSUPPORTED = 5; - */ - const FINISHED_UNSUPPORTED = 5; - - private static $valueToName = [ - self::ANALYSIS_STATUS_UNSPECIFIED => 'ANALYSIS_STATUS_UNSPECIFIED', - self::PENDING => 'PENDING', - self::SCANNING => 'SCANNING', - self::FINISHED_SUCCESS => 'FINISHED_SUCCESS', - self::COMPLETE => 'COMPLETE', - self::FINISHED_FAILED => 'FINISHED_FAILED', - self::FINISHED_UNSUPPORTED => 'FINISHED_UNSUPPORTED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AnalysisStatus::class, \Grafeas\V1\DiscoveryOccurrence_AnalysisStatus::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/ContinuousAnalysis.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/ContinuousAnalysis.php deleted file mode 100644 index 350c2fb7590b..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/ContinuousAnalysis.php +++ /dev/null @@ -1,64 +0,0 @@ -grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis - */ -class ContinuousAnalysis -{ - /** - * Unknown. - * - * Generated from protobuf enum CONTINUOUS_ANALYSIS_UNSPECIFIED = 0; - */ - const CONTINUOUS_ANALYSIS_UNSPECIFIED = 0; - /** - * The resource is continuously analyzed. - * - * Generated from protobuf enum ACTIVE = 1; - */ - const ACTIVE = 1; - /** - * The resource is ignored for continuous analysis. - * - * Generated from protobuf enum INACTIVE = 2; - */ - const INACTIVE = 2; - - private static $valueToName = [ - self::CONTINUOUS_ANALYSIS_UNSPECIFIED => 'CONTINUOUS_ANALYSIS_UNSPECIFIED', - self::ACTIVE => 'ACTIVE', - self::INACTIVE => 'INACTIVE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ContinuousAnalysis::class, \Grafeas\V1\DiscoveryOccurrence_ContinuousAnalysis::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/File.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/File.php deleted file mode 100644 index 45b17ad9cb7a..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/File.php +++ /dev/null @@ -1,88 +0,0 @@ -grafeas.v1.DiscoveryOccurrence.File - */ -class File extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Generated from protobuf field map digest = 2; - */ - private $digest; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * @type array|\Google\Protobuf\Internal\MapField $digest - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Discovery::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Generated from protobuf field map digest = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getDigest() - { - return $this->digest; - } - - /** - * Generated from protobuf field map digest = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setDigest($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->digest = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(File::class, \Grafeas\V1\DiscoveryOccurrence_File::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/SBOMStatus.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/SBOMStatus.php deleted file mode 100644 index dee01078c8cb..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/SBOMStatus.php +++ /dev/null @@ -1,108 +0,0 @@ -grafeas.v1.DiscoveryOccurrence.SBOMStatus - */ -class SBOMStatus extends \Google\Protobuf\Internal\Message -{ - /** - * The progress of the SBOM generation. - * - * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.SBOMStatus.SBOMState sbom_state = 1; - */ - protected $sbom_state = 0; - /** - * If there was an error generating an SBOM, this will indicate what that - * error was. - * - * Generated from protobuf field string error = 2; - */ - protected $error = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $sbom_state - * The progress of the SBOM generation. - * @type string $error - * If there was an error generating an SBOM, this will indicate what that - * error was. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Discovery::initOnce(); - parent::__construct($data); - } - - /** - * The progress of the SBOM generation. - * - * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.SBOMStatus.SBOMState sbom_state = 1; - * @return int - */ - public function getSbomState() - { - return $this->sbom_state; - } - - /** - * The progress of the SBOM generation. - * - * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.SBOMStatus.SBOMState sbom_state = 1; - * @param int $var - * @return $this - */ - public function setSbomState($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\DiscoveryOccurrence\SBOMStatus\SBOMState::class); - $this->sbom_state = $var; - - return $this; - } - - /** - * If there was an error generating an SBOM, this will indicate what that - * error was. - * - * Generated from protobuf field string error = 2; - * @return string - */ - public function getError() - { - return $this->error; - } - - /** - * If there was an error generating an SBOM, this will indicate what that - * error was. - * - * Generated from protobuf field string error = 2; - * @param string $var - * @return $this - */ - public function setError($var) - { - GPBUtil::checkString($var, True); - $this->error = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SBOMStatus::class, \Grafeas\V1\DiscoveryOccurrence_SBOMStatus::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/SBOMStatus/SBOMState.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/SBOMStatus/SBOMState.php deleted file mode 100644 index 0ce25b22873f..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/SBOMStatus/SBOMState.php +++ /dev/null @@ -1,64 +0,0 @@ -grafeas.v1.DiscoveryOccurrence.SBOMStatus.SBOMState - */ -class SBOMState -{ - /** - * Default unknown state. - * - * Generated from protobuf enum SBOM_STATE_UNSPECIFIED = 0; - */ - const SBOM_STATE_UNSPECIFIED = 0; - /** - * SBOM scanning is pending. - * - * Generated from protobuf enum PENDING = 1; - */ - const PENDING = 1; - /** - * SBOM scanning has completed. - * - * Generated from protobuf enum COMPLETE = 2; - */ - const COMPLETE = 2; - - private static $valueToName = [ - self::SBOM_STATE_UNSPECIFIED => 'SBOM_STATE_UNSPECIFIED', - self::PENDING => 'PENDING', - self::COMPLETE => 'COMPLETE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SBOMState::class, \Grafeas\V1\DiscoveryOccurrence_SBOMStatus_SBOMState::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/VulnerabilityAttestation.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/VulnerabilityAttestation.php deleted file mode 100644 index 2e1ec8e5dc33..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/VulnerabilityAttestation.php +++ /dev/null @@ -1,148 +0,0 @@ -grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation - */ -class VulnerabilityAttestation extends \Google\Protobuf\Internal\Message -{ - /** - * The last time we attempted to generate an attestation. - * - * Generated from protobuf field .google.protobuf.Timestamp last_attempt_time = 1; - */ - protected $last_attempt_time = null; - /** - * The success/failure state of the latest attestation attempt. - * - * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState state = 2; - */ - protected $state = 0; - /** - * If failure, the error reason for why the attestation generation failed. - * - * Generated from protobuf field string error = 3; - */ - protected $error = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $last_attempt_time - * The last time we attempted to generate an attestation. - * @type int $state - * The success/failure state of the latest attestation attempt. - * @type string $error - * If failure, the error reason for why the attestation generation failed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Discovery::initOnce(); - parent::__construct($data); - } - - /** - * The last time we attempted to generate an attestation. - * - * Generated from protobuf field .google.protobuf.Timestamp last_attempt_time = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastAttemptTime() - { - return $this->last_attempt_time; - } - - public function hasLastAttemptTime() - { - return isset($this->last_attempt_time); - } - - public function clearLastAttemptTime() - { - unset($this->last_attempt_time); - } - - /** - * The last time we attempted to generate an attestation. - * - * Generated from protobuf field .google.protobuf.Timestamp last_attempt_time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastAttemptTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_attempt_time = $var; - - return $this; - } - - /** - * The success/failure state of the latest attestation attempt. - * - * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState state = 2; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * The success/failure state of the latest attestation attempt. - * - * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState state = 2; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\DiscoveryOccurrence\VulnerabilityAttestation\VulnerabilityAttestationState::class); - $this->state = $var; - - return $this; - } - - /** - * If failure, the error reason for why the attestation generation failed. - * - * Generated from protobuf field string error = 3; - * @return string - */ - public function getError() - { - return $this->error; - } - - /** - * If failure, the error reason for why the attestation generation failed. - * - * Generated from protobuf field string error = 3; - * @param string $var - * @return $this - */ - public function setError($var) - { - GPBUtil::checkString($var, True); - $this->error = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(VulnerabilityAttestation::class, \Grafeas\V1\DiscoveryOccurrence_VulnerabilityAttestation::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/VulnerabilityAttestation/VulnerabilityAttestationState.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/VulnerabilityAttestation/VulnerabilityAttestationState.php deleted file mode 100644 index 415948b9ae6d..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/VulnerabilityAttestation/VulnerabilityAttestationState.php +++ /dev/null @@ -1,64 +0,0 @@ -grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState - */ -class VulnerabilityAttestationState -{ - /** - * Default unknown state. - * - * Generated from protobuf enum VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED = 0; - */ - const VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED = 0; - /** - * Attestation was successfully generated and stored. - * - * Generated from protobuf enum SUCCESS = 1; - */ - const SUCCESS = 1; - /** - * Attestation was unsuccessfully generated and stored. - * - * Generated from protobuf enum FAILURE = 2; - */ - const FAILURE = 2; - - private static $valueToName = [ - self::VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED => 'VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED', - self::SUCCESS => 'SUCCESS', - self::FAILURE => 'FAILURE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(VulnerabilityAttestationState::class, \Grafeas\V1\DiscoveryOccurrence_VulnerabilityAttestation_VulnerabilityAttestationState::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Distribution.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Distribution.php deleted file mode 100644 index 84a7d28208b2..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Distribution.php +++ /dev/null @@ -1,256 +0,0 @@ -grafeas.v1.Distribution - */ -class Distribution extends \Google\Protobuf\Internal\Message -{ - /** - * The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) - * denoting the package manager version distributing a package. - * - * Generated from protobuf field string cpe_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $cpe_uri = ''; - /** - * The CPU architecture for which packages in this distribution channel were - * built. - * - * Generated from protobuf field .grafeas.v1.Architecture architecture = 2; - */ - protected $architecture = 0; - /** - * The latest available version of this package in this distribution channel. - * - * Generated from protobuf field .grafeas.v1.Version latest_version = 3; - */ - protected $latest_version = null; - /** - * A freeform string denoting the maintainer of this package. - * - * Generated from protobuf field string maintainer = 4; - */ - protected $maintainer = ''; - /** - * The distribution channel-specific homepage for this package. - * - * Generated from protobuf field string url = 5; - */ - protected $url = ''; - /** - * The distribution channel-specific description of this package. - * - * Generated from protobuf field string description = 6; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $cpe_uri - * The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) - * denoting the package manager version distributing a package. - * @type int $architecture - * The CPU architecture for which packages in this distribution channel were - * built. - * @type \Grafeas\V1\Version $latest_version - * The latest available version of this package in this distribution channel. - * @type string $maintainer - * A freeform string denoting the maintainer of this package. - * @type string $url - * The distribution channel-specific homepage for this package. - * @type string $description - * The distribution channel-specific description of this package. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Package::initOnce(); - parent::__construct($data); - } - - /** - * The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) - * denoting the package manager version distributing a package. - * - * Generated from protobuf field string cpe_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getCpeUri() - { - return $this->cpe_uri; - } - - /** - * The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) - * denoting the package manager version distributing a package. - * - * Generated from protobuf field string cpe_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setCpeUri($var) - { - GPBUtil::checkString($var, True); - $this->cpe_uri = $var; - - return $this; - } - - /** - * The CPU architecture for which packages in this distribution channel were - * built. - * - * Generated from protobuf field .grafeas.v1.Architecture architecture = 2; - * @return int - */ - public function getArchitecture() - { - return $this->architecture; - } - - /** - * The CPU architecture for which packages in this distribution channel were - * built. - * - * Generated from protobuf field .grafeas.v1.Architecture architecture = 2; - * @param int $var - * @return $this - */ - public function setArchitecture($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\Architecture::class); - $this->architecture = $var; - - return $this; - } - - /** - * The latest available version of this package in this distribution channel. - * - * Generated from protobuf field .grafeas.v1.Version latest_version = 3; - * @return \Grafeas\V1\Version|null - */ - public function getLatestVersion() - { - return $this->latest_version; - } - - public function hasLatestVersion() - { - return isset($this->latest_version); - } - - public function clearLatestVersion() - { - unset($this->latest_version); - } - - /** - * The latest available version of this package in this distribution channel. - * - * Generated from protobuf field .grafeas.v1.Version latest_version = 3; - * @param \Grafeas\V1\Version $var - * @return $this - */ - public function setLatestVersion($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\Version::class); - $this->latest_version = $var; - - return $this; - } - - /** - * A freeform string denoting the maintainer of this package. - * - * Generated from protobuf field string maintainer = 4; - * @return string - */ - public function getMaintainer() - { - return $this->maintainer; - } - - /** - * A freeform string denoting the maintainer of this package. - * - * Generated from protobuf field string maintainer = 4; - * @param string $var - * @return $this - */ - public function setMaintainer($var) - { - GPBUtil::checkString($var, True); - $this->maintainer = $var; - - return $this; - } - - /** - * The distribution channel-specific homepage for this package. - * - * Generated from protobuf field string url = 5; - * @return string - */ - public function getUrl() - { - return $this->url; - } - - /** - * The distribution channel-specific homepage for this package. - * - * Generated from protobuf field string url = 5; - * @param string $var - * @return $this - */ - public function setUrl($var) - { - GPBUtil::checkString($var, True); - $this->url = $var; - - return $this; - } - - /** - * The distribution channel-specific description of this package. - * - * Generated from protobuf field string description = 6; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * The distribution channel-specific description of this package. - * - * Generated from protobuf field string description = 6; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Envelope.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Envelope.php deleted file mode 100644 index 17bcc1346ae5..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Envelope.php +++ /dev/null @@ -1,116 +0,0 @@ -grafeas.v1.Envelope - */ -class Envelope extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field bytes payload = 1; - */ - protected $payload = ''; - /** - * Generated from protobuf field string payload_type = 2; - */ - protected $payload_type = ''; - /** - * Generated from protobuf field repeated .grafeas.v1.EnvelopeSignature signatures = 3; - */ - private $signatures; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $payload - * @type string $payload_type - * @type array<\Grafeas\V1\EnvelopeSignature>|\Google\Protobuf\Internal\RepeatedField $signatures - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Common::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field bytes payload = 1; - * @return string - */ - public function getPayload() - { - return $this->payload; - } - - /** - * Generated from protobuf field bytes payload = 1; - * @param string $var - * @return $this - */ - public function setPayload($var) - { - GPBUtil::checkString($var, False); - $this->payload = $var; - - return $this; - } - - /** - * Generated from protobuf field string payload_type = 2; - * @return string - */ - public function getPayloadType() - { - return $this->payload_type; - } - - /** - * Generated from protobuf field string payload_type = 2; - * @param string $var - * @return $this - */ - public function setPayloadType($var) - { - GPBUtil::checkString($var, True); - $this->payload_type = $var; - - return $this; - } - - /** - * Generated from protobuf field repeated .grafeas.v1.EnvelopeSignature signatures = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSignatures() - { - return $this->signatures; - } - - /** - * Generated from protobuf field repeated .grafeas.v1.EnvelopeSignature signatures = 3; - * @param array<\Grafeas\V1\EnvelopeSignature>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSignatures($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\EnvelopeSignature::class); - $this->signatures = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/EnvelopeSignature.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/EnvelopeSignature.php deleted file mode 100644 index 61ebdc60fbcf..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/EnvelopeSignature.php +++ /dev/null @@ -1,85 +0,0 @@ -grafeas.v1.EnvelopeSignature - */ -class EnvelopeSignature extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field bytes sig = 1; - */ - protected $sig = ''; - /** - * Generated from protobuf field string keyid = 2; - */ - protected $keyid = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $sig - * @type string $keyid - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Common::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field bytes sig = 1; - * @return string - */ - public function getSig() - { - return $this->sig; - } - - /** - * Generated from protobuf field bytes sig = 1; - * @param string $var - * @return $this - */ - public function setSig($var) - { - GPBUtil::checkString($var, False); - $this->sig = $var; - - return $this; - } - - /** - * Generated from protobuf field string keyid = 2; - * @return string - */ - public function getKeyid() - { - return $this->keyid; - } - - /** - * Generated from protobuf field string keyid = 2; - * @param string $var - * @return $this - */ - public function setKeyid($var) - { - GPBUtil::checkString($var, True); - $this->keyid = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ExploitPredictionScoringSystem.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ExploitPredictionScoringSystem.php deleted file mode 100644 index f8d27a403d58..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ExploitPredictionScoringSystem.php +++ /dev/null @@ -1,107 +0,0 @@ -grafeas.v1.ExploitPredictionScoringSystem - */ -class ExploitPredictionScoringSystem extends \Google\Protobuf\Internal\Message -{ - /** - * The percentile of the current score, the proportion of all scored - * vulnerabilities with the same or a lower EPSS score - * - * Generated from protobuf field double percentile = 1; - */ - protected $percentile = 0.0; - /** - * The EPSS score representing the probability [0-1] of exploitation in the - * wild in the next 30 days - * - * Generated from protobuf field double score = 2; - */ - protected $score = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $percentile - * The percentile of the current score, the proportion of all scored - * vulnerabilities with the same or a lower EPSS score - * @type float $score - * The EPSS score representing the probability [0-1] of exploitation in the - * wild in the next 30 days - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Risk::initOnce(); - parent::__construct($data); - } - - /** - * The percentile of the current score, the proportion of all scored - * vulnerabilities with the same or a lower EPSS score - * - * Generated from protobuf field double percentile = 1; - * @return float - */ - public function getPercentile() - { - return $this->percentile; - } - - /** - * The percentile of the current score, the proportion of all scored - * vulnerabilities with the same or a lower EPSS score - * - * Generated from protobuf field double percentile = 1; - * @param float $var - * @return $this - */ - public function setPercentile($var) - { - GPBUtil::checkDouble($var); - $this->percentile = $var; - - return $this; - } - - /** - * The EPSS score representing the probability [0-1] of exploitation in the - * wild in the next 30 days - * - * Generated from protobuf field double score = 2; - * @return float - */ - public function getScore() - { - return $this->score; - } - - /** - * The EPSS score representing the probability [0-1] of exploitation in the - * wild in the next 30 days - * - * Generated from protobuf field double score = 2; - * @param float $var - * @return $this - */ - public function setScore($var) - { - GPBUtil::checkDouble($var); - $this->score = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/FileHashes.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/FileHashes.php deleted file mode 100644 index a24ab1da8401..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/FileHashes.php +++ /dev/null @@ -1,68 +0,0 @@ -grafeas.v1.FileHashes - */ -class FileHashes extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Collection of file hashes. - * - * Generated from protobuf field repeated .grafeas.v1.Hash file_hash = 1; - */ - private $file_hash; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Grafeas\V1\Hash>|\Google\Protobuf\Internal\RepeatedField $file_hash - * Required. Collection of file hashes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Provenance::initOnce(); - parent::__construct($data); - } - - /** - * Required. Collection of file hashes. - * - * Generated from protobuf field repeated .grafeas.v1.Hash file_hash = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFileHash() - { - return $this->file_hash; - } - - /** - * Required. Collection of file hashes. - * - * Generated from protobuf field repeated .grafeas.v1.Hash file_hash = 1; - * @param array<\Grafeas\V1\Hash>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFileHash($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Hash::class); - $this->file_hash = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/FileLocation.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/FileLocation.php deleted file mode 100644 index d56fd4390f7a..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/FileLocation.php +++ /dev/null @@ -1,119 +0,0 @@ -grafeas.v1.FileLocation - */ -class FileLocation extends \Google\Protobuf\Internal\Message -{ - /** - * For jars that are contained inside .war files, this filepath - * can indicate the path to war file combined with the path to jar file. - * - * Generated from protobuf field string file_path = 1; - */ - protected $file_path = ''; - /** - * Each package found in a file should have its own layer metadata (that is, - * information from the origin layer of the package). - * - * Generated from protobuf field .grafeas.v1.LayerDetails layer_details = 2; - */ - protected $layer_details = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $file_path - * For jars that are contained inside .war files, this filepath - * can indicate the path to war file combined with the path to jar file. - * @type \Grafeas\V1\LayerDetails $layer_details - * Each package found in a file should have its own layer metadata (that is, - * information from the origin layer of the package). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Common::initOnce(); - parent::__construct($data); - } - - /** - * For jars that are contained inside .war files, this filepath - * can indicate the path to war file combined with the path to jar file. - * - * Generated from protobuf field string file_path = 1; - * @return string - */ - public function getFilePath() - { - return $this->file_path; - } - - /** - * For jars that are contained inside .war files, this filepath - * can indicate the path to war file combined with the path to jar file. - * - * Generated from protobuf field string file_path = 1; - * @param string $var - * @return $this - */ - public function setFilePath($var) - { - GPBUtil::checkString($var, True); - $this->file_path = $var; - - return $this; - } - - /** - * Each package found in a file should have its own layer metadata (that is, - * information from the origin layer of the package). - * - * Generated from protobuf field .grafeas.v1.LayerDetails layer_details = 2; - * @return \Grafeas\V1\LayerDetails|null - */ - public function getLayerDetails() - { - return $this->layer_details; - } - - public function hasLayerDetails() - { - return isset($this->layer_details); - } - - public function clearLayerDetails() - { - unset($this->layer_details); - } - - /** - * Each package found in a file should have its own layer metadata (that is, - * information from the origin layer of the package). - * - * Generated from protobuf field .grafeas.v1.LayerDetails layer_details = 2; - * @param \Grafeas\V1\LayerDetails $var - * @return $this - */ - public function setLayerDetails($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\LayerDetails::class); - $this->layer_details = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Fingerprint.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Fingerprint.php deleted file mode 100644 index 7191d7383ef5..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Fingerprint.php +++ /dev/null @@ -1,151 +0,0 @@ -grafeas.v1.Fingerprint - */ -class Fingerprint extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The layer ID of the final layer in the Docker image's v1 - * representation. - * - * Generated from protobuf field string v1_name = 1; - */ - protected $v1_name = ''; - /** - * Required. The ordered list of v2 blobs that represent a given image. - * - * Generated from protobuf field repeated string v2_blob = 2; - */ - private $v2_blob; - /** - * Output only. The name of the image's v2 blobs computed via: - * [bottom] := v2_blob[bottom] - * [N] := sha256(v2_blob[N] + " " + v2_name[N+1]) - * Only the name of the final blob is kept. - * - * Generated from protobuf field string v2_name = 3; - */ - protected $v2_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $v1_name - * Required. The layer ID of the final layer in the Docker image's v1 - * representation. - * @type array|\Google\Protobuf\Internal\RepeatedField $v2_blob - * Required. The ordered list of v2 blobs that represent a given image. - * @type string $v2_name - * Output only. The name of the image's v2 blobs computed via: - * [bottom] := v2_blob[bottom] - * [N] := sha256(v2_blob[N] + " " + v2_name[N+1]) - * Only the name of the final blob is kept. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Image::initOnce(); - parent::__construct($data); - } - - /** - * Required. The layer ID of the final layer in the Docker image's v1 - * representation. - * - * Generated from protobuf field string v1_name = 1; - * @return string - */ - public function getV1Name() - { - return $this->v1_name; - } - - /** - * Required. The layer ID of the final layer in the Docker image's v1 - * representation. - * - * Generated from protobuf field string v1_name = 1; - * @param string $var - * @return $this - */ - public function setV1Name($var) - { - GPBUtil::checkString($var, True); - $this->v1_name = $var; - - return $this; - } - - /** - * Required. The ordered list of v2 blobs that represent a given image. - * - * Generated from protobuf field repeated string v2_blob = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getV2Blob() - { - return $this->v2_blob; - } - - /** - * Required. The ordered list of v2 blobs that represent a given image. - * - * Generated from protobuf field repeated string v2_blob = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setV2Blob($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->v2_blob = $arr; - - return $this; - } - - /** - * Output only. The name of the image's v2 blobs computed via: - * [bottom] := v2_blob[bottom] - * [N] := sha256(v2_blob[N] + " " + v2_name[N+1]) - * Only the name of the final blob is kept. - * - * Generated from protobuf field string v2_name = 3; - * @return string - */ - public function getV2Name() - { - return $this->v2_name; - } - - /** - * Output only. The name of the image's v2 blobs computed via: - * [bottom] := v2_blob[bottom] - * [N] := sha256(v2_blob[N] + " " + v2_name[N+1]) - * Only the name of the final blob is kept. - * - * Generated from protobuf field string v2_name = 3; - * @param string $var - * @return $this - */ - public function setV2Name($var) - { - GPBUtil::checkString($var, True); - $this->v2_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GerritSourceContext.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GerritSourceContext.php deleted file mode 100644 index 616fb62984ad..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GerritSourceContext.php +++ /dev/null @@ -1,184 +0,0 @@ -grafeas.v1.GerritSourceContext - */ -class GerritSourceContext extends \Google\Protobuf\Internal\Message -{ - /** - * The URI of a running Gerrit instance. - * - * Generated from protobuf field string host_uri = 1; - */ - protected $host_uri = ''; - /** - * The full project name within the host. Projects may be nested, so - * "project/subproject" is a valid project name. The "repo name" is the - * hostURI/project. - * - * Generated from protobuf field string gerrit_project = 2; - */ - protected $gerrit_project = ''; - protected $revision; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $host_uri - * The URI of a running Gerrit instance. - * @type string $gerrit_project - * The full project name within the host. Projects may be nested, so - * "project/subproject" is a valid project name. The "repo name" is the - * hostURI/project. - * @type string $revision_id - * A revision (commit) ID. - * @type \Grafeas\V1\AliasContext $alias_context - * An alias, which may be a branch or tag. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Provenance::initOnce(); - parent::__construct($data); - } - - /** - * The URI of a running Gerrit instance. - * - * Generated from protobuf field string host_uri = 1; - * @return string - */ - public function getHostUri() - { - return $this->host_uri; - } - - /** - * The URI of a running Gerrit instance. - * - * Generated from protobuf field string host_uri = 1; - * @param string $var - * @return $this - */ - public function setHostUri($var) - { - GPBUtil::checkString($var, True); - $this->host_uri = $var; - - return $this; - } - - /** - * The full project name within the host. Projects may be nested, so - * "project/subproject" is a valid project name. The "repo name" is the - * hostURI/project. - * - * Generated from protobuf field string gerrit_project = 2; - * @return string - */ - public function getGerritProject() - { - return $this->gerrit_project; - } - - /** - * The full project name within the host. Projects may be nested, so - * "project/subproject" is a valid project name. The "repo name" is the - * hostURI/project. - * - * Generated from protobuf field string gerrit_project = 2; - * @param string $var - * @return $this - */ - public function setGerritProject($var) - { - GPBUtil::checkString($var, True); - $this->gerrit_project = $var; - - return $this; - } - - /** - * A revision (commit) ID. - * - * Generated from protobuf field string revision_id = 3; - * @return string - */ - public function getRevisionId() - { - return $this->readOneof(3); - } - - public function hasRevisionId() - { - return $this->hasOneof(3); - } - - /** - * A revision (commit) ID. - * - * Generated from protobuf field string revision_id = 3; - * @param string $var - * @return $this - */ - public function setRevisionId($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * An alias, which may be a branch or tag. - * - * Generated from protobuf field .grafeas.v1.AliasContext alias_context = 4; - * @return \Grafeas\V1\AliasContext|null - */ - public function getAliasContext() - { - return $this->readOneof(4); - } - - public function hasAliasContext() - { - return $this->hasOneof(4); - } - - /** - * An alias, which may be a branch or tag. - * - * Generated from protobuf field .grafeas.v1.AliasContext alias_context = 4; - * @param \Grafeas\V1\AliasContext $var - * @return $this - */ - public function setAliasContext($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\AliasContext::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getRevision() - { - return $this->whichOneof("revision"); - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GetNoteRequest.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GetNoteRequest.php deleted file mode 100644 index 8f653431ea0e..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GetNoteRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -grafeas.v1.GetNoteRequest - */ -class GetNoteRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the note in the form of - * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name The name of the note in the form of - * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. Please see - * {@see GrafeasClient::noteName()} for help formatting this field. - * - * @return \Grafeas\V1\GetNoteRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the note in the form of - * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); - parent::__construct($data); - } - - /** - * The name of the note in the form of - * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the note in the form of - * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GetOccurrenceNoteRequest.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GetOccurrenceNoteRequest.php deleted file mode 100644 index 805395e9fb91..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GetOccurrenceNoteRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -grafeas.v1.GetOccurrenceNoteRequest - */ -class GetOccurrenceNoteRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the occurrence in the form of - * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name The name of the occurrence in the form of - * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. Please see - * {@see GrafeasClient::occurrenceName()} for help formatting this field. - * - * @return \Grafeas\V1\GetOccurrenceNoteRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the occurrence in the form of - * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); - parent::__construct($data); - } - - /** - * The name of the occurrence in the form of - * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the occurrence in the form of - * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GetOccurrenceRequest.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GetOccurrenceRequest.php deleted file mode 100644 index 4e2ef6f3fa04..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GetOccurrenceRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -grafeas.v1.GetOccurrenceRequest - */ -class GetOccurrenceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the occurrence in the form of - * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name The name of the occurrence in the form of - * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. Please see - * {@see GrafeasClient::occurrenceName()} for help formatting this field. - * - * @return \Grafeas\V1\GetOccurrenceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the occurrence in the form of - * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); - parent::__construct($data); - } - - /** - * The name of the occurrence in the form of - * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the occurrence in the form of - * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GitSourceContext.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GitSourceContext.php deleted file mode 100644 index 6eb31ad84fe2..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/GitSourceContext.php +++ /dev/null @@ -1,102 +0,0 @@ -grafeas.v1.GitSourceContext - */ -class GitSourceContext extends \Google\Protobuf\Internal\Message -{ - /** - * Git repository URL. - * - * Generated from protobuf field string url = 1; - */ - protected $url = ''; - /** - * Git commit hash. - * - * Generated from protobuf field string revision_id = 2; - */ - protected $revision_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $url - * Git repository URL. - * @type string $revision_id - * Git commit hash. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Provenance::initOnce(); - parent::__construct($data); - } - - /** - * Git repository URL. - * - * Generated from protobuf field string url = 1; - * @return string - */ - public function getUrl() - { - return $this->url; - } - - /** - * Git repository URL. - * - * Generated from protobuf field string url = 1; - * @param string $var - * @return $this - */ - public function setUrl($var) - { - GPBUtil::checkString($var, True); - $this->url = $var; - - return $this; - } - - /** - * Git commit hash. - * - * Generated from protobuf field string revision_id = 2; - * @return string - */ - public function getRevisionId() - { - return $this->revision_id; - } - - /** - * Git commit hash. - * - * Generated from protobuf field string revision_id = 2; - * @param string $var - * @return $this - */ - public function setRevisionId($var) - { - GPBUtil::checkString($var, True); - $this->revision_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Hash.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Hash.php deleted file mode 100644 index a6f6d1b8ae02..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Hash.php +++ /dev/null @@ -1,101 +0,0 @@ -grafeas.v1.Hash - */ -class Hash extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The type of hash that was performed, e.g. "SHA-256". - * - * Generated from protobuf field string type = 1; - */ - protected $type = ''; - /** - * Required. The hash value. - * - * Generated from protobuf field bytes value = 2; - */ - protected $value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $type - * Required. The type of hash that was performed, e.g. "SHA-256". - * @type string $value - * Required. The hash value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Provenance::initOnce(); - parent::__construct($data); - } - - /** - * Required. The type of hash that was performed, e.g. "SHA-256". - * - * Generated from protobuf field string type = 1; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Required. The type of hash that was performed, e.g. "SHA-256". - * - * Generated from protobuf field string type = 1; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * Required. The hash value. - * - * Generated from protobuf field bytes value = 2; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * Required. The hash value. - * - * Generated from protobuf field bytes value = 2; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, False); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ImageNote.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ImageNote.php deleted file mode 100644 index 661c99087167..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ImageNote.php +++ /dev/null @@ -1,119 +0,0 @@ - - * Or an equivalent reference, e.g., a tag of the resource_url. - * - * Generated from protobuf message grafeas.v1.ImageNote - */ -class ImageNote extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Immutable. The resource_url for the resource representing the - * basis of associated occurrence images. - * - * Generated from protobuf field string resource_url = 1; - */ - protected $resource_url = ''; - /** - * Required. Immutable. The fingerprint of the base image. - * - * Generated from protobuf field .grafeas.v1.Fingerprint fingerprint = 2; - */ - protected $fingerprint = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource_url - * Required. Immutable. The resource_url for the resource representing the - * basis of associated occurrence images. - * @type \Grafeas\V1\Fingerprint $fingerprint - * Required. Immutable. The fingerprint of the base image. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Image::initOnce(); - parent::__construct($data); - } - - /** - * Required. Immutable. The resource_url for the resource representing the - * basis of associated occurrence images. - * - * Generated from protobuf field string resource_url = 1; - * @return string - */ - public function getResourceUrl() - { - return $this->resource_url; - } - - /** - * Required. Immutable. The resource_url for the resource representing the - * basis of associated occurrence images. - * - * Generated from protobuf field string resource_url = 1; - * @param string $var - * @return $this - */ - public function setResourceUrl($var) - { - GPBUtil::checkString($var, True); - $this->resource_url = $var; - - return $this; - } - - /** - * Required. Immutable. The fingerprint of the base image. - * - * Generated from protobuf field .grafeas.v1.Fingerprint fingerprint = 2; - * @return \Grafeas\V1\Fingerprint|null - */ - public function getFingerprint() - { - return $this->fingerprint; - } - - public function hasFingerprint() - { - return isset($this->fingerprint); - } - - public function clearFingerprint() - { - unset($this->fingerprint); - } - - /** - * Required. Immutable. The fingerprint of the base image. - * - * Generated from protobuf field .grafeas.v1.Fingerprint fingerprint = 2; - * @param \Grafeas\V1\Fingerprint $var - * @return $this - */ - public function setFingerprint($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\Fingerprint::class); - $this->fingerprint = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ImageOccurrence.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ImageOccurrence.php deleted file mode 100644 index e6c64fc037e3..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ImageOccurrence.php +++ /dev/null @@ -1,197 +0,0 @@ -. - * - * Generated from protobuf message grafeas.v1.ImageOccurrence - */ -class ImageOccurrence extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The fingerprint of the derived image. - * - * Generated from protobuf field .grafeas.v1.Fingerprint fingerprint = 1; - */ - protected $fingerprint = null; - /** - * Output only. The number of layers by which this image differs from the - * associated image basis. - * - * Generated from protobuf field int32 distance = 2; - */ - protected $distance = 0; - /** - * This contains layer-specific metadata, if populated it has length - * "distance" and is ordered with [distance] being the layer immediately - * following the base image and [1] being the final layer. - * - * Generated from protobuf field repeated .grafeas.v1.Layer layer_info = 3; - */ - private $layer_info; - /** - * Output only. This contains the base image URL for the derived image - * occurrence. - * - * Generated from protobuf field string base_resource_url = 4; - */ - protected $base_resource_url = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Grafeas\V1\Fingerprint $fingerprint - * Required. The fingerprint of the derived image. - * @type int $distance - * Output only. The number of layers by which this image differs from the - * associated image basis. - * @type array<\Grafeas\V1\Layer>|\Google\Protobuf\Internal\RepeatedField $layer_info - * This contains layer-specific metadata, if populated it has length - * "distance" and is ordered with [distance] being the layer immediately - * following the base image and [1] being the final layer. - * @type string $base_resource_url - * Output only. This contains the base image URL for the derived image - * occurrence. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Image::initOnce(); - parent::__construct($data); - } - - /** - * Required. The fingerprint of the derived image. - * - * Generated from protobuf field .grafeas.v1.Fingerprint fingerprint = 1; - * @return \Grafeas\V1\Fingerprint|null - */ - public function getFingerprint() - { - return $this->fingerprint; - } - - public function hasFingerprint() - { - return isset($this->fingerprint); - } - - public function clearFingerprint() - { - unset($this->fingerprint); - } - - /** - * Required. The fingerprint of the derived image. - * - * Generated from protobuf field .grafeas.v1.Fingerprint fingerprint = 1; - * @param \Grafeas\V1\Fingerprint $var - * @return $this - */ - public function setFingerprint($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\Fingerprint::class); - $this->fingerprint = $var; - - return $this; - } - - /** - * Output only. The number of layers by which this image differs from the - * associated image basis. - * - * Generated from protobuf field int32 distance = 2; - * @return int - */ - public function getDistance() - { - return $this->distance; - } - - /** - * Output only. The number of layers by which this image differs from the - * associated image basis. - * - * Generated from protobuf field int32 distance = 2; - * @param int $var - * @return $this - */ - public function setDistance($var) - { - GPBUtil::checkInt32($var); - $this->distance = $var; - - return $this; - } - - /** - * This contains layer-specific metadata, if populated it has length - * "distance" and is ordered with [distance] being the layer immediately - * following the base image and [1] being the final layer. - * - * Generated from protobuf field repeated .grafeas.v1.Layer layer_info = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLayerInfo() - { - return $this->layer_info; - } - - /** - * This contains layer-specific metadata, if populated it has length - * "distance" and is ordered with [distance] being the layer immediately - * following the base image and [1] being the final layer. - * - * Generated from protobuf field repeated .grafeas.v1.Layer layer_info = 3; - * @param array<\Grafeas\V1\Layer>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLayerInfo($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Layer::class); - $this->layer_info = $arr; - - return $this; - } - - /** - * Output only. This contains the base image URL for the derived image - * occurrence. - * - * Generated from protobuf field string base_resource_url = 4; - * @return string - */ - public function getBaseResourceUrl() - { - return $this->base_resource_url; - } - - /** - * Output only. This contains the base image URL for the derived image - * occurrence. - * - * Generated from protobuf field string base_resource_url = 4; - * @param string $var - * @return $this - */ - public function setBaseResourceUrl($var) - { - GPBUtil::checkString($var, True); - $this->base_resource_url = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoProvenance.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoProvenance.php deleted file mode 100644 index 74cc83a629ce..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoProvenance.php +++ /dev/null @@ -1,214 +0,0 @@ -grafeas.v1.InTotoProvenance - */ -class InTotoProvenance extends \Google\Protobuf\Internal\Message -{ - /** - * required - * - * Generated from protobuf field .grafeas.v1.BuilderConfig builder_config = 1; - */ - protected $builder_config = null; - /** - * Identifies the configuration used for the build. - * When combined with materials, this SHOULD fully describe the build, - * such that re-running this recipe results in bit-for-bit identical output - * (if the build is reproducible). - * - * Generated from protobuf field .grafeas.v1.Recipe recipe = 2; - */ - protected $recipe = null; - /** - * Generated from protobuf field .grafeas.v1.Metadata metadata = 3; - */ - protected $metadata = null; - /** - * The collection of artifacts that influenced the build including sources, - * dependencies, build tools, base images, and so on. This is considered to be - * incomplete unless metadata.completeness.materials is true. Unset or null is - * equivalent to empty. - * - * Generated from protobuf field repeated string materials = 4; - */ - private $materials; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Grafeas\V1\BuilderConfig $builder_config - * required - * @type \Grafeas\V1\Recipe $recipe - * Identifies the configuration used for the build. - * When combined with materials, this SHOULD fully describe the build, - * such that re-running this recipe results in bit-for-bit identical output - * (if the build is reproducible). - * @type \Grafeas\V1\Metadata $metadata - * @type array|\Google\Protobuf\Internal\RepeatedField $materials - * The collection of artifacts that influenced the build including sources, - * dependencies, build tools, base images, and so on. This is considered to be - * incomplete unless metadata.completeness.materials is true. Unset or null is - * equivalent to empty. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\IntotoProvenance::initOnce(); - parent::__construct($data); - } - - /** - * required - * - * Generated from protobuf field .grafeas.v1.BuilderConfig builder_config = 1; - * @return \Grafeas\V1\BuilderConfig|null - */ - public function getBuilderConfig() - { - return $this->builder_config; - } - - public function hasBuilderConfig() - { - return isset($this->builder_config); - } - - public function clearBuilderConfig() - { - unset($this->builder_config); - } - - /** - * required - * - * Generated from protobuf field .grafeas.v1.BuilderConfig builder_config = 1; - * @param \Grafeas\V1\BuilderConfig $var - * @return $this - */ - public function setBuilderConfig($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\BuilderConfig::class); - $this->builder_config = $var; - - return $this; - } - - /** - * Identifies the configuration used for the build. - * When combined with materials, this SHOULD fully describe the build, - * such that re-running this recipe results in bit-for-bit identical output - * (if the build is reproducible). - * - * Generated from protobuf field .grafeas.v1.Recipe recipe = 2; - * @return \Grafeas\V1\Recipe|null - */ - public function getRecipe() - { - return $this->recipe; - } - - public function hasRecipe() - { - return isset($this->recipe); - } - - public function clearRecipe() - { - unset($this->recipe); - } - - /** - * Identifies the configuration used for the build. - * When combined with materials, this SHOULD fully describe the build, - * such that re-running this recipe results in bit-for-bit identical output - * (if the build is reproducible). - * - * Generated from protobuf field .grafeas.v1.Recipe recipe = 2; - * @param \Grafeas\V1\Recipe $var - * @return $this - */ - public function setRecipe($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\Recipe::class); - $this->recipe = $var; - - return $this; - } - - /** - * Generated from protobuf field .grafeas.v1.Metadata metadata = 3; - * @return \Grafeas\V1\Metadata|null - */ - public function getMetadata() - { - return $this->metadata; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * Generated from protobuf field .grafeas.v1.Metadata metadata = 3; - * @param \Grafeas\V1\Metadata $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\Metadata::class); - $this->metadata = $var; - - return $this; - } - - /** - * The collection of artifacts that influenced the build including sources, - * dependencies, build tools, base images, and so on. This is considered to be - * incomplete unless metadata.completeness.materials is true. Unset or null is - * equivalent to empty. - * - * Generated from protobuf field repeated string materials = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMaterials() - { - return $this->materials; - } - - /** - * The collection of artifacts that influenced the build including sources, - * dependencies, build tools, base images, and so on. This is considered to be - * incomplete unless metadata.completeness.materials is true. Unset or null is - * equivalent to empty. - * - * Generated from protobuf field repeated string materials = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMaterials($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->materials = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1.php deleted file mode 100644 index b29b231a5bd5..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1.php +++ /dev/null @@ -1,160 +0,0 @@ -grafeas.v1.InTotoSlsaProvenanceV1 - */ -class InTotoSlsaProvenanceV1 extends \Google\Protobuf\Internal\Message -{ - /** - * InToto spec defined at - * https://github.com/in-toto/attestation/tree/main/spec#statement - * - * Generated from protobuf field string type = 1 [json_name = "_type"]; - */ - protected $type = ''; - /** - * Generated from protobuf field repeated .grafeas.v1.Subject subject = 2; - */ - private $subject; - /** - * Generated from protobuf field string predicate_type = 3; - */ - protected $predicate_type = ''; - /** - * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1.SlsaProvenanceV1 predicate = 4; - */ - protected $predicate = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $type - * InToto spec defined at - * https://github.com/in-toto/attestation/tree/main/spec#statement - * @type array<\Grafeas\V1\Subject>|\Google\Protobuf\Internal\RepeatedField $subject - * @type string $predicate_type - * @type \Grafeas\V1\InTotoSlsaProvenanceV1\SlsaProvenanceV1 $predicate - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\IntotoStatement::initOnce(); - parent::__construct($data); - } - - /** - * InToto spec defined at - * https://github.com/in-toto/attestation/tree/main/spec#statement - * - * Generated from protobuf field string type = 1 [json_name = "_type"]; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * InToto spec defined at - * https://github.com/in-toto/attestation/tree/main/spec#statement - * - * Generated from protobuf field string type = 1 [json_name = "_type"]; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * Generated from protobuf field repeated .grafeas.v1.Subject subject = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSubject() - { - return $this->subject; - } - - /** - * Generated from protobuf field repeated .grafeas.v1.Subject subject = 2; - * @param array<\Grafeas\V1\Subject>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSubject($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Subject::class); - $this->subject = $arr; - - return $this; - } - - /** - * Generated from protobuf field string predicate_type = 3; - * @return string - */ - public function getPredicateType() - { - return $this->predicate_type; - } - - /** - * Generated from protobuf field string predicate_type = 3; - * @param string $var - * @return $this - */ - public function setPredicateType($var) - { - GPBUtil::checkString($var, True); - $this->predicate_type = $var; - - return $this; - } - - /** - * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1.SlsaProvenanceV1 predicate = 4; - * @return \Grafeas\V1\InTotoSlsaProvenanceV1\SlsaProvenanceV1|null - */ - public function getPredicate() - { - return $this->predicate; - } - - public function hasPredicate() - { - return isset($this->predicate); - } - - public function clearPredicate() - { - unset($this->predicate); - } - - /** - * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1.SlsaProvenanceV1 predicate = 4; - * @param \Grafeas\V1\InTotoSlsaProvenanceV1\SlsaProvenanceV1 $var - * @return $this - */ - public function setPredicate($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\InTotoSlsaProvenanceV1\SlsaProvenanceV1::class); - $this->predicate = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/BuildDefinition.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/BuildDefinition.php deleted file mode 100644 index ec7740b90bf2..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/BuildDefinition.php +++ /dev/null @@ -1,162 +0,0 @@ -grafeas.v1.InTotoSlsaProvenanceV1.BuildDefinition - */ -class BuildDefinition extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string build_type = 1; - */ - protected $build_type = ''; - /** - * Generated from protobuf field .google.protobuf.Struct external_parameters = 2; - */ - protected $external_parameters = null; - /** - * Generated from protobuf field .google.protobuf.Struct internal_parameters = 3; - */ - protected $internal_parameters = null; - /** - * Generated from protobuf field repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor resolved_dependencies = 4; - */ - private $resolved_dependencies; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $build_type - * @type \Google\Protobuf\Struct $external_parameters - * @type \Google\Protobuf\Struct $internal_parameters - * @type array<\Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor>|\Google\Protobuf\Internal\RepeatedField $resolved_dependencies - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\IntotoStatement::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field string build_type = 1; - * @return string - */ - public function getBuildType() - { - return $this->build_type; - } - - /** - * Generated from protobuf field string build_type = 1; - * @param string $var - * @return $this - */ - public function setBuildType($var) - { - GPBUtil::checkString($var, True); - $this->build_type = $var; - - return $this; - } - - /** - * Generated from protobuf field .google.protobuf.Struct external_parameters = 2; - * @return \Google\Protobuf\Struct|null - */ - public function getExternalParameters() - { - return $this->external_parameters; - } - - public function hasExternalParameters() - { - return isset($this->external_parameters); - } - - public function clearExternalParameters() - { - unset($this->external_parameters); - } - - /** - * Generated from protobuf field .google.protobuf.Struct external_parameters = 2; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setExternalParameters($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->external_parameters = $var; - - return $this; - } - - /** - * Generated from protobuf field .google.protobuf.Struct internal_parameters = 3; - * @return \Google\Protobuf\Struct|null - */ - public function getInternalParameters() - { - return $this->internal_parameters; - } - - public function hasInternalParameters() - { - return isset($this->internal_parameters); - } - - public function clearInternalParameters() - { - unset($this->internal_parameters); - } - - /** - * Generated from protobuf field .google.protobuf.Struct internal_parameters = 3; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setInternalParameters($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->internal_parameters = $var; - - return $this; - } - - /** - * Generated from protobuf field repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor resolved_dependencies = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResolvedDependencies() - { - return $this->resolved_dependencies; - } - - /** - * Generated from protobuf field repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor resolved_dependencies = 4; - * @param array<\Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResolvedDependencies($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor::class); - $this->resolved_dependencies = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BuildDefinition::class, \Grafeas\V1\InTotoSlsaProvenanceV1_BuildDefinition::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/BuildMetadata.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/BuildMetadata.php deleted file mode 100644 index 0ae282c633b5..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/BuildMetadata.php +++ /dev/null @@ -1,135 +0,0 @@ -grafeas.v1.InTotoSlsaProvenanceV1.BuildMetadata - */ -class BuildMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string invocation_id = 1; - */ - protected $invocation_id = ''; - /** - * Generated from protobuf field .google.protobuf.Timestamp started_on = 2; - */ - protected $started_on = null; - /** - * Generated from protobuf field .google.protobuf.Timestamp finished_on = 3; - */ - protected $finished_on = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $invocation_id - * @type \Google\Protobuf\Timestamp $started_on - * @type \Google\Protobuf\Timestamp $finished_on - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\IntotoStatement::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field string invocation_id = 1; - * @return string - */ - public function getInvocationId() - { - return $this->invocation_id; - } - - /** - * Generated from protobuf field string invocation_id = 1; - * @param string $var - * @return $this - */ - public function setInvocationId($var) - { - GPBUtil::checkString($var, True); - $this->invocation_id = $var; - - return $this; - } - - /** - * Generated from protobuf field .google.protobuf.Timestamp started_on = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartedOn() - { - return $this->started_on; - } - - public function hasStartedOn() - { - return isset($this->started_on); - } - - public function clearStartedOn() - { - unset($this->started_on); - } - - /** - * Generated from protobuf field .google.protobuf.Timestamp started_on = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartedOn($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->started_on = $var; - - return $this; - } - - /** - * Generated from protobuf field .google.protobuf.Timestamp finished_on = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getFinishedOn() - { - return $this->finished_on; - } - - public function hasFinishedOn() - { - return isset($this->finished_on); - } - - public function clearFinishedOn() - { - unset($this->finished_on); - } - - /** - * Generated from protobuf field .google.protobuf.Timestamp finished_on = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setFinishedOn($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->finished_on = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BuildMetadata::class, \Grafeas\V1\InTotoSlsaProvenanceV1_BuildMetadata::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/ProvenanceBuilder.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/ProvenanceBuilder.php deleted file mode 100644 index 7f713fb9b0e6..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/ProvenanceBuilder.php +++ /dev/null @@ -1,115 +0,0 @@ -grafeas.v1.InTotoSlsaProvenanceV1.ProvenanceBuilder - */ -class ProvenanceBuilder extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Generated from protobuf field map version = 2; - */ - private $version; - /** - * Generated from protobuf field repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor builder_dependencies = 3; - */ - private $builder_dependencies; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * @type array|\Google\Protobuf\Internal\MapField $version - * @type array<\Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor>|\Google\Protobuf\Internal\RepeatedField $builder_dependencies - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\IntotoStatement::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Generated from protobuf field map version = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getVersion() - { - return $this->version; - } - - /** - * Generated from protobuf field map version = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setVersion($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->version = $arr; - - return $this; - } - - /** - * Generated from protobuf field repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor builder_dependencies = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBuilderDependencies() - { - return $this->builder_dependencies; - } - - /** - * Generated from protobuf field repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor builder_dependencies = 3; - * @param array<\Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBuilderDependencies($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor::class); - $this->builder_dependencies = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ProvenanceBuilder::class, \Grafeas\V1\InTotoSlsaProvenanceV1_ProvenanceBuilder::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/ResourceDescriptor.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/ResourceDescriptor.php deleted file mode 100644 index 2f5a9ebacdf5..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/ResourceDescriptor.php +++ /dev/null @@ -1,223 +0,0 @@ -grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor - */ -class ResourceDescriptor extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Generated from protobuf field string uri = 2; - */ - protected $uri = ''; - /** - * Generated from protobuf field map digest = 3; - */ - private $digest; - /** - * Generated from protobuf field bytes content = 4; - */ - protected $content = ''; - /** - * Generated from protobuf field string download_location = 5; - */ - protected $download_location = ''; - /** - * Generated from protobuf field string media_type = 6; - */ - protected $media_type = ''; - /** - * Generated from protobuf field map annotations = 7; - */ - private $annotations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * @type string $uri - * @type array|\Google\Protobuf\Internal\MapField $digest - * @type string $content - * @type string $download_location - * @type string $media_type - * @type array|\Google\Protobuf\Internal\MapField $annotations - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\IntotoStatement::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Generated from protobuf field string uri = 2; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * Generated from protobuf field string uri = 2; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * Generated from protobuf field map digest = 3; - * @return \Google\Protobuf\Internal\MapField - */ - public function getDigest() - { - return $this->digest; - } - - /** - * Generated from protobuf field map digest = 3; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setDigest($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->digest = $arr; - - return $this; - } - - /** - * Generated from protobuf field bytes content = 4; - * @return string - */ - public function getContent() - { - return $this->content; - } - - /** - * Generated from protobuf field bytes content = 4; - * @param string $var - * @return $this - */ - public function setContent($var) - { - GPBUtil::checkString($var, False); - $this->content = $var; - - return $this; - } - - /** - * Generated from protobuf field string download_location = 5; - * @return string - */ - public function getDownloadLocation() - { - return $this->download_location; - } - - /** - * Generated from protobuf field string download_location = 5; - * @param string $var - * @return $this - */ - public function setDownloadLocation($var) - { - GPBUtil::checkString($var, True); - $this->download_location = $var; - - return $this; - } - - /** - * Generated from protobuf field string media_type = 6; - * @return string - */ - public function getMediaType() - { - return $this->media_type; - } - - /** - * Generated from protobuf field string media_type = 6; - * @param string $var - * @return $this - */ - public function setMediaType($var) - { - GPBUtil::checkString($var, True); - $this->media_type = $var; - - return $this; - } - - /** - * Generated from protobuf field map annotations = 7; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Generated from protobuf field map annotations = 7; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Value::class); - $this->annotations = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ResourceDescriptor::class, \Grafeas\V1\InTotoSlsaProvenanceV1_ResourceDescriptor::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/RunDetails.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/RunDetails.php deleted file mode 100644 index 4bf240af3bf3..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/RunDetails.php +++ /dev/null @@ -1,135 +0,0 @@ -grafeas.v1.InTotoSlsaProvenanceV1.RunDetails - */ -class RunDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1.ProvenanceBuilder builder = 1; - */ - protected $builder = null; - /** - * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1.BuildMetadata metadata = 2; - */ - protected $metadata = null; - /** - * Generated from protobuf field repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor byproducts = 3; - */ - private $byproducts; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Grafeas\V1\InTotoSlsaProvenanceV1\ProvenanceBuilder $builder - * @type \Grafeas\V1\InTotoSlsaProvenanceV1\BuildMetadata $metadata - * @type array<\Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor>|\Google\Protobuf\Internal\RepeatedField $byproducts - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\IntotoStatement::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1.ProvenanceBuilder builder = 1; - * @return \Grafeas\V1\InTotoSlsaProvenanceV1\ProvenanceBuilder|null - */ - public function getBuilder() - { - return $this->builder; - } - - public function hasBuilder() - { - return isset($this->builder); - } - - public function clearBuilder() - { - unset($this->builder); - } - - /** - * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1.ProvenanceBuilder builder = 1; - * @param \Grafeas\V1\InTotoSlsaProvenanceV1\ProvenanceBuilder $var - * @return $this - */ - public function setBuilder($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\InTotoSlsaProvenanceV1\ProvenanceBuilder::class); - $this->builder = $var; - - return $this; - } - - /** - * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1.BuildMetadata metadata = 2; - * @return \Grafeas\V1\InTotoSlsaProvenanceV1\BuildMetadata|null - */ - public function getMetadata() - { - return $this->metadata; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1.BuildMetadata metadata = 2; - * @param \Grafeas\V1\InTotoSlsaProvenanceV1\BuildMetadata $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\InTotoSlsaProvenanceV1\BuildMetadata::class); - $this->metadata = $var; - - return $this; - } - - /** - * Generated from protobuf field repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor byproducts = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getByproducts() - { - return $this->byproducts; - } - - /** - * Generated from protobuf field repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor byproducts = 3; - * @param array<\Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setByproducts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor::class); - $this->byproducts = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RunDetails::class, \Grafeas\V1\InTotoSlsaProvenanceV1_RunDetails::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/SlsaProvenanceV1.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/SlsaProvenanceV1.php deleted file mode 100644 index 12c8f2ba7cef..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/SlsaProvenanceV1.php +++ /dev/null @@ -1,112 +0,0 @@ -grafeas.v1.InTotoSlsaProvenanceV1.SlsaProvenanceV1 - */ -class SlsaProvenanceV1 extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1.BuildDefinition build_definition = 1; - */ - protected $build_definition = null; - /** - * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1.RunDetails run_details = 2; - */ - protected $run_details = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Grafeas\V1\InTotoSlsaProvenanceV1\BuildDefinition $build_definition - * @type \Grafeas\V1\InTotoSlsaProvenanceV1\RunDetails $run_details - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\IntotoStatement::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1.BuildDefinition build_definition = 1; - * @return \Grafeas\V1\InTotoSlsaProvenanceV1\BuildDefinition|null - */ - public function getBuildDefinition() - { - return $this->build_definition; - } - - public function hasBuildDefinition() - { - return isset($this->build_definition); - } - - public function clearBuildDefinition() - { - unset($this->build_definition); - } - - /** - * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1.BuildDefinition build_definition = 1; - * @param \Grafeas\V1\InTotoSlsaProvenanceV1\BuildDefinition $var - * @return $this - */ - public function setBuildDefinition($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\InTotoSlsaProvenanceV1\BuildDefinition::class); - $this->build_definition = $var; - - return $this; - } - - /** - * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1.RunDetails run_details = 2; - * @return \Grafeas\V1\InTotoSlsaProvenanceV1\RunDetails|null - */ - public function getRunDetails() - { - return $this->run_details; - } - - public function hasRunDetails() - { - return isset($this->run_details); - } - - public function clearRunDetails() - { - unset($this->run_details); - } - - /** - * Generated from protobuf field .grafeas.v1.InTotoSlsaProvenanceV1.RunDetails run_details = 2; - * @param \Grafeas\V1\InTotoSlsaProvenanceV1\RunDetails $var - * @return $this - */ - public function setRunDetails($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\InTotoSlsaProvenanceV1\RunDetails::class); - $this->run_details = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SlsaProvenanceV1::class, \Grafeas\V1\InTotoSlsaProvenanceV1_SlsaProvenanceV1::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoStatement.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoStatement.php deleted file mode 100644 index 93a86b0dd503..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoStatement.php +++ /dev/null @@ -1,224 +0,0 @@ -grafeas.v1.InTotoStatement - */ -class InTotoStatement extends \Google\Protobuf\Internal\Message -{ - /** - * Always `https://in-toto.io/Statement/v0.1`. - * - * Generated from protobuf field string type = 1 [json_name = "_type"]; - */ - protected $type = ''; - /** - * Generated from protobuf field repeated .grafeas.v1.Subject subject = 2; - */ - private $subject; - /** - * `https://slsa.dev/provenance/v0.1` for SlsaProvenance. - * - * Generated from protobuf field string predicate_type = 3; - */ - protected $predicate_type = ''; - protected $predicate; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $type - * Always `https://in-toto.io/Statement/v0.1`. - * @type array<\Grafeas\V1\Subject>|\Google\Protobuf\Internal\RepeatedField $subject - * @type string $predicate_type - * `https://slsa.dev/provenance/v0.1` for SlsaProvenance. - * @type \Grafeas\V1\InTotoProvenance $provenance - * @type \Grafeas\V1\SlsaProvenance $slsa_provenance - * @type \Grafeas\V1\SlsaProvenanceZeroTwo $slsa_provenance_zero_two - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\IntotoStatement::initOnce(); - parent::__construct($data); - } - - /** - * Always `https://in-toto.io/Statement/v0.1`. - * - * Generated from protobuf field string type = 1 [json_name = "_type"]; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Always `https://in-toto.io/Statement/v0.1`. - * - * Generated from protobuf field string type = 1 [json_name = "_type"]; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * Generated from protobuf field repeated .grafeas.v1.Subject subject = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSubject() - { - return $this->subject; - } - - /** - * Generated from protobuf field repeated .grafeas.v1.Subject subject = 2; - * @param array<\Grafeas\V1\Subject>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSubject($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Subject::class); - $this->subject = $arr; - - return $this; - } - - /** - * `https://slsa.dev/provenance/v0.1` for SlsaProvenance. - * - * Generated from protobuf field string predicate_type = 3; - * @return string - */ - public function getPredicateType() - { - return $this->predicate_type; - } - - /** - * `https://slsa.dev/provenance/v0.1` for SlsaProvenance. - * - * Generated from protobuf field string predicate_type = 3; - * @param string $var - * @return $this - */ - public function setPredicateType($var) - { - GPBUtil::checkString($var, True); - $this->predicate_type = $var; - - return $this; - } - - /** - * Generated from protobuf field .grafeas.v1.InTotoProvenance provenance = 4; - * @return \Grafeas\V1\InTotoProvenance|null - */ - public function getProvenance() - { - return $this->readOneof(4); - } - - public function hasProvenance() - { - return $this->hasOneof(4); - } - - /** - * Generated from protobuf field .grafeas.v1.InTotoProvenance provenance = 4; - * @param \Grafeas\V1\InTotoProvenance $var - * @return $this - */ - public function setProvenance($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\InTotoProvenance::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Generated from protobuf field .grafeas.v1.SlsaProvenance slsa_provenance = 5; - * @return \Grafeas\V1\SlsaProvenance|null - */ - public function getSlsaProvenance() - { - return $this->readOneof(5); - } - - public function hasSlsaProvenance() - { - return $this->hasOneof(5); - } - - /** - * Generated from protobuf field .grafeas.v1.SlsaProvenance slsa_provenance = 5; - * @param \Grafeas\V1\SlsaProvenance $var - * @return $this - */ - public function setSlsaProvenance($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\SlsaProvenance::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo slsa_provenance_zero_two = 6; - * @return \Grafeas\V1\SlsaProvenanceZeroTwo|null - */ - public function getSlsaProvenanceZeroTwo() - { - return $this->readOneof(6); - } - - public function hasSlsaProvenanceZeroTwo() - { - return $this->hasOneof(6); - } - - /** - * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo slsa_provenance_zero_two = 6; - * @param \Grafeas\V1\SlsaProvenanceZeroTwo $var - * @return $this - */ - public function setSlsaProvenanceZeroTwo($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\SlsaProvenanceZeroTwo::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * @return string - */ - public function getPredicate() - { - return $this->whichOneof("predicate"); - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Jwt.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Jwt.php deleted file mode 100644 index 3b9e9a5ece42..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Jwt.php +++ /dev/null @@ -1,73 +0,0 @@ -grafeas.v1.Jwt - */ -class Jwt extends \Google\Protobuf\Internal\Message -{ - /** - * The compact encoding of a JWS, which is always three base64 encoded strings - * joined by periods. For details, see: - * https://tools.ietf.org/html/rfc7515.html#section-3.1 - * - * Generated from protobuf field string compact_jwt = 1; - */ - protected $compact_jwt = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $compact_jwt - * The compact encoding of a JWS, which is always three base64 encoded strings - * joined by periods. For details, see: - * https://tools.ietf.org/html/rfc7515.html#section-3.1 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Attestation::initOnce(); - parent::__construct($data); - } - - /** - * The compact encoding of a JWS, which is always three base64 encoded strings - * joined by periods. For details, see: - * https://tools.ietf.org/html/rfc7515.html#section-3.1 - * - * Generated from protobuf field string compact_jwt = 1; - * @return string - */ - public function getCompactJwt() - { - return $this->compact_jwt; - } - - /** - * The compact encoding of a JWS, which is always three base64 encoded strings - * joined by periods. For details, see: - * https://tools.ietf.org/html/rfc7515.html#section-3.1 - * - * Generated from protobuf field string compact_jwt = 1; - * @param string $var - * @return $this - */ - public function setCompactJwt($var) - { - GPBUtil::checkString($var, True); - $this->compact_jwt = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Layer.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Layer.php deleted file mode 100644 index 429ce63f2c3a..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Layer.php +++ /dev/null @@ -1,105 +0,0 @@ -grafeas.v1.Layer - */ -class Layer extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The recovered Dockerfile directive used to construct this layer. - * See https://docs.docker.com/engine/reference/builder/ for more information. - * - * Generated from protobuf field string directive = 1; - */ - protected $directive = ''; - /** - * The recovered arguments to the Dockerfile directive. - * - * Generated from protobuf field string arguments = 2; - */ - protected $arguments = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $directive - * Required. The recovered Dockerfile directive used to construct this layer. - * See https://docs.docker.com/engine/reference/builder/ for more information. - * @type string $arguments - * The recovered arguments to the Dockerfile directive. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Image::initOnce(); - parent::__construct($data); - } - - /** - * Required. The recovered Dockerfile directive used to construct this layer. - * See https://docs.docker.com/engine/reference/builder/ for more information. - * - * Generated from protobuf field string directive = 1; - * @return string - */ - public function getDirective() - { - return $this->directive; - } - - /** - * Required. The recovered Dockerfile directive used to construct this layer. - * See https://docs.docker.com/engine/reference/builder/ for more information. - * - * Generated from protobuf field string directive = 1; - * @param string $var - * @return $this - */ - public function setDirective($var) - { - GPBUtil::checkString($var, True); - $this->directive = $var; - - return $this; - } - - /** - * The recovered arguments to the Dockerfile directive. - * - * Generated from protobuf field string arguments = 2; - * @return string - */ - public function getArguments() - { - return $this->arguments; - } - - /** - * The recovered arguments to the Dockerfile directive. - * - * Generated from protobuf field string arguments = 2; - * @param string $var - * @return $this - */ - public function setArguments($var) - { - GPBUtil::checkString($var, True); - $this->arguments = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/LayerDetails.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/LayerDetails.php deleted file mode 100644 index 77d439a39052..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/LayerDetails.php +++ /dev/null @@ -1,211 +0,0 @@ -grafeas.v1.LayerDetails - */ -class LayerDetails extends \Google\Protobuf\Internal\Message -{ - /** - * The index of the layer in the container image. - * - * Generated from protobuf field int32 index = 1; - */ - protected $index = 0; - /** - * The diff ID (typically a sha256 hash) of the layer in the container image. - * - * Generated from protobuf field string diff_id = 2; - */ - protected $diff_id = ''; - /** - * The layer chain ID (sha256 hash) of the layer in the container image. - * https://github.com/opencontainers/image-spec/blob/main/config.md#layer-chainid - * - * Generated from protobuf field string chain_id = 5; - */ - protected $chain_id = ''; - /** - * The layer build command that was used to build the layer. This may not be - * found in all layers depending on how the container image is built. - * - * Generated from protobuf field string command = 3; - */ - protected $command = ''; - /** - * The base images the layer is found within. - * - * Generated from protobuf field repeated .grafeas.v1.BaseImage base_images = 4; - */ - private $base_images; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $index - * The index of the layer in the container image. - * @type string $diff_id - * The diff ID (typically a sha256 hash) of the layer in the container image. - * @type string $chain_id - * The layer chain ID (sha256 hash) of the layer in the container image. - * https://github.com/opencontainers/image-spec/blob/main/config.md#layer-chainid - * @type string $command - * The layer build command that was used to build the layer. This may not be - * found in all layers depending on how the container image is built. - * @type array<\Grafeas\V1\BaseImage>|\Google\Protobuf\Internal\RepeatedField $base_images - * The base images the layer is found within. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Common::initOnce(); - parent::__construct($data); - } - - /** - * The index of the layer in the container image. - * - * Generated from protobuf field int32 index = 1; - * @return int - */ - public function getIndex() - { - return $this->index; - } - - /** - * The index of the layer in the container image. - * - * Generated from protobuf field int32 index = 1; - * @param int $var - * @return $this - */ - public function setIndex($var) - { - GPBUtil::checkInt32($var); - $this->index = $var; - - return $this; - } - - /** - * The diff ID (typically a sha256 hash) of the layer in the container image. - * - * Generated from protobuf field string diff_id = 2; - * @return string - */ - public function getDiffId() - { - return $this->diff_id; - } - - /** - * The diff ID (typically a sha256 hash) of the layer in the container image. - * - * Generated from protobuf field string diff_id = 2; - * @param string $var - * @return $this - */ - public function setDiffId($var) - { - GPBUtil::checkString($var, True); - $this->diff_id = $var; - - return $this; - } - - /** - * The layer chain ID (sha256 hash) of the layer in the container image. - * https://github.com/opencontainers/image-spec/blob/main/config.md#layer-chainid - * - * Generated from protobuf field string chain_id = 5; - * @return string - */ - public function getChainId() - { - return $this->chain_id; - } - - /** - * The layer chain ID (sha256 hash) of the layer in the container image. - * https://github.com/opencontainers/image-spec/blob/main/config.md#layer-chainid - * - * Generated from protobuf field string chain_id = 5; - * @param string $var - * @return $this - */ - public function setChainId($var) - { - GPBUtil::checkString($var, True); - $this->chain_id = $var; - - return $this; - } - - /** - * The layer build command that was used to build the layer. This may not be - * found in all layers depending on how the container image is built. - * - * Generated from protobuf field string command = 3; - * @return string - */ - public function getCommand() - { - return $this->command; - } - - /** - * The layer build command that was used to build the layer. This may not be - * found in all layers depending on how the container image is built. - * - * Generated from protobuf field string command = 3; - * @param string $var - * @return $this - */ - public function setCommand($var) - { - GPBUtil::checkString($var, True); - $this->command = $var; - - return $this; - } - - /** - * The base images the layer is found within. - * - * Generated from protobuf field repeated .grafeas.v1.BaseImage base_images = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBaseImages() - { - return $this->base_images; - } - - /** - * The base images the layer is found within. - * - * Generated from protobuf field repeated .grafeas.v1.BaseImage base_images = 4; - * @param array<\Grafeas\V1\BaseImage>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBaseImages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\BaseImage::class); - $this->base_images = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/License.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/License.php deleted file mode 100644 index cf2409f0739f..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/License.php +++ /dev/null @@ -1,117 +0,0 @@ -grafeas.v1.License - */ -class License extends \Google\Protobuf\Internal\Message -{ - /** - * Often a single license can be used to represent the licensing terms. - * Sometimes it is necessary to include a choice of one or more licenses - * or some combination of license identifiers. - * Examples: "LGPL-2.1-only OR MIT", "LGPL-2.1-only AND MIT", - * "GPL-2.0-or-later WITH Bison-exception-2.2". - * - * Generated from protobuf field string expression = 1; - */ - protected $expression = ''; - /** - * Comments - * - * Generated from protobuf field string comments = 2; - */ - protected $comments = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $expression - * Often a single license can be used to represent the licensing terms. - * Sometimes it is necessary to include a choice of one or more licenses - * or some combination of license identifiers. - * Examples: "LGPL-2.1-only OR MIT", "LGPL-2.1-only AND MIT", - * "GPL-2.0-or-later WITH Bison-exception-2.2". - * @type string $comments - * Comments - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Common::initOnce(); - parent::__construct($data); - } - - /** - * Often a single license can be used to represent the licensing terms. - * Sometimes it is necessary to include a choice of one or more licenses - * or some combination of license identifiers. - * Examples: "LGPL-2.1-only OR MIT", "LGPL-2.1-only AND MIT", - * "GPL-2.0-or-later WITH Bison-exception-2.2". - * - * Generated from protobuf field string expression = 1; - * @return string - */ - public function getExpression() - { - return $this->expression; - } - - /** - * Often a single license can be used to represent the licensing terms. - * Sometimes it is necessary to include a choice of one or more licenses - * or some combination of license identifiers. - * Examples: "LGPL-2.1-only OR MIT", "LGPL-2.1-only AND MIT", - * "GPL-2.0-or-later WITH Bison-exception-2.2". - * - * Generated from protobuf field string expression = 1; - * @param string $var - * @return $this - */ - public function setExpression($var) - { - GPBUtil::checkString($var, True); - $this->expression = $var; - - return $this; - } - - /** - * Comments - * - * Generated from protobuf field string comments = 2; - * @return string - */ - public function getComments() - { - return $this->comments; - } - - /** - * Comments - * - * Generated from protobuf field string comments = 2; - * @param string $var - * @return $this - */ - public function setComments($var) - { - GPBUtil::checkString($var, True); - $this->comments = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNoteOccurrencesRequest.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNoteOccurrencesRequest.php deleted file mode 100644 index 2a854147766a..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNoteOccurrencesRequest.php +++ /dev/null @@ -1,190 +0,0 @@ -grafeas.v1.ListNoteOccurrencesRequest - */ -class ListNoteOccurrencesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the note to list occurrences for in the form of - * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * The filter expression. - * - * Generated from protobuf field string filter = 2; - */ - protected $filter = ''; - /** - * Number of occurrences to return in the list. - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * Token to provide to skip to a particular spot in the list. - * - * Generated from protobuf field string page_token = 4; - */ - protected $page_token = ''; - - /** - * @param string $name The name of the note to list occurrences for in the form of - * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. Please see - * {@see GrafeasClient::noteName()} for help formatting this field. - * @param string $filter The filter expression. - * - * @return \Grafeas\V1\ListNoteOccurrencesRequest - * - * @experimental - */ - public static function build(string $name, string $filter): self - { - return (new self()) - ->setName($name) - ->setFilter($filter); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the note to list occurrences for in the form of - * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. - * @type string $filter - * The filter expression. - * @type int $page_size - * Number of occurrences to return in the list. - * @type string $page_token - * Token to provide to skip to a particular spot in the list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); - parent::__construct($data); - } - - /** - * The name of the note to list occurrences for in the form of - * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the note to list occurrences for in the form of - * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The filter expression. - * - * Generated from protobuf field string filter = 2; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * The filter expression. - * - * Generated from protobuf field string filter = 2; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Number of occurrences to return in the list. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Number of occurrences to return in the list. - * - * Generated from protobuf field int32 page_size = 3; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Token to provide to skip to a particular spot in the list. - * - * Generated from protobuf field string page_token = 4; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Token to provide to skip to a particular spot in the list. - * - * Generated from protobuf field string page_token = 4; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNoteOccurrencesResponse.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNoteOccurrencesResponse.php deleted file mode 100644 index d76a8a59df99..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNoteOccurrencesResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -grafeas.v1.ListNoteOccurrencesResponse - */ -class ListNoteOccurrencesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The occurrences attached to the specified note. - * - * Generated from protobuf field repeated .grafeas.v1.Occurrence occurrences = 1; - */ - private $occurrences; - /** - * Token to provide to skip to a particular spot in the list. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Grafeas\V1\Occurrence>|\Google\Protobuf\Internal\RepeatedField $occurrences - * The occurrences attached to the specified note. - * @type string $next_page_token - * Token to provide to skip to a particular spot in the list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); - parent::__construct($data); - } - - /** - * The occurrences attached to the specified note. - * - * Generated from protobuf field repeated .grafeas.v1.Occurrence occurrences = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOccurrences() - { - return $this->occurrences; - } - - /** - * The occurrences attached to the specified note. - * - * Generated from protobuf field repeated .grafeas.v1.Occurrence occurrences = 1; - * @param array<\Grafeas\V1\Occurrence>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOccurrences($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Occurrence::class); - $this->occurrences = $arr; - - return $this; - } - - /** - * Token to provide to skip to a particular spot in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to provide to skip to a particular spot in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNotesRequest.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNotesRequest.php deleted file mode 100644 index 1e92a55fde76..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNotesRequest.php +++ /dev/null @@ -1,240 +0,0 @@ -grafeas.v1.ListNotesRequest - */ -class ListNotesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the project to list notes for in the form of - * `projects/[PROJECT_ID]`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The filter expression. - * - * Generated from protobuf field string filter = 2; - */ - protected $filter = ''; - /** - * Number of notes to return in the list. Must be positive. Max allowed page - * size is 1000. If not specified, page size defaults to 20. - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * Token to provide to skip to a particular spot in the list. - * - * Generated from protobuf field string page_token = 4; - */ - protected $page_token = ''; - /** - * If set, the request will return all reachable Notes - * and report all unreachable regions in the `unreachable` field in - * the response. - * Only applicable for requests in the global region. - * - * Generated from protobuf field bool return_partial_success = 5; - */ - protected $return_partial_success = false; - - /** - * @param string $parent The name of the project to list notes for in the form of - * `projects/[PROJECT_ID]`. Please see - * {@see GrafeasClient::projectName()} for help formatting this field. - * @param string $filter The filter expression. - * - * @return \Grafeas\V1\ListNotesRequest - * - * @experimental - */ - public static function build(string $parent, string $filter): self - { - return (new self()) - ->setParent($parent) - ->setFilter($filter); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * The name of the project to list notes for in the form of - * `projects/[PROJECT_ID]`. - * @type string $filter - * The filter expression. - * @type int $page_size - * Number of notes to return in the list. Must be positive. Max allowed page - * size is 1000. If not specified, page size defaults to 20. - * @type string $page_token - * Token to provide to skip to a particular spot in the list. - * @type bool $return_partial_success - * If set, the request will return all reachable Notes - * and report all unreachable regions in the `unreachable` field in - * the response. - * Only applicable for requests in the global region. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); - parent::__construct($data); - } - - /** - * The name of the project to list notes for in the form of - * `projects/[PROJECT_ID]`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The name of the project to list notes for in the form of - * `projects/[PROJECT_ID]`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The filter expression. - * - * Generated from protobuf field string filter = 2; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * The filter expression. - * - * Generated from protobuf field string filter = 2; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Number of notes to return in the list. Must be positive. Max allowed page - * size is 1000. If not specified, page size defaults to 20. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Number of notes to return in the list. Must be positive. Max allowed page - * size is 1000. If not specified, page size defaults to 20. - * - * Generated from protobuf field int32 page_size = 3; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Token to provide to skip to a particular spot in the list. - * - * Generated from protobuf field string page_token = 4; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Token to provide to skip to a particular spot in the list. - * - * Generated from protobuf field string page_token = 4; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * If set, the request will return all reachable Notes - * and report all unreachable regions in the `unreachable` field in - * the response. - * Only applicable for requests in the global region. - * - * Generated from protobuf field bool return_partial_success = 5; - * @return bool - */ - public function getReturnPartialSuccess() - { - return $this->return_partial_success; - } - - /** - * If set, the request will return all reachable Notes - * and report all unreachable regions in the `unreachable` field in - * the response. - * Only applicable for requests in the global region. - * - * Generated from protobuf field bool return_partial_success = 5; - * @param bool $var - * @return $this - */ - public function setReturnPartialSuccess($var) - { - GPBUtil::checkBool($var); - $this->return_partial_success = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNotesResponse.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNotesResponse.php deleted file mode 100644 index f8fb9a2e713d..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListNotesResponse.php +++ /dev/null @@ -1,151 +0,0 @@ -grafeas.v1.ListNotesResponse - */ -class ListNotesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The notes requested. - * - * Generated from protobuf field repeated .grafeas.v1.Note notes = 1; - */ - private $notes; - /** - * The next pagination token in the list response. It should be used as - * `page_token` for the following request. An empty value means no more - * results. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Unreachable regions. Populated for requests from the global region - * when `return_partial_success` is set. - * Format: `projects/[PROJECT_ID]/locations/[LOCATION]` - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Grafeas\V1\Note>|\Google\Protobuf\Internal\RepeatedField $notes - * The notes requested. - * @type string $next_page_token - * The next pagination token in the list response. It should be used as - * `page_token` for the following request. An empty value means no more - * results. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Unreachable regions. Populated for requests from the global region - * when `return_partial_success` is set. - * Format: `projects/[PROJECT_ID]/locations/[LOCATION]` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); - parent::__construct($data); - } - - /** - * The notes requested. - * - * Generated from protobuf field repeated .grafeas.v1.Note notes = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNotes() - { - return $this->notes; - } - - /** - * The notes requested. - * - * Generated from protobuf field repeated .grafeas.v1.Note notes = 1; - * @param array<\Grafeas\V1\Note>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNotes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Note::class); - $this->notes = $arr; - - return $this; - } - - /** - * The next pagination token in the list response. It should be used as - * `page_token` for the following request. An empty value means no more - * results. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The next pagination token in the list response. It should be used as - * `page_token` for the following request. An empty value means no more - * results. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Unreachable regions. Populated for requests from the global region - * when `return_partial_success` is set. - * Format: `projects/[PROJECT_ID]/locations/[LOCATION]` - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Unreachable regions. Populated for requests from the global region - * when `return_partial_success` is set. - * Format: `projects/[PROJECT_ID]/locations/[LOCATION]` - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListOccurrencesRequest.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListOccurrencesRequest.php deleted file mode 100644 index 3bdc920d4a1a..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListOccurrencesRequest.php +++ /dev/null @@ -1,240 +0,0 @@ -grafeas.v1.ListOccurrencesRequest - */ -class ListOccurrencesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the project to list occurrences for in the form of - * `projects/[PROJECT_ID]`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The filter expression. - * - * Generated from protobuf field string filter = 2; - */ - protected $filter = ''; - /** - * Number of occurrences to return in the list. Must be positive. Max allowed - * page size is 1000. If not specified, page size defaults to 20. - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * Token to provide to skip to a particular spot in the list. - * - * Generated from protobuf field string page_token = 4; - */ - protected $page_token = ''; - /** - * If set, the request will return all reachable Occurrences - * and report all unreachable regions in the `unreachable` field in - * the response. - * Only applicable for requests in the global region. - * - * Generated from protobuf field bool return_partial_success = 5; - */ - protected $return_partial_success = false; - - /** - * @param string $parent The name of the project to list occurrences for in the form of - * `projects/[PROJECT_ID]`. Please see - * {@see GrafeasClient::projectName()} for help formatting this field. - * @param string $filter The filter expression. - * - * @return \Grafeas\V1\ListOccurrencesRequest - * - * @experimental - */ - public static function build(string $parent, string $filter): self - { - return (new self()) - ->setParent($parent) - ->setFilter($filter); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * The name of the project to list occurrences for in the form of - * `projects/[PROJECT_ID]`. - * @type string $filter - * The filter expression. - * @type int $page_size - * Number of occurrences to return in the list. Must be positive. Max allowed - * page size is 1000. If not specified, page size defaults to 20. - * @type string $page_token - * Token to provide to skip to a particular spot in the list. - * @type bool $return_partial_success - * If set, the request will return all reachable Occurrences - * and report all unreachable regions in the `unreachable` field in - * the response. - * Only applicable for requests in the global region. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); - parent::__construct($data); - } - - /** - * The name of the project to list occurrences for in the form of - * `projects/[PROJECT_ID]`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The name of the project to list occurrences for in the form of - * `projects/[PROJECT_ID]`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The filter expression. - * - * Generated from protobuf field string filter = 2; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * The filter expression. - * - * Generated from protobuf field string filter = 2; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Number of occurrences to return in the list. Must be positive. Max allowed - * page size is 1000. If not specified, page size defaults to 20. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Number of occurrences to return in the list. Must be positive. Max allowed - * page size is 1000. If not specified, page size defaults to 20. - * - * Generated from protobuf field int32 page_size = 3; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Token to provide to skip to a particular spot in the list. - * - * Generated from protobuf field string page_token = 4; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Token to provide to skip to a particular spot in the list. - * - * Generated from protobuf field string page_token = 4; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * If set, the request will return all reachable Occurrences - * and report all unreachable regions in the `unreachable` field in - * the response. - * Only applicable for requests in the global region. - * - * Generated from protobuf field bool return_partial_success = 5; - * @return bool - */ - public function getReturnPartialSuccess() - { - return $this->return_partial_success; - } - - /** - * If set, the request will return all reachable Occurrences - * and report all unreachable regions in the `unreachable` field in - * the response. - * Only applicable for requests in the global region. - * - * Generated from protobuf field bool return_partial_success = 5; - * @param bool $var - * @return $this - */ - public function setReturnPartialSuccess($var) - { - GPBUtil::checkBool($var); - $this->return_partial_success = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListOccurrencesResponse.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListOccurrencesResponse.php deleted file mode 100644 index 4e2e29c11c23..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ListOccurrencesResponse.php +++ /dev/null @@ -1,151 +0,0 @@ -grafeas.v1.ListOccurrencesResponse - */ -class ListOccurrencesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The occurrences requested. - * - * Generated from protobuf field repeated .grafeas.v1.Occurrence occurrences = 1; - */ - private $occurrences; - /** - * The next pagination token in the list response. It should be used as - * `page_token` for the following request. An empty value means no more - * results. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Unreachable regions. Populated for requests from the global region - * when `return_partial_success` is set. - * Format: `projects/[PROJECT_ID]/locations/[LOCATION]` - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Grafeas\V1\Occurrence>|\Google\Protobuf\Internal\RepeatedField $occurrences - * The occurrences requested. - * @type string $next_page_token - * The next pagination token in the list response. It should be used as - * `page_token` for the following request. An empty value means no more - * results. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Unreachable regions. Populated for requests from the global region - * when `return_partial_success` is set. - * Format: `projects/[PROJECT_ID]/locations/[LOCATION]` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); - parent::__construct($data); - } - - /** - * The occurrences requested. - * - * Generated from protobuf field repeated .grafeas.v1.Occurrence occurrences = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOccurrences() - { - return $this->occurrences; - } - - /** - * The occurrences requested. - * - * Generated from protobuf field repeated .grafeas.v1.Occurrence occurrences = 1; - * @param array<\Grafeas\V1\Occurrence>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOccurrences($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Occurrence::class); - $this->occurrences = $arr; - - return $this; - } - - /** - * The next pagination token in the list response. It should be used as - * `page_token` for the following request. An empty value means no more - * results. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The next pagination token in the list response. It should be used as - * `page_token` for the following request. An empty value means no more - * results. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Unreachable regions. Populated for requests from the global region - * when `return_partial_success` is set. - * Format: `projects/[PROJECT_ID]/locations/[LOCATION]` - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Unreachable regions. Populated for requests from the global region - * when `return_partial_success` is set. - * Format: `projects/[PROJECT_ID]/locations/[LOCATION]` - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Location.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Location.php deleted file mode 100644 index b8381eca4d41..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Location.php +++ /dev/null @@ -1,154 +0,0 @@ -grafeas.v1.Location - */ -class Location extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. - * The CPE URI in [CPE format](https://cpe.mitre.org/specification/) - * - * Generated from protobuf field string cpe_uri = 1; - */ - protected $cpe_uri = ''; - /** - * Deprecated. - * The version installed at this location. - * - * Generated from protobuf field .grafeas.v1.Version version = 2; - */ - protected $version = null; - /** - * The path from which we gathered that this package/version is installed. - * - * Generated from protobuf field string path = 3; - */ - protected $path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $cpe_uri - * Deprecated. - * The CPE URI in [CPE format](https://cpe.mitre.org/specification/) - * @type \Grafeas\V1\Version $version - * Deprecated. - * The version installed at this location. - * @type string $path - * The path from which we gathered that this package/version is installed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Package::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. - * The CPE URI in [CPE format](https://cpe.mitre.org/specification/) - * - * Generated from protobuf field string cpe_uri = 1; - * @return string - */ - public function getCpeUri() - { - return $this->cpe_uri; - } - - /** - * Deprecated. - * The CPE URI in [CPE format](https://cpe.mitre.org/specification/) - * - * Generated from protobuf field string cpe_uri = 1; - * @param string $var - * @return $this - */ - public function setCpeUri($var) - { - GPBUtil::checkString($var, True); - $this->cpe_uri = $var; - - return $this; - } - - /** - * Deprecated. - * The version installed at this location. - * - * Generated from protobuf field .grafeas.v1.Version version = 2; - * @return \Grafeas\V1\Version|null - */ - public function getVersion() - { - return $this->version; - } - - public function hasVersion() - { - return isset($this->version); - } - - public function clearVersion() - { - unset($this->version); - } - - /** - * Deprecated. - * The version installed at this location. - * - * Generated from protobuf field .grafeas.v1.Version version = 2; - * @param \Grafeas\V1\Version $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\Version::class); - $this->version = $var; - - return $this; - } - - /** - * The path from which we gathered that this package/version is installed. - * - * Generated from protobuf field string path = 3; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * The path from which we gathered that this package/version is installed. - * - * Generated from protobuf field string path = 3; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Metadata.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Metadata.php deleted file mode 100644 index 496b347e8c53..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Metadata.php +++ /dev/null @@ -1,249 +0,0 @@ -grafeas.v1.Metadata - */ -class Metadata extends \Google\Protobuf\Internal\Message -{ - /** - * Identifies the particular build invocation, which can be useful for finding - * associated logs or other ad-hoc analysis. The value SHOULD be globally - * unique, per in-toto Provenance spec. - * - * Generated from protobuf field string build_invocation_id = 1; - */ - protected $build_invocation_id = ''; - /** - * The timestamp of when the build started. - * - * Generated from protobuf field .google.protobuf.Timestamp build_started_on = 2; - */ - protected $build_started_on = null; - /** - * The timestamp of when the build completed. - * - * Generated from protobuf field .google.protobuf.Timestamp build_finished_on = 3; - */ - protected $build_finished_on = null; - /** - * Indicates that the builder claims certain fields in this message to be - * complete. - * - * Generated from protobuf field .grafeas.v1.Completeness completeness = 4; - */ - protected $completeness = null; - /** - * If true, the builder claims that running the recipe on materials will - * produce bit-for-bit identical output. - * - * Generated from protobuf field bool reproducible = 5; - */ - protected $reproducible = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $build_invocation_id - * Identifies the particular build invocation, which can be useful for finding - * associated logs or other ad-hoc analysis. The value SHOULD be globally - * unique, per in-toto Provenance spec. - * @type \Google\Protobuf\Timestamp $build_started_on - * The timestamp of when the build started. - * @type \Google\Protobuf\Timestamp $build_finished_on - * The timestamp of when the build completed. - * @type \Grafeas\V1\Completeness $completeness - * Indicates that the builder claims certain fields in this message to be - * complete. - * @type bool $reproducible - * If true, the builder claims that running the recipe on materials will - * produce bit-for-bit identical output. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\IntotoProvenance::initOnce(); - parent::__construct($data); - } - - /** - * Identifies the particular build invocation, which can be useful for finding - * associated logs or other ad-hoc analysis. The value SHOULD be globally - * unique, per in-toto Provenance spec. - * - * Generated from protobuf field string build_invocation_id = 1; - * @return string - */ - public function getBuildInvocationId() - { - return $this->build_invocation_id; - } - - /** - * Identifies the particular build invocation, which can be useful for finding - * associated logs or other ad-hoc analysis. The value SHOULD be globally - * unique, per in-toto Provenance spec. - * - * Generated from protobuf field string build_invocation_id = 1; - * @param string $var - * @return $this - */ - public function setBuildInvocationId($var) - { - GPBUtil::checkString($var, True); - $this->build_invocation_id = $var; - - return $this; - } - - /** - * The timestamp of when the build started. - * - * Generated from protobuf field .google.protobuf.Timestamp build_started_on = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getBuildStartedOn() - { - return $this->build_started_on; - } - - public function hasBuildStartedOn() - { - return isset($this->build_started_on); - } - - public function clearBuildStartedOn() - { - unset($this->build_started_on); - } - - /** - * The timestamp of when the build started. - * - * Generated from protobuf field .google.protobuf.Timestamp build_started_on = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setBuildStartedOn($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->build_started_on = $var; - - return $this; - } - - /** - * The timestamp of when the build completed. - * - * Generated from protobuf field .google.protobuf.Timestamp build_finished_on = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getBuildFinishedOn() - { - return $this->build_finished_on; - } - - public function hasBuildFinishedOn() - { - return isset($this->build_finished_on); - } - - public function clearBuildFinishedOn() - { - unset($this->build_finished_on); - } - - /** - * The timestamp of when the build completed. - * - * Generated from protobuf field .google.protobuf.Timestamp build_finished_on = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setBuildFinishedOn($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->build_finished_on = $var; - - return $this; - } - - /** - * Indicates that the builder claims certain fields in this message to be - * complete. - * - * Generated from protobuf field .grafeas.v1.Completeness completeness = 4; - * @return \Grafeas\V1\Completeness|null - */ - public function getCompleteness() - { - return $this->completeness; - } - - public function hasCompleteness() - { - return isset($this->completeness); - } - - public function clearCompleteness() - { - unset($this->completeness); - } - - /** - * Indicates that the builder claims certain fields in this message to be - * complete. - * - * Generated from protobuf field .grafeas.v1.Completeness completeness = 4; - * @param \Grafeas\V1\Completeness $var - * @return $this - */ - public function setCompleteness($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\Completeness::class); - $this->completeness = $var; - - return $this; - } - - /** - * If true, the builder claims that running the recipe on materials will - * produce bit-for-bit identical output. - * - * Generated from protobuf field bool reproducible = 5; - * @return bool - */ - public function getReproducible() - { - return $this->reproducible; - } - - /** - * If true, the builder claims that running the recipe on materials will - * produce bit-for-bit identical output. - * - * Generated from protobuf field bool reproducible = 5; - * @param bool $var - * @return $this - */ - public function setReproducible($var) - { - GPBUtil::checkBool($var); - $this->reproducible = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/NonCompliantFile.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/NonCompliantFile.php deleted file mode 100644 index db2f7ae1e2f2..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/NonCompliantFile.php +++ /dev/null @@ -1,135 +0,0 @@ -grafeas.v1.NonCompliantFile - */ -class NonCompliantFile extends \Google\Protobuf\Internal\Message -{ - /** - * Empty if `display_command` is set. - * - * Generated from protobuf field string path = 1; - */ - protected $path = ''; - /** - * Command to display the non-compliant files. - * - * Generated from protobuf field string display_command = 2; - */ - protected $display_command = ''; - /** - * Explains why a file is non compliant for a CIS check. - * - * Generated from protobuf field string reason = 3; - */ - protected $reason = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $path - * Empty if `display_command` is set. - * @type string $display_command - * Command to display the non-compliant files. - * @type string $reason - * Explains why a file is non compliant for a CIS check. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Compliance::initOnce(); - parent::__construct($data); - } - - /** - * Empty if `display_command` is set. - * - * Generated from protobuf field string path = 1; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Empty if `display_command` is set. - * - * Generated from protobuf field string path = 1; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Command to display the non-compliant files. - * - * Generated from protobuf field string display_command = 2; - * @return string - */ - public function getDisplayCommand() - { - return $this->display_command; - } - - /** - * Command to display the non-compliant files. - * - * Generated from protobuf field string display_command = 2; - * @param string $var - * @return $this - */ - public function setDisplayCommand($var) - { - GPBUtil::checkString($var, True); - $this->display_command = $var; - - return $this; - } - - /** - * Explains why a file is non compliant for a CIS check. - * - * Generated from protobuf field string reason = 3; - * @return string - */ - public function getReason() - { - return $this->reason; - } - - /** - * Explains why a file is non compliant for a CIS check. - * - * Generated from protobuf field string reason = 3; - * @param string $var - * @return $this - */ - public function setReason($var) - { - GPBUtil::checkString($var, True); - $this->reason = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Note.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Note.php deleted file mode 100644 index 99b44da4c7a5..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Note.php +++ /dev/null @@ -1,823 +0,0 @@ -grafeas.v1.Note - */ -class Note extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The name of the note in the form of - * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * A one sentence description of this note. - * - * Generated from protobuf field string short_description = 2; - */ - protected $short_description = ''; - /** - * A detailed description of this note. - * - * Generated from protobuf field string long_description = 3; - */ - protected $long_description = ''; - /** - * Output only. The type of analysis. This field can be used as a filter in - * list requests. - * - * Generated from protobuf field .grafeas.v1.NoteKind kind = 4; - */ - protected $kind = 0; - /** - * URLs associated with this note. - * - * Generated from protobuf field repeated .grafeas.v1.RelatedUrl related_url = 5; - */ - private $related_url; - /** - * Time of expiration for this note. Empty if note does not expire. - * - * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 6; - */ - protected $expiration_time = null; - /** - * Output only. The time this note was created. This field can be used as a - * filter in list requests. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7; - */ - protected $create_time = null; - /** - * Output only. The time this note was last updated. This field can be used as - * a filter in list requests. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8; - */ - protected $update_time = null; - /** - * Other notes related to this note. - * - * Generated from protobuf field repeated string related_note_names = 9; - */ - private $related_note_names; - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The name of the note in the form of - * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. - * @type string $short_description - * A one sentence description of this note. - * @type string $long_description - * A detailed description of this note. - * @type int $kind - * Output only. The type of analysis. This field can be used as a filter in - * list requests. - * @type array<\Grafeas\V1\RelatedUrl>|\Google\Protobuf\Internal\RepeatedField $related_url - * URLs associated with this note. - * @type \Google\Protobuf\Timestamp $expiration_time - * Time of expiration for this note. Empty if note does not expire. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time this note was created. This field can be used as a - * filter in list requests. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time this note was last updated. This field can be used as - * a filter in list requests. - * @type array|\Google\Protobuf\Internal\RepeatedField $related_note_names - * Other notes related to this note. - * @type \Grafeas\V1\VulnerabilityNote $vulnerability - * A note describing a package vulnerability. - * @type \Grafeas\V1\BuildNote $build - * A note describing build provenance for a verifiable build. - * @type \Grafeas\V1\ImageNote $image - * A note describing a base image. - * @type \Grafeas\V1\PackageNote $package - * A note describing a package hosted by various package managers. - * @type \Grafeas\V1\DeploymentNote $deployment - * A note describing something that can be deployed. - * @type \Grafeas\V1\DiscoveryNote $discovery - * A note describing the initial analysis of a resource. - * @type \Grafeas\V1\AttestationNote $attestation - * A note describing an attestation role. - * @type \Grafeas\V1\UpgradeNote $upgrade - * A note describing available package upgrades. - * @type \Grafeas\V1\ComplianceNote $compliance - * A note describing a compliance check. - * @type \Grafeas\V1\DSSEAttestationNote $dsse_attestation - * A note describing a dsse attestation note. - * @type \Grafeas\V1\VulnerabilityAssessmentNote $vulnerability_assessment - * A note describing a vulnerability assessment. - * @type \Grafeas\V1\SBOMReferenceNote $sbom_reference - * A note describing an SBOM reference. - * @type \Grafeas\V1\SecretNote $secret - * A note describing a secret. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The name of the note in the form of - * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The name of the note in the form of - * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * A one sentence description of this note. - * - * Generated from protobuf field string short_description = 2; - * @return string - */ - public function getShortDescription() - { - return $this->short_description; - } - - /** - * A one sentence description of this note. - * - * Generated from protobuf field string short_description = 2; - * @param string $var - * @return $this - */ - public function setShortDescription($var) - { - GPBUtil::checkString($var, True); - $this->short_description = $var; - - return $this; - } - - /** - * A detailed description of this note. - * - * Generated from protobuf field string long_description = 3; - * @return string - */ - public function getLongDescription() - { - return $this->long_description; - } - - /** - * A detailed description of this note. - * - * Generated from protobuf field string long_description = 3; - * @param string $var - * @return $this - */ - public function setLongDescription($var) - { - GPBUtil::checkString($var, True); - $this->long_description = $var; - - return $this; - } - - /** - * Output only. The type of analysis. This field can be used as a filter in - * list requests. - * - * Generated from protobuf field .grafeas.v1.NoteKind kind = 4; - * @return int - */ - public function getKind() - { - return $this->kind; - } - - /** - * Output only. The type of analysis. This field can be used as a filter in - * list requests. - * - * Generated from protobuf field .grafeas.v1.NoteKind kind = 4; - * @param int $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\NoteKind::class); - $this->kind = $var; - - return $this; - } - - /** - * URLs associated with this note. - * - * Generated from protobuf field repeated .grafeas.v1.RelatedUrl related_url = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRelatedUrl() - { - return $this->related_url; - } - - /** - * URLs associated with this note. - * - * Generated from protobuf field repeated .grafeas.v1.RelatedUrl related_url = 5; - * @param array<\Grafeas\V1\RelatedUrl>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRelatedUrl($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\RelatedUrl::class); - $this->related_url = $arr; - - return $this; - } - - /** - * Time of expiration for this note. Empty if note does not expire. - * - * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 6; - * @return \Google\Protobuf\Timestamp|null - */ - public function getExpirationTime() - { - return $this->expiration_time; - } - - public function hasExpirationTime() - { - return isset($this->expiration_time); - } - - public function clearExpirationTime() - { - unset($this->expiration_time); - } - - /** - * Time of expiration for this note. Empty if note does not expire. - * - * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 6; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setExpirationTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->expiration_time = $var; - - return $this; - } - - /** - * Output only. The time this note was created. This field can be used as a - * filter in list requests. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time this note was created. This field can be used as a - * filter in list requests. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time this note was last updated. This field can be used as - * a filter in list requests. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time this note was last updated. This field can be used as - * a filter in list requests. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Other notes related to this note. - * - * Generated from protobuf field repeated string related_note_names = 9; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRelatedNoteNames() - { - return $this->related_note_names; - } - - /** - * Other notes related to this note. - * - * Generated from protobuf field repeated string related_note_names = 9; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRelatedNoteNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->related_note_names = $arr; - - return $this; - } - - /** - * A note describing a package vulnerability. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityNote vulnerability = 10; - * @return \Grafeas\V1\VulnerabilityNote|null - */ - public function getVulnerability() - { - return $this->readOneof(10); - } - - public function hasVulnerability() - { - return $this->hasOneof(10); - } - - /** - * A note describing a package vulnerability. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityNote vulnerability = 10; - * @param \Grafeas\V1\VulnerabilityNote $var - * @return $this - */ - public function setVulnerability($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\VulnerabilityNote::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * A note describing build provenance for a verifiable build. - * - * Generated from protobuf field .grafeas.v1.BuildNote build = 11; - * @return \Grafeas\V1\BuildNote|null - */ - public function getBuild() - { - return $this->readOneof(11); - } - - public function hasBuild() - { - return $this->hasOneof(11); - } - - /** - * A note describing build provenance for a verifiable build. - * - * Generated from protobuf field .grafeas.v1.BuildNote build = 11; - * @param \Grafeas\V1\BuildNote $var - * @return $this - */ - public function setBuild($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\BuildNote::class); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * A note describing a base image. - * - * Generated from protobuf field .grafeas.v1.ImageNote image = 12; - * @return \Grafeas\V1\ImageNote|null - */ - public function getImage() - { - return $this->readOneof(12); - } - - public function hasImage() - { - return $this->hasOneof(12); - } - - /** - * A note describing a base image. - * - * Generated from protobuf field .grafeas.v1.ImageNote image = 12; - * @param \Grafeas\V1\ImageNote $var - * @return $this - */ - public function setImage($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\ImageNote::class); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * A note describing a package hosted by various package managers. - * - * Generated from protobuf field .grafeas.v1.PackageNote package = 13; - * @return \Grafeas\V1\PackageNote|null - */ - public function getPackage() - { - return $this->readOneof(13); - } - - public function hasPackage() - { - return $this->hasOneof(13); - } - - /** - * A note describing a package hosted by various package managers. - * - * Generated from protobuf field .grafeas.v1.PackageNote package = 13; - * @param \Grafeas\V1\PackageNote $var - * @return $this - */ - public function setPackage($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\PackageNote::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * A note describing something that can be deployed. - * - * Generated from protobuf field .grafeas.v1.DeploymentNote deployment = 14; - * @return \Grafeas\V1\DeploymentNote|null - */ - public function getDeployment() - { - return $this->readOneof(14); - } - - public function hasDeployment() - { - return $this->hasOneof(14); - } - - /** - * A note describing something that can be deployed. - * - * Generated from protobuf field .grafeas.v1.DeploymentNote deployment = 14; - * @param \Grafeas\V1\DeploymentNote $var - * @return $this - */ - public function setDeployment($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\DeploymentNote::class); - $this->writeOneof(14, $var); - - return $this; - } - - /** - * A note describing the initial analysis of a resource. - * - * Generated from protobuf field .grafeas.v1.DiscoveryNote discovery = 15; - * @return \Grafeas\V1\DiscoveryNote|null - */ - public function getDiscovery() - { - return $this->readOneof(15); - } - - public function hasDiscovery() - { - return $this->hasOneof(15); - } - - /** - * A note describing the initial analysis of a resource. - * - * Generated from protobuf field .grafeas.v1.DiscoveryNote discovery = 15; - * @param \Grafeas\V1\DiscoveryNote $var - * @return $this - */ - public function setDiscovery($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\DiscoveryNote::class); - $this->writeOneof(15, $var); - - return $this; - } - - /** - * A note describing an attestation role. - * - * Generated from protobuf field .grafeas.v1.AttestationNote attestation = 16; - * @return \Grafeas\V1\AttestationNote|null - */ - public function getAttestation() - { - return $this->readOneof(16); - } - - public function hasAttestation() - { - return $this->hasOneof(16); - } - - /** - * A note describing an attestation role. - * - * Generated from protobuf field .grafeas.v1.AttestationNote attestation = 16; - * @param \Grafeas\V1\AttestationNote $var - * @return $this - */ - public function setAttestation($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\AttestationNote::class); - $this->writeOneof(16, $var); - - return $this; - } - - /** - * A note describing available package upgrades. - * - * Generated from protobuf field .grafeas.v1.UpgradeNote upgrade = 17; - * @return \Grafeas\V1\UpgradeNote|null - */ - public function getUpgrade() - { - return $this->readOneof(17); - } - - public function hasUpgrade() - { - return $this->hasOneof(17); - } - - /** - * A note describing available package upgrades. - * - * Generated from protobuf field .grafeas.v1.UpgradeNote upgrade = 17; - * @param \Grafeas\V1\UpgradeNote $var - * @return $this - */ - public function setUpgrade($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\UpgradeNote::class); - $this->writeOneof(17, $var); - - return $this; - } - - /** - * A note describing a compliance check. - * - * Generated from protobuf field .grafeas.v1.ComplianceNote compliance = 18; - * @return \Grafeas\V1\ComplianceNote|null - */ - public function getCompliance() - { - return $this->readOneof(18); - } - - public function hasCompliance() - { - return $this->hasOneof(18); - } - - /** - * A note describing a compliance check. - * - * Generated from protobuf field .grafeas.v1.ComplianceNote compliance = 18; - * @param \Grafeas\V1\ComplianceNote $var - * @return $this - */ - public function setCompliance($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\ComplianceNote::class); - $this->writeOneof(18, $var); - - return $this; - } - - /** - * A note describing a dsse attestation note. - * - * Generated from protobuf field .grafeas.v1.DSSEAttestationNote dsse_attestation = 19; - * @return \Grafeas\V1\DSSEAttestationNote|null - */ - public function getDsseAttestation() - { - return $this->readOneof(19); - } - - public function hasDsseAttestation() - { - return $this->hasOneof(19); - } - - /** - * A note describing a dsse attestation note. - * - * Generated from protobuf field .grafeas.v1.DSSEAttestationNote dsse_attestation = 19; - * @param \Grafeas\V1\DSSEAttestationNote $var - * @return $this - */ - public function setDsseAttestation($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\DSSEAttestationNote::class); - $this->writeOneof(19, $var); - - return $this; - } - - /** - * A note describing a vulnerability assessment. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote vulnerability_assessment = 20; - * @return \Grafeas\V1\VulnerabilityAssessmentNote|null - */ - public function getVulnerabilityAssessment() - { - return $this->readOneof(20); - } - - public function hasVulnerabilityAssessment() - { - return $this->hasOneof(20); - } - - /** - * A note describing a vulnerability assessment. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote vulnerability_assessment = 20; - * @param \Grafeas\V1\VulnerabilityAssessmentNote $var - * @return $this - */ - public function setVulnerabilityAssessment($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\VulnerabilityAssessmentNote::class); - $this->writeOneof(20, $var); - - return $this; - } - - /** - * A note describing an SBOM reference. - * - * Generated from protobuf field .grafeas.v1.SBOMReferenceNote sbom_reference = 21; - * @return \Grafeas\V1\SBOMReferenceNote|null - */ - public function getSbomReference() - { - return $this->readOneof(21); - } - - public function hasSbomReference() - { - return $this->hasOneof(21); - } - - /** - * A note describing an SBOM reference. - * - * Generated from protobuf field .grafeas.v1.SBOMReferenceNote sbom_reference = 21; - * @param \Grafeas\V1\SBOMReferenceNote $var - * @return $this - */ - public function setSbomReference($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\SBOMReferenceNote::class); - $this->writeOneof(21, $var); - - return $this; - } - - /** - * A note describing a secret. - * - * Generated from protobuf field .grafeas.v1.SecretNote secret = 22; - * @return \Grafeas\V1\SecretNote|null - */ - public function getSecret() - { - return $this->readOneof(22); - } - - public function hasSecret() - { - return $this->hasOneof(22); - } - - /** - * A note describing a secret. - * - * Generated from protobuf field .grafeas.v1.SecretNote secret = 22; - * @param \Grafeas\V1\SecretNote $var - * @return $this - */ - public function setSecret($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\SecretNote::class); - $this->writeOneof(22, $var); - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/NoteKind.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/NoteKind.php deleted file mode 100644 index 191dd18ccad6..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/NoteKind.php +++ /dev/null @@ -1,138 +0,0 @@ -grafeas.v1.NoteKind - */ -class NoteKind -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum NOTE_KIND_UNSPECIFIED = 0; - */ - const NOTE_KIND_UNSPECIFIED = 0; - /** - * The note and occurrence represent a package vulnerability. - * - * Generated from protobuf enum VULNERABILITY = 1; - */ - const VULNERABILITY = 1; - /** - * The note and occurrence assert build provenance. - * - * Generated from protobuf enum BUILD = 2; - */ - const BUILD = 2; - /** - * This represents an image basis relationship. - * - * Generated from protobuf enum IMAGE = 3; - */ - const IMAGE = 3; - /** - * This represents a package installed via a package manager. - * - * Generated from protobuf enum PACKAGE = 4; - */ - const PACKAGE = 4; - /** - * The note and occurrence track deployment events. - * - * Generated from protobuf enum DEPLOYMENT = 5; - */ - const DEPLOYMENT = 5; - /** - * The note and occurrence track the initial discovery status of a resource. - * - * Generated from protobuf enum DISCOVERY = 6; - */ - const DISCOVERY = 6; - /** - * This represents a logical "role" that can attest to artifacts. - * - * Generated from protobuf enum ATTESTATION = 7; - */ - const ATTESTATION = 7; - /** - * This represents an available package upgrade. - * - * Generated from protobuf enum UPGRADE = 8; - */ - const UPGRADE = 8; - /** - * This represents a Compliance Note - * - * Generated from protobuf enum COMPLIANCE = 9; - */ - const COMPLIANCE = 9; - /** - * This represents a DSSE attestation Note - * - * Generated from protobuf enum DSSE_ATTESTATION = 10; - */ - const DSSE_ATTESTATION = 10; - /** - * This represents a Vulnerability Assessment. - * - * Generated from protobuf enum VULNERABILITY_ASSESSMENT = 11; - */ - const VULNERABILITY_ASSESSMENT = 11; - /** - * This represents an SBOM Reference. - * - * Generated from protobuf enum SBOM_REFERENCE = 12; - */ - const SBOM_REFERENCE = 12; - /** - * This represents a secret. - * - * Generated from protobuf enum SECRET = 13; - */ - const SECRET = 13; - - private static $valueToName = [ - self::NOTE_KIND_UNSPECIFIED => 'NOTE_KIND_UNSPECIFIED', - self::VULNERABILITY => 'VULNERABILITY', - self::BUILD => 'BUILD', - self::IMAGE => 'IMAGE', - self::PACKAGE => 'PACKAGE', - self::DEPLOYMENT => 'DEPLOYMENT', - self::DISCOVERY => 'DISCOVERY', - self::ATTESTATION => 'ATTESTATION', - self::UPGRADE => 'UPGRADE', - self::COMPLIANCE => 'COMPLIANCE', - self::DSSE_ATTESTATION => 'DSSE_ATTESTATION', - self::VULNERABILITY_ASSESSMENT => 'VULNERABILITY_ASSESSMENT', - self::SBOM_REFERENCE => 'SBOM_REFERENCE', - self::SECRET => 'SECRET', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Occurrence.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Occurrence.php deleted file mode 100644 index 97d310eb03f2..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Occurrence.php +++ /dev/null @@ -1,767 +0,0 @@ -grafeas.v1.Occurrence - */ -class Occurrence extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The name of the occurrence in the form of - * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Required. Immutable. A URI that represents the resource for which the - * occurrence applies. For example, - * `https://gcr.io/project/image@sha256:123abc` for a Docker image. - * - * Generated from protobuf field string resource_uri = 2; - */ - protected $resource_uri = ''; - /** - * Required. Immutable. The analysis note associated with this occurrence, in - * the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be - * used as a filter in list requests. - * - * Generated from protobuf field string note_name = 3; - */ - protected $note_name = ''; - /** - * Output only. This explicitly denotes which of the occurrence details are - * specified. This field can be used as a filter in list requests. - * - * Generated from protobuf field .grafeas.v1.NoteKind kind = 4; - */ - protected $kind = 0; - /** - * A description of actions that can be taken to remedy the note. - * - * Generated from protobuf field string remediation = 5; - */ - protected $remediation = ''; - /** - * Output only. The time this occurrence was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6; - */ - protected $create_time = null; - /** - * Output only. The time this occurrence was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7; - */ - protected $update_time = null; - /** - * https://github.com/secure-systems-lab/dsse - * - * Generated from protobuf field .grafeas.v1.Envelope envelope = 18; - */ - protected $envelope = null; - protected $details; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The name of the occurrence in the form of - * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. - * @type string $resource_uri - * Required. Immutable. A URI that represents the resource for which the - * occurrence applies. For example, - * `https://gcr.io/project/image@sha256:123abc` for a Docker image. - * @type string $note_name - * Required. Immutable. The analysis note associated with this occurrence, in - * the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be - * used as a filter in list requests. - * @type int $kind - * Output only. This explicitly denotes which of the occurrence details are - * specified. This field can be used as a filter in list requests. - * @type string $remediation - * A description of actions that can be taken to remedy the note. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time this occurrence was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time this occurrence was last updated. - * @type \Grafeas\V1\VulnerabilityOccurrence $vulnerability - * Describes a security vulnerability. - * @type \Grafeas\V1\BuildOccurrence $build - * Describes a verifiable build. - * @type \Grafeas\V1\ImageOccurrence $image - * Describes how this resource derives from the basis in the associated - * note. - * @type \Grafeas\V1\PackageOccurrence $package - * Describes the installation of a package on the linked resource. - * @type \Grafeas\V1\DeploymentOccurrence $deployment - * Describes the deployment of an artifact on a runtime. - * @type \Grafeas\V1\DiscoveryOccurrence $discovery - * Describes when a resource was discovered. - * @type \Grafeas\V1\AttestationOccurrence $attestation - * Describes an attestation of an artifact. - * @type \Grafeas\V1\UpgradeOccurrence $upgrade - * Describes an available package upgrade on the linked resource. - * @type \Grafeas\V1\ComplianceOccurrence $compliance - * Describes a compliance violation on a linked resource. - * @type \Grafeas\V1\DSSEAttestationOccurrence $dsse_attestation - * Describes an attestation of an artifact using dsse. - * @type \Grafeas\V1\SBOMReferenceOccurrence $sbom_reference - * Describes a specific SBOM reference occurrences. - * @type \Grafeas\V1\SecretOccurrence $secret - * Describes a secret. - * @type \Grafeas\V1\Envelope $envelope - * https://github.com/secure-systems-lab/dsse - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The name of the occurrence in the form of - * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The name of the occurrence in the form of - * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Immutable. A URI that represents the resource for which the - * occurrence applies. For example, - * `https://gcr.io/project/image@sha256:123abc` for a Docker image. - * - * Generated from protobuf field string resource_uri = 2; - * @return string - */ - public function getResourceUri() - { - return $this->resource_uri; - } - - /** - * Required. Immutable. A URI that represents the resource for which the - * occurrence applies. For example, - * `https://gcr.io/project/image@sha256:123abc` for a Docker image. - * - * Generated from protobuf field string resource_uri = 2; - * @param string $var - * @return $this - */ - public function setResourceUri($var) - { - GPBUtil::checkString($var, True); - $this->resource_uri = $var; - - return $this; - } - - /** - * Required. Immutable. The analysis note associated with this occurrence, in - * the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be - * used as a filter in list requests. - * - * Generated from protobuf field string note_name = 3; - * @return string - */ - public function getNoteName() - { - return $this->note_name; - } - - /** - * Required. Immutable. The analysis note associated with this occurrence, in - * the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be - * used as a filter in list requests. - * - * Generated from protobuf field string note_name = 3; - * @param string $var - * @return $this - */ - public function setNoteName($var) - { - GPBUtil::checkString($var, True); - $this->note_name = $var; - - return $this; - } - - /** - * Output only. This explicitly denotes which of the occurrence details are - * specified. This field can be used as a filter in list requests. - * - * Generated from protobuf field .grafeas.v1.NoteKind kind = 4; - * @return int - */ - public function getKind() - { - return $this->kind; - } - - /** - * Output only. This explicitly denotes which of the occurrence details are - * specified. This field can be used as a filter in list requests. - * - * Generated from protobuf field .grafeas.v1.NoteKind kind = 4; - * @param int $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\NoteKind::class); - $this->kind = $var; - - return $this; - } - - /** - * A description of actions that can be taken to remedy the note. - * - * Generated from protobuf field string remediation = 5; - * @return string - */ - public function getRemediation() - { - return $this->remediation; - } - - /** - * A description of actions that can be taken to remedy the note. - * - * Generated from protobuf field string remediation = 5; - * @param string $var - * @return $this - */ - public function setRemediation($var) - { - GPBUtil::checkString($var, True); - $this->remediation = $var; - - return $this; - } - - /** - * Output only. The time this occurrence was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time this occurrence was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time this occurrence was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time this occurrence was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Describes a security vulnerability. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityOccurrence vulnerability = 8; - * @return \Grafeas\V1\VulnerabilityOccurrence|null - */ - public function getVulnerability() - { - return $this->readOneof(8); - } - - public function hasVulnerability() - { - return $this->hasOneof(8); - } - - /** - * Describes a security vulnerability. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityOccurrence vulnerability = 8; - * @param \Grafeas\V1\VulnerabilityOccurrence $var - * @return $this - */ - public function setVulnerability($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\VulnerabilityOccurrence::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Describes a verifiable build. - * - * Generated from protobuf field .grafeas.v1.BuildOccurrence build = 9; - * @return \Grafeas\V1\BuildOccurrence|null - */ - public function getBuild() - { - return $this->readOneof(9); - } - - public function hasBuild() - { - return $this->hasOneof(9); - } - - /** - * Describes a verifiable build. - * - * Generated from protobuf field .grafeas.v1.BuildOccurrence build = 9; - * @param \Grafeas\V1\BuildOccurrence $var - * @return $this - */ - public function setBuild($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\BuildOccurrence::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * Describes how this resource derives from the basis in the associated - * note. - * - * Generated from protobuf field .grafeas.v1.ImageOccurrence image = 10; - * @return \Grafeas\V1\ImageOccurrence|null - */ - public function getImage() - { - return $this->readOneof(10); - } - - public function hasImage() - { - return $this->hasOneof(10); - } - - /** - * Describes how this resource derives from the basis in the associated - * note. - * - * Generated from protobuf field .grafeas.v1.ImageOccurrence image = 10; - * @param \Grafeas\V1\ImageOccurrence $var - * @return $this - */ - public function setImage($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\ImageOccurrence::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * Describes the installation of a package on the linked resource. - * - * Generated from protobuf field .grafeas.v1.PackageOccurrence package = 11; - * @return \Grafeas\V1\PackageOccurrence|null - */ - public function getPackage() - { - return $this->readOneof(11); - } - - public function hasPackage() - { - return $this->hasOneof(11); - } - - /** - * Describes the installation of a package on the linked resource. - * - * Generated from protobuf field .grafeas.v1.PackageOccurrence package = 11; - * @param \Grafeas\V1\PackageOccurrence $var - * @return $this - */ - public function setPackage($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\PackageOccurrence::class); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * Describes the deployment of an artifact on a runtime. - * - * Generated from protobuf field .grafeas.v1.DeploymentOccurrence deployment = 12; - * @return \Grafeas\V1\DeploymentOccurrence|null - */ - public function getDeployment() - { - return $this->readOneof(12); - } - - public function hasDeployment() - { - return $this->hasOneof(12); - } - - /** - * Describes the deployment of an artifact on a runtime. - * - * Generated from protobuf field .grafeas.v1.DeploymentOccurrence deployment = 12; - * @param \Grafeas\V1\DeploymentOccurrence $var - * @return $this - */ - public function setDeployment($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\DeploymentOccurrence::class); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * Describes when a resource was discovered. - * - * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence discovery = 13; - * @return \Grafeas\V1\DiscoveryOccurrence|null - */ - public function getDiscovery() - { - return $this->readOneof(13); - } - - public function hasDiscovery() - { - return $this->hasOneof(13); - } - - /** - * Describes when a resource was discovered. - * - * Generated from protobuf field .grafeas.v1.DiscoveryOccurrence discovery = 13; - * @param \Grafeas\V1\DiscoveryOccurrence $var - * @return $this - */ - public function setDiscovery($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\DiscoveryOccurrence::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * Describes an attestation of an artifact. - * - * Generated from protobuf field .grafeas.v1.AttestationOccurrence attestation = 14; - * @return \Grafeas\V1\AttestationOccurrence|null - */ - public function getAttestation() - { - return $this->readOneof(14); - } - - public function hasAttestation() - { - return $this->hasOneof(14); - } - - /** - * Describes an attestation of an artifact. - * - * Generated from protobuf field .grafeas.v1.AttestationOccurrence attestation = 14; - * @param \Grafeas\V1\AttestationOccurrence $var - * @return $this - */ - public function setAttestation($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\AttestationOccurrence::class); - $this->writeOneof(14, $var); - - return $this; - } - - /** - * Describes an available package upgrade on the linked resource. - * - * Generated from protobuf field .grafeas.v1.UpgradeOccurrence upgrade = 15; - * @return \Grafeas\V1\UpgradeOccurrence|null - */ - public function getUpgrade() - { - return $this->readOneof(15); - } - - public function hasUpgrade() - { - return $this->hasOneof(15); - } - - /** - * Describes an available package upgrade on the linked resource. - * - * Generated from protobuf field .grafeas.v1.UpgradeOccurrence upgrade = 15; - * @param \Grafeas\V1\UpgradeOccurrence $var - * @return $this - */ - public function setUpgrade($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\UpgradeOccurrence::class); - $this->writeOneof(15, $var); - - return $this; - } - - /** - * Describes a compliance violation on a linked resource. - * - * Generated from protobuf field .grafeas.v1.ComplianceOccurrence compliance = 16; - * @return \Grafeas\V1\ComplianceOccurrence|null - */ - public function getCompliance() - { - return $this->readOneof(16); - } - - public function hasCompliance() - { - return $this->hasOneof(16); - } - - /** - * Describes a compliance violation on a linked resource. - * - * Generated from protobuf field .grafeas.v1.ComplianceOccurrence compliance = 16; - * @param \Grafeas\V1\ComplianceOccurrence $var - * @return $this - */ - public function setCompliance($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\ComplianceOccurrence::class); - $this->writeOneof(16, $var); - - return $this; - } - - /** - * Describes an attestation of an artifact using dsse. - * - * Generated from protobuf field .grafeas.v1.DSSEAttestationOccurrence dsse_attestation = 17; - * @return \Grafeas\V1\DSSEAttestationOccurrence|null - */ - public function getDsseAttestation() - { - return $this->readOneof(17); - } - - public function hasDsseAttestation() - { - return $this->hasOneof(17); - } - - /** - * Describes an attestation of an artifact using dsse. - * - * Generated from protobuf field .grafeas.v1.DSSEAttestationOccurrence dsse_attestation = 17; - * @param \Grafeas\V1\DSSEAttestationOccurrence $var - * @return $this - */ - public function setDsseAttestation($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\DSSEAttestationOccurrence::class); - $this->writeOneof(17, $var); - - return $this; - } - - /** - * Describes a specific SBOM reference occurrences. - * - * Generated from protobuf field .grafeas.v1.SBOMReferenceOccurrence sbom_reference = 19; - * @return \Grafeas\V1\SBOMReferenceOccurrence|null - */ - public function getSbomReference() - { - return $this->readOneof(19); - } - - public function hasSbomReference() - { - return $this->hasOneof(19); - } - - /** - * Describes a specific SBOM reference occurrences. - * - * Generated from protobuf field .grafeas.v1.SBOMReferenceOccurrence sbom_reference = 19; - * @param \Grafeas\V1\SBOMReferenceOccurrence $var - * @return $this - */ - public function setSbomReference($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\SBOMReferenceOccurrence::class); - $this->writeOneof(19, $var); - - return $this; - } - - /** - * Describes a secret. - * - * Generated from protobuf field .grafeas.v1.SecretOccurrence secret = 20; - * @return \Grafeas\V1\SecretOccurrence|null - */ - public function getSecret() - { - return $this->readOneof(20); - } - - public function hasSecret() - { - return $this->hasOneof(20); - } - - /** - * Describes a secret. - * - * Generated from protobuf field .grafeas.v1.SecretOccurrence secret = 20; - * @param \Grafeas\V1\SecretOccurrence $var - * @return $this - */ - public function setSecret($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\SecretOccurrence::class); - $this->writeOneof(20, $var); - - return $this; - } - - /** - * https://github.com/secure-systems-lab/dsse - * - * Generated from protobuf field .grafeas.v1.Envelope envelope = 18; - * @return \Grafeas\V1\Envelope|null - */ - public function getEnvelope() - { - return $this->envelope; - } - - public function hasEnvelope() - { - return isset($this->envelope); - } - - public function clearEnvelope() - { - unset($this->envelope); - } - - /** - * https://github.com/secure-systems-lab/dsse - * - * Generated from protobuf field .grafeas.v1.Envelope envelope = 18; - * @param \Grafeas\V1\Envelope $var - * @return $this - */ - public function setEnvelope($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\Envelope::class); - $this->envelope = $var; - - return $this; - } - - /** - * @return string - */ - public function getDetails() - { - return $this->whichOneof("details"); - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/PackageNote.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/PackageNote.php deleted file mode 100644 index a7295d29168a..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/PackageNote.php +++ /dev/null @@ -1,451 +0,0 @@ -grafeas.v1.PackageNote - */ -class PackageNote extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the package. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $name = ''; - /** - * Deprecated. - * The various channels by which a package is distributed. - * - * Generated from protobuf field repeated .grafeas.v1.Distribution distribution = 10; - */ - private $distribution; - /** - * The type of package; whether native or non native (e.g., ruby gems, - * node.js packages, etc.). - * - * Generated from protobuf field string package_type = 11; - */ - protected $package_type = ''; - /** - * The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) - * denoting the package manager version distributing a package. - * The cpe_uri will be blank for language packages. - * - * Generated from protobuf field string cpe_uri = 12; - */ - protected $cpe_uri = ''; - /** - * The CPU architecture for which packages in this distribution channel were - * built. Architecture will be blank for language packages. - * - * Generated from protobuf field .grafeas.v1.Architecture architecture = 13; - */ - protected $architecture = 0; - /** - * The version of the package. - * - * Generated from protobuf field .grafeas.v1.Version version = 14; - */ - protected $version = null; - /** - * A freeform text denoting the maintainer of this package. - * - * Generated from protobuf field string maintainer = 15; - */ - protected $maintainer = ''; - /** - * The homepage for this package. - * - * Generated from protobuf field string url = 16; - */ - protected $url = ''; - /** - * The description of this package. - * - * Generated from protobuf field string description = 17; - */ - protected $description = ''; - /** - * Licenses that have been declared by the authors of the package. - * - * Generated from protobuf field .grafeas.v1.License license = 18; - */ - protected $license = null; - /** - * Hash value, typically a file digest, that allows unique - * identification a specific package. - * - * Generated from protobuf field repeated .grafeas.v1.Digest digest = 19; - */ - private $digest; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the package. - * @type array<\Grafeas\V1\Distribution>|\Google\Protobuf\Internal\RepeatedField $distribution - * Deprecated. - * The various channels by which a package is distributed. - * @type string $package_type - * The type of package; whether native or non native (e.g., ruby gems, - * node.js packages, etc.). - * @type string $cpe_uri - * The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) - * denoting the package manager version distributing a package. - * The cpe_uri will be blank for language packages. - * @type int $architecture - * The CPU architecture for which packages in this distribution channel were - * built. Architecture will be blank for language packages. - * @type \Grafeas\V1\Version $version - * The version of the package. - * @type string $maintainer - * A freeform text denoting the maintainer of this package. - * @type string $url - * The homepage for this package. - * @type string $description - * The description of this package. - * @type \Grafeas\V1\License $license - * Licenses that have been declared by the authors of the package. - * @type array<\Grafeas\V1\Digest>|\Google\Protobuf\Internal\RepeatedField $digest - * Hash value, typically a file digest, that allows unique - * identification a specific package. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Package::initOnce(); - parent::__construct($data); - } - - /** - * The name of the package. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the package. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Deprecated. - * The various channels by which a package is distributed. - * - * Generated from protobuf field repeated .grafeas.v1.Distribution distribution = 10; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDistribution() - { - return $this->distribution; - } - - /** - * Deprecated. - * The various channels by which a package is distributed. - * - * Generated from protobuf field repeated .grafeas.v1.Distribution distribution = 10; - * @param array<\Grafeas\V1\Distribution>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDistribution($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Distribution::class); - $this->distribution = $arr; - - return $this; - } - - /** - * The type of package; whether native or non native (e.g., ruby gems, - * node.js packages, etc.). - * - * Generated from protobuf field string package_type = 11; - * @return string - */ - public function getPackageType() - { - return $this->package_type; - } - - /** - * The type of package; whether native or non native (e.g., ruby gems, - * node.js packages, etc.). - * - * Generated from protobuf field string package_type = 11; - * @param string $var - * @return $this - */ - public function setPackageType($var) - { - GPBUtil::checkString($var, True); - $this->package_type = $var; - - return $this; - } - - /** - * The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) - * denoting the package manager version distributing a package. - * The cpe_uri will be blank for language packages. - * - * Generated from protobuf field string cpe_uri = 12; - * @return string - */ - public function getCpeUri() - { - return $this->cpe_uri; - } - - /** - * The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) - * denoting the package manager version distributing a package. - * The cpe_uri will be blank for language packages. - * - * Generated from protobuf field string cpe_uri = 12; - * @param string $var - * @return $this - */ - public function setCpeUri($var) - { - GPBUtil::checkString($var, True); - $this->cpe_uri = $var; - - return $this; - } - - /** - * The CPU architecture for which packages in this distribution channel were - * built. Architecture will be blank for language packages. - * - * Generated from protobuf field .grafeas.v1.Architecture architecture = 13; - * @return int - */ - public function getArchitecture() - { - return $this->architecture; - } - - /** - * The CPU architecture for which packages in this distribution channel were - * built. Architecture will be blank for language packages. - * - * Generated from protobuf field .grafeas.v1.Architecture architecture = 13; - * @param int $var - * @return $this - */ - public function setArchitecture($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\Architecture::class); - $this->architecture = $var; - - return $this; - } - - /** - * The version of the package. - * - * Generated from protobuf field .grafeas.v1.Version version = 14; - * @return \Grafeas\V1\Version|null - */ - public function getVersion() - { - return $this->version; - } - - public function hasVersion() - { - return isset($this->version); - } - - public function clearVersion() - { - unset($this->version); - } - - /** - * The version of the package. - * - * Generated from protobuf field .grafeas.v1.Version version = 14; - * @param \Grafeas\V1\Version $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\Version::class); - $this->version = $var; - - return $this; - } - - /** - * A freeform text denoting the maintainer of this package. - * - * Generated from protobuf field string maintainer = 15; - * @return string - */ - public function getMaintainer() - { - return $this->maintainer; - } - - /** - * A freeform text denoting the maintainer of this package. - * - * Generated from protobuf field string maintainer = 15; - * @param string $var - * @return $this - */ - public function setMaintainer($var) - { - GPBUtil::checkString($var, True); - $this->maintainer = $var; - - return $this; - } - - /** - * The homepage for this package. - * - * Generated from protobuf field string url = 16; - * @return string - */ - public function getUrl() - { - return $this->url; - } - - /** - * The homepage for this package. - * - * Generated from protobuf field string url = 16; - * @param string $var - * @return $this - */ - public function setUrl($var) - { - GPBUtil::checkString($var, True); - $this->url = $var; - - return $this; - } - - /** - * The description of this package. - * - * Generated from protobuf field string description = 17; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * The description of this package. - * - * Generated from protobuf field string description = 17; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Licenses that have been declared by the authors of the package. - * - * Generated from protobuf field .grafeas.v1.License license = 18; - * @return \Grafeas\V1\License|null - */ - public function getLicense() - { - return $this->license; - } - - public function hasLicense() - { - return isset($this->license); - } - - public function clearLicense() - { - unset($this->license); - } - - /** - * Licenses that have been declared by the authors of the package. - * - * Generated from protobuf field .grafeas.v1.License license = 18; - * @param \Grafeas\V1\License $var - * @return $this - */ - public function setLicense($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\License::class); - $this->license = $var; - - return $this; - } - - /** - * Hash value, typically a file digest, that allows unique - * identification a specific package. - * - * Generated from protobuf field repeated .grafeas.v1.Digest digest = 19; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDigest() - { - return $this->digest; - } - - /** - * Hash value, typically a file digest, that allows unique - * identification a specific package. - * - * Generated from protobuf field repeated .grafeas.v1.Digest digest = 19; - * @param array<\Grafeas\V1\Digest>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDigest($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Digest::class); - $this->digest = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/PackageOccurrence.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/PackageOccurrence.php deleted file mode 100644 index dafa0769a930..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/PackageOccurrence.php +++ /dev/null @@ -1,311 +0,0 @@ -grafeas.v1.PackageOccurrence - */ -class PackageOccurrence extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the installed package. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * All of the places within the filesystem versions of this package - * have been found. - * - * Generated from protobuf field repeated .grafeas.v1.Location location = 2; - */ - private $location; - /** - * The type of package; whether native or non native (e.g., ruby gems, - * node.js packages, etc.). - * - * Generated from protobuf field string package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $package_type = ''; - /** - * The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) - * denoting the package manager version distributing a package. - * The cpe_uri will be blank for language packages. - * - * Generated from protobuf field string cpe_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $cpe_uri = ''; - /** - * The CPU architecture for which packages in this distribution channel were - * built. Architecture will be blank for language packages. - * - * Generated from protobuf field .grafeas.v1.Architecture architecture = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $architecture = 0; - /** - * Licenses that have been declared by the authors of the package. - * - * Generated from protobuf field .grafeas.v1.License license = 6; - */ - protected $license = null; - /** - * The version of the package. - * - * Generated from protobuf field .grafeas.v1.Version version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $version = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the installed package. - * @type array<\Grafeas\V1\Location>|\Google\Protobuf\Internal\RepeatedField $location - * All of the places within the filesystem versions of this package - * have been found. - * @type string $package_type - * The type of package; whether native or non native (e.g., ruby gems, - * node.js packages, etc.). - * @type string $cpe_uri - * The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) - * denoting the package manager version distributing a package. - * The cpe_uri will be blank for language packages. - * @type int $architecture - * The CPU architecture for which packages in this distribution channel were - * built. Architecture will be blank for language packages. - * @type \Grafeas\V1\License $license - * Licenses that have been declared by the authors of the package. - * @type \Grafeas\V1\Version $version - * The version of the package. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Package::initOnce(); - parent::__construct($data); - } - - /** - * The name of the installed package. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the installed package. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * All of the places within the filesystem versions of this package - * have been found. - * - * Generated from protobuf field repeated .grafeas.v1.Location location = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLocation() - { - return $this->location; - } - - /** - * All of the places within the filesystem versions of this package - * have been found. - * - * Generated from protobuf field repeated .grafeas.v1.Location location = 2; - * @param array<\Grafeas\V1\Location>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLocation($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Location::class); - $this->location = $arr; - - return $this; - } - - /** - * The type of package; whether native or non native (e.g., ruby gems, - * node.js packages, etc.). - * - * Generated from protobuf field string package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getPackageType() - { - return $this->package_type; - } - - /** - * The type of package; whether native or non native (e.g., ruby gems, - * node.js packages, etc.). - * - * Generated from protobuf field string package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setPackageType($var) - { - GPBUtil::checkString($var, True); - $this->package_type = $var; - - return $this; - } - - /** - * The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) - * denoting the package manager version distributing a package. - * The cpe_uri will be blank for language packages. - * - * Generated from protobuf field string cpe_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getCpeUri() - { - return $this->cpe_uri; - } - - /** - * The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) - * denoting the package manager version distributing a package. - * The cpe_uri will be blank for language packages. - * - * Generated from protobuf field string cpe_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setCpeUri($var) - { - GPBUtil::checkString($var, True); - $this->cpe_uri = $var; - - return $this; - } - - /** - * The CPU architecture for which packages in this distribution channel were - * built. Architecture will be blank for language packages. - * - * Generated from protobuf field .grafeas.v1.Architecture architecture = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getArchitecture() - { - return $this->architecture; - } - - /** - * The CPU architecture for which packages in this distribution channel were - * built. Architecture will be blank for language packages. - * - * Generated from protobuf field .grafeas.v1.Architecture architecture = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setArchitecture($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\Architecture::class); - $this->architecture = $var; - - return $this; - } - - /** - * Licenses that have been declared by the authors of the package. - * - * Generated from protobuf field .grafeas.v1.License license = 6; - * @return \Grafeas\V1\License|null - */ - public function getLicense() - { - return $this->license; - } - - public function hasLicense() - { - return isset($this->license); - } - - public function clearLicense() - { - unset($this->license); - } - - /** - * Licenses that have been declared by the authors of the package. - * - * Generated from protobuf field .grafeas.v1.License license = 6; - * @param \Grafeas\V1\License $var - * @return $this - */ - public function setLicense($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\License::class); - $this->license = $var; - - return $this; - } - - /** - * The version of the package. - * - * Generated from protobuf field .grafeas.v1.Version version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Grafeas\V1\Version|null - */ - public function getVersion() - { - return $this->version; - } - - public function hasVersion() - { - return isset($this->version); - } - - public function clearVersion() - { - unset($this->version); - } - - /** - * The version of the package. - * - * Generated from protobuf field .grafeas.v1.Version version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Grafeas\V1\Version $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\Version::class); - $this->version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ProjectRepoId.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ProjectRepoId.php deleted file mode 100644 index d2c9475a063e..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ProjectRepoId.php +++ /dev/null @@ -1,102 +0,0 @@ -grafeas.v1.ProjectRepoId - */ -class ProjectRepoId extends \Google\Protobuf\Internal\Message -{ - /** - * The ID of the project. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * The name of the repo. Leave empty for the default repo. - * - * Generated from protobuf field string repo_name = 2; - */ - protected $repo_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * The ID of the project. - * @type string $repo_name - * The name of the repo. Leave empty for the default repo. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Provenance::initOnce(); - parent::__construct($data); - } - - /** - * The ID of the project. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The ID of the project. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * The name of the repo. Leave empty for the default repo. - * - * Generated from protobuf field string repo_name = 2; - * @return string - */ - public function getRepoName() - { - return $this->repo_name; - } - - /** - * The name of the repo. Leave empty for the default repo. - * - * Generated from protobuf field string repo_name = 2; - * @param string $var - * @return $this - */ - public function setRepoName($var) - { - GPBUtil::checkString($var, True); - $this->repo_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Recipe.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Recipe.php deleted file mode 100644 index 0806a1ed630b..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Recipe.php +++ /dev/null @@ -1,273 +0,0 @@ -grafeas.v1.Recipe - */ -class Recipe extends \Google\Protobuf\Internal\Message -{ - /** - * URI indicating what type of recipe was performed. It determines the meaning - * of recipe.entryPoint, recipe.arguments, recipe.environment, and materials. - * - * Generated from protobuf field string type = 1; - */ - protected $type = ''; - /** - * Index in materials containing the recipe steps that are not implied by - * recipe.type. For example, if the recipe type were "make", then this would - * point to the source containing the Makefile, not the make program itself. - * Set to -1 if the recipe doesn't come from a material, as zero is default - * unset value for int64. - * - * Generated from protobuf field int64 defined_in_material = 2; - */ - protected $defined_in_material = 0; - /** - * String identifying the entry point into the build. - * This is often a path to a configuration file and/or a target label within - * that file. The syntax and meaning are defined by recipe.type. For example, - * if the recipe type were "make", then this would reference the directory in - * which to run make as well as which target to use. - * - * Generated from protobuf field string entry_point = 3; - */ - protected $entry_point = ''; - /** - * Collection of all external inputs that influenced the build on top of - * recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe - * type were "make", then this might be the flags passed to make aside from - * the target, which is captured in recipe.entryPoint. Since the arguments - * field can greatly vary in structure, depending on the builder and recipe - * type, this is of form "Any". - * - * Generated from protobuf field repeated .google.protobuf.Any arguments = 4; - */ - private $arguments; - /** - * Any other builder-controlled inputs necessary for correctly evaluating the - * recipe. Usually only needed for reproducing the build but not evaluated as - * part of policy. Since the environment field can greatly vary in structure, - * depending on the builder and recipe type, this is of form "Any". - * - * Generated from protobuf field repeated .google.protobuf.Any environment = 5; - */ - private $environment; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $type - * URI indicating what type of recipe was performed. It determines the meaning - * of recipe.entryPoint, recipe.arguments, recipe.environment, and materials. - * @type int|string $defined_in_material - * Index in materials containing the recipe steps that are not implied by - * recipe.type. For example, if the recipe type were "make", then this would - * point to the source containing the Makefile, not the make program itself. - * Set to -1 if the recipe doesn't come from a material, as zero is default - * unset value for int64. - * @type string $entry_point - * String identifying the entry point into the build. - * This is often a path to a configuration file and/or a target label within - * that file. The syntax and meaning are defined by recipe.type. For example, - * if the recipe type were "make", then this would reference the directory in - * which to run make as well as which target to use. - * @type array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $arguments - * Collection of all external inputs that influenced the build on top of - * recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe - * type were "make", then this might be the flags passed to make aside from - * the target, which is captured in recipe.entryPoint. Since the arguments - * field can greatly vary in structure, depending on the builder and recipe - * type, this is of form "Any". - * @type array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $environment - * Any other builder-controlled inputs necessary for correctly evaluating the - * recipe. Usually only needed for reproducing the build but not evaluated as - * part of policy. Since the environment field can greatly vary in structure, - * depending on the builder and recipe type, this is of form "Any". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\IntotoProvenance::initOnce(); - parent::__construct($data); - } - - /** - * URI indicating what type of recipe was performed. It determines the meaning - * of recipe.entryPoint, recipe.arguments, recipe.environment, and materials. - * - * Generated from protobuf field string type = 1; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * URI indicating what type of recipe was performed. It determines the meaning - * of recipe.entryPoint, recipe.arguments, recipe.environment, and materials. - * - * Generated from protobuf field string type = 1; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * Index in materials containing the recipe steps that are not implied by - * recipe.type. For example, if the recipe type were "make", then this would - * point to the source containing the Makefile, not the make program itself. - * Set to -1 if the recipe doesn't come from a material, as zero is default - * unset value for int64. - * - * Generated from protobuf field int64 defined_in_material = 2; - * @return int|string - */ - public function getDefinedInMaterial() - { - return $this->defined_in_material; - } - - /** - * Index in materials containing the recipe steps that are not implied by - * recipe.type. For example, if the recipe type were "make", then this would - * point to the source containing the Makefile, not the make program itself. - * Set to -1 if the recipe doesn't come from a material, as zero is default - * unset value for int64. - * - * Generated from protobuf field int64 defined_in_material = 2; - * @param int|string $var - * @return $this - */ - public function setDefinedInMaterial($var) - { - GPBUtil::checkInt64($var); - $this->defined_in_material = $var; - - return $this; - } - - /** - * String identifying the entry point into the build. - * This is often a path to a configuration file and/or a target label within - * that file. The syntax and meaning are defined by recipe.type. For example, - * if the recipe type were "make", then this would reference the directory in - * which to run make as well as which target to use. - * - * Generated from protobuf field string entry_point = 3; - * @return string - */ - public function getEntryPoint() - { - return $this->entry_point; - } - - /** - * String identifying the entry point into the build. - * This is often a path to a configuration file and/or a target label within - * that file. The syntax and meaning are defined by recipe.type. For example, - * if the recipe type were "make", then this would reference the directory in - * which to run make as well as which target to use. - * - * Generated from protobuf field string entry_point = 3; - * @param string $var - * @return $this - */ - public function setEntryPoint($var) - { - GPBUtil::checkString($var, True); - $this->entry_point = $var; - - return $this; - } - - /** - * Collection of all external inputs that influenced the build on top of - * recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe - * type were "make", then this might be the flags passed to make aside from - * the target, which is captured in recipe.entryPoint. Since the arguments - * field can greatly vary in structure, depending on the builder and recipe - * type, this is of form "Any". - * - * Generated from protobuf field repeated .google.protobuf.Any arguments = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getArguments() - { - return $this->arguments; - } - - /** - * Collection of all external inputs that influenced the build on top of - * recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe - * type were "make", then this might be the flags passed to make aside from - * the target, which is captured in recipe.entryPoint. Since the arguments - * field can greatly vary in structure, depending on the builder and recipe - * type, this is of form "Any". - * - * Generated from protobuf field repeated .google.protobuf.Any arguments = 4; - * @param array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setArguments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); - $this->arguments = $arr; - - return $this; - } - - /** - * Any other builder-controlled inputs necessary for correctly evaluating the - * recipe. Usually only needed for reproducing the build but not evaluated as - * part of policy. Since the environment field can greatly vary in structure, - * depending on the builder and recipe type, this is of form "Any". - * - * Generated from protobuf field repeated .google.protobuf.Any environment = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEnvironment() - { - return $this->environment; - } - - /** - * Any other builder-controlled inputs necessary for correctly evaluating the - * recipe. Usually only needed for reproducing the build but not evaluated as - * part of policy. Since the environment field can greatly vary in structure, - * depending on the builder and recipe type, this is of form "Any". - * - * Generated from protobuf field repeated .google.protobuf.Any environment = 5; - * @param array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEnvironment($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); - $this->environment = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/RelatedUrl.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/RelatedUrl.php deleted file mode 100644 index c407db0064b9..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/RelatedUrl.php +++ /dev/null @@ -1,101 +0,0 @@ -grafeas.v1.RelatedUrl - */ -class RelatedUrl extends \Google\Protobuf\Internal\Message -{ - /** - * Specific URL associated with the resource. - * - * Generated from protobuf field string url = 1; - */ - protected $url = ''; - /** - * Label to describe usage of the URL. - * - * Generated from protobuf field string label = 2; - */ - protected $label = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $url - * Specific URL associated with the resource. - * @type string $label - * Label to describe usage of the URL. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Common::initOnce(); - parent::__construct($data); - } - - /** - * Specific URL associated with the resource. - * - * Generated from protobuf field string url = 1; - * @return string - */ - public function getUrl() - { - return $this->url; - } - - /** - * Specific URL associated with the resource. - * - * Generated from protobuf field string url = 1; - * @param string $var - * @return $this - */ - public function setUrl($var) - { - GPBUtil::checkString($var, True); - $this->url = $var; - - return $this; - } - - /** - * Label to describe usage of the URL. - * - * Generated from protobuf field string label = 2; - * @return string - */ - public function getLabel() - { - return $this->label; - } - - /** - * Label to describe usage of the URL. - * - * Generated from protobuf field string label = 2; - * @param string $var - * @return $this - */ - public function setLabel($var) - { - GPBUtil::checkString($var, True); - $this->label = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/RepoId.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/RepoId.php deleted file mode 100644 index 5643c66c7c24..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/RepoId.php +++ /dev/null @@ -1,108 +0,0 @@ -grafeas.v1.RepoId - */ -class RepoId extends \Google\Protobuf\Internal\Message -{ - protected $id; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Grafeas\V1\ProjectRepoId $project_repo_id - * A combination of a project ID and a repo name. - * @type string $uid - * A server-assigned, globally unique identifier. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Provenance::initOnce(); - parent::__construct($data); - } - - /** - * A combination of a project ID and a repo name. - * - * Generated from protobuf field .grafeas.v1.ProjectRepoId project_repo_id = 1; - * @return \Grafeas\V1\ProjectRepoId|null - */ - public function getProjectRepoId() - { - return $this->readOneof(1); - } - - public function hasProjectRepoId() - { - return $this->hasOneof(1); - } - - /** - * A combination of a project ID and a repo name. - * - * Generated from protobuf field .grafeas.v1.ProjectRepoId project_repo_id = 1; - * @param \Grafeas\V1\ProjectRepoId $var - * @return $this - */ - public function setProjectRepoId($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\ProjectRepoId::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A server-assigned, globally unique identifier. - * - * Generated from protobuf field string uid = 2; - * @return string - */ - public function getUid() - { - return $this->readOneof(2); - } - - public function hasUid() - { - return $this->hasOneof(2); - } - - /** - * A server-assigned, globally unique identifier. - * - * Generated from protobuf field string uid = 2; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getId() - { - return $this->whichOneof("id"); - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Risk.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Risk.php deleted file mode 100644 index 4f9c4bd62a86..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Risk.php +++ /dev/null @@ -1,127 +0,0 @@ -grafeas.v1.Risk - */ -class Risk extends \Google\Protobuf\Internal\Message -{ - /** - * CISA maintains the authoritative source of vulnerabilities that have been - * exploited in the wild. - * - * Generated from protobuf field .grafeas.v1.CISAKnownExploitedVulnerabilities cisa_kev = 1; - */ - protected $cisa_kev = null; - /** - * The Exploit Prediction Scoring System (EPSS) estimates the likelihood - * (probability) that a software vulnerability will be exploited in the wild. - * - * Generated from protobuf field .grafeas.v1.ExploitPredictionScoringSystem epss = 2; - */ - protected $epss = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Grafeas\V1\CISAKnownExploitedVulnerabilities $cisa_kev - * CISA maintains the authoritative source of vulnerabilities that have been - * exploited in the wild. - * @type \Grafeas\V1\ExploitPredictionScoringSystem $epss - * The Exploit Prediction Scoring System (EPSS) estimates the likelihood - * (probability) that a software vulnerability will be exploited in the wild. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Risk::initOnce(); - parent::__construct($data); - } - - /** - * CISA maintains the authoritative source of vulnerabilities that have been - * exploited in the wild. - * - * Generated from protobuf field .grafeas.v1.CISAKnownExploitedVulnerabilities cisa_kev = 1; - * @return \Grafeas\V1\CISAKnownExploitedVulnerabilities|null - */ - public function getCisaKev() - { - return $this->cisa_kev; - } - - public function hasCisaKev() - { - return isset($this->cisa_kev); - } - - public function clearCisaKev() - { - unset($this->cisa_kev); - } - - /** - * CISA maintains the authoritative source of vulnerabilities that have been - * exploited in the wild. - * - * Generated from protobuf field .grafeas.v1.CISAKnownExploitedVulnerabilities cisa_kev = 1; - * @param \Grafeas\V1\CISAKnownExploitedVulnerabilities $var - * @return $this - */ - public function setCisaKev($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\CISAKnownExploitedVulnerabilities::class); - $this->cisa_kev = $var; - - return $this; - } - - /** - * The Exploit Prediction Scoring System (EPSS) estimates the likelihood - * (probability) that a software vulnerability will be exploited in the wild. - * - * Generated from protobuf field .grafeas.v1.ExploitPredictionScoringSystem epss = 2; - * @return \Grafeas\V1\ExploitPredictionScoringSystem|null - */ - public function getEpss() - { - return $this->epss; - } - - public function hasEpss() - { - return isset($this->epss); - } - - public function clearEpss() - { - unset($this->epss); - } - - /** - * The Exploit Prediction Scoring System (EPSS) estimates the likelihood - * (probability) that a software vulnerability will be exploited in the wild. - * - * Generated from protobuf field .grafeas.v1.ExploitPredictionScoringSystem epss = 2; - * @param \Grafeas\V1\ExploitPredictionScoringSystem $var - * @return $this - */ - public function setEpss($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\ExploitPredictionScoringSystem::class); - $this->epss = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SBOMReferenceNote.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SBOMReferenceNote.php deleted file mode 100644 index bb58886d3a3d..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SBOMReferenceNote.php +++ /dev/null @@ -1,105 +0,0 @@ -grafeas.v1.SBOMReferenceNote - */ -class SBOMReferenceNote extends \Google\Protobuf\Internal\Message -{ - /** - * The format that SBOM takes. E.g. may be spdx, cyclonedx, etc... - * - * Generated from protobuf field string format = 1; - */ - protected $format = ''; - /** - * The version of the format that the SBOM takes. E.g. if the format - * is spdx, the version may be 2.3. - * - * Generated from protobuf field string version = 2; - */ - protected $version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $format - * The format that SBOM takes. E.g. may be spdx, cyclonedx, etc... - * @type string $version - * The version of the format that the SBOM takes. E.g. if the format - * is spdx, the version may be 2.3. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Sbom::initOnce(); - parent::__construct($data); - } - - /** - * The format that SBOM takes. E.g. may be spdx, cyclonedx, etc... - * - * Generated from protobuf field string format = 1; - * @return string - */ - public function getFormat() - { - return $this->format; - } - - /** - * The format that SBOM takes. E.g. may be spdx, cyclonedx, etc... - * - * Generated from protobuf field string format = 1; - * @param string $var - * @return $this - */ - public function setFormat($var) - { - GPBUtil::checkString($var, True); - $this->format = $var; - - return $this; - } - - /** - * The version of the format that the SBOM takes. E.g. if the format - * is spdx, the version may be 2.3. - * - * Generated from protobuf field string version = 2; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * The version of the format that the SBOM takes. E.g. if the format - * is spdx, the version may be 2.3. - * - * Generated from protobuf field string version = 2; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SBOMReferenceOccurrence.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SBOMReferenceOccurrence.php deleted file mode 100644 index 4d4d0daa7670..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SBOMReferenceOccurrence.php +++ /dev/null @@ -1,156 +0,0 @@ -grafeas.v1.SBOMReferenceOccurrence - */ -class SBOMReferenceOccurrence extends \Google\Protobuf\Internal\Message -{ - /** - * The actual payload that contains the SBOM reference data. - * - * Generated from protobuf field .grafeas.v1.SbomReferenceIntotoPayload payload = 1; - */ - protected $payload = null; - /** - * The kind of payload that SbomReferenceIntotoPayload takes. Since it's in - * the intoto format, this value is expected to be - * 'application/vnd.in-toto+json'. - * - * Generated from protobuf field string payload_type = 2; - */ - protected $payload_type = ''; - /** - * The signatures over the payload. - * - * Generated from protobuf field repeated .grafeas.v1.EnvelopeSignature signatures = 3; - */ - private $signatures; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Grafeas\V1\SbomReferenceIntotoPayload $payload - * The actual payload that contains the SBOM reference data. - * @type string $payload_type - * The kind of payload that SbomReferenceIntotoPayload takes. Since it's in - * the intoto format, this value is expected to be - * 'application/vnd.in-toto+json'. - * @type array<\Grafeas\V1\EnvelopeSignature>|\Google\Protobuf\Internal\RepeatedField $signatures - * The signatures over the payload. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Sbom::initOnce(); - parent::__construct($data); - } - - /** - * The actual payload that contains the SBOM reference data. - * - * Generated from protobuf field .grafeas.v1.SbomReferenceIntotoPayload payload = 1; - * @return \Grafeas\V1\SbomReferenceIntotoPayload|null - */ - public function getPayload() - { - return $this->payload; - } - - public function hasPayload() - { - return isset($this->payload); - } - - public function clearPayload() - { - unset($this->payload); - } - - /** - * The actual payload that contains the SBOM reference data. - * - * Generated from protobuf field .grafeas.v1.SbomReferenceIntotoPayload payload = 1; - * @param \Grafeas\V1\SbomReferenceIntotoPayload $var - * @return $this - */ - public function setPayload($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\SbomReferenceIntotoPayload::class); - $this->payload = $var; - - return $this; - } - - /** - * The kind of payload that SbomReferenceIntotoPayload takes. Since it's in - * the intoto format, this value is expected to be - * 'application/vnd.in-toto+json'. - * - * Generated from protobuf field string payload_type = 2; - * @return string - */ - public function getPayloadType() - { - return $this->payload_type; - } - - /** - * The kind of payload that SbomReferenceIntotoPayload takes. Since it's in - * the intoto format, this value is expected to be - * 'application/vnd.in-toto+json'. - * - * Generated from protobuf field string payload_type = 2; - * @param string $var - * @return $this - */ - public function setPayloadType($var) - { - GPBUtil::checkString($var, True); - $this->payload_type = $var; - - return $this; - } - - /** - * The signatures over the payload. - * - * Generated from protobuf field repeated .grafeas.v1.EnvelopeSignature signatures = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSignatures() - { - return $this->signatures; - } - - /** - * The signatures over the payload. - * - * Generated from protobuf field repeated .grafeas.v1.EnvelopeSignature signatures = 3; - * @param array<\Grafeas\V1\EnvelopeSignature>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSignatures($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\EnvelopeSignature::class); - $this->signatures = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SbomReferenceIntotoPayload.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SbomReferenceIntotoPayload.php deleted file mode 100644 index 929614e5e836..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SbomReferenceIntotoPayload.php +++ /dev/null @@ -1,190 +0,0 @@ -grafeas.v1.SbomReferenceIntotoPayload - */ -class SbomReferenceIntotoPayload extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier for the schema of the Statement. - * - * Generated from protobuf field string type = 1 [json_name = "_type"]; - */ - protected $type = ''; - /** - * URI identifying the type of the Predicate. - * - * Generated from protobuf field string predicate_type = 2; - */ - protected $predicate_type = ''; - /** - * Set of software artifacts that the attestation applies to. Each element - * represents a single software artifact. - * - * Generated from protobuf field repeated .grafeas.v1.Subject subject = 3; - */ - private $subject; - /** - * Additional parameters of the Predicate. Includes the actual data about the - * SBOM. - * - * Generated from protobuf field .grafeas.v1.SbomReferenceIntotoPredicate predicate = 4; - */ - protected $predicate = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $type - * Identifier for the schema of the Statement. - * @type string $predicate_type - * URI identifying the type of the Predicate. - * @type array<\Grafeas\V1\Subject>|\Google\Protobuf\Internal\RepeatedField $subject - * Set of software artifacts that the attestation applies to. Each element - * represents a single software artifact. - * @type \Grafeas\V1\SbomReferenceIntotoPredicate $predicate - * Additional parameters of the Predicate. Includes the actual data about the - * SBOM. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Sbom::initOnce(); - parent::__construct($data); - } - - /** - * Identifier for the schema of the Statement. - * - * Generated from protobuf field string type = 1 [json_name = "_type"]; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Identifier for the schema of the Statement. - * - * Generated from protobuf field string type = 1 [json_name = "_type"]; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * URI identifying the type of the Predicate. - * - * Generated from protobuf field string predicate_type = 2; - * @return string - */ - public function getPredicateType() - { - return $this->predicate_type; - } - - /** - * URI identifying the type of the Predicate. - * - * Generated from protobuf field string predicate_type = 2; - * @param string $var - * @return $this - */ - public function setPredicateType($var) - { - GPBUtil::checkString($var, True); - $this->predicate_type = $var; - - return $this; - } - - /** - * Set of software artifacts that the attestation applies to. Each element - * represents a single software artifact. - * - * Generated from protobuf field repeated .grafeas.v1.Subject subject = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSubject() - { - return $this->subject; - } - - /** - * Set of software artifacts that the attestation applies to. Each element - * represents a single software artifact. - * - * Generated from protobuf field repeated .grafeas.v1.Subject subject = 3; - * @param array<\Grafeas\V1\Subject>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSubject($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\Subject::class); - $this->subject = $arr; - - return $this; - } - - /** - * Additional parameters of the Predicate. Includes the actual data about the - * SBOM. - * - * Generated from protobuf field .grafeas.v1.SbomReferenceIntotoPredicate predicate = 4; - * @return \Grafeas\V1\SbomReferenceIntotoPredicate|null - */ - public function getPredicate() - { - return $this->predicate; - } - - public function hasPredicate() - { - return isset($this->predicate); - } - - public function clearPredicate() - { - unset($this->predicate); - } - - /** - * Additional parameters of the Predicate. Includes the actual data about the - * SBOM. - * - * Generated from protobuf field .grafeas.v1.SbomReferenceIntotoPredicate predicate = 4; - * @param \Grafeas\V1\SbomReferenceIntotoPredicate $var - * @return $this - */ - public function setPredicate($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\SbomReferenceIntotoPredicate::class); - $this->predicate = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SbomReferenceIntotoPredicate.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SbomReferenceIntotoPredicate.php deleted file mode 100644 index 6a25f561f69e..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SbomReferenceIntotoPredicate.php +++ /dev/null @@ -1,169 +0,0 @@ -grafeas.v1.SbomReferenceIntotoPredicate - */ -class SbomReferenceIntotoPredicate extends \Google\Protobuf\Internal\Message -{ - /** - * The person or system referring this predicate to the consumer. - * - * Generated from protobuf field string referrer_id = 1; - */ - protected $referrer_id = ''; - /** - * The location of the SBOM. - * - * Generated from protobuf field string location = 2; - */ - protected $location = ''; - /** - * The mime type of the SBOM. - * - * Generated from protobuf field string mime_type = 3; - */ - protected $mime_type = ''; - /** - * A map of algorithm to digest of the contents of the SBOM. - * - * Generated from protobuf field map digest = 4; - */ - private $digest; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $referrer_id - * The person or system referring this predicate to the consumer. - * @type string $location - * The location of the SBOM. - * @type string $mime_type - * The mime type of the SBOM. - * @type array|\Google\Protobuf\Internal\MapField $digest - * A map of algorithm to digest of the contents of the SBOM. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Sbom::initOnce(); - parent::__construct($data); - } - - /** - * The person or system referring this predicate to the consumer. - * - * Generated from protobuf field string referrer_id = 1; - * @return string - */ - public function getReferrerId() - { - return $this->referrer_id; - } - - /** - * The person or system referring this predicate to the consumer. - * - * Generated from protobuf field string referrer_id = 1; - * @param string $var - * @return $this - */ - public function setReferrerId($var) - { - GPBUtil::checkString($var, True); - $this->referrer_id = $var; - - return $this; - } - - /** - * The location of the SBOM. - * - * Generated from protobuf field string location = 2; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * The location of the SBOM. - * - * Generated from protobuf field string location = 2; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * The mime type of the SBOM. - * - * Generated from protobuf field string mime_type = 3; - * @return string - */ - public function getMimeType() - { - return $this->mime_type; - } - - /** - * The mime type of the SBOM. - * - * Generated from protobuf field string mime_type = 3; - * @param string $var - * @return $this - */ - public function setMimeType($var) - { - GPBUtil::checkString($var, True); - $this->mime_type = $var; - - return $this; - } - - /** - * A map of algorithm to digest of the contents of the SBOM. - * - * Generated from protobuf field map digest = 4; - * @return \Google\Protobuf\Internal\MapField - */ - public function getDigest() - { - return $this->digest; - } - - /** - * A map of algorithm to digest of the contents of the SBOM. - * - * Generated from protobuf field map digest = 4; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setDigest($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->digest = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretKind.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretKind.php deleted file mode 100644 index 44c10cc3f171..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretKind.php +++ /dev/null @@ -1,205 +0,0 @@ -grafeas.v1.SecretKind - */ -class SecretKind -{ - /** - * Unspecified - * - * Generated from protobuf enum SECRET_KIND_UNSPECIFIED = 0; - */ - const SECRET_KIND_UNSPECIFIED = 0; - /** - * The secret kind is unknown. - * - * Generated from protobuf enum SECRET_KIND_UNKNOWN = 1; - */ - const SECRET_KIND_UNKNOWN = 1; - /** - * A Google Cloud service account key per: - * https://cloud.google.com/iam/docs/creating-managing-service-account-keys - * - * Generated from protobuf enum SECRET_KIND_GCP_SERVICE_ACCOUNT_KEY = 2; - */ - const SECRET_KIND_GCP_SERVICE_ACCOUNT_KEY = 2; - /** - * A Google Cloud API key per: - * https://cloud.google.com/docs/authentication/api-keys - * - * Generated from protobuf enum SECRET_KIND_GCP_API_KEY = 3; - */ - const SECRET_KIND_GCP_API_KEY = 3; - /** - * A Google Cloud OAuth2 client credentials per: - * https://developers.google.com/identity/protocols/oauth2 - * - * Generated from protobuf enum SECRET_KIND_GCP_OAUTH2_CLIENT_CREDENTIALS = 4; - */ - const SECRET_KIND_GCP_OAUTH2_CLIENT_CREDENTIALS = 4; - /** - * A Google Cloud OAuth2 access token per: - * https://cloud.google.com/docs/authentication/token-types#access - * - * Generated from protobuf enum SECRET_KIND_GCP_OAUTH2_ACCESS_TOKEN = 5; - */ - const SECRET_KIND_GCP_OAUTH2_ACCESS_TOKEN = 5; - /** - * An Anthropic Admin API key. - * - * Generated from protobuf enum SECRET_KIND_ANTHROPIC_ADMIN_API_KEY = 6; - */ - const SECRET_KIND_ANTHROPIC_ADMIN_API_KEY = 6; - /** - * An Anthropic API key. - * - * Generated from protobuf enum SECRET_KIND_ANTHROPIC_API_KEY = 7; - */ - const SECRET_KIND_ANTHROPIC_API_KEY = 7; - /** - * An Azure access token. - * - * Generated from protobuf enum SECRET_KIND_AZURE_ACCESS_TOKEN = 8; - */ - const SECRET_KIND_AZURE_ACCESS_TOKEN = 8; - /** - * An Azure Identity Platform ID token. - * - * Generated from protobuf enum SECRET_KIND_AZURE_IDENTITY_TOKEN = 9; - */ - const SECRET_KIND_AZURE_IDENTITY_TOKEN = 9; - /** - * A Docker Hub personal access token. - * - * Generated from protobuf enum SECRET_KIND_DOCKER_HUB_PERSONAL_ACCESS_TOKEN = 10; - */ - const SECRET_KIND_DOCKER_HUB_PERSONAL_ACCESS_TOKEN = 10; - /** - * A GitHub App refresh token. - * - * Generated from protobuf enum SECRET_KIND_GITHUB_APP_REFRESH_TOKEN = 11; - */ - const SECRET_KIND_GITHUB_APP_REFRESH_TOKEN = 11; - /** - * A GitHub App server-to-server token. - * - * Generated from protobuf enum SECRET_KIND_GITHUB_APP_SERVER_TO_SERVER_TOKEN = 12; - */ - const SECRET_KIND_GITHUB_APP_SERVER_TO_SERVER_TOKEN = 12; - /** - * A GitHub App user-to-server token. - * - * Generated from protobuf enum SECRET_KIND_GITHUB_APP_USER_TO_SERVER_TOKEN = 13; - */ - const SECRET_KIND_GITHUB_APP_USER_TO_SERVER_TOKEN = 13; - /** - * A GitHub personal access token (classic). - * - * Generated from protobuf enum SECRET_KIND_GITHUB_CLASSIC_PERSONAL_ACCESS_TOKEN = 14; - */ - const SECRET_KIND_GITHUB_CLASSIC_PERSONAL_ACCESS_TOKEN = 14; - /** - * A GitHub fine-grained personal access token. - * - * Generated from protobuf enum SECRET_KIND_GITHUB_FINE_GRAINED_PERSONAL_ACCESS_TOKEN = 15; - */ - const SECRET_KIND_GITHUB_FINE_GRAINED_PERSONAL_ACCESS_TOKEN = 15; - /** - * A GitHub OAuth token. - * - * Generated from protobuf enum SECRET_KIND_GITHUB_OAUTH_TOKEN = 16; - */ - const SECRET_KIND_GITHUB_OAUTH_TOKEN = 16; - /** - * A Hugging Face API key. - * - * Generated from protobuf enum SECRET_KIND_HUGGINGFACE_API_KEY = 17; - */ - const SECRET_KIND_HUGGINGFACE_API_KEY = 17; - /** - * An OpenAI API key. - * - * Generated from protobuf enum SECRET_KIND_OPENAI_API_KEY = 18; - */ - const SECRET_KIND_OPENAI_API_KEY = 18; - /** - * A Perplexity API key. - * - * Generated from protobuf enum SECRET_KIND_PERPLEXITY_API_KEY = 19; - */ - const SECRET_KIND_PERPLEXITY_API_KEY = 19; - /** - * A Stripe secret key. - * - * Generated from protobuf enum SECRET_KIND_STRIPE_SECRET_KEY = 20; - */ - const SECRET_KIND_STRIPE_SECRET_KEY = 20; - /** - * A Stripe restricted key. - * - * Generated from protobuf enum SECRET_KIND_STRIPE_RESTRICTED_KEY = 21; - */ - const SECRET_KIND_STRIPE_RESTRICTED_KEY = 21; - /** - * A Stripe webhook secret. - * - * Generated from protobuf enum SECRET_KIND_STRIPE_WEBHOOK_SECRET = 22; - */ - const SECRET_KIND_STRIPE_WEBHOOK_SECRET = 22; - - private static $valueToName = [ - self::SECRET_KIND_UNSPECIFIED => 'SECRET_KIND_UNSPECIFIED', - self::SECRET_KIND_UNKNOWN => 'SECRET_KIND_UNKNOWN', - self::SECRET_KIND_GCP_SERVICE_ACCOUNT_KEY => 'SECRET_KIND_GCP_SERVICE_ACCOUNT_KEY', - self::SECRET_KIND_GCP_API_KEY => 'SECRET_KIND_GCP_API_KEY', - self::SECRET_KIND_GCP_OAUTH2_CLIENT_CREDENTIALS => 'SECRET_KIND_GCP_OAUTH2_CLIENT_CREDENTIALS', - self::SECRET_KIND_GCP_OAUTH2_ACCESS_TOKEN => 'SECRET_KIND_GCP_OAUTH2_ACCESS_TOKEN', - self::SECRET_KIND_ANTHROPIC_ADMIN_API_KEY => 'SECRET_KIND_ANTHROPIC_ADMIN_API_KEY', - self::SECRET_KIND_ANTHROPIC_API_KEY => 'SECRET_KIND_ANTHROPIC_API_KEY', - self::SECRET_KIND_AZURE_ACCESS_TOKEN => 'SECRET_KIND_AZURE_ACCESS_TOKEN', - self::SECRET_KIND_AZURE_IDENTITY_TOKEN => 'SECRET_KIND_AZURE_IDENTITY_TOKEN', - self::SECRET_KIND_DOCKER_HUB_PERSONAL_ACCESS_TOKEN => 'SECRET_KIND_DOCKER_HUB_PERSONAL_ACCESS_TOKEN', - self::SECRET_KIND_GITHUB_APP_REFRESH_TOKEN => 'SECRET_KIND_GITHUB_APP_REFRESH_TOKEN', - self::SECRET_KIND_GITHUB_APP_SERVER_TO_SERVER_TOKEN => 'SECRET_KIND_GITHUB_APP_SERVER_TO_SERVER_TOKEN', - self::SECRET_KIND_GITHUB_APP_USER_TO_SERVER_TOKEN => 'SECRET_KIND_GITHUB_APP_USER_TO_SERVER_TOKEN', - self::SECRET_KIND_GITHUB_CLASSIC_PERSONAL_ACCESS_TOKEN => 'SECRET_KIND_GITHUB_CLASSIC_PERSONAL_ACCESS_TOKEN', - self::SECRET_KIND_GITHUB_FINE_GRAINED_PERSONAL_ACCESS_TOKEN => 'SECRET_KIND_GITHUB_FINE_GRAINED_PERSONAL_ACCESS_TOKEN', - self::SECRET_KIND_GITHUB_OAUTH_TOKEN => 'SECRET_KIND_GITHUB_OAUTH_TOKEN', - self::SECRET_KIND_HUGGINGFACE_API_KEY => 'SECRET_KIND_HUGGINGFACE_API_KEY', - self::SECRET_KIND_OPENAI_API_KEY => 'SECRET_KIND_OPENAI_API_KEY', - self::SECRET_KIND_PERPLEXITY_API_KEY => 'SECRET_KIND_PERPLEXITY_API_KEY', - self::SECRET_KIND_STRIPE_SECRET_KEY => 'SECRET_KIND_STRIPE_SECRET_KEY', - self::SECRET_KIND_STRIPE_RESTRICTED_KEY => 'SECRET_KIND_STRIPE_RESTRICTED_KEY', - self::SECRET_KIND_STRIPE_WEBHOOK_SECRET => 'SECRET_KIND_STRIPE_WEBHOOK_SECRET', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretLocation.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretLocation.php deleted file mode 100644 index 10acbb2b9054..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretLocation.php +++ /dev/null @@ -1,75 +0,0 @@ -grafeas.v1.SecretLocation - */ -class SecretLocation extends \Google\Protobuf\Internal\Message -{ - protected $location; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Grafeas\V1\FileLocation $file_location - * The secret is found from a file. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Secret::initOnce(); - parent::__construct($data); - } - - /** - * The secret is found from a file. - * - * Generated from protobuf field .grafeas.v1.FileLocation file_location = 1; - * @return \Grafeas\V1\FileLocation|null - */ - public function getFileLocation() - { - return $this->readOneof(1); - } - - public function hasFileLocation() - { - return $this->hasOneof(1); - } - - /** - * The secret is found from a file. - * - * Generated from protobuf field .grafeas.v1.FileLocation file_location = 1; - * @param \Grafeas\V1\FileLocation $var - * @return $this - */ - public function setFileLocation($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\FileLocation::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getLocation() - { - return $this->whichOneof("location"); - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretNote.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretNote.php deleted file mode 100644 index a0d917082a85..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretNote.php +++ /dev/null @@ -1,33 +0,0 @@ -grafeas.v1.SecretNote - */ -class SecretNote extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Secret::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretOccurrence.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretOccurrence.php deleted file mode 100644 index c95696b22bb0..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretOccurrence.php +++ /dev/null @@ -1,227 +0,0 @@ -grafeas.v1.SecretOccurrence - */ -class SecretOccurrence extends \Google\Protobuf\Internal\Message -{ - /** - * Type of secret. - * - * Generated from protobuf field .grafeas.v1.SecretKind kind = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $kind = 0; - /** - * Locations where the secret is detected. - * - * Generated from protobuf field repeated .grafeas.v1.SecretLocation locations = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $locations; - /** - * Status of the secret. - * - * Generated from protobuf field repeated .grafeas.v1.SecretStatus statuses = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $statuses; - /** - * Scan result of the secret. - * - * Generated from protobuf field .google.protobuf.Any data = 4; - */ - protected $data = null; - /** - * Hash value, typically a digest for the secret data, that allows unique - * identification of a specific secret. - * - * Generated from protobuf field .grafeas.v1.Digest digest = 5; - */ - protected $digest = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $kind - * Type of secret. - * @type array<\Grafeas\V1\SecretLocation>|\Google\Protobuf\Internal\RepeatedField $locations - * Locations where the secret is detected. - * @type array<\Grafeas\V1\SecretStatus>|\Google\Protobuf\Internal\RepeatedField $statuses - * Status of the secret. - * @type \Google\Protobuf\Any $data - * Scan result of the secret. - * @type \Grafeas\V1\Digest $digest - * Hash value, typically a digest for the secret data, that allows unique - * identification of a specific secret. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Secret::initOnce(); - parent::__construct($data); - } - - /** - * Type of secret. - * - * Generated from protobuf field .grafeas.v1.SecretKind kind = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getKind() - { - return $this->kind; - } - - /** - * Type of secret. - * - * Generated from protobuf field .grafeas.v1.SecretKind kind = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\SecretKind::class); - $this->kind = $var; - - return $this; - } - - /** - * Locations where the secret is detected. - * - * Generated from protobuf field repeated .grafeas.v1.SecretLocation locations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLocations() - { - return $this->locations; - } - - /** - * Locations where the secret is detected. - * - * Generated from protobuf field repeated .grafeas.v1.SecretLocation locations = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Grafeas\V1\SecretLocation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\SecretLocation::class); - $this->locations = $arr; - - return $this; - } - - /** - * Status of the secret. - * - * Generated from protobuf field repeated .grafeas.v1.SecretStatus statuses = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getStatuses() - { - return $this->statuses; - } - - /** - * Status of the secret. - * - * Generated from protobuf field repeated .grafeas.v1.SecretStatus statuses = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Grafeas\V1\SecretStatus>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setStatuses($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\SecretStatus::class); - $this->statuses = $arr; - - return $this; - } - - /** - * Scan result of the secret. - * - * Generated from protobuf field .google.protobuf.Any data = 4; - * @return \Google\Protobuf\Any|null - */ - public function getData() - { - return $this->data; - } - - public function hasData() - { - return isset($this->data); - } - - public function clearData() - { - unset($this->data); - } - - /** - * Scan result of the secret. - * - * Generated from protobuf field .google.protobuf.Any data = 4; - * @param \Google\Protobuf\Any $var - * @return $this - */ - public function setData($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Any::class); - $this->data = $var; - - return $this; - } - - /** - * Hash value, typically a digest for the secret data, that allows unique - * identification of a specific secret. - * - * Generated from protobuf field .grafeas.v1.Digest digest = 5; - * @return \Grafeas\V1\Digest|null - */ - public function getDigest() - { - return $this->digest; - } - - public function hasDigest() - { - return isset($this->digest); - } - - public function clearDigest() - { - unset($this->digest); - } - - /** - * Hash value, typically a digest for the secret data, that allows unique - * identification of a specific secret. - * - * Generated from protobuf field .grafeas.v1.Digest digest = 5; - * @param \Grafeas\V1\Digest $var - * @return $this - */ - public function setDigest($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\Digest::class); - $this->digest = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretStatus.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretStatus.php deleted file mode 100644 index 3ca3ca513752..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretStatus.php +++ /dev/null @@ -1,145 +0,0 @@ -grafeas.v1.SecretStatus - */ -class SecretStatus extends \Google\Protobuf\Internal\Message -{ - /** - * The status of the secret. - * - * Generated from protobuf field .grafeas.v1.SecretStatus.Status status = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $status = 0; - /** - * The time the secret status was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_time = null; - /** - * Optional message about the status code. - * - * Generated from protobuf field string message = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $status - * The status of the secret. - * @type \Google\Protobuf\Timestamp $update_time - * The time the secret status was last updated. - * @type string $message - * Optional message about the status code. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Secret::initOnce(); - parent::__construct($data); - } - - /** - * The status of the secret. - * - * Generated from protobuf field .grafeas.v1.SecretStatus.Status status = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * The status of the secret. - * - * Generated from protobuf field .grafeas.v1.SecretStatus.Status status = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\SecretStatus\Status::class); - $this->status = $var; - - return $this; - } - - /** - * The time the secret status was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * The time the secret status was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Optional message about the status code. - * - * Generated from protobuf field string message = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Optional message about the status code. - * - * Generated from protobuf field string message = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretStatus/Status.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretStatus/Status.php deleted file mode 100644 index f5463bf2c176..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretStatus/Status.php +++ /dev/null @@ -1,71 +0,0 @@ -grafeas.v1.SecretStatus.Status - */ -class Status -{ - /** - * Unspecified - * - * Generated from protobuf enum STATUS_UNSPECIFIED = 0; - */ - const STATUS_UNSPECIFIED = 0; - /** - * The status of the secret is unknown. - * - * Generated from protobuf enum UNKNOWN = 1; - */ - const UNKNOWN = 1; - /** - * The secret is valid. - * - * Generated from protobuf enum VALID = 2; - */ - const VALID = 2; - /** - * The secret is invalid. - * - * Generated from protobuf enum INVALID = 3; - */ - const INVALID = 3; - - private static $valueToName = [ - self::STATUS_UNSPECIFIED => 'STATUS_UNSPECIFIED', - self::UNKNOWN => 'UNKNOWN', - self::VALID => 'VALID', - self::INVALID => 'INVALID', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Status::class, \Grafeas\V1\SecretStatus_Status::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Severity.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Severity.php deleted file mode 100644 index 698112c5460e..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Severity.php +++ /dev/null @@ -1,82 +0,0 @@ -grafeas.v1.Severity - */ -class Severity -{ - /** - * Unknown. - * - * Generated from protobuf enum SEVERITY_UNSPECIFIED = 0; - */ - const SEVERITY_UNSPECIFIED = 0; - /** - * Minimal severity. - * - * Generated from protobuf enum MINIMAL = 1; - */ - const MINIMAL = 1; - /** - * Low severity. - * - * Generated from protobuf enum LOW = 2; - */ - const LOW = 2; - /** - * Medium severity. - * - * Generated from protobuf enum MEDIUM = 3; - */ - const MEDIUM = 3; - /** - * High severity. - * - * Generated from protobuf enum HIGH = 4; - */ - const HIGH = 4; - /** - * Critical severity. - * - * Generated from protobuf enum CRITICAL = 5; - */ - const CRITICAL = 5; - - private static $valueToName = [ - self::SEVERITY_UNSPECIFIED => 'SEVERITY_UNSPECIFIED', - self::MINIMAL => 'MINIMAL', - self::LOW => 'LOW', - self::MEDIUM => 'MEDIUM', - self::HIGH => 'HIGH', - self::CRITICAL => 'CRITICAL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Signature.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Signature.php deleted file mode 100644 index de57d7bfe087..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Signature.php +++ /dev/null @@ -1,192 +0,0 @@ -grafeas.v1.Signature - */ -class Signature extends \Google\Protobuf\Internal\Message -{ - /** - * The content of the signature, an opaque bytestring. - * The payload that this signature verifies MUST be unambiguously provided - * with the Signature during verification. A wrapper message might provide - * the payload explicitly. Alternatively, a message might have a canonical - * serialization that can always be unambiguously computed to derive the - * payload. - * - * Generated from protobuf field bytes signature = 1; - */ - protected $signature = ''; - /** - * The identifier for the public key that verifies this signature. - * * The `public_key_id` is required. - * * The `public_key_id` SHOULD be an RFC3986 conformant URI. - * * When possible, the `public_key_id` SHOULD be an immutable reference, - * such as a cryptographic digest. - * Examples of valid `public_key_id`s: - * OpenPGP V4 public key fingerprint: - * * "openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA" - * See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more - * details on this scheme. - * RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER - * serialization): - * * "ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU" - * * "nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5" - * - * Generated from protobuf field string public_key_id = 2; - */ - protected $public_key_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $signature - * The content of the signature, an opaque bytestring. - * The payload that this signature verifies MUST be unambiguously provided - * with the Signature during verification. A wrapper message might provide - * the payload explicitly. Alternatively, a message might have a canonical - * serialization that can always be unambiguously computed to derive the - * payload. - * @type string $public_key_id - * The identifier for the public key that verifies this signature. - * * The `public_key_id` is required. - * * The `public_key_id` SHOULD be an RFC3986 conformant URI. - * * When possible, the `public_key_id` SHOULD be an immutable reference, - * such as a cryptographic digest. - * Examples of valid `public_key_id`s: - * OpenPGP V4 public key fingerprint: - * * "openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA" - * See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more - * details on this scheme. - * RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER - * serialization): - * * "ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU" - * * "nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Common::initOnce(); - parent::__construct($data); - } - - /** - * The content of the signature, an opaque bytestring. - * The payload that this signature verifies MUST be unambiguously provided - * with the Signature during verification. A wrapper message might provide - * the payload explicitly. Alternatively, a message might have a canonical - * serialization that can always be unambiguously computed to derive the - * payload. - * - * Generated from protobuf field bytes signature = 1; - * @return string - */ - public function getSignature() - { - return $this->signature; - } - - /** - * The content of the signature, an opaque bytestring. - * The payload that this signature verifies MUST be unambiguously provided - * with the Signature during verification. A wrapper message might provide - * the payload explicitly. Alternatively, a message might have a canonical - * serialization that can always be unambiguously computed to derive the - * payload. - * - * Generated from protobuf field bytes signature = 1; - * @param string $var - * @return $this - */ - public function setSignature($var) - { - GPBUtil::checkString($var, False); - $this->signature = $var; - - return $this; - } - - /** - * The identifier for the public key that verifies this signature. - * * The `public_key_id` is required. - * * The `public_key_id` SHOULD be an RFC3986 conformant URI. - * * When possible, the `public_key_id` SHOULD be an immutable reference, - * such as a cryptographic digest. - * Examples of valid `public_key_id`s: - * OpenPGP V4 public key fingerprint: - * * "openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA" - * See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more - * details on this scheme. - * RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER - * serialization): - * * "ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU" - * * "nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5" - * - * Generated from protobuf field string public_key_id = 2; - * @return string - */ - public function getPublicKeyId() - { - return $this->public_key_id; - } - - /** - * The identifier for the public key that verifies this signature. - * * The `public_key_id` is required. - * * The `public_key_id` SHOULD be an RFC3986 conformant URI. - * * When possible, the `public_key_id` SHOULD be an immutable reference, - * such as a cryptographic digest. - * Examples of valid `public_key_id`s: - * OpenPGP V4 public key fingerprint: - * * "openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA" - * See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more - * details on this scheme. - * RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER - * serialization): - * * "ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU" - * * "nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5" - * - * Generated from protobuf field string public_key_id = 2; - * @param string $var - * @return $this - */ - public function setPublicKeyId($var) - { - GPBUtil::checkString($var, True); - $this->public_key_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance.php deleted file mode 100644 index 0113d091326d..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance.php +++ /dev/null @@ -1,214 +0,0 @@ -grafeas.v1.SlsaProvenance - */ -class SlsaProvenance extends \Google\Protobuf\Internal\Message -{ - /** - * required - * - * Generated from protobuf field .grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1; - */ - protected $builder = null; - /** - * Identifies the configuration used for the build. - * When combined with materials, this SHOULD fully describe the build, - * such that re-running this recipe results in bit-for-bit identical output - * (if the build is reproducible). - * - * Generated from protobuf field .grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2; - */ - protected $recipe = null; - /** - * Generated from protobuf field .grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3; - */ - protected $metadata = null; - /** - * The collection of artifacts that influenced the build including sources, - * dependencies, build tools, base images, and so on. This is considered to be - * incomplete unless metadata.completeness.materials is true. Unset or null is - * equivalent to empty. - * - * Generated from protobuf field repeated .grafeas.v1.SlsaProvenance.Material materials = 4; - */ - private $materials; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Grafeas\V1\SlsaProvenance\SlsaBuilder $builder - * required - * @type \Grafeas\V1\SlsaProvenance\SlsaRecipe $recipe - * Identifies the configuration used for the build. - * When combined with materials, this SHOULD fully describe the build, - * such that re-running this recipe results in bit-for-bit identical output - * (if the build is reproducible). - * @type \Grafeas\V1\SlsaProvenance\SlsaMetadata $metadata - * @type array<\Grafeas\V1\SlsaProvenance\Material>|\Google\Protobuf\Internal\RepeatedField $materials - * The collection of artifacts that influenced the build including sources, - * dependencies, build tools, base images, and so on. This is considered to be - * incomplete unless metadata.completeness.materials is true. Unset or null is - * equivalent to empty. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\SlsaProvenance::initOnce(); - parent::__construct($data); - } - - /** - * required - * - * Generated from protobuf field .grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1; - * @return \Grafeas\V1\SlsaProvenance\SlsaBuilder|null - */ - public function getBuilder() - { - return $this->builder; - } - - public function hasBuilder() - { - return isset($this->builder); - } - - public function clearBuilder() - { - unset($this->builder); - } - - /** - * required - * - * Generated from protobuf field .grafeas.v1.SlsaProvenance.SlsaBuilder builder = 1; - * @param \Grafeas\V1\SlsaProvenance\SlsaBuilder $var - * @return $this - */ - public function setBuilder($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\SlsaProvenance\SlsaBuilder::class); - $this->builder = $var; - - return $this; - } - - /** - * Identifies the configuration used for the build. - * When combined with materials, this SHOULD fully describe the build, - * such that re-running this recipe results in bit-for-bit identical output - * (if the build is reproducible). - * - * Generated from protobuf field .grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2; - * @return \Grafeas\V1\SlsaProvenance\SlsaRecipe|null - */ - public function getRecipe() - { - return $this->recipe; - } - - public function hasRecipe() - { - return isset($this->recipe); - } - - public function clearRecipe() - { - unset($this->recipe); - } - - /** - * Identifies the configuration used for the build. - * When combined with materials, this SHOULD fully describe the build, - * such that re-running this recipe results in bit-for-bit identical output - * (if the build is reproducible). - * - * Generated from protobuf field .grafeas.v1.SlsaProvenance.SlsaRecipe recipe = 2; - * @param \Grafeas\V1\SlsaProvenance\SlsaRecipe $var - * @return $this - */ - public function setRecipe($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\SlsaProvenance\SlsaRecipe::class); - $this->recipe = $var; - - return $this; - } - - /** - * Generated from protobuf field .grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3; - * @return \Grafeas\V1\SlsaProvenance\SlsaMetadata|null - */ - public function getMetadata() - { - return $this->metadata; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * Generated from protobuf field .grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3; - * @param \Grafeas\V1\SlsaProvenance\SlsaMetadata $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\SlsaProvenance\SlsaMetadata::class); - $this->metadata = $var; - - return $this; - } - - /** - * The collection of artifacts that influenced the build including sources, - * dependencies, build tools, base images, and so on. This is considered to be - * incomplete unless metadata.completeness.materials is true. Unset or null is - * equivalent to empty. - * - * Generated from protobuf field repeated .grafeas.v1.SlsaProvenance.Material materials = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMaterials() - { - return $this->materials; - } - - /** - * The collection of artifacts that influenced the build including sources, - * dependencies, build tools, base images, and so on. This is considered to be - * incomplete unless metadata.completeness.materials is true. Unset or null is - * equivalent to empty. - * - * Generated from protobuf field repeated .grafeas.v1.SlsaProvenance.Material materials = 4; - * @param array<\Grafeas\V1\SlsaProvenance\Material>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMaterials($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\SlsaProvenance\Material::class); - $this->materials = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/Material.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/Material.php deleted file mode 100644 index d2165056a94b..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/Material.php +++ /dev/null @@ -1,88 +0,0 @@ -grafeas.v1.SlsaProvenance.Material - */ -class Material extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string uri = 1; - */ - protected $uri = ''; - /** - * Generated from protobuf field map digest = 2; - */ - private $digest; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uri - * @type array|\Google\Protobuf\Internal\MapField $digest - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\SlsaProvenance::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field string uri = 1; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * Generated from protobuf field string uri = 1; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * Generated from protobuf field map digest = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getDigest() - { - return $this->digest; - } - - /** - * Generated from protobuf field map digest = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setDigest($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->digest = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Material::class, \Grafeas\V1\SlsaProvenance_Material::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaBuilder.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaBuilder.php deleted file mode 100644 index 455fa4993f05..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaBuilder.php +++ /dev/null @@ -1,61 +0,0 @@ -grafeas.v1.SlsaProvenance.SlsaBuilder - */ -class SlsaBuilder extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\SlsaProvenance::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SlsaBuilder::class, \Grafeas\V1\SlsaProvenance_SlsaBuilder::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaCompleteness.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaCompleteness.php deleted file mode 100644 index 15d1ba478108..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaCompleteness.php +++ /dev/null @@ -1,151 +0,0 @@ -grafeas.v1.SlsaProvenance.SlsaCompleteness - */ -class SlsaCompleteness extends \Google\Protobuf\Internal\Message -{ - /** - * If true, the builder claims that recipe.arguments is complete, meaning - * that all external inputs are properly captured in the recipe. - * - * Generated from protobuf field bool arguments = 1; - */ - protected $arguments = false; - /** - * If true, the builder claims that recipe.environment is claimed to be - * complete. - * - * Generated from protobuf field bool environment = 2; - */ - protected $environment = false; - /** - * If true, the builder claims that materials are complete, usually through - * some controls to prevent network access. Sometimes called "hermetic". - * - * Generated from protobuf field bool materials = 3; - */ - protected $materials = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $arguments - * If true, the builder claims that recipe.arguments is complete, meaning - * that all external inputs are properly captured in the recipe. - * @type bool $environment - * If true, the builder claims that recipe.environment is claimed to be - * complete. - * @type bool $materials - * If true, the builder claims that materials are complete, usually through - * some controls to prevent network access. Sometimes called "hermetic". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\SlsaProvenance::initOnce(); - parent::__construct($data); - } - - /** - * If true, the builder claims that recipe.arguments is complete, meaning - * that all external inputs are properly captured in the recipe. - * - * Generated from protobuf field bool arguments = 1; - * @return bool - */ - public function getArguments() - { - return $this->arguments; - } - - /** - * If true, the builder claims that recipe.arguments is complete, meaning - * that all external inputs are properly captured in the recipe. - * - * Generated from protobuf field bool arguments = 1; - * @param bool $var - * @return $this - */ - public function setArguments($var) - { - GPBUtil::checkBool($var); - $this->arguments = $var; - - return $this; - } - - /** - * If true, the builder claims that recipe.environment is claimed to be - * complete. - * - * Generated from protobuf field bool environment = 2; - * @return bool - */ - public function getEnvironment() - { - return $this->environment; - } - - /** - * If true, the builder claims that recipe.environment is claimed to be - * complete. - * - * Generated from protobuf field bool environment = 2; - * @param bool $var - * @return $this - */ - public function setEnvironment($var) - { - GPBUtil::checkBool($var); - $this->environment = $var; - - return $this; - } - - /** - * If true, the builder claims that materials are complete, usually through - * some controls to prevent network access. Sometimes called "hermetic". - * - * Generated from protobuf field bool materials = 3; - * @return bool - */ - public function getMaterials() - { - return $this->materials; - } - - /** - * If true, the builder claims that materials are complete, usually through - * some controls to prevent network access. Sometimes called "hermetic". - * - * Generated from protobuf field bool materials = 3; - * @param bool $var - * @return $this - */ - public function setMaterials($var) - { - GPBUtil::checkBool($var); - $this->materials = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SlsaCompleteness::class, \Grafeas\V1\SlsaProvenance_SlsaCompleteness::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaMetadata.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaMetadata.php deleted file mode 100644 index 05447be11b5c..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaMetadata.php +++ /dev/null @@ -1,252 +0,0 @@ -grafeas.v1.SlsaProvenance.SlsaMetadata - */ -class SlsaMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Identifies the particular build invocation, which can be useful for - * finding associated logs or other ad-hoc analysis. The value SHOULD be - * globally unique, per in-toto Provenance spec. - * - * Generated from protobuf field string build_invocation_id = 1; - */ - protected $build_invocation_id = ''; - /** - * The timestamp of when the build started. - * - * Generated from protobuf field .google.protobuf.Timestamp build_started_on = 2; - */ - protected $build_started_on = null; - /** - * The timestamp of when the build completed. - * - * Generated from protobuf field .google.protobuf.Timestamp build_finished_on = 3; - */ - protected $build_finished_on = null; - /** - * Indicates that the builder claims certain fields in this message to be - * complete. - * - * Generated from protobuf field .grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4; - */ - protected $completeness = null; - /** - * If true, the builder claims that running the recipe on materials will - * produce bit-for-bit identical output. - * - * Generated from protobuf field bool reproducible = 5; - */ - protected $reproducible = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $build_invocation_id - * Identifies the particular build invocation, which can be useful for - * finding associated logs or other ad-hoc analysis. The value SHOULD be - * globally unique, per in-toto Provenance spec. - * @type \Google\Protobuf\Timestamp $build_started_on - * The timestamp of when the build started. - * @type \Google\Protobuf\Timestamp $build_finished_on - * The timestamp of when the build completed. - * @type \Grafeas\V1\SlsaProvenance\SlsaCompleteness $completeness - * Indicates that the builder claims certain fields in this message to be - * complete. - * @type bool $reproducible - * If true, the builder claims that running the recipe on materials will - * produce bit-for-bit identical output. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\SlsaProvenance::initOnce(); - parent::__construct($data); - } - - /** - * Identifies the particular build invocation, which can be useful for - * finding associated logs or other ad-hoc analysis. The value SHOULD be - * globally unique, per in-toto Provenance spec. - * - * Generated from protobuf field string build_invocation_id = 1; - * @return string - */ - public function getBuildInvocationId() - { - return $this->build_invocation_id; - } - - /** - * Identifies the particular build invocation, which can be useful for - * finding associated logs or other ad-hoc analysis. The value SHOULD be - * globally unique, per in-toto Provenance spec. - * - * Generated from protobuf field string build_invocation_id = 1; - * @param string $var - * @return $this - */ - public function setBuildInvocationId($var) - { - GPBUtil::checkString($var, True); - $this->build_invocation_id = $var; - - return $this; - } - - /** - * The timestamp of when the build started. - * - * Generated from protobuf field .google.protobuf.Timestamp build_started_on = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getBuildStartedOn() - { - return $this->build_started_on; - } - - public function hasBuildStartedOn() - { - return isset($this->build_started_on); - } - - public function clearBuildStartedOn() - { - unset($this->build_started_on); - } - - /** - * The timestamp of when the build started. - * - * Generated from protobuf field .google.protobuf.Timestamp build_started_on = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setBuildStartedOn($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->build_started_on = $var; - - return $this; - } - - /** - * The timestamp of when the build completed. - * - * Generated from protobuf field .google.protobuf.Timestamp build_finished_on = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getBuildFinishedOn() - { - return $this->build_finished_on; - } - - public function hasBuildFinishedOn() - { - return isset($this->build_finished_on); - } - - public function clearBuildFinishedOn() - { - unset($this->build_finished_on); - } - - /** - * The timestamp of when the build completed. - * - * Generated from protobuf field .google.protobuf.Timestamp build_finished_on = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setBuildFinishedOn($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->build_finished_on = $var; - - return $this; - } - - /** - * Indicates that the builder claims certain fields in this message to be - * complete. - * - * Generated from protobuf field .grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4; - * @return \Grafeas\V1\SlsaProvenance\SlsaCompleteness|null - */ - public function getCompleteness() - { - return $this->completeness; - } - - public function hasCompleteness() - { - return isset($this->completeness); - } - - public function clearCompleteness() - { - unset($this->completeness); - } - - /** - * Indicates that the builder claims certain fields in this message to be - * complete. - * - * Generated from protobuf field .grafeas.v1.SlsaProvenance.SlsaCompleteness completeness = 4; - * @param \Grafeas\V1\SlsaProvenance\SlsaCompleteness $var - * @return $this - */ - public function setCompleteness($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\SlsaProvenance\SlsaCompleteness::class); - $this->completeness = $var; - - return $this; - } - - /** - * If true, the builder claims that running the recipe on materials will - * produce bit-for-bit identical output. - * - * Generated from protobuf field bool reproducible = 5; - * @return bool - */ - public function getReproducible() - { - return $this->reproducible; - } - - /** - * If true, the builder claims that running the recipe on materials will - * produce bit-for-bit identical output. - * - * Generated from protobuf field bool reproducible = 5; - * @param bool $var - * @return $this - */ - public function setReproducible($var) - { - GPBUtil::checkBool($var); - $this->reproducible = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SlsaMetadata::class, \Grafeas\V1\SlsaProvenance_SlsaMetadata::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaRecipe.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaRecipe.php deleted file mode 100644 index a448a91e95fb..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaRecipe.php +++ /dev/null @@ -1,296 +0,0 @@ -grafeas.v1.SlsaProvenance.SlsaRecipe - */ -class SlsaRecipe extends \Google\Protobuf\Internal\Message -{ - /** - * URI indicating what type of recipe was performed. It determines the - * meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and - * materials. - * - * Generated from protobuf field string type = 1; - */ - protected $type = ''; - /** - * Index in materials containing the recipe steps that are not implied by - * recipe.type. For example, if the recipe type were "make", then this would - * point to the source containing the Makefile, not the make program itself. - * Set to -1 if the recipe doesn't come from a material, as zero is default - * unset value for int64. - * - * Generated from protobuf field int64 defined_in_material = 2; - */ - protected $defined_in_material = 0; - /** - * String identifying the entry point into the build. - * This is often a path to a configuration file and/or a target label within - * that file. The syntax and meaning are defined by recipe.type. For - * example, if the recipe type were "make", then this would reference the - * directory in which to run make as well as which target to use. - * - * Generated from protobuf field string entry_point = 3; - */ - protected $entry_point = ''; - /** - * Collection of all external inputs that influenced the build on top of - * recipe.definedInMaterial and recipe.entryPoint. For example, if the - * recipe type were "make", then this might be the flags passed to make - * aside from the target, which is captured in recipe.entryPoint. Depending - * on the recipe Type, the structure may be different. - * - * Generated from protobuf field .google.protobuf.Any arguments = 4; - */ - protected $arguments = null; - /** - * Any other builder-controlled inputs necessary for correctly evaluating - * the recipe. Usually only needed for reproducing the build but not - * evaluated as part of policy. Depending on the recipe Type, the structure - * may be different. - * - * Generated from protobuf field .google.protobuf.Any environment = 5; - */ - protected $environment = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $type - * URI indicating what type of recipe was performed. It determines the - * meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and - * materials. - * @type int|string $defined_in_material - * Index in materials containing the recipe steps that are not implied by - * recipe.type. For example, if the recipe type were "make", then this would - * point to the source containing the Makefile, not the make program itself. - * Set to -1 if the recipe doesn't come from a material, as zero is default - * unset value for int64. - * @type string $entry_point - * String identifying the entry point into the build. - * This is often a path to a configuration file and/or a target label within - * that file. The syntax and meaning are defined by recipe.type. For - * example, if the recipe type were "make", then this would reference the - * directory in which to run make as well as which target to use. - * @type \Google\Protobuf\Any $arguments - * Collection of all external inputs that influenced the build on top of - * recipe.definedInMaterial and recipe.entryPoint. For example, if the - * recipe type were "make", then this might be the flags passed to make - * aside from the target, which is captured in recipe.entryPoint. Depending - * on the recipe Type, the structure may be different. - * @type \Google\Protobuf\Any $environment - * Any other builder-controlled inputs necessary for correctly evaluating - * the recipe. Usually only needed for reproducing the build but not - * evaluated as part of policy. Depending on the recipe Type, the structure - * may be different. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\SlsaProvenance::initOnce(); - parent::__construct($data); - } - - /** - * URI indicating what type of recipe was performed. It determines the - * meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and - * materials. - * - * Generated from protobuf field string type = 1; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * URI indicating what type of recipe was performed. It determines the - * meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and - * materials. - * - * Generated from protobuf field string type = 1; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * Index in materials containing the recipe steps that are not implied by - * recipe.type. For example, if the recipe type were "make", then this would - * point to the source containing the Makefile, not the make program itself. - * Set to -1 if the recipe doesn't come from a material, as zero is default - * unset value for int64. - * - * Generated from protobuf field int64 defined_in_material = 2; - * @return int|string - */ - public function getDefinedInMaterial() - { - return $this->defined_in_material; - } - - /** - * Index in materials containing the recipe steps that are not implied by - * recipe.type. For example, if the recipe type were "make", then this would - * point to the source containing the Makefile, not the make program itself. - * Set to -1 if the recipe doesn't come from a material, as zero is default - * unset value for int64. - * - * Generated from protobuf field int64 defined_in_material = 2; - * @param int|string $var - * @return $this - */ - public function setDefinedInMaterial($var) - { - GPBUtil::checkInt64($var); - $this->defined_in_material = $var; - - return $this; - } - - /** - * String identifying the entry point into the build. - * This is often a path to a configuration file and/or a target label within - * that file. The syntax and meaning are defined by recipe.type. For - * example, if the recipe type were "make", then this would reference the - * directory in which to run make as well as which target to use. - * - * Generated from protobuf field string entry_point = 3; - * @return string - */ - public function getEntryPoint() - { - return $this->entry_point; - } - - /** - * String identifying the entry point into the build. - * This is often a path to a configuration file and/or a target label within - * that file. The syntax and meaning are defined by recipe.type. For - * example, if the recipe type were "make", then this would reference the - * directory in which to run make as well as which target to use. - * - * Generated from protobuf field string entry_point = 3; - * @param string $var - * @return $this - */ - public function setEntryPoint($var) - { - GPBUtil::checkString($var, True); - $this->entry_point = $var; - - return $this; - } - - /** - * Collection of all external inputs that influenced the build on top of - * recipe.definedInMaterial and recipe.entryPoint. For example, if the - * recipe type were "make", then this might be the flags passed to make - * aside from the target, which is captured in recipe.entryPoint. Depending - * on the recipe Type, the structure may be different. - * - * Generated from protobuf field .google.protobuf.Any arguments = 4; - * @return \Google\Protobuf\Any|null - */ - public function getArguments() - { - return $this->arguments; - } - - public function hasArguments() - { - return isset($this->arguments); - } - - public function clearArguments() - { - unset($this->arguments); - } - - /** - * Collection of all external inputs that influenced the build on top of - * recipe.definedInMaterial and recipe.entryPoint. For example, if the - * recipe type were "make", then this might be the flags passed to make - * aside from the target, which is captured in recipe.entryPoint. Depending - * on the recipe Type, the structure may be different. - * - * Generated from protobuf field .google.protobuf.Any arguments = 4; - * @param \Google\Protobuf\Any $var - * @return $this - */ - public function setArguments($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Any::class); - $this->arguments = $var; - - return $this; - } - - /** - * Any other builder-controlled inputs necessary for correctly evaluating - * the recipe. Usually only needed for reproducing the build but not - * evaluated as part of policy. Depending on the recipe Type, the structure - * may be different. - * - * Generated from protobuf field .google.protobuf.Any environment = 5; - * @return \Google\Protobuf\Any|null - */ - public function getEnvironment() - { - return $this->environment; - } - - public function hasEnvironment() - { - return isset($this->environment); - } - - public function clearEnvironment() - { - unset($this->environment); - } - - /** - * Any other builder-controlled inputs necessary for correctly evaluating - * the recipe. Usually only needed for reproducing the build but not - * evaluated as part of policy. Depending on the recipe Type, the structure - * may be different. - * - * Generated from protobuf field .google.protobuf.Any environment = 5; - * @param \Google\Protobuf\Any $var - * @return $this - */ - public function setEnvironment($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Any::class); - $this->environment = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SlsaRecipe::class, \Grafeas\V1\SlsaProvenance_SlsaRecipe::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo.php deleted file mode 100644 index c066b7a6521b..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo.php +++ /dev/null @@ -1,235 +0,0 @@ -grafeas.v1.SlsaProvenanceZeroTwo - */ -class SlsaProvenanceZeroTwo extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder builder = 1; - */ - protected $builder = null; - /** - * Generated from protobuf field string build_type = 2; - */ - protected $build_type = ''; - /** - * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation invocation = 3; - */ - protected $invocation = null; - /** - * Generated from protobuf field .google.protobuf.Struct build_config = 4; - */ - protected $build_config = null; - /** - * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata metadata = 5; - */ - protected $metadata = null; - /** - * Generated from protobuf field repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6; - */ - private $materials; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaBuilder $builder - * @type string $build_type - * @type \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaInvocation $invocation - * @type \Google\Protobuf\Struct $build_config - * @type \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaMetadata $metadata - * @type array<\Grafeas\V1\SlsaProvenanceZeroTwo\SlsaMaterial>|\Google\Protobuf\Internal\RepeatedField $materials - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\SlsaProvenanceZeroTwo::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder builder = 1; - * @return \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaBuilder|null - */ - public function getBuilder() - { - return $this->builder; - } - - public function hasBuilder() - { - return isset($this->builder); - } - - public function clearBuilder() - { - unset($this->builder); - } - - /** - * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder builder = 1; - * @param \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaBuilder $var - * @return $this - */ - public function setBuilder($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaBuilder::class); - $this->builder = $var; - - return $this; - } - - /** - * Generated from protobuf field string build_type = 2; - * @return string - */ - public function getBuildType() - { - return $this->build_type; - } - - /** - * Generated from protobuf field string build_type = 2; - * @param string $var - * @return $this - */ - public function setBuildType($var) - { - GPBUtil::checkString($var, True); - $this->build_type = $var; - - return $this; - } - - /** - * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation invocation = 3; - * @return \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaInvocation|null - */ - public function getInvocation() - { - return $this->invocation; - } - - public function hasInvocation() - { - return isset($this->invocation); - } - - public function clearInvocation() - { - unset($this->invocation); - } - - /** - * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation invocation = 3; - * @param \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaInvocation $var - * @return $this - */ - public function setInvocation($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaInvocation::class); - $this->invocation = $var; - - return $this; - } - - /** - * Generated from protobuf field .google.protobuf.Struct build_config = 4; - * @return \Google\Protobuf\Struct|null - */ - public function getBuildConfig() - { - return $this->build_config; - } - - public function hasBuildConfig() - { - return isset($this->build_config); - } - - public function clearBuildConfig() - { - unset($this->build_config); - } - - /** - * Generated from protobuf field .google.protobuf.Struct build_config = 4; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setBuildConfig($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->build_config = $var; - - return $this; - } - - /** - * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata metadata = 5; - * @return \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaMetadata|null - */ - public function getMetadata() - { - return $this->metadata; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata metadata = 5; - * @param \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaMetadata $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaMetadata::class); - $this->metadata = $var; - - return $this; - } - - /** - * Generated from protobuf field repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMaterials() - { - return $this->materials; - } - - /** - * Generated from protobuf field repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6; - * @param array<\Grafeas\V1\SlsaProvenanceZeroTwo\SlsaMaterial>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMaterials($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaMaterial::class); - $this->materials = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaBuilder.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaBuilder.php deleted file mode 100644 index 8029c7d4c110..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaBuilder.php +++ /dev/null @@ -1,64 +0,0 @@ -grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder - */ -class SlsaBuilder extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\SlsaProvenanceZeroTwo::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SlsaBuilder::class, \Grafeas\V1\SlsaProvenanceZeroTwo_SlsaBuilder::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaCompleteness.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaCompleteness.php deleted file mode 100644 index dcb6e0a819c6..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaCompleteness.php +++ /dev/null @@ -1,118 +0,0 @@ -grafeas.v1.SlsaProvenanceZeroTwo.SlsaCompleteness - */ -class SlsaCompleteness extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field bool parameters = 1; - */ - protected $parameters = false; - /** - * Generated from protobuf field bool environment = 2; - */ - protected $environment = false; - /** - * Generated from protobuf field bool materials = 3; - */ - protected $materials = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $parameters - * @type bool $environment - * @type bool $materials - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\SlsaProvenanceZeroTwo::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field bool parameters = 1; - * @return bool - */ - public function getParameters() - { - return $this->parameters; - } - - /** - * Generated from protobuf field bool parameters = 1; - * @param bool $var - * @return $this - */ - public function setParameters($var) - { - GPBUtil::checkBool($var); - $this->parameters = $var; - - return $this; - } - - /** - * Generated from protobuf field bool environment = 2; - * @return bool - */ - public function getEnvironment() - { - return $this->environment; - } - - /** - * Generated from protobuf field bool environment = 2; - * @param bool $var - * @return $this - */ - public function setEnvironment($var) - { - GPBUtil::checkBool($var); - $this->environment = $var; - - return $this; - } - - /** - * Generated from protobuf field bool materials = 3; - * @return bool - */ - public function getMaterials() - { - return $this->materials; - } - - /** - * Generated from protobuf field bool materials = 3; - * @param bool $var - * @return $this - */ - public function setMaterials($var) - { - GPBUtil::checkBool($var); - $this->materials = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SlsaCompleteness::class, \Grafeas\V1\SlsaProvenanceZeroTwo_SlsaCompleteness::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaConfigSource.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaConfigSource.php deleted file mode 100644 index 236b9d685397..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaConfigSource.php +++ /dev/null @@ -1,118 +0,0 @@ -grafeas.v1.SlsaProvenanceZeroTwo.SlsaConfigSource - */ -class SlsaConfigSource extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string uri = 1; - */ - protected $uri = ''; - /** - * Generated from protobuf field map digest = 2; - */ - private $digest; - /** - * Generated from protobuf field string entry_point = 3; - */ - protected $entry_point = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uri - * @type array|\Google\Protobuf\Internal\MapField $digest - * @type string $entry_point - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\SlsaProvenanceZeroTwo::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field string uri = 1; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * Generated from protobuf field string uri = 1; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * Generated from protobuf field map digest = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getDigest() - { - return $this->digest; - } - - /** - * Generated from protobuf field map digest = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setDigest($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->digest = $arr; - - return $this; - } - - /** - * Generated from protobuf field string entry_point = 3; - * @return string - */ - public function getEntryPoint() - { - return $this->entry_point; - } - - /** - * Generated from protobuf field string entry_point = 3; - * @param string $var - * @return $this - */ - public function setEntryPoint($var) - { - GPBUtil::checkString($var, True); - $this->entry_point = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SlsaConfigSource::class, \Grafeas\V1\SlsaProvenanceZeroTwo_SlsaConfigSource::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaInvocation.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaInvocation.php deleted file mode 100644 index 14076ccc4655..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaInvocation.php +++ /dev/null @@ -1,147 +0,0 @@ -grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation - */ -class SlsaInvocation extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaConfigSource config_source = 1; - */ - protected $config_source = null; - /** - * Generated from protobuf field .google.protobuf.Struct parameters = 2; - */ - protected $parameters = null; - /** - * Generated from protobuf field .google.protobuf.Struct environment = 3; - */ - protected $environment = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaConfigSource $config_source - * @type \Google\Protobuf\Struct $parameters - * @type \Google\Protobuf\Struct $environment - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\SlsaProvenanceZeroTwo::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaConfigSource config_source = 1; - * @return \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaConfigSource|null - */ - public function getConfigSource() - { - return $this->config_source; - } - - public function hasConfigSource() - { - return isset($this->config_source); - } - - public function clearConfigSource() - { - unset($this->config_source); - } - - /** - * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaConfigSource config_source = 1; - * @param \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaConfigSource $var - * @return $this - */ - public function setConfigSource($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaConfigSource::class); - $this->config_source = $var; - - return $this; - } - - /** - * Generated from protobuf field .google.protobuf.Struct parameters = 2; - * @return \Google\Protobuf\Struct|null - */ - public function getParameters() - { - return $this->parameters; - } - - public function hasParameters() - { - return isset($this->parameters); - } - - public function clearParameters() - { - unset($this->parameters); - } - - /** - * Generated from protobuf field .google.protobuf.Struct parameters = 2; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setParameters($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->parameters = $var; - - return $this; - } - - /** - * Generated from protobuf field .google.protobuf.Struct environment = 3; - * @return \Google\Protobuf\Struct|null - */ - public function getEnvironment() - { - return $this->environment; - } - - public function hasEnvironment() - { - return isset($this->environment); - } - - public function clearEnvironment() - { - unset($this->environment); - } - - /** - * Generated from protobuf field .google.protobuf.Struct environment = 3; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setEnvironment($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->environment = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SlsaInvocation::class, \Grafeas\V1\SlsaProvenanceZeroTwo_SlsaInvocation::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaMaterial.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaMaterial.php deleted file mode 100644 index e25c459a24c4..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaMaterial.php +++ /dev/null @@ -1,91 +0,0 @@ -grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial - */ -class SlsaMaterial extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string uri = 1; - */ - protected $uri = ''; - /** - * Generated from protobuf field map digest = 2; - */ - private $digest; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uri - * @type array|\Google\Protobuf\Internal\MapField $digest - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\SlsaProvenanceZeroTwo::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field string uri = 1; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * Generated from protobuf field string uri = 1; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * Generated from protobuf field map digest = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getDigest() - { - return $this->digest; - } - - /** - * Generated from protobuf field map digest = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setDigest($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->digest = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SlsaMaterial::class, \Grafeas\V1\SlsaProvenanceZeroTwo_SlsaMaterial::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaMetadata.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaMetadata.php deleted file mode 100644 index 611a1e272054..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaMetadata.php +++ /dev/null @@ -1,201 +0,0 @@ -grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata - */ -class SlsaMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string build_invocation_id = 1; - */ - protected $build_invocation_id = ''; - /** - * Generated from protobuf field .google.protobuf.Timestamp build_started_on = 2; - */ - protected $build_started_on = null; - /** - * Generated from protobuf field .google.protobuf.Timestamp build_finished_on = 3; - */ - protected $build_finished_on = null; - /** - * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaCompleteness completeness = 4; - */ - protected $completeness = null; - /** - * Generated from protobuf field bool reproducible = 5; - */ - protected $reproducible = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $build_invocation_id - * @type \Google\Protobuf\Timestamp $build_started_on - * @type \Google\Protobuf\Timestamp $build_finished_on - * @type \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaCompleteness $completeness - * @type bool $reproducible - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\SlsaProvenanceZeroTwo::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field string build_invocation_id = 1; - * @return string - */ - public function getBuildInvocationId() - { - return $this->build_invocation_id; - } - - /** - * Generated from protobuf field string build_invocation_id = 1; - * @param string $var - * @return $this - */ - public function setBuildInvocationId($var) - { - GPBUtil::checkString($var, True); - $this->build_invocation_id = $var; - - return $this; - } - - /** - * Generated from protobuf field .google.protobuf.Timestamp build_started_on = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getBuildStartedOn() - { - return $this->build_started_on; - } - - public function hasBuildStartedOn() - { - return isset($this->build_started_on); - } - - public function clearBuildStartedOn() - { - unset($this->build_started_on); - } - - /** - * Generated from protobuf field .google.protobuf.Timestamp build_started_on = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setBuildStartedOn($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->build_started_on = $var; - - return $this; - } - - /** - * Generated from protobuf field .google.protobuf.Timestamp build_finished_on = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getBuildFinishedOn() - { - return $this->build_finished_on; - } - - public function hasBuildFinishedOn() - { - return isset($this->build_finished_on); - } - - public function clearBuildFinishedOn() - { - unset($this->build_finished_on); - } - - /** - * Generated from protobuf field .google.protobuf.Timestamp build_finished_on = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setBuildFinishedOn($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->build_finished_on = $var; - - return $this; - } - - /** - * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaCompleteness completeness = 4; - * @return \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaCompleteness|null - */ - public function getCompleteness() - { - return $this->completeness; - } - - public function hasCompleteness() - { - return isset($this->completeness); - } - - public function clearCompleteness() - { - unset($this->completeness); - } - - /** - * Generated from protobuf field .grafeas.v1.SlsaProvenanceZeroTwo.SlsaCompleteness completeness = 4; - * @param \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaCompleteness $var - * @return $this - */ - public function setCompleteness($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaCompleteness::class); - $this->completeness = $var; - - return $this; - } - - /** - * Generated from protobuf field bool reproducible = 5; - * @return bool - */ - public function getReproducible() - { - return $this->reproducible; - } - - /** - * Generated from protobuf field bool reproducible = 5; - * @param bool $var - * @return $this - */ - public function setReproducible($var) - { - GPBUtil::checkBool($var); - $this->reproducible = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SlsaMetadata::class, \Grafeas\V1\SlsaProvenanceZeroTwo_SlsaMetadata::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Source.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Source.php deleted file mode 100644 index 6006031e2e69..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Source.php +++ /dev/null @@ -1,215 +0,0 @@ -grafeas.v1.Source - */ -class Source extends \Google\Protobuf\Internal\Message -{ - /** - * If provided, the input binary artifacts for the build came from this - * location. - * - * Generated from protobuf field string artifact_storage_source_uri = 1; - */ - protected $artifact_storage_source_uri = ''; - /** - * Hash(es) of the build source, which can be used to verify that the original - * source integrity was maintained in the build. - * The keys to this map are file paths used as build source and the values - * contain the hash values for those files. - * If the build source came in a single package such as a gzipped tarfile - * (.tar.gz), the FileHash will be for the single path to that file. - * - * Generated from protobuf field map file_hashes = 2; - */ - private $file_hashes; - /** - * If provided, the source code used for the build came from this location. - * - * Generated from protobuf field .grafeas.v1.SourceContext context = 3; - */ - protected $context = null; - /** - * If provided, some of the source code used for the build may be found in - * these locations, in the case where the source repository had multiple - * remotes or submodules. This list will not include the context specified in - * the context field. - * - * Generated from protobuf field repeated .grafeas.v1.SourceContext additional_contexts = 4; - */ - private $additional_contexts; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $artifact_storage_source_uri - * If provided, the input binary artifacts for the build came from this - * location. - * @type array|\Google\Protobuf\Internal\MapField $file_hashes - * Hash(es) of the build source, which can be used to verify that the original - * source integrity was maintained in the build. - * The keys to this map are file paths used as build source and the values - * contain the hash values for those files. - * If the build source came in a single package such as a gzipped tarfile - * (.tar.gz), the FileHash will be for the single path to that file. - * @type \Grafeas\V1\SourceContext $context - * If provided, the source code used for the build came from this location. - * @type array<\Grafeas\V1\SourceContext>|\Google\Protobuf\Internal\RepeatedField $additional_contexts - * If provided, some of the source code used for the build may be found in - * these locations, in the case where the source repository had multiple - * remotes or submodules. This list will not include the context specified in - * the context field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Provenance::initOnce(); - parent::__construct($data); - } - - /** - * If provided, the input binary artifacts for the build came from this - * location. - * - * Generated from protobuf field string artifact_storage_source_uri = 1; - * @return string - */ - public function getArtifactStorageSourceUri() - { - return $this->artifact_storage_source_uri; - } - - /** - * If provided, the input binary artifacts for the build came from this - * location. - * - * Generated from protobuf field string artifact_storage_source_uri = 1; - * @param string $var - * @return $this - */ - public function setArtifactStorageSourceUri($var) - { - GPBUtil::checkString($var, True); - $this->artifact_storage_source_uri = $var; - - return $this; - } - - /** - * Hash(es) of the build source, which can be used to verify that the original - * source integrity was maintained in the build. - * The keys to this map are file paths used as build source and the values - * contain the hash values for those files. - * If the build source came in a single package such as a gzipped tarfile - * (.tar.gz), the FileHash will be for the single path to that file. - * - * Generated from protobuf field map file_hashes = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getFileHashes() - { - return $this->file_hashes; - } - - /** - * Hash(es) of the build source, which can be used to verify that the original - * source integrity was maintained in the build. - * The keys to this map are file paths used as build source and the values - * contain the hash values for those files. - * If the build source came in a single package such as a gzipped tarfile - * (.tar.gz), the FileHash will be for the single path to that file. - * - * Generated from protobuf field map file_hashes = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setFileHashes($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\FileHashes::class); - $this->file_hashes = $arr; - - return $this; - } - - /** - * If provided, the source code used for the build came from this location. - * - * Generated from protobuf field .grafeas.v1.SourceContext context = 3; - * @return \Grafeas\V1\SourceContext|null - */ - public function getContext() - { - return $this->context; - } - - public function hasContext() - { - return isset($this->context); - } - - public function clearContext() - { - unset($this->context); - } - - /** - * If provided, the source code used for the build came from this location. - * - * Generated from protobuf field .grafeas.v1.SourceContext context = 3; - * @param \Grafeas\V1\SourceContext $var - * @return $this - */ - public function setContext($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\SourceContext::class); - $this->context = $var; - - return $this; - } - - /** - * If provided, some of the source code used for the build may be found in - * these locations, in the case where the source repository had multiple - * remotes or submodules. This list will not include the context specified in - * the context field. - * - * Generated from protobuf field repeated .grafeas.v1.SourceContext additional_contexts = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdditionalContexts() - { - return $this->additional_contexts; - } - - /** - * If provided, some of the source code used for the build may be found in - * these locations, in the case where the source repository had multiple - * remotes or submodules. This list will not include the context specified in - * the context field. - * - * Generated from protobuf field repeated .grafeas.v1.SourceContext additional_contexts = 4; - * @param array<\Grafeas\V1\SourceContext>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdditionalContexts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\SourceContext::class); - $this->additional_contexts = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SourceContext.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SourceContext.php deleted file mode 100644 index fced17b0d002..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SourceContext.php +++ /dev/null @@ -1,176 +0,0 @@ -grafeas.v1.SourceContext - */ -class SourceContext extends \Google\Protobuf\Internal\Message -{ - /** - * Labels with user defined metadata. - * - * Generated from protobuf field map labels = 4; - */ - private $labels; - protected $context; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Grafeas\V1\CloudRepoSourceContext $cloud_repo - * A SourceContext referring to a revision in a Google Cloud Source Repo. - * @type \Grafeas\V1\GerritSourceContext $gerrit - * A SourceContext referring to a Gerrit project. - * @type \Grafeas\V1\GitSourceContext $git - * A SourceContext referring to any third party Git repo (e.g., GitHub). - * @type array|\Google\Protobuf\Internal\MapField $labels - * Labels with user defined metadata. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Provenance::initOnce(); - parent::__construct($data); - } - - /** - * A SourceContext referring to a revision in a Google Cloud Source Repo. - * - * Generated from protobuf field .grafeas.v1.CloudRepoSourceContext cloud_repo = 1; - * @return \Grafeas\V1\CloudRepoSourceContext|null - */ - public function getCloudRepo() - { - return $this->readOneof(1); - } - - public function hasCloudRepo() - { - return $this->hasOneof(1); - } - - /** - * A SourceContext referring to a revision in a Google Cloud Source Repo. - * - * Generated from protobuf field .grafeas.v1.CloudRepoSourceContext cloud_repo = 1; - * @param \Grafeas\V1\CloudRepoSourceContext $var - * @return $this - */ - public function setCloudRepo($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\CloudRepoSourceContext::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A SourceContext referring to a Gerrit project. - * - * Generated from protobuf field .grafeas.v1.GerritSourceContext gerrit = 2; - * @return \Grafeas\V1\GerritSourceContext|null - */ - public function getGerrit() - { - return $this->readOneof(2); - } - - public function hasGerrit() - { - return $this->hasOneof(2); - } - - /** - * A SourceContext referring to a Gerrit project. - * - * Generated from protobuf field .grafeas.v1.GerritSourceContext gerrit = 2; - * @param \Grafeas\V1\GerritSourceContext $var - * @return $this - */ - public function setGerrit($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\GerritSourceContext::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A SourceContext referring to any third party Git repo (e.g., GitHub). - * - * Generated from protobuf field .grafeas.v1.GitSourceContext git = 3; - * @return \Grafeas\V1\GitSourceContext|null - */ - public function getGit() - { - return $this->readOneof(3); - } - - public function hasGit() - { - return $this->hasOneof(3); - } - - /** - * A SourceContext referring to any third party Git repo (e.g., GitHub). - * - * Generated from protobuf field .grafeas.v1.GitSourceContext git = 3; - * @param \Grafeas\V1\GitSourceContext $var - * @return $this - */ - public function setGit($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\GitSourceContext::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Labels with user defined metadata. - * - * Generated from protobuf field map labels = 4; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Labels with user defined metadata. - * - * Generated from protobuf field map labels = 4; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * @return string - */ - public function getContext() - { - return $this->whichOneof("context"); - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Subject.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Subject.php deleted file mode 100644 index 14d4fa6fe2e7..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Subject.php +++ /dev/null @@ -1,104 +0,0 @@ -grafeas.v1.Subject - */ -class Subject extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * `"": ""` - * Algorithms can be e.g. sha256, sha512 - * See - * https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet - * - * Generated from protobuf field map digest = 2; - */ - private $digest; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * @type array|\Google\Protobuf\Internal\MapField $digest - * `"": ""` - * Algorithms can be e.g. sha256, sha512 - * See - * https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\IntotoStatement::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * `"": ""` - * Algorithms can be e.g. sha256, sha512 - * See - * https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet - * - * Generated from protobuf field map digest = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getDigest() - { - return $this->digest; - } - - /** - * `"": ""` - * Algorithms can be e.g. sha256, sha512 - * See - * https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet - * - * Generated from protobuf field map digest = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setDigest($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->digest = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpdateNoteRequest.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpdateNoteRequest.php deleted file mode 100644 index e12623cfcdf4..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpdateNoteRequest.php +++ /dev/null @@ -1,178 +0,0 @@ -grafeas.v1.UpdateNoteRequest - */ -class UpdateNoteRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the note in the form of - * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * The updated note. - * - * Generated from protobuf field .grafeas.v1.Note note = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $note = null; - /** - * The fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - */ - protected $update_mask = null; - - /** - * @param string $name The name of the note in the form of - * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. Please see - * {@see GrafeasClient::noteName()} for help formatting this field. - * @param \Grafeas\V1\Note $note The updated note. - * @param \Google\Protobuf\FieldMask $updateMask The fields to update. - * - * @return \Grafeas\V1\UpdateNoteRequest - * - * @experimental - */ - public static function build(string $name, \Grafeas\V1\Note $note, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setName($name) - ->setNote($note) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the note in the form of - * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. - * @type \Grafeas\V1\Note $note - * The updated note. - * @type \Google\Protobuf\FieldMask $update_mask - * The fields to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); - parent::__construct($data); - } - - /** - * The name of the note in the form of - * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the note in the form of - * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The updated note. - * - * Generated from protobuf field .grafeas.v1.Note note = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Grafeas\V1\Note|null - */ - public function getNote() - { - return $this->note; - } - - public function hasNote() - { - return isset($this->note); - } - - public function clearNote() - { - unset($this->note); - } - - /** - * The updated note. - * - * Generated from protobuf field .grafeas.v1.Note note = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Grafeas\V1\Note $var - * @return $this - */ - public function setNote($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\Note::class); - $this->note = $var; - - return $this; - } - - /** - * The fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * The fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpdateOccurrenceRequest.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpdateOccurrenceRequest.php deleted file mode 100644 index 0d87112304a1..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpdateOccurrenceRequest.php +++ /dev/null @@ -1,178 +0,0 @@ -grafeas.v1.UpdateOccurrenceRequest - */ -class UpdateOccurrenceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the occurrence in the form of - * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * The updated occurrence. - * - * Generated from protobuf field .grafeas.v1.Occurrence occurrence = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $occurrence = null; - /** - * The fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - */ - protected $update_mask = null; - - /** - * @param string $name The name of the occurrence in the form of - * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. Please see - * {@see GrafeasClient::occurrenceName()} for help formatting this field. - * @param \Grafeas\V1\Occurrence $occurrence The updated occurrence. - * @param \Google\Protobuf\FieldMask $updateMask The fields to update. - * - * @return \Grafeas\V1\UpdateOccurrenceRequest - * - * @experimental - */ - public static function build(string $name, \Grafeas\V1\Occurrence $occurrence, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setName($name) - ->setOccurrence($occurrence) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the occurrence in the form of - * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. - * @type \Grafeas\V1\Occurrence $occurrence - * The updated occurrence. - * @type \Google\Protobuf\FieldMask $update_mask - * The fields to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Grafeas::initOnce(); - parent::__construct($data); - } - - /** - * The name of the occurrence in the form of - * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the occurrence in the form of - * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The updated occurrence. - * - * Generated from protobuf field .grafeas.v1.Occurrence occurrence = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Grafeas\V1\Occurrence|null - */ - public function getOccurrence() - { - return $this->occurrence; - } - - public function hasOccurrence() - { - return isset($this->occurrence); - } - - public function clearOccurrence() - { - unset($this->occurrence); - } - - /** - * The updated occurrence. - * - * Generated from protobuf field .grafeas.v1.Occurrence occurrence = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Grafeas\V1\Occurrence $var - * @return $this - */ - public function setOccurrence($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\Occurrence::class); - $this->occurrence = $var; - - return $this; - } - - /** - * The fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * The fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpgradeDistribution.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpgradeDistribution.php deleted file mode 100644 index b5b16a112b02..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpgradeDistribution.php +++ /dev/null @@ -1,187 +0,0 @@ -grafeas.v1.UpgradeDistribution - */ -class UpgradeDistribution extends \Google\Protobuf\Internal\Message -{ - /** - * Required - The specific operating system this metadata applies to. See - * https://cpe.mitre.org/specification/. - * - * Generated from protobuf field string cpe_uri = 1; - */ - protected $cpe_uri = ''; - /** - * The operating system classification of this Upgrade, as specified by the - * upstream operating system upgrade feed. For Windows the classification is - * one of the category_ids listed at - * https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ff357803(v=vs.85) - * - * Generated from protobuf field string classification = 2; - */ - protected $classification = ''; - /** - * The severity as specified by the upstream operating system. - * - * Generated from protobuf field string severity = 3; - */ - protected $severity = ''; - /** - * The cve tied to this Upgrade. - * - * Generated from protobuf field repeated string cve = 4; - */ - private $cve; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $cpe_uri - * Required - The specific operating system this metadata applies to. See - * https://cpe.mitre.org/specification/. - * @type string $classification - * The operating system classification of this Upgrade, as specified by the - * upstream operating system upgrade feed. For Windows the classification is - * one of the category_ids listed at - * https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ff357803(v=vs.85) - * @type string $severity - * The severity as specified by the upstream operating system. - * @type array|\Google\Protobuf\Internal\RepeatedField $cve - * The cve tied to this Upgrade. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Upgrade::initOnce(); - parent::__construct($data); - } - - /** - * Required - The specific operating system this metadata applies to. See - * https://cpe.mitre.org/specification/. - * - * Generated from protobuf field string cpe_uri = 1; - * @return string - */ - public function getCpeUri() - { - return $this->cpe_uri; - } - - /** - * Required - The specific operating system this metadata applies to. See - * https://cpe.mitre.org/specification/. - * - * Generated from protobuf field string cpe_uri = 1; - * @param string $var - * @return $this - */ - public function setCpeUri($var) - { - GPBUtil::checkString($var, True); - $this->cpe_uri = $var; - - return $this; - } - - /** - * The operating system classification of this Upgrade, as specified by the - * upstream operating system upgrade feed. For Windows the classification is - * one of the category_ids listed at - * https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ff357803(v=vs.85) - * - * Generated from protobuf field string classification = 2; - * @return string - */ - public function getClassification() - { - return $this->classification; - } - - /** - * The operating system classification of this Upgrade, as specified by the - * upstream operating system upgrade feed. For Windows the classification is - * one of the category_ids listed at - * https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ff357803(v=vs.85) - * - * Generated from protobuf field string classification = 2; - * @param string $var - * @return $this - */ - public function setClassification($var) - { - GPBUtil::checkString($var, True); - $this->classification = $var; - - return $this; - } - - /** - * The severity as specified by the upstream operating system. - * - * Generated from protobuf field string severity = 3; - * @return string - */ - public function getSeverity() - { - return $this->severity; - } - - /** - * The severity as specified by the upstream operating system. - * - * Generated from protobuf field string severity = 3; - * @param string $var - * @return $this - */ - public function setSeverity($var) - { - GPBUtil::checkString($var, True); - $this->severity = $var; - - return $this; - } - - /** - * The cve tied to this Upgrade. - * - * Generated from protobuf field repeated string cve = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCve() - { - return $this->cve; - } - - /** - * The cve tied to this Upgrade. - * - * Generated from protobuf field repeated string cve = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCve($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->cve = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpgradeNote.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpgradeNote.php deleted file mode 100644 index b91b637b0c3b..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpgradeNote.php +++ /dev/null @@ -1,196 +0,0 @@ -grafeas.v1.UpgradeNote - */ -class UpgradeNote extends \Google\Protobuf\Internal\Message -{ - /** - * Required for non-Windows OS. The package this Upgrade is for. - * - * Generated from protobuf field string package = 1; - */ - protected $package = ''; - /** - * Required for non-Windows OS. The version of the package in machine + human - * readable form. - * - * Generated from protobuf field .grafeas.v1.Version version = 2; - */ - protected $version = null; - /** - * Metadata about the upgrade for each specific operating system. - * - * Generated from protobuf field repeated .grafeas.v1.UpgradeDistribution distributions = 3; - */ - private $distributions; - /** - * Required for Windows OS. Represents the metadata about the Windows update. - * - * Generated from protobuf field .grafeas.v1.WindowsUpdate windows_update = 4; - */ - protected $windows_update = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $package - * Required for non-Windows OS. The package this Upgrade is for. - * @type \Grafeas\V1\Version $version - * Required for non-Windows OS. The version of the package in machine + human - * readable form. - * @type array<\Grafeas\V1\UpgradeDistribution>|\Google\Protobuf\Internal\RepeatedField $distributions - * Metadata about the upgrade for each specific operating system. - * @type \Grafeas\V1\WindowsUpdate $windows_update - * Required for Windows OS. Represents the metadata about the Windows update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Upgrade::initOnce(); - parent::__construct($data); - } - - /** - * Required for non-Windows OS. The package this Upgrade is for. - * - * Generated from protobuf field string package = 1; - * @return string - */ - public function getPackage() - { - return $this->package; - } - - /** - * Required for non-Windows OS. The package this Upgrade is for. - * - * Generated from protobuf field string package = 1; - * @param string $var - * @return $this - */ - public function setPackage($var) - { - GPBUtil::checkString($var, True); - $this->package = $var; - - return $this; - } - - /** - * Required for non-Windows OS. The version of the package in machine + human - * readable form. - * - * Generated from protobuf field .grafeas.v1.Version version = 2; - * @return \Grafeas\V1\Version|null - */ - public function getVersion() - { - return $this->version; - } - - public function hasVersion() - { - return isset($this->version); - } - - public function clearVersion() - { - unset($this->version); - } - - /** - * Required for non-Windows OS. The version of the package in machine + human - * readable form. - * - * Generated from protobuf field .grafeas.v1.Version version = 2; - * @param \Grafeas\V1\Version $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\Version::class); - $this->version = $var; - - return $this; - } - - /** - * Metadata about the upgrade for each specific operating system. - * - * Generated from protobuf field repeated .grafeas.v1.UpgradeDistribution distributions = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDistributions() - { - return $this->distributions; - } - - /** - * Metadata about the upgrade for each specific operating system. - * - * Generated from protobuf field repeated .grafeas.v1.UpgradeDistribution distributions = 3; - * @param array<\Grafeas\V1\UpgradeDistribution>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDistributions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\UpgradeDistribution::class); - $this->distributions = $arr; - - return $this; - } - - /** - * Required for Windows OS. Represents the metadata about the Windows update. - * - * Generated from protobuf field .grafeas.v1.WindowsUpdate windows_update = 4; - * @return \Grafeas\V1\WindowsUpdate|null - */ - public function getWindowsUpdate() - { - return $this->windows_update; - } - - public function hasWindowsUpdate() - { - return isset($this->windows_update); - } - - public function clearWindowsUpdate() - { - unset($this->windows_update); - } - - /** - * Required for Windows OS. Represents the metadata about the Windows update. - * - * Generated from protobuf field .grafeas.v1.WindowsUpdate windows_update = 4; - * @param \Grafeas\V1\WindowsUpdate $var - * @return $this - */ - public function setWindowsUpdate($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\WindowsUpdate::class); - $this->windows_update = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpgradeOccurrence.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpgradeOccurrence.php deleted file mode 100644 index 15c700918d0f..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/UpgradeOccurrence.php +++ /dev/null @@ -1,215 +0,0 @@ -grafeas.v1.UpgradeOccurrence - */ -class UpgradeOccurrence extends \Google\Protobuf\Internal\Message -{ - /** - * Required for non-Windows OS. The package this Upgrade is for. - * - * Generated from protobuf field string package = 1; - */ - protected $package = ''; - /** - * Required for non-Windows OS. The version of the package in a machine + - * human readable form. - * - * Generated from protobuf field .grafeas.v1.Version parsed_version = 3; - */ - protected $parsed_version = null; - /** - * Metadata about the upgrade for available for the specific operating system - * for the resource_url. This allows efficient filtering, as well as - * making it easier to use the occurrence. - * - * Generated from protobuf field .grafeas.v1.UpgradeDistribution distribution = 4; - */ - protected $distribution = null; - /** - * Required for Windows OS. Represents the metadata about the Windows update. - * - * Generated from protobuf field .grafeas.v1.WindowsUpdate windows_update = 5; - */ - protected $windows_update = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $package - * Required for non-Windows OS. The package this Upgrade is for. - * @type \Grafeas\V1\Version $parsed_version - * Required for non-Windows OS. The version of the package in a machine + - * human readable form. - * @type \Grafeas\V1\UpgradeDistribution $distribution - * Metadata about the upgrade for available for the specific operating system - * for the resource_url. This allows efficient filtering, as well as - * making it easier to use the occurrence. - * @type \Grafeas\V1\WindowsUpdate $windows_update - * Required for Windows OS. Represents the metadata about the Windows update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Upgrade::initOnce(); - parent::__construct($data); - } - - /** - * Required for non-Windows OS. The package this Upgrade is for. - * - * Generated from protobuf field string package = 1; - * @return string - */ - public function getPackage() - { - return $this->package; - } - - /** - * Required for non-Windows OS. The package this Upgrade is for. - * - * Generated from protobuf field string package = 1; - * @param string $var - * @return $this - */ - public function setPackage($var) - { - GPBUtil::checkString($var, True); - $this->package = $var; - - return $this; - } - - /** - * Required for non-Windows OS. The version of the package in a machine + - * human readable form. - * - * Generated from protobuf field .grafeas.v1.Version parsed_version = 3; - * @return \Grafeas\V1\Version|null - */ - public function getParsedVersion() - { - return $this->parsed_version; - } - - public function hasParsedVersion() - { - return isset($this->parsed_version); - } - - public function clearParsedVersion() - { - unset($this->parsed_version); - } - - /** - * Required for non-Windows OS. The version of the package in a machine + - * human readable form. - * - * Generated from protobuf field .grafeas.v1.Version parsed_version = 3; - * @param \Grafeas\V1\Version $var - * @return $this - */ - public function setParsedVersion($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\Version::class); - $this->parsed_version = $var; - - return $this; - } - - /** - * Metadata about the upgrade for available for the specific operating system - * for the resource_url. This allows efficient filtering, as well as - * making it easier to use the occurrence. - * - * Generated from protobuf field .grafeas.v1.UpgradeDistribution distribution = 4; - * @return \Grafeas\V1\UpgradeDistribution|null - */ - public function getDistribution() - { - return $this->distribution; - } - - public function hasDistribution() - { - return isset($this->distribution); - } - - public function clearDistribution() - { - unset($this->distribution); - } - - /** - * Metadata about the upgrade for available for the specific operating system - * for the resource_url. This allows efficient filtering, as well as - * making it easier to use the occurrence. - * - * Generated from protobuf field .grafeas.v1.UpgradeDistribution distribution = 4; - * @param \Grafeas\V1\UpgradeDistribution $var - * @return $this - */ - public function setDistribution($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\UpgradeDistribution::class); - $this->distribution = $var; - - return $this; - } - - /** - * Required for Windows OS. Represents the metadata about the Windows update. - * - * Generated from protobuf field .grafeas.v1.WindowsUpdate windows_update = 5; - * @return \Grafeas\V1\WindowsUpdate|null - */ - public function getWindowsUpdate() - { - return $this->windows_update; - } - - public function hasWindowsUpdate() - { - return isset($this->windows_update); - } - - public function clearWindowsUpdate() - { - unset($this->windows_update); - } - - /** - * Required for Windows OS. Represents the metadata about the Windows update. - * - * Generated from protobuf field .grafeas.v1.WindowsUpdate windows_update = 5; - * @param \Grafeas\V1\WindowsUpdate $var - * @return $this - */ - public function setWindowsUpdate($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\WindowsUpdate::class); - $this->windows_update = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Version.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Version.php deleted file mode 100644 index ed635362b2f0..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Version.php +++ /dev/null @@ -1,269 +0,0 @@ -grafeas.v1.Version - */ -class Version extends \Google\Protobuf\Internal\Message -{ - /** - * Used to correct mistakes in the version numbering scheme. - * - * Generated from protobuf field int32 epoch = 1; - */ - protected $epoch = 0; - /** - * Required only when version kind is NORMAL. The main part of the version - * name. - * - * Generated from protobuf field string name = 2; - */ - protected $name = ''; - /** - * The iteration of the package build from the above version. - * - * Generated from protobuf field string revision = 3; - */ - protected $revision = ''; - /** - * Whether this version is specifying part of an inclusive range. Grafeas - * does not have the capability to specify version ranges; instead we have - * fields that specify start version and end versions. At times this is - * insufficient - we also need to specify whether the version is included in - * the range or is excluded from the range. This boolean is expected to be set - * to true when the version is included in a range. - * - * Generated from protobuf field bool inclusive = 6; - */ - protected $inclusive = false; - /** - * Required. Distinguishes between sentinel MIN/MAX versions and normal - * versions. - * - * Generated from protobuf field .grafeas.v1.Version.VersionKind kind = 4; - */ - protected $kind = 0; - /** - * Human readable version string. This string is of the form - * :- and is only set when kind is NORMAL. - * - * Generated from protobuf field string full_name = 5; - */ - protected $full_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $epoch - * Used to correct mistakes in the version numbering scheme. - * @type string $name - * Required only when version kind is NORMAL. The main part of the version - * name. - * @type string $revision - * The iteration of the package build from the above version. - * @type bool $inclusive - * Whether this version is specifying part of an inclusive range. Grafeas - * does not have the capability to specify version ranges; instead we have - * fields that specify start version and end versions. At times this is - * insufficient - we also need to specify whether the version is included in - * the range or is excluded from the range. This boolean is expected to be set - * to true when the version is included in a range. - * @type int $kind - * Required. Distinguishes between sentinel MIN/MAX versions and normal - * versions. - * @type string $full_name - * Human readable version string. This string is of the form - * :- and is only set when kind is NORMAL. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Package::initOnce(); - parent::__construct($data); - } - - /** - * Used to correct mistakes in the version numbering scheme. - * - * Generated from protobuf field int32 epoch = 1; - * @return int - */ - public function getEpoch() - { - return $this->epoch; - } - - /** - * Used to correct mistakes in the version numbering scheme. - * - * Generated from protobuf field int32 epoch = 1; - * @param int $var - * @return $this - */ - public function setEpoch($var) - { - GPBUtil::checkInt32($var); - $this->epoch = $var; - - return $this; - } - - /** - * Required only when version kind is NORMAL. The main part of the version - * name. - * - * Generated from protobuf field string name = 2; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required only when version kind is NORMAL. The main part of the version - * name. - * - * Generated from protobuf field string name = 2; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The iteration of the package build from the above version. - * - * Generated from protobuf field string revision = 3; - * @return string - */ - public function getRevision() - { - return $this->revision; - } - - /** - * The iteration of the package build from the above version. - * - * Generated from protobuf field string revision = 3; - * @param string $var - * @return $this - */ - public function setRevision($var) - { - GPBUtil::checkString($var, True); - $this->revision = $var; - - return $this; - } - - /** - * Whether this version is specifying part of an inclusive range. Grafeas - * does not have the capability to specify version ranges; instead we have - * fields that specify start version and end versions. At times this is - * insufficient - we also need to specify whether the version is included in - * the range or is excluded from the range. This boolean is expected to be set - * to true when the version is included in a range. - * - * Generated from protobuf field bool inclusive = 6; - * @return bool - */ - public function getInclusive() - { - return $this->inclusive; - } - - /** - * Whether this version is specifying part of an inclusive range. Grafeas - * does not have the capability to specify version ranges; instead we have - * fields that specify start version and end versions. At times this is - * insufficient - we also need to specify whether the version is included in - * the range or is excluded from the range. This boolean is expected to be set - * to true when the version is included in a range. - * - * Generated from protobuf field bool inclusive = 6; - * @param bool $var - * @return $this - */ - public function setInclusive($var) - { - GPBUtil::checkBool($var); - $this->inclusive = $var; - - return $this; - } - - /** - * Required. Distinguishes between sentinel MIN/MAX versions and normal - * versions. - * - * Generated from protobuf field .grafeas.v1.Version.VersionKind kind = 4; - * @return int - */ - public function getKind() - { - return $this->kind; - } - - /** - * Required. Distinguishes between sentinel MIN/MAX versions and normal - * versions. - * - * Generated from protobuf field .grafeas.v1.Version.VersionKind kind = 4; - * @param int $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\Version\VersionKind::class); - $this->kind = $var; - - return $this; - } - - /** - * Human readable version string. This string is of the form - * :- and is only set when kind is NORMAL. - * - * Generated from protobuf field string full_name = 5; - * @return string - */ - public function getFullName() - { - return $this->full_name; - } - - /** - * Human readable version string. This string is of the form - * :- and is only set when kind is NORMAL. - * - * Generated from protobuf field string full_name = 5; - * @param string $var - * @return $this - */ - public function setFullName($var) - { - GPBUtil::checkString($var, True); - $this->full_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Version/VersionKind.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Version/VersionKind.php deleted file mode 100644 index d978c7d44cf5..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Version/VersionKind.php +++ /dev/null @@ -1,71 +0,0 @@ -grafeas.v1.Version.VersionKind - */ -class VersionKind -{ - /** - * Unknown. - * - * Generated from protobuf enum VERSION_KIND_UNSPECIFIED = 0; - */ - const VERSION_KIND_UNSPECIFIED = 0; - /** - * A standard package version. - * - * Generated from protobuf enum NORMAL = 1; - */ - const NORMAL = 1; - /** - * A special version representing negative infinity. - * - * Generated from protobuf enum MINIMUM = 2; - */ - const MINIMUM = 2; - /** - * A special version representing positive infinity. - * - * Generated from protobuf enum MAXIMUM = 3; - */ - const MAXIMUM = 3; - - private static $valueToName = [ - self::VERSION_KIND_UNSPECIFIED => 'VERSION_KIND_UNSPECIFIED', - self::NORMAL => 'NORMAL', - self::MINIMUM => 'MINIMUM', - self::MAXIMUM => 'MAXIMUM', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(VersionKind::class, \Grafeas\V1\Version_VersionKind::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote.php deleted file mode 100644 index b0b4b7cd0c34..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote.php +++ /dev/null @@ -1,306 +0,0 @@ -grafeas.v1.VulnerabilityAssessmentNote - */ -class VulnerabilityAssessmentNote extends \Google\Protobuf\Internal\Message -{ - /** - * The title of the note. E.g. `Vex-Debian-11.4` - * - * Generated from protobuf field string title = 1; - */ - protected $title = ''; - /** - * A one sentence description of this Vex. - * - * Generated from protobuf field string short_description = 2; - */ - protected $short_description = ''; - /** - * A detailed description of this Vex. - * - * Generated from protobuf field string long_description = 3; - */ - protected $long_description = ''; - /** - * Identifies the language used by this document, - * corresponding to IETF BCP 47 / RFC 5646. - * - * Generated from protobuf field string language_code = 4; - */ - protected $language_code = ''; - /** - * Publisher details of this Note. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Publisher publisher = 5; - */ - protected $publisher = null; - /** - * The product affected by this vex. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Product product = 6; - */ - protected $product = null; - /** - * Represents a vulnerability assessment for the product. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment assessment = 7; - */ - protected $assessment = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $title - * The title of the note. E.g. `Vex-Debian-11.4` - * @type string $short_description - * A one sentence description of this Vex. - * @type string $long_description - * A detailed description of this Vex. - * @type string $language_code - * Identifies the language used by this document, - * corresponding to IETF BCP 47 / RFC 5646. - * @type \Grafeas\V1\VulnerabilityAssessmentNote\Publisher $publisher - * Publisher details of this Note. - * @type \Grafeas\V1\VulnerabilityAssessmentNote\Product $product - * The product affected by this vex. - * @type \Grafeas\V1\VulnerabilityAssessmentNote\Assessment $assessment - * Represents a vulnerability assessment for the product. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Vex::initOnce(); - parent::__construct($data); - } - - /** - * The title of the note. E.g. `Vex-Debian-11.4` - * - * Generated from protobuf field string title = 1; - * @return string - */ - public function getTitle() - { - return $this->title; - } - - /** - * The title of the note. E.g. `Vex-Debian-11.4` - * - * Generated from protobuf field string title = 1; - * @param string $var - * @return $this - */ - public function setTitle($var) - { - GPBUtil::checkString($var, True); - $this->title = $var; - - return $this; - } - - /** - * A one sentence description of this Vex. - * - * Generated from protobuf field string short_description = 2; - * @return string - */ - public function getShortDescription() - { - return $this->short_description; - } - - /** - * A one sentence description of this Vex. - * - * Generated from protobuf field string short_description = 2; - * @param string $var - * @return $this - */ - public function setShortDescription($var) - { - GPBUtil::checkString($var, True); - $this->short_description = $var; - - return $this; - } - - /** - * A detailed description of this Vex. - * - * Generated from protobuf field string long_description = 3; - * @return string - */ - public function getLongDescription() - { - return $this->long_description; - } - - /** - * A detailed description of this Vex. - * - * Generated from protobuf field string long_description = 3; - * @param string $var - * @return $this - */ - public function setLongDescription($var) - { - GPBUtil::checkString($var, True); - $this->long_description = $var; - - return $this; - } - - /** - * Identifies the language used by this document, - * corresponding to IETF BCP 47 / RFC 5646. - * - * Generated from protobuf field string language_code = 4; - * @return string - */ - public function getLanguageCode() - { - return $this->language_code; - } - - /** - * Identifies the language used by this document, - * corresponding to IETF BCP 47 / RFC 5646. - * - * Generated from protobuf field string language_code = 4; - * @param string $var - * @return $this - */ - public function setLanguageCode($var) - { - GPBUtil::checkString($var, True); - $this->language_code = $var; - - return $this; - } - - /** - * Publisher details of this Note. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Publisher publisher = 5; - * @return \Grafeas\V1\VulnerabilityAssessmentNote\Publisher|null - */ - public function getPublisher() - { - return $this->publisher; - } - - public function hasPublisher() - { - return isset($this->publisher); - } - - public function clearPublisher() - { - unset($this->publisher); - } - - /** - * Publisher details of this Note. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Publisher publisher = 5; - * @param \Grafeas\V1\VulnerabilityAssessmentNote\Publisher $var - * @return $this - */ - public function setPublisher($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\VulnerabilityAssessmentNote\Publisher::class); - $this->publisher = $var; - - return $this; - } - - /** - * The product affected by this vex. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Product product = 6; - * @return \Grafeas\V1\VulnerabilityAssessmentNote\Product|null - */ - public function getProduct() - { - return $this->product; - } - - public function hasProduct() - { - return isset($this->product); - } - - public function clearProduct() - { - unset($this->product); - } - - /** - * The product affected by this vex. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Product product = 6; - * @param \Grafeas\V1\VulnerabilityAssessmentNote\Product $var - * @return $this - */ - public function setProduct($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\VulnerabilityAssessmentNote\Product::class); - $this->product = $var; - - return $this; - } - - /** - * Represents a vulnerability assessment for the product. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment assessment = 7; - * @return \Grafeas\V1\VulnerabilityAssessmentNote\Assessment|null - */ - public function getAssessment() - { - return $this->assessment; - } - - public function hasAssessment() - { - return isset($this->assessment); - } - - public function clearAssessment() - { - unset($this->assessment); - } - - /** - * Represents a vulnerability assessment for the product. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment assessment = 7; - * @param \Grafeas\V1\VulnerabilityAssessmentNote\Assessment $var - * @return $this - */ - public function setAssessment($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\VulnerabilityAssessmentNote\Assessment::class); - $this->assessment = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment.php deleted file mode 100644 index 4baa6c06cb65..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment.php +++ /dev/null @@ -1,392 +0,0 @@ -grafeas.v1.VulnerabilityAssessmentNote.Assessment - */ -class Assessment extends \Google\Protobuf\Internal\Message -{ - /** - * Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) - * tracking number for the vulnerability. - * Deprecated: Use vulnerability_id instead to denote CVEs. - * - * Generated from protobuf field string cve = 1 [deprecated = true]; - * @deprecated - */ - protected $cve = ''; - /** - * The vulnerability identifier for this Assessment. Will hold one of - * common identifiers e.g. CVE, GHSA etc. - * - * Generated from protobuf field string vulnerability_id = 9; - */ - protected $vulnerability_id = ''; - /** - * A one sentence description of this Vex. - * - * Generated from protobuf field string short_description = 2; - */ - protected $short_description = ''; - /** - * A detailed description of this Vex. - * - * Generated from protobuf field string long_description = 3; - */ - protected $long_description = ''; - /** - * Holds a list of references associated with this vulnerability item and - * assessment. These uris have additional information about the - * vulnerability and the assessment itself. E.g. Link to a document which - * details how this assessment concluded the state of this vulnerability. - * - * Generated from protobuf field repeated .grafeas.v1.RelatedUrl related_uris = 4; - */ - private $related_uris; - /** - * Provides the state of this Vulnerability assessment. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.State state = 5; - */ - protected $state = 0; - /** - * Contains information about the impact of this vulnerability, - * this will change with time. - * - * Generated from protobuf field repeated string impacts = 6; - */ - private $impacts; - /** - * Justification provides the justification when the state of the - * assessment if NOT_AFFECTED. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7; - */ - protected $justification = null; - /** - * Specifies details on how to handle (and presumably, fix) a vulnerability. - * - * Generated from protobuf field repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8; - */ - private $remediations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $cve - * Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) - * tracking number for the vulnerability. - * Deprecated: Use vulnerability_id instead to denote CVEs. - * @type string $vulnerability_id - * The vulnerability identifier for this Assessment. Will hold one of - * common identifiers e.g. CVE, GHSA etc. - * @type string $short_description - * A one sentence description of this Vex. - * @type string $long_description - * A detailed description of this Vex. - * @type array<\Grafeas\V1\RelatedUrl>|\Google\Protobuf\Internal\RepeatedField $related_uris - * Holds a list of references associated with this vulnerability item and - * assessment. These uris have additional information about the - * vulnerability and the assessment itself. E.g. Link to a document which - * details how this assessment concluded the state of this vulnerability. - * @type int $state - * Provides the state of this Vulnerability assessment. - * @type array|\Google\Protobuf\Internal\RepeatedField $impacts - * Contains information about the impact of this vulnerability, - * this will change with time. - * @type \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Justification $justification - * Justification provides the justification when the state of the - * assessment if NOT_AFFECTED. - * @type array<\Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Remediation>|\Google\Protobuf\Internal\RepeatedField $remediations - * Specifies details on how to handle (and presumably, fix) a vulnerability. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Vex::initOnce(); - parent::__construct($data); - } - - /** - * Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) - * tracking number for the vulnerability. - * Deprecated: Use vulnerability_id instead to denote CVEs. - * - * Generated from protobuf field string cve = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getCve() - { - if ($this->cve !== '') { - @trigger_error('cve is deprecated.', E_USER_DEPRECATED); - } - return $this->cve; - } - - /** - * Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) - * tracking number for the vulnerability. - * Deprecated: Use vulnerability_id instead to denote CVEs. - * - * Generated from protobuf field string cve = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setCve($var) - { - @trigger_error('cve is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cve = $var; - - return $this; - } - - /** - * The vulnerability identifier for this Assessment. Will hold one of - * common identifiers e.g. CVE, GHSA etc. - * - * Generated from protobuf field string vulnerability_id = 9; - * @return string - */ - public function getVulnerabilityId() - { - return $this->vulnerability_id; - } - - /** - * The vulnerability identifier for this Assessment. Will hold one of - * common identifiers e.g. CVE, GHSA etc. - * - * Generated from protobuf field string vulnerability_id = 9; - * @param string $var - * @return $this - */ - public function setVulnerabilityId($var) - { - GPBUtil::checkString($var, True); - $this->vulnerability_id = $var; - - return $this; - } - - /** - * A one sentence description of this Vex. - * - * Generated from protobuf field string short_description = 2; - * @return string - */ - public function getShortDescription() - { - return $this->short_description; - } - - /** - * A one sentence description of this Vex. - * - * Generated from protobuf field string short_description = 2; - * @param string $var - * @return $this - */ - public function setShortDescription($var) - { - GPBUtil::checkString($var, True); - $this->short_description = $var; - - return $this; - } - - /** - * A detailed description of this Vex. - * - * Generated from protobuf field string long_description = 3; - * @return string - */ - public function getLongDescription() - { - return $this->long_description; - } - - /** - * A detailed description of this Vex. - * - * Generated from protobuf field string long_description = 3; - * @param string $var - * @return $this - */ - public function setLongDescription($var) - { - GPBUtil::checkString($var, True); - $this->long_description = $var; - - return $this; - } - - /** - * Holds a list of references associated with this vulnerability item and - * assessment. These uris have additional information about the - * vulnerability and the assessment itself. E.g. Link to a document which - * details how this assessment concluded the state of this vulnerability. - * - * Generated from protobuf field repeated .grafeas.v1.RelatedUrl related_uris = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRelatedUris() - { - return $this->related_uris; - } - - /** - * Holds a list of references associated with this vulnerability item and - * assessment. These uris have additional information about the - * vulnerability and the assessment itself. E.g. Link to a document which - * details how this assessment concluded the state of this vulnerability. - * - * Generated from protobuf field repeated .grafeas.v1.RelatedUrl related_uris = 4; - * @param array<\Grafeas\V1\RelatedUrl>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRelatedUris($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\RelatedUrl::class); - $this->related_uris = $arr; - - return $this; - } - - /** - * Provides the state of this Vulnerability assessment. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.State state = 5; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Provides the state of this Vulnerability assessment. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.State state = 5; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\State::class); - $this->state = $var; - - return $this; - } - - /** - * Contains information about the impact of this vulnerability, - * this will change with time. - * - * Generated from protobuf field repeated string impacts = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getImpacts() - { - return $this->impacts; - } - - /** - * Contains information about the impact of this vulnerability, - * this will change with time. - * - * Generated from protobuf field repeated string impacts = 6; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setImpacts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->impacts = $arr; - - return $this; - } - - /** - * Justification provides the justification when the state of the - * assessment if NOT_AFFECTED. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7; - * @return \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Justification|null - */ - public function getJustification() - { - return $this->justification; - } - - public function hasJustification() - { - return isset($this->justification); - } - - public function clearJustification() - { - unset($this->justification); - } - - /** - * Justification provides the justification when the state of the - * assessment if NOT_AFFECTED. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7; - * @param \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Justification $var - * @return $this - */ - public function setJustification($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Justification::class); - $this->justification = $var; - - return $this; - } - - /** - * Specifies details on how to handle (and presumably, fix) a vulnerability. - * - * Generated from protobuf field repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRemediations() - { - return $this->remediations; - } - - /** - * Specifies details on how to handle (and presumably, fix) a vulnerability. - * - * Generated from protobuf field repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 8; - * @param array<\Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Remediation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRemediations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Remediation::class); - $this->remediations = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Assessment::class, \Grafeas\V1\VulnerabilityAssessmentNote_Assessment::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Justification.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Justification.php deleted file mode 100644 index fdb666012d62..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Justification.php +++ /dev/null @@ -1,105 +0,0 @@ -grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification - */ -class Justification extends \Google\Protobuf\Internal\Message -{ - /** - * The justification type for this vulnerability. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType justification_type = 1; - */ - protected $justification_type = 0; - /** - * Additional details on why this justification was chosen. - * - * Generated from protobuf field string details = 2; - */ - protected $details = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $justification_type - * The justification type for this vulnerability. - * @type string $details - * Additional details on why this justification was chosen. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Vex::initOnce(); - parent::__construct($data); - } - - /** - * The justification type for this vulnerability. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType justification_type = 1; - * @return int - */ - public function getJustificationType() - { - return $this->justification_type; - } - - /** - * The justification type for this vulnerability. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType justification_type = 1; - * @param int $var - * @return $this - */ - public function setJustificationType($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Justification\JustificationType::class); - $this->justification_type = $var; - - return $this; - } - - /** - * Additional details on why this justification was chosen. - * - * Generated from protobuf field string details = 2; - * @return string - */ - public function getDetails() - { - return $this->details; - } - - /** - * Additional details on why this justification was chosen. - * - * Generated from protobuf field string details = 2; - * @param string $var - * @return $this - */ - public function setDetails($var) - { - GPBUtil::checkString($var, True); - $this->details = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Justification::class, \Grafeas\V1\VulnerabilityAssessmentNote_Assessment_Justification::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Justification/JustificationType.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Justification/JustificationType.php deleted file mode 100644 index 8d0a24170835..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Justification/JustificationType.php +++ /dev/null @@ -1,94 +0,0 @@ -grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType - */ -class JustificationType -{ - /** - * JUSTIFICATION_TYPE_UNSPECIFIED. - * - * Generated from protobuf enum JUSTIFICATION_TYPE_UNSPECIFIED = 0; - */ - const JUSTIFICATION_TYPE_UNSPECIFIED = 0; - /** - * The vulnerable component is not present in the product. - * - * Generated from protobuf enum COMPONENT_NOT_PRESENT = 1; - */ - const COMPONENT_NOT_PRESENT = 1; - /** - * The vulnerable code is not present. Typically this case - * occurs when source code is configured or built in a way that excludes - * the vulnerable code. - * - * Generated from protobuf enum VULNERABLE_CODE_NOT_PRESENT = 2; - */ - const VULNERABLE_CODE_NOT_PRESENT = 2; - /** - * The vulnerable code can not be executed. - * Typically this case occurs when the product includes the vulnerable - * code but does not call or use the vulnerable code. - * - * Generated from protobuf enum VULNERABLE_CODE_NOT_IN_EXECUTE_PATH = 3; - */ - const VULNERABLE_CODE_NOT_IN_EXECUTE_PATH = 3; - /** - * The vulnerable code cannot be controlled by an attacker to exploit - * the vulnerability. - * - * Generated from protobuf enum VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY = 4; - */ - const VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY = 4; - /** - * The product includes built-in protections or features that prevent - * exploitation of the vulnerability. These built-in protections cannot - * be subverted by the attacker and cannot be configured or disabled by - * the user. These mitigations completely prevent exploitation based on - * known attack vectors. - * - * Generated from protobuf enum INLINE_MITIGATIONS_ALREADY_EXIST = 5; - */ - const INLINE_MITIGATIONS_ALREADY_EXIST = 5; - - private static $valueToName = [ - self::JUSTIFICATION_TYPE_UNSPECIFIED => 'JUSTIFICATION_TYPE_UNSPECIFIED', - self::COMPONENT_NOT_PRESENT => 'COMPONENT_NOT_PRESENT', - self::VULNERABLE_CODE_NOT_PRESENT => 'VULNERABLE_CODE_NOT_PRESENT', - self::VULNERABLE_CODE_NOT_IN_EXECUTE_PATH => 'VULNERABLE_CODE_NOT_IN_EXECUTE_PATH', - self::VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY => 'VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY', - self::INLINE_MITIGATIONS_ALREADY_EXIST => 'INLINE_MITIGATIONS_ALREADY_EXIST', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(JustificationType::class, \Grafeas\V1\VulnerabilityAssessmentNote_Assessment_Justification_JustificationType::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Remediation.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Remediation.php deleted file mode 100644 index 43bea6f40ecc..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Remediation.php +++ /dev/null @@ -1,148 +0,0 @@ -grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation - */ -class Remediation extends \Google\Protobuf\Internal\Message -{ - /** - * The type of remediation that can be applied. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType remediation_type = 1; - */ - protected $remediation_type = 0; - /** - * Contains a comprehensive human-readable discussion of the remediation. - * - * Generated from protobuf field string details = 2; - */ - protected $details = ''; - /** - * Contains the URL where to obtain the remediation. - * - * Generated from protobuf field .grafeas.v1.RelatedUrl remediation_uri = 3; - */ - protected $remediation_uri = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $remediation_type - * The type of remediation that can be applied. - * @type string $details - * Contains a comprehensive human-readable discussion of the remediation. - * @type \Grafeas\V1\RelatedUrl $remediation_uri - * Contains the URL where to obtain the remediation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Vex::initOnce(); - parent::__construct($data); - } - - /** - * The type of remediation that can be applied. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType remediation_type = 1; - * @return int - */ - public function getRemediationType() - { - return $this->remediation_type; - } - - /** - * The type of remediation that can be applied. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType remediation_type = 1; - * @param int $var - * @return $this - */ - public function setRemediationType($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Remediation\RemediationType::class); - $this->remediation_type = $var; - - return $this; - } - - /** - * Contains a comprehensive human-readable discussion of the remediation. - * - * Generated from protobuf field string details = 2; - * @return string - */ - public function getDetails() - { - return $this->details; - } - - /** - * Contains a comprehensive human-readable discussion of the remediation. - * - * Generated from protobuf field string details = 2; - * @param string $var - * @return $this - */ - public function setDetails($var) - { - GPBUtil::checkString($var, True); - $this->details = $var; - - return $this; - } - - /** - * Contains the URL where to obtain the remediation. - * - * Generated from protobuf field .grafeas.v1.RelatedUrl remediation_uri = 3; - * @return \Grafeas\V1\RelatedUrl|null - */ - public function getRemediationUri() - { - return $this->remediation_uri; - } - - public function hasRemediationUri() - { - return isset($this->remediation_uri); - } - - public function clearRemediationUri() - { - unset($this->remediation_uri); - } - - /** - * Contains the URL where to obtain the remediation. - * - * Generated from protobuf field .grafeas.v1.RelatedUrl remediation_uri = 3; - * @param \Grafeas\V1\RelatedUrl $var - * @return $this - */ - public function setRemediationUri($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\RelatedUrl::class); - $this->remediation_uri = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Remediation::class, \Grafeas\V1\VulnerabilityAssessmentNote_Assessment_Remediation::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Remediation/RemediationType.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Remediation/RemediationType.php deleted file mode 100644 index 66c51c0be9f9..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Remediation/RemediationType.php +++ /dev/null @@ -1,85 +0,0 @@ -grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType - */ -class RemediationType -{ - /** - * No remediation type specified. - * - * Generated from protobuf enum REMEDIATION_TYPE_UNSPECIFIED = 0; - */ - const REMEDIATION_TYPE_UNSPECIFIED = 0; - /** - * A MITIGATION is available. - * - * Generated from protobuf enum MITIGATION = 1; - */ - const MITIGATION = 1; - /** - * No fix is planned. - * - * Generated from protobuf enum NO_FIX_PLANNED = 2; - */ - const NO_FIX_PLANNED = 2; - /** - * Not available. - * - * Generated from protobuf enum NONE_AVAILABLE = 3; - */ - const NONE_AVAILABLE = 3; - /** - * A vendor fix is available. - * - * Generated from protobuf enum VENDOR_FIX = 4; - */ - const VENDOR_FIX = 4; - /** - * A workaround is available. - * - * Generated from protobuf enum WORKAROUND = 5; - */ - const WORKAROUND = 5; - - private static $valueToName = [ - self::REMEDIATION_TYPE_UNSPECIFIED => 'REMEDIATION_TYPE_UNSPECIFIED', - self::MITIGATION => 'MITIGATION', - self::NO_FIX_PLANNED => 'NO_FIX_PLANNED', - self::NONE_AVAILABLE => 'NONE_AVAILABLE', - self::VENDOR_FIX => 'VENDOR_FIX', - self::WORKAROUND => 'WORKAROUND', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RemediationType::class, \Grafeas\V1\VulnerabilityAssessmentNote_Assessment_Remediation_RemediationType::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/State.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/State.php deleted file mode 100644 index 69b81a30cd45..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/State.php +++ /dev/null @@ -1,79 +0,0 @@ -grafeas.v1.VulnerabilityAssessmentNote.Assessment.State - */ -class State -{ - /** - * No state is specified. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * This product is known to be affected by this vulnerability. - * - * Generated from protobuf enum AFFECTED = 1; - */ - const AFFECTED = 1; - /** - * This product is known to be not affected by this vulnerability. - * - * Generated from protobuf enum NOT_AFFECTED = 2; - */ - const NOT_AFFECTED = 2; - /** - * This product contains a fix for this vulnerability. - * - * Generated from protobuf enum FIXED = 3; - */ - const FIXED = 3; - /** - * It is not known yet whether these versions are or are not affected - * by the vulnerability. However, it is still under investigation. - * - * Generated from protobuf enum UNDER_INVESTIGATION = 4; - */ - const UNDER_INVESTIGATION = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::AFFECTED => 'AFFECTED', - self::NOT_AFFECTED => 'NOT_AFFECTED', - self::FIXED => 'FIXED', - self::UNDER_INVESTIGATION => 'UNDER_INVESTIGATION', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Grafeas\V1\VulnerabilityAssessmentNote_Assessment_State::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Product.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Product.php deleted file mode 100644 index a7fad624e32d..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Product.php +++ /dev/null @@ -1,160 +0,0 @@ -grafeas.v1.VulnerabilityAssessmentNote.Product - */ -class Product extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the product. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Token that identifies a product so that it can be referred to from other - * parts in the document. There is no predefined format as long as it - * uniquely identifies a group in the context of the current document. - * - * Generated from protobuf field string id = 2; - */ - protected $id = ''; - protected $identifier; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the product. - * @type string $id - * Token that identifies a product so that it can be referred to from other - * parts in the document. There is no predefined format as long as it - * uniquely identifies a group in the context of the current document. - * @type string $generic_uri - * Contains a URI which is vendor-specific. - * Example: The artifact repository URL of an image. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Vex::initOnce(); - parent::__construct($data); - } - - /** - * Name of the product. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the product. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Token that identifies a product so that it can be referred to from other - * parts in the document. There is no predefined format as long as it - * uniquely identifies a group in the context of the current document. - * - * Generated from protobuf field string id = 2; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Token that identifies a product so that it can be referred to from other - * parts in the document. There is no predefined format as long as it - * uniquely identifies a group in the context of the current document. - * - * Generated from protobuf field string id = 2; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Contains a URI which is vendor-specific. - * Example: The artifact repository URL of an image. - * - * Generated from protobuf field string generic_uri = 3; - * @return string - */ - public function getGenericUri() - { - return $this->readOneof(3); - } - - public function hasGenericUri() - { - return $this->hasOneof(3); - } - - /** - * Contains a URI which is vendor-specific. - * Example: The artifact repository URL of an image. - * - * Generated from protobuf field string generic_uri = 3; - * @param string $var - * @return $this - */ - public function setGenericUri($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getIdentifier() - { - return $this->whichOneof("identifier"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Product::class, \Grafeas\V1\VulnerabilityAssessmentNote_Product::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Publisher.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Publisher.php deleted file mode 100644 index 2801fd5a85c2..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Publisher.php +++ /dev/null @@ -1,165 +0,0 @@ -grafeas.v1.VulnerabilityAssessmentNote.Publisher - */ -class Publisher extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the publisher. - * Examples: 'Google', 'Google Cloud Platform'. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Provides information about the authority of the issuing party to - * release the document, in particular, the party's constituency and - * responsibilities or other obligations. - * - * Generated from protobuf field string issuing_authority = 2; - */ - protected $issuing_authority = ''; - /** - * The context or namespace. - * Contains a URL which is under control of the issuing party and can - * be used as a globally unique identifier for that issuing party. - * Example: https://csaf.io - * - * Generated from protobuf field string publisher_namespace = 3; - */ - protected $publisher_namespace = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the publisher. - * Examples: 'Google', 'Google Cloud Platform'. - * @type string $issuing_authority - * Provides information about the authority of the issuing party to - * release the document, in particular, the party's constituency and - * responsibilities or other obligations. - * @type string $publisher_namespace - * The context or namespace. - * Contains a URL which is under control of the issuing party and can - * be used as a globally unique identifier for that issuing party. - * Example: https://csaf.io - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Vex::initOnce(); - parent::__construct($data); - } - - /** - * Name of the publisher. - * Examples: 'Google', 'Google Cloud Platform'. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the publisher. - * Examples: 'Google', 'Google Cloud Platform'. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Provides information about the authority of the issuing party to - * release the document, in particular, the party's constituency and - * responsibilities or other obligations. - * - * Generated from protobuf field string issuing_authority = 2; - * @return string - */ - public function getIssuingAuthority() - { - return $this->issuing_authority; - } - - /** - * Provides information about the authority of the issuing party to - * release the document, in particular, the party's constituency and - * responsibilities or other obligations. - * - * Generated from protobuf field string issuing_authority = 2; - * @param string $var - * @return $this - */ - public function setIssuingAuthority($var) - { - GPBUtil::checkString($var, True); - $this->issuing_authority = $var; - - return $this; - } - - /** - * The context or namespace. - * Contains a URL which is under control of the issuing party and can - * be used as a globally unique identifier for that issuing party. - * Example: https://csaf.io - * - * Generated from protobuf field string publisher_namespace = 3; - * @return string - */ - public function getPublisherNamespace() - { - return $this->publisher_namespace; - } - - /** - * The context or namespace. - * Contains a URL which is under control of the issuing party and can - * be used as a globally unique identifier for that issuing party. - * Example: https://csaf.io - * - * Generated from protobuf field string publisher_namespace = 3; - * @param string $var - * @return $this - */ - public function setPublisherNamespace($var) - { - GPBUtil::checkString($var, True); - $this->publisher_namespace = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Publisher::class, \Grafeas\V1\VulnerabilityAssessmentNote_Publisher::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote.php deleted file mode 100644 index 2448507b64c7..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote.php +++ /dev/null @@ -1,403 +0,0 @@ -grafeas.v1.VulnerabilityNote - */ -class VulnerabilityNote extends \Google\Protobuf\Internal\Message -{ - /** - * The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10 - * where 0 indicates low severity and 10 indicates high severity. - * - * Generated from protobuf field float cvss_score = 1; - */ - protected $cvss_score = 0.0; - /** - * The note provider assigned severity of this vulnerability. - * - * Generated from protobuf field .grafeas.v1.Severity severity = 2; - */ - protected $severity = 0; - /** - * Details of all known distros and packages affected by this vulnerability. - * - * Generated from protobuf field repeated .grafeas.v1.VulnerabilityNote.Detail details = 3; - */ - private $details; - /** - * The full description of the CVSSv3 for this vulnerability. - * - * Generated from protobuf field .grafeas.v1.CVSSv3 cvss_v3 = 4; - */ - protected $cvss_v3 = null; - /** - * Windows details get their own format because the information format and - * model don't match a normal detail. Specifically Windows updates are done as - * patches, thus Windows vulnerabilities really are a missing package, rather - * than a package being at an incorrect version. - * - * Generated from protobuf field repeated .grafeas.v1.VulnerabilityNote.WindowsDetail windows_details = 5; - */ - private $windows_details; - /** - * The time this information was last changed at the source. This is an - * upstream timestamp from the underlying information source - e.g. Ubuntu - * security tracker. - * - * Generated from protobuf field .google.protobuf.Timestamp source_update_time = 6; - */ - protected $source_update_time = null; - /** - * CVSS version used to populate cvss_score and severity. - * - * Generated from protobuf field .grafeas.v1.CVSSVersion cvss_version = 7; - */ - protected $cvss_version = 0; - /** - * The full description of the v2 CVSS for this vulnerability. - * - * Generated from protobuf field .grafeas.v1.CVSS cvss_v2 = 8; - */ - protected $cvss_v2 = null; - /** - * The time this advisory was published by the source. - * - * Generated from protobuf field .google.protobuf.Timestamp advisory_publish_time = 9; - */ - protected $advisory_publish_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $cvss_score - * The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10 - * where 0 indicates low severity and 10 indicates high severity. - * @type int $severity - * The note provider assigned severity of this vulnerability. - * @type array<\Grafeas\V1\VulnerabilityNote\Detail>|\Google\Protobuf\Internal\RepeatedField $details - * Details of all known distros and packages affected by this vulnerability. - * @type \Grafeas\V1\CVSSv3 $cvss_v3 - * The full description of the CVSSv3 for this vulnerability. - * @type array<\Grafeas\V1\VulnerabilityNote\WindowsDetail>|\Google\Protobuf\Internal\RepeatedField $windows_details - * Windows details get their own format because the information format and - * model don't match a normal detail. Specifically Windows updates are done as - * patches, thus Windows vulnerabilities really are a missing package, rather - * than a package being at an incorrect version. - * @type \Google\Protobuf\Timestamp $source_update_time - * The time this information was last changed at the source. This is an - * upstream timestamp from the underlying information source - e.g. Ubuntu - * security tracker. - * @type int $cvss_version - * CVSS version used to populate cvss_score and severity. - * @type \Grafeas\V1\CVSS $cvss_v2 - * The full description of the v2 CVSS for this vulnerability. - * @type \Google\Protobuf\Timestamp $advisory_publish_time - * The time this advisory was published by the source. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Vulnerability::initOnce(); - parent::__construct($data); - } - - /** - * The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10 - * where 0 indicates low severity and 10 indicates high severity. - * - * Generated from protobuf field float cvss_score = 1; - * @return float - */ - public function getCvssScore() - { - return $this->cvss_score; - } - - /** - * The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10 - * where 0 indicates low severity and 10 indicates high severity. - * - * Generated from protobuf field float cvss_score = 1; - * @param float $var - * @return $this - */ - public function setCvssScore($var) - { - GPBUtil::checkFloat($var); - $this->cvss_score = $var; - - return $this; - } - - /** - * The note provider assigned severity of this vulnerability. - * - * Generated from protobuf field .grafeas.v1.Severity severity = 2; - * @return int - */ - public function getSeverity() - { - return $this->severity; - } - - /** - * The note provider assigned severity of this vulnerability. - * - * Generated from protobuf field .grafeas.v1.Severity severity = 2; - * @param int $var - * @return $this - */ - public function setSeverity($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\Severity::class); - $this->severity = $var; - - return $this; - } - - /** - * Details of all known distros and packages affected by this vulnerability. - * - * Generated from protobuf field repeated .grafeas.v1.VulnerabilityNote.Detail details = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDetails() - { - return $this->details; - } - - /** - * Details of all known distros and packages affected by this vulnerability. - * - * Generated from protobuf field repeated .grafeas.v1.VulnerabilityNote.Detail details = 3; - * @param array<\Grafeas\V1\VulnerabilityNote\Detail>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDetails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\VulnerabilityNote\Detail::class); - $this->details = $arr; - - return $this; - } - - /** - * The full description of the CVSSv3 for this vulnerability. - * - * Generated from protobuf field .grafeas.v1.CVSSv3 cvss_v3 = 4; - * @return \Grafeas\V1\CVSSv3|null - */ - public function getCvssV3() - { - return $this->cvss_v3; - } - - public function hasCvssV3() - { - return isset($this->cvss_v3); - } - - public function clearCvssV3() - { - unset($this->cvss_v3); - } - - /** - * The full description of the CVSSv3 for this vulnerability. - * - * Generated from protobuf field .grafeas.v1.CVSSv3 cvss_v3 = 4; - * @param \Grafeas\V1\CVSSv3 $var - * @return $this - */ - public function setCvssV3($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\CVSSv3::class); - $this->cvss_v3 = $var; - - return $this; - } - - /** - * Windows details get their own format because the information format and - * model don't match a normal detail. Specifically Windows updates are done as - * patches, thus Windows vulnerabilities really are a missing package, rather - * than a package being at an incorrect version. - * - * Generated from protobuf field repeated .grafeas.v1.VulnerabilityNote.WindowsDetail windows_details = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getWindowsDetails() - { - return $this->windows_details; - } - - /** - * Windows details get their own format because the information format and - * model don't match a normal detail. Specifically Windows updates are done as - * patches, thus Windows vulnerabilities really are a missing package, rather - * than a package being at an incorrect version. - * - * Generated from protobuf field repeated .grafeas.v1.VulnerabilityNote.WindowsDetail windows_details = 5; - * @param array<\Grafeas\V1\VulnerabilityNote\WindowsDetail>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setWindowsDetails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\VulnerabilityNote\WindowsDetail::class); - $this->windows_details = $arr; - - return $this; - } - - /** - * The time this information was last changed at the source. This is an - * upstream timestamp from the underlying information source - e.g. Ubuntu - * security tracker. - * - * Generated from protobuf field .google.protobuf.Timestamp source_update_time = 6; - * @return \Google\Protobuf\Timestamp|null - */ - public function getSourceUpdateTime() - { - return $this->source_update_time; - } - - public function hasSourceUpdateTime() - { - return isset($this->source_update_time); - } - - public function clearSourceUpdateTime() - { - unset($this->source_update_time); - } - - /** - * The time this information was last changed at the source. This is an - * upstream timestamp from the underlying information source - e.g. Ubuntu - * security tracker. - * - * Generated from protobuf field .google.protobuf.Timestamp source_update_time = 6; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setSourceUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->source_update_time = $var; - - return $this; - } - - /** - * CVSS version used to populate cvss_score and severity. - * - * Generated from protobuf field .grafeas.v1.CVSSVersion cvss_version = 7; - * @return int - */ - public function getCvssVersion() - { - return $this->cvss_version; - } - - /** - * CVSS version used to populate cvss_score and severity. - * - * Generated from protobuf field .grafeas.v1.CVSSVersion cvss_version = 7; - * @param int $var - * @return $this - */ - public function setCvssVersion($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\CVSSVersion::class); - $this->cvss_version = $var; - - return $this; - } - - /** - * The full description of the v2 CVSS for this vulnerability. - * - * Generated from protobuf field .grafeas.v1.CVSS cvss_v2 = 8; - * @return \Grafeas\V1\CVSS|null - */ - public function getCvssV2() - { - return $this->cvss_v2; - } - - public function hasCvssV2() - { - return isset($this->cvss_v2); - } - - public function clearCvssV2() - { - unset($this->cvss_v2); - } - - /** - * The full description of the v2 CVSS for this vulnerability. - * - * Generated from protobuf field .grafeas.v1.CVSS cvss_v2 = 8; - * @param \Grafeas\V1\CVSS $var - * @return $this - */ - public function setCvssV2($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\CVSS::class); - $this->cvss_v2 = $var; - - return $this; - } - - /** - * The time this advisory was published by the source. - * - * Generated from protobuf field .google.protobuf.Timestamp advisory_publish_time = 9; - * @return \Google\Protobuf\Timestamp|null - */ - public function getAdvisoryPublishTime() - { - return $this->advisory_publish_time; - } - - public function hasAdvisoryPublishTime() - { - return isset($this->advisory_publish_time); - } - - public function clearAdvisoryPublishTime() - { - unset($this->advisory_publish_time); - } - - /** - * The time this advisory was published by the source. - * - * Generated from protobuf field .google.protobuf.Timestamp advisory_publish_time = 9; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setAdvisoryPublishTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->advisory_publish_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote/Detail.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote/Detail.php deleted file mode 100644 index 8bd53ea558d3..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote/Detail.php +++ /dev/null @@ -1,645 +0,0 @@ -grafeas.v1.VulnerabilityNote.Detail - */ -class Detail extends \Google\Protobuf\Internal\Message -{ - /** - * The distro assigned severity of this vulnerability. - * - * Generated from protobuf field string severity_name = 1; - */ - protected $severity_name = ''; - /** - * A vendor-specific description of this vulnerability. - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - /** - * The type of package; whether native or non native (e.g., ruby gems, - * node.js packages, etc.). - * - * Generated from protobuf field string package_type = 3; - */ - protected $package_type = ''; - /** - * Required. The [CPE URI](https://cpe.mitre.org/specification/) this - * vulnerability affects. - * - * Generated from protobuf field string affected_cpe_uri = 4; - */ - protected $affected_cpe_uri = ''; - /** - * Required. The package this vulnerability affects. - * - * Generated from protobuf field string affected_package = 5; - */ - protected $affected_package = ''; - /** - * The version number at the start of an interval in which this - * vulnerability exists. A vulnerability can affect a package between - * version numbers that are disjoint sets of intervals (example: - * [1.0.0-1.1.0], [2.4.6-2.4.8] and [4.5.6-4.6.8]) each of which will be - * represented in its own Detail. If a specific affected version is provided - * by a vulnerability database, affected_version_start and - * affected_version_end will be the same in that Detail. - * - * Generated from protobuf field .grafeas.v1.Version affected_version_start = 6; - */ - protected $affected_version_start = null; - /** - * The version number at the end of an interval in which this vulnerability - * exists. A vulnerability can affect a package between version numbers - * that are disjoint sets of intervals (example: [1.0.0-1.1.0], - * [2.4.6-2.4.8] and [4.5.6-4.6.8]) each of which will be represented in its - * own Detail. If a specific affected version is provided by a vulnerability - * database, affected_version_start and affected_version_end will be the - * same in that Detail. - * - * Generated from protobuf field .grafeas.v1.Version affected_version_end = 7; - */ - protected $affected_version_end = null; - /** - * The distro recommended [CPE URI](https://cpe.mitre.org/specification/) - * to update to that contains a fix for this vulnerability. It is possible - * for this to be different from the affected_cpe_uri. - * - * Generated from protobuf field string fixed_cpe_uri = 8; - */ - protected $fixed_cpe_uri = ''; - /** - * The distro recommended package to update to that contains a fix for this - * vulnerability. It is possible for this to be different from the - * affected_package. - * - * Generated from protobuf field string fixed_package = 9; - */ - protected $fixed_package = ''; - /** - * The distro recommended version to update to that contains a - * fix for this vulnerability. Setting this to VersionKind.MAXIMUM means no - * such version is yet available. - * - * Generated from protobuf field .grafeas.v1.Version fixed_version = 10; - */ - protected $fixed_version = null; - /** - * Whether this detail is obsolete. Occurrences are expected not to point to - * obsolete details. - * - * Generated from protobuf field bool is_obsolete = 11; - */ - protected $is_obsolete = false; - /** - * The time this information was last changed at the source. This is an - * upstream timestamp from the underlying information source - e.g. Ubuntu - * security tracker. - * - * Generated from protobuf field .google.protobuf.Timestamp source_update_time = 12; - */ - protected $source_update_time = null; - /** - * The source from which the information in this Detail was obtained. - * - * Generated from protobuf field string source = 13; - */ - protected $source = ''; - /** - * The name of the vendor of the product. - * - * Generated from protobuf field string vendor = 14; - */ - protected $vendor = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $severity_name - * The distro assigned severity of this vulnerability. - * @type string $description - * A vendor-specific description of this vulnerability. - * @type string $package_type - * The type of package; whether native or non native (e.g., ruby gems, - * node.js packages, etc.). - * @type string $affected_cpe_uri - * Required. The [CPE URI](https://cpe.mitre.org/specification/) this - * vulnerability affects. - * @type string $affected_package - * Required. The package this vulnerability affects. - * @type \Grafeas\V1\Version $affected_version_start - * The version number at the start of an interval in which this - * vulnerability exists. A vulnerability can affect a package between - * version numbers that are disjoint sets of intervals (example: - * [1.0.0-1.1.0], [2.4.6-2.4.8] and [4.5.6-4.6.8]) each of which will be - * represented in its own Detail. If a specific affected version is provided - * by a vulnerability database, affected_version_start and - * affected_version_end will be the same in that Detail. - * @type \Grafeas\V1\Version $affected_version_end - * The version number at the end of an interval in which this vulnerability - * exists. A vulnerability can affect a package between version numbers - * that are disjoint sets of intervals (example: [1.0.0-1.1.0], - * [2.4.6-2.4.8] and [4.5.6-4.6.8]) each of which will be represented in its - * own Detail. If a specific affected version is provided by a vulnerability - * database, affected_version_start and affected_version_end will be the - * same in that Detail. - * @type string $fixed_cpe_uri - * The distro recommended [CPE URI](https://cpe.mitre.org/specification/) - * to update to that contains a fix for this vulnerability. It is possible - * for this to be different from the affected_cpe_uri. - * @type string $fixed_package - * The distro recommended package to update to that contains a fix for this - * vulnerability. It is possible for this to be different from the - * affected_package. - * @type \Grafeas\V1\Version $fixed_version - * The distro recommended version to update to that contains a - * fix for this vulnerability. Setting this to VersionKind.MAXIMUM means no - * such version is yet available. - * @type bool $is_obsolete - * Whether this detail is obsolete. Occurrences are expected not to point to - * obsolete details. - * @type \Google\Protobuf\Timestamp $source_update_time - * The time this information was last changed at the source. This is an - * upstream timestamp from the underlying information source - e.g. Ubuntu - * security tracker. - * @type string $source - * The source from which the information in this Detail was obtained. - * @type string $vendor - * The name of the vendor of the product. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Vulnerability::initOnce(); - parent::__construct($data); - } - - /** - * The distro assigned severity of this vulnerability. - * - * Generated from protobuf field string severity_name = 1; - * @return string - */ - public function getSeverityName() - { - return $this->severity_name; - } - - /** - * The distro assigned severity of this vulnerability. - * - * Generated from protobuf field string severity_name = 1; - * @param string $var - * @return $this - */ - public function setSeverityName($var) - { - GPBUtil::checkString($var, True); - $this->severity_name = $var; - - return $this; - } - - /** - * A vendor-specific description of this vulnerability. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * A vendor-specific description of this vulnerability. - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * The type of package; whether native or non native (e.g., ruby gems, - * node.js packages, etc.). - * - * Generated from protobuf field string package_type = 3; - * @return string - */ - public function getPackageType() - { - return $this->package_type; - } - - /** - * The type of package; whether native or non native (e.g., ruby gems, - * node.js packages, etc.). - * - * Generated from protobuf field string package_type = 3; - * @param string $var - * @return $this - */ - public function setPackageType($var) - { - GPBUtil::checkString($var, True); - $this->package_type = $var; - - return $this; - } - - /** - * Required. The [CPE URI](https://cpe.mitre.org/specification/) this - * vulnerability affects. - * - * Generated from protobuf field string affected_cpe_uri = 4; - * @return string - */ - public function getAffectedCpeUri() - { - return $this->affected_cpe_uri; - } - - /** - * Required. The [CPE URI](https://cpe.mitre.org/specification/) this - * vulnerability affects. - * - * Generated from protobuf field string affected_cpe_uri = 4; - * @param string $var - * @return $this - */ - public function setAffectedCpeUri($var) - { - GPBUtil::checkString($var, True); - $this->affected_cpe_uri = $var; - - return $this; - } - - /** - * Required. The package this vulnerability affects. - * - * Generated from protobuf field string affected_package = 5; - * @return string - */ - public function getAffectedPackage() - { - return $this->affected_package; - } - - /** - * Required. The package this vulnerability affects. - * - * Generated from protobuf field string affected_package = 5; - * @param string $var - * @return $this - */ - public function setAffectedPackage($var) - { - GPBUtil::checkString($var, True); - $this->affected_package = $var; - - return $this; - } - - /** - * The version number at the start of an interval in which this - * vulnerability exists. A vulnerability can affect a package between - * version numbers that are disjoint sets of intervals (example: - * [1.0.0-1.1.0], [2.4.6-2.4.8] and [4.5.6-4.6.8]) each of which will be - * represented in its own Detail. If a specific affected version is provided - * by a vulnerability database, affected_version_start and - * affected_version_end will be the same in that Detail. - * - * Generated from protobuf field .grafeas.v1.Version affected_version_start = 6; - * @return \Grafeas\V1\Version|null - */ - public function getAffectedVersionStart() - { - return $this->affected_version_start; - } - - public function hasAffectedVersionStart() - { - return isset($this->affected_version_start); - } - - public function clearAffectedVersionStart() - { - unset($this->affected_version_start); - } - - /** - * The version number at the start of an interval in which this - * vulnerability exists. A vulnerability can affect a package between - * version numbers that are disjoint sets of intervals (example: - * [1.0.0-1.1.0], [2.4.6-2.4.8] and [4.5.6-4.6.8]) each of which will be - * represented in its own Detail. If a specific affected version is provided - * by a vulnerability database, affected_version_start and - * affected_version_end will be the same in that Detail. - * - * Generated from protobuf field .grafeas.v1.Version affected_version_start = 6; - * @param \Grafeas\V1\Version $var - * @return $this - */ - public function setAffectedVersionStart($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\Version::class); - $this->affected_version_start = $var; - - return $this; - } - - /** - * The version number at the end of an interval in which this vulnerability - * exists. A vulnerability can affect a package between version numbers - * that are disjoint sets of intervals (example: [1.0.0-1.1.0], - * [2.4.6-2.4.8] and [4.5.6-4.6.8]) each of which will be represented in its - * own Detail. If a specific affected version is provided by a vulnerability - * database, affected_version_start and affected_version_end will be the - * same in that Detail. - * - * Generated from protobuf field .grafeas.v1.Version affected_version_end = 7; - * @return \Grafeas\V1\Version|null - */ - public function getAffectedVersionEnd() - { - return $this->affected_version_end; - } - - public function hasAffectedVersionEnd() - { - return isset($this->affected_version_end); - } - - public function clearAffectedVersionEnd() - { - unset($this->affected_version_end); - } - - /** - * The version number at the end of an interval in which this vulnerability - * exists. A vulnerability can affect a package between version numbers - * that are disjoint sets of intervals (example: [1.0.0-1.1.0], - * [2.4.6-2.4.8] and [4.5.6-4.6.8]) each of which will be represented in its - * own Detail. If a specific affected version is provided by a vulnerability - * database, affected_version_start and affected_version_end will be the - * same in that Detail. - * - * Generated from protobuf field .grafeas.v1.Version affected_version_end = 7; - * @param \Grafeas\V1\Version $var - * @return $this - */ - public function setAffectedVersionEnd($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\Version::class); - $this->affected_version_end = $var; - - return $this; - } - - /** - * The distro recommended [CPE URI](https://cpe.mitre.org/specification/) - * to update to that contains a fix for this vulnerability. It is possible - * for this to be different from the affected_cpe_uri. - * - * Generated from protobuf field string fixed_cpe_uri = 8; - * @return string - */ - public function getFixedCpeUri() - { - return $this->fixed_cpe_uri; - } - - /** - * The distro recommended [CPE URI](https://cpe.mitre.org/specification/) - * to update to that contains a fix for this vulnerability. It is possible - * for this to be different from the affected_cpe_uri. - * - * Generated from protobuf field string fixed_cpe_uri = 8; - * @param string $var - * @return $this - */ - public function setFixedCpeUri($var) - { - GPBUtil::checkString($var, True); - $this->fixed_cpe_uri = $var; - - return $this; - } - - /** - * The distro recommended package to update to that contains a fix for this - * vulnerability. It is possible for this to be different from the - * affected_package. - * - * Generated from protobuf field string fixed_package = 9; - * @return string - */ - public function getFixedPackage() - { - return $this->fixed_package; - } - - /** - * The distro recommended package to update to that contains a fix for this - * vulnerability. It is possible for this to be different from the - * affected_package. - * - * Generated from protobuf field string fixed_package = 9; - * @param string $var - * @return $this - */ - public function setFixedPackage($var) - { - GPBUtil::checkString($var, True); - $this->fixed_package = $var; - - return $this; - } - - /** - * The distro recommended version to update to that contains a - * fix for this vulnerability. Setting this to VersionKind.MAXIMUM means no - * such version is yet available. - * - * Generated from protobuf field .grafeas.v1.Version fixed_version = 10; - * @return \Grafeas\V1\Version|null - */ - public function getFixedVersion() - { - return $this->fixed_version; - } - - public function hasFixedVersion() - { - return isset($this->fixed_version); - } - - public function clearFixedVersion() - { - unset($this->fixed_version); - } - - /** - * The distro recommended version to update to that contains a - * fix for this vulnerability. Setting this to VersionKind.MAXIMUM means no - * such version is yet available. - * - * Generated from protobuf field .grafeas.v1.Version fixed_version = 10; - * @param \Grafeas\V1\Version $var - * @return $this - */ - public function setFixedVersion($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\Version::class); - $this->fixed_version = $var; - - return $this; - } - - /** - * Whether this detail is obsolete. Occurrences are expected not to point to - * obsolete details. - * - * Generated from protobuf field bool is_obsolete = 11; - * @return bool - */ - public function getIsObsolete() - { - return $this->is_obsolete; - } - - /** - * Whether this detail is obsolete. Occurrences are expected not to point to - * obsolete details. - * - * Generated from protobuf field bool is_obsolete = 11; - * @param bool $var - * @return $this - */ - public function setIsObsolete($var) - { - GPBUtil::checkBool($var); - $this->is_obsolete = $var; - - return $this; - } - - /** - * The time this information was last changed at the source. This is an - * upstream timestamp from the underlying information source - e.g. Ubuntu - * security tracker. - * - * Generated from protobuf field .google.protobuf.Timestamp source_update_time = 12; - * @return \Google\Protobuf\Timestamp|null - */ - public function getSourceUpdateTime() - { - return $this->source_update_time; - } - - public function hasSourceUpdateTime() - { - return isset($this->source_update_time); - } - - public function clearSourceUpdateTime() - { - unset($this->source_update_time); - } - - /** - * The time this information was last changed at the source. This is an - * upstream timestamp from the underlying information source - e.g. Ubuntu - * security tracker. - * - * Generated from protobuf field .google.protobuf.Timestamp source_update_time = 12; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setSourceUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->source_update_time = $var; - - return $this; - } - - /** - * The source from which the information in this Detail was obtained. - * - * Generated from protobuf field string source = 13; - * @return string - */ - public function getSource() - { - return $this->source; - } - - /** - * The source from which the information in this Detail was obtained. - * - * Generated from protobuf field string source = 13; - * @param string $var - * @return $this - */ - public function setSource($var) - { - GPBUtil::checkString($var, True); - $this->source = $var; - - return $this; - } - - /** - * The name of the vendor of the product. - * - * Generated from protobuf field string vendor = 14; - * @return string - */ - public function getVendor() - { - return $this->vendor; - } - - /** - * The name of the vendor of the product. - * - * Generated from protobuf field string vendor = 14; - * @param string $var - * @return $this - */ - public function setVendor($var) - { - GPBUtil::checkString($var, True); - $this->vendor = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Detail::class, \Grafeas\V1\VulnerabilityNote_Detail::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote/WindowsDetail.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote/WindowsDetail.php deleted file mode 100644 index e20cc151c87d..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote/WindowsDetail.php +++ /dev/null @@ -1,186 +0,0 @@ -grafeas.v1.VulnerabilityNote.WindowsDetail - */ -class WindowsDetail extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The [CPE URI](https://cpe.mitre.org/specification/) this - * vulnerability affects. - * - * Generated from protobuf field string cpe_uri = 1; - */ - protected $cpe_uri = ''; - /** - * Required. The name of this vulnerability. - * - * Generated from protobuf field string name = 2; - */ - protected $name = ''; - /** - * The description of this vulnerability. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * Required. The names of the KBs which have hotfixes to mitigate this - * vulnerability. Note that there may be multiple hotfixes (and thus - * multiple KBs) that mitigate a given vulnerability. Currently any listed - * KBs presence is considered a fix. - * - * Generated from protobuf field repeated .grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase fixing_kbs = 4; - */ - private $fixing_kbs; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $cpe_uri - * Required. The [CPE URI](https://cpe.mitre.org/specification/) this - * vulnerability affects. - * @type string $name - * Required. The name of this vulnerability. - * @type string $description - * The description of this vulnerability. - * @type array<\Grafeas\V1\VulnerabilityNote\WindowsDetail\KnowledgeBase>|\Google\Protobuf\Internal\RepeatedField $fixing_kbs - * Required. The names of the KBs which have hotfixes to mitigate this - * vulnerability. Note that there may be multiple hotfixes (and thus - * multiple KBs) that mitigate a given vulnerability. Currently any listed - * KBs presence is considered a fix. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Vulnerability::initOnce(); - parent::__construct($data); - } - - /** - * Required. The [CPE URI](https://cpe.mitre.org/specification/) this - * vulnerability affects. - * - * Generated from protobuf field string cpe_uri = 1; - * @return string - */ - public function getCpeUri() - { - return $this->cpe_uri; - } - - /** - * Required. The [CPE URI](https://cpe.mitre.org/specification/) this - * vulnerability affects. - * - * Generated from protobuf field string cpe_uri = 1; - * @param string $var - * @return $this - */ - public function setCpeUri($var) - { - GPBUtil::checkString($var, True); - $this->cpe_uri = $var; - - return $this; - } - - /** - * Required. The name of this vulnerability. - * - * Generated from protobuf field string name = 2; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of this vulnerability. - * - * Generated from protobuf field string name = 2; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The description of this vulnerability. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * The description of this vulnerability. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Required. The names of the KBs which have hotfixes to mitigate this - * vulnerability. Note that there may be multiple hotfixes (and thus - * multiple KBs) that mitigate a given vulnerability. Currently any listed - * KBs presence is considered a fix. - * - * Generated from protobuf field repeated .grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase fixing_kbs = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFixingKbs() - { - return $this->fixing_kbs; - } - - /** - * Required. The names of the KBs which have hotfixes to mitigate this - * vulnerability. Note that there may be multiple hotfixes (and thus - * multiple KBs) that mitigate a given vulnerability. Currently any listed - * KBs presence is considered a fix. - * - * Generated from protobuf field repeated .grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase fixing_kbs = 4; - * @param array<\Grafeas\V1\VulnerabilityNote\WindowsDetail\KnowledgeBase>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFixingKbs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\VulnerabilityNote\WindowsDetail\KnowledgeBase::class); - $this->fixing_kbs = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(WindowsDetail::class, \Grafeas\V1\VulnerabilityNote_WindowsDetail::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote/WindowsDetail/KnowledgeBase.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote/WindowsDetail/KnowledgeBase.php deleted file mode 100644 index 26ec0c58b2f6..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote/WindowsDetail/KnowledgeBase.php +++ /dev/null @@ -1,106 +0,0 @@ -grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase - */ -class KnowledgeBase extends \Google\Protobuf\Internal\Message -{ - /** - * The KB name (generally of the form KB[0-9]+ (e.g., KB123456)). - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * A link to the KB in the [Windows update catalog] - * (https://www.catalog.update.microsoft.com/). - * - * Generated from protobuf field string url = 2; - */ - protected $url = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The KB name (generally of the form KB[0-9]+ (e.g., KB123456)). - * @type string $url - * A link to the KB in the [Windows update catalog] - * (https://www.catalog.update.microsoft.com/). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Vulnerability::initOnce(); - parent::__construct($data); - } - - /** - * The KB name (generally of the form KB[0-9]+ (e.g., KB123456)). - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The KB name (generally of the form KB[0-9]+ (e.g., KB123456)). - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * A link to the KB in the [Windows update catalog] - * (https://www.catalog.update.microsoft.com/). - * - * Generated from protobuf field string url = 2; - * @return string - */ - public function getUrl() - { - return $this->url; - } - - /** - * A link to the KB in the [Windows update catalog] - * (https://www.catalog.update.microsoft.com/). - * - * Generated from protobuf field string url = 2; - * @param string $var - * @return $this - */ - public function setUrl($var) - { - GPBUtil::checkString($var, True); - $this->url = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(KnowledgeBase::class, \Grafeas\V1\VulnerabilityNote_WindowsDetail_KnowledgeBase::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityOccurrence.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityOccurrence.php deleted file mode 100644 index f64a0bc62ec8..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityOccurrence.php +++ /dev/null @@ -1,628 +0,0 @@ -grafeas.v1.VulnerabilityOccurrence - */ -class VulnerabilityOccurrence extends \Google\Protobuf\Internal\Message -{ - /** - * The type of package; whether native or non native (e.g., ruby gems, node.js - * packages, etc.). - * - * Generated from protobuf field string type = 1; - */ - protected $type = ''; - /** - * Output only. The note provider assigned severity of this vulnerability. - * - * Generated from protobuf field .grafeas.v1.Severity severity = 2; - */ - protected $severity = 0; - /** - * Output only. The CVSS score of this vulnerability. CVSS score is on a - * scale of 0 - 10 where 0 indicates low severity and 10 indicates high - * severity. - * - * Generated from protobuf field float cvss_score = 3; - */ - protected $cvss_score = 0.0; - /** - * The cvss v3 score for the vulnerability. - * - * Generated from protobuf field .grafeas.v1.CVSS cvssv3 = 10; - */ - protected $cvssv3 = null; - /** - * Required. The set of affected locations and their fixes (if available) - * within the associated resource. - * - * Generated from protobuf field repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4; - */ - private $package_issue; - /** - * Output only. A one sentence description of this vulnerability. - * - * Generated from protobuf field string short_description = 5; - */ - protected $short_description = ''; - /** - * Output only. A detailed description of this vulnerability. - * - * Generated from protobuf field string long_description = 6; - */ - protected $long_description = ''; - /** - * Output only. URLs related to this vulnerability. - * - * Generated from protobuf field repeated .grafeas.v1.RelatedUrl related_urls = 7; - */ - private $related_urls; - /** - * The distro assigned severity for this vulnerability when it is available, - * otherwise this is the note provider assigned severity. - * When there are multiple PackageIssues for this vulnerability, they can have - * different effective severities because some might be provided by the distro - * while others are provided by the language ecosystem for a language pack. - * For this reason, it is advised to use the effective severity on the - * PackageIssue level. In the case where multiple PackageIssues have differing - * effective severities, this field should be the highest severity for any of - * the PackageIssues. - * - * Generated from protobuf field .grafeas.v1.Severity effective_severity = 8; - */ - protected $effective_severity = 0; - /** - * Output only. Whether at least one of the affected packages has a fix - * available. - * - * Generated from protobuf field bool fix_available = 9; - */ - protected $fix_available = false; - /** - * Output only. CVSS version used to populate cvss_score and severity. - * - * Generated from protobuf field .grafeas.v1.CVSSVersion cvss_version = 11; - */ - protected $cvss_version = 0; - /** - * The cvss v2 score for the vulnerability. - * - * Generated from protobuf field .grafeas.v1.CVSS cvss_v2 = 12; - */ - protected $cvss_v2 = null; - /** - * Generated from protobuf field .grafeas.v1.VulnerabilityOccurrence.VexAssessment vex_assessment = 13; - */ - protected $vex_assessment = null; - /** - * Occurrence-specific extra details about the vulnerability. - * - * Generated from protobuf field string extra_details = 14; - */ - protected $extra_details = ''; - /** - * Risk information about the vulnerability, such as CISA, EPSS, etc. - * - * Generated from protobuf field .grafeas.v1.Risk risk = 15; - */ - protected $risk = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $type - * The type of package; whether native or non native (e.g., ruby gems, node.js - * packages, etc.). - * @type int $severity - * Output only. The note provider assigned severity of this vulnerability. - * @type float $cvss_score - * Output only. The CVSS score of this vulnerability. CVSS score is on a - * scale of 0 - 10 where 0 indicates low severity and 10 indicates high - * severity. - * @type \Grafeas\V1\CVSS $cvssv3 - * The cvss v3 score for the vulnerability. - * @type array<\Grafeas\V1\VulnerabilityOccurrence\PackageIssue>|\Google\Protobuf\Internal\RepeatedField $package_issue - * Required. The set of affected locations and their fixes (if available) - * within the associated resource. - * @type string $short_description - * Output only. A one sentence description of this vulnerability. - * @type string $long_description - * Output only. A detailed description of this vulnerability. - * @type array<\Grafeas\V1\RelatedUrl>|\Google\Protobuf\Internal\RepeatedField $related_urls - * Output only. URLs related to this vulnerability. - * @type int $effective_severity - * The distro assigned severity for this vulnerability when it is available, - * otherwise this is the note provider assigned severity. - * When there are multiple PackageIssues for this vulnerability, they can have - * different effective severities because some might be provided by the distro - * while others are provided by the language ecosystem for a language pack. - * For this reason, it is advised to use the effective severity on the - * PackageIssue level. In the case where multiple PackageIssues have differing - * effective severities, this field should be the highest severity for any of - * the PackageIssues. - * @type bool $fix_available - * Output only. Whether at least one of the affected packages has a fix - * available. - * @type int $cvss_version - * Output only. CVSS version used to populate cvss_score and severity. - * @type \Grafeas\V1\CVSS $cvss_v2 - * The cvss v2 score for the vulnerability. - * @type \Grafeas\V1\VulnerabilityOccurrence\VexAssessment $vex_assessment - * @type string $extra_details - * Occurrence-specific extra details about the vulnerability. - * @type \Grafeas\V1\Risk $risk - * Risk information about the vulnerability, such as CISA, EPSS, etc. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Vulnerability::initOnce(); - parent::__construct($data); - } - - /** - * The type of package; whether native or non native (e.g., ruby gems, node.js - * packages, etc.). - * - * Generated from protobuf field string type = 1; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * The type of package; whether native or non native (e.g., ruby gems, node.js - * packages, etc.). - * - * Generated from protobuf field string type = 1; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * Output only. The note provider assigned severity of this vulnerability. - * - * Generated from protobuf field .grafeas.v1.Severity severity = 2; - * @return int - */ - public function getSeverity() - { - return $this->severity; - } - - /** - * Output only. The note provider assigned severity of this vulnerability. - * - * Generated from protobuf field .grafeas.v1.Severity severity = 2; - * @param int $var - * @return $this - */ - public function setSeverity($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\Severity::class); - $this->severity = $var; - - return $this; - } - - /** - * Output only. The CVSS score of this vulnerability. CVSS score is on a - * scale of 0 - 10 where 0 indicates low severity and 10 indicates high - * severity. - * - * Generated from protobuf field float cvss_score = 3; - * @return float - */ - public function getCvssScore() - { - return $this->cvss_score; - } - - /** - * Output only. The CVSS score of this vulnerability. CVSS score is on a - * scale of 0 - 10 where 0 indicates low severity and 10 indicates high - * severity. - * - * Generated from protobuf field float cvss_score = 3; - * @param float $var - * @return $this - */ - public function setCvssScore($var) - { - GPBUtil::checkFloat($var); - $this->cvss_score = $var; - - return $this; - } - - /** - * The cvss v3 score for the vulnerability. - * - * Generated from protobuf field .grafeas.v1.CVSS cvssv3 = 10; - * @return \Grafeas\V1\CVSS|null - */ - public function getCvssv3() - { - return $this->cvssv3; - } - - public function hasCvssv3() - { - return isset($this->cvssv3); - } - - public function clearCvssv3() - { - unset($this->cvssv3); - } - - /** - * The cvss v3 score for the vulnerability. - * - * Generated from protobuf field .grafeas.v1.CVSS cvssv3 = 10; - * @param \Grafeas\V1\CVSS $var - * @return $this - */ - public function setCvssv3($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\CVSS::class); - $this->cvssv3 = $var; - - return $this; - } - - /** - * Required. The set of affected locations and their fixes (if available) - * within the associated resource. - * - * Generated from protobuf field repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPackageIssue() - { - return $this->package_issue; - } - - /** - * Required. The set of affected locations and their fixes (if available) - * within the associated resource. - * - * Generated from protobuf field repeated .grafeas.v1.VulnerabilityOccurrence.PackageIssue package_issue = 4; - * @param array<\Grafeas\V1\VulnerabilityOccurrence\PackageIssue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPackageIssue($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\VulnerabilityOccurrence\PackageIssue::class); - $this->package_issue = $arr; - - return $this; - } - - /** - * Output only. A one sentence description of this vulnerability. - * - * Generated from protobuf field string short_description = 5; - * @return string - */ - public function getShortDescription() - { - return $this->short_description; - } - - /** - * Output only. A one sentence description of this vulnerability. - * - * Generated from protobuf field string short_description = 5; - * @param string $var - * @return $this - */ - public function setShortDescription($var) - { - GPBUtil::checkString($var, True); - $this->short_description = $var; - - return $this; - } - - /** - * Output only. A detailed description of this vulnerability. - * - * Generated from protobuf field string long_description = 6; - * @return string - */ - public function getLongDescription() - { - return $this->long_description; - } - - /** - * Output only. A detailed description of this vulnerability. - * - * Generated from protobuf field string long_description = 6; - * @param string $var - * @return $this - */ - public function setLongDescription($var) - { - GPBUtil::checkString($var, True); - $this->long_description = $var; - - return $this; - } - - /** - * Output only. URLs related to this vulnerability. - * - * Generated from protobuf field repeated .grafeas.v1.RelatedUrl related_urls = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRelatedUrls() - { - return $this->related_urls; - } - - /** - * Output only. URLs related to this vulnerability. - * - * Generated from protobuf field repeated .grafeas.v1.RelatedUrl related_urls = 7; - * @param array<\Grafeas\V1\RelatedUrl>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRelatedUrls($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\RelatedUrl::class); - $this->related_urls = $arr; - - return $this; - } - - /** - * The distro assigned severity for this vulnerability when it is available, - * otherwise this is the note provider assigned severity. - * When there are multiple PackageIssues for this vulnerability, they can have - * different effective severities because some might be provided by the distro - * while others are provided by the language ecosystem for a language pack. - * For this reason, it is advised to use the effective severity on the - * PackageIssue level. In the case where multiple PackageIssues have differing - * effective severities, this field should be the highest severity for any of - * the PackageIssues. - * - * Generated from protobuf field .grafeas.v1.Severity effective_severity = 8; - * @return int - */ - public function getEffectiveSeverity() - { - return $this->effective_severity; - } - - /** - * The distro assigned severity for this vulnerability when it is available, - * otherwise this is the note provider assigned severity. - * When there are multiple PackageIssues for this vulnerability, they can have - * different effective severities because some might be provided by the distro - * while others are provided by the language ecosystem for a language pack. - * For this reason, it is advised to use the effective severity on the - * PackageIssue level. In the case where multiple PackageIssues have differing - * effective severities, this field should be the highest severity for any of - * the PackageIssues. - * - * Generated from protobuf field .grafeas.v1.Severity effective_severity = 8; - * @param int $var - * @return $this - */ - public function setEffectiveSeverity($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\Severity::class); - $this->effective_severity = $var; - - return $this; - } - - /** - * Output only. Whether at least one of the affected packages has a fix - * available. - * - * Generated from protobuf field bool fix_available = 9; - * @return bool - */ - public function getFixAvailable() - { - return $this->fix_available; - } - - /** - * Output only. Whether at least one of the affected packages has a fix - * available. - * - * Generated from protobuf field bool fix_available = 9; - * @param bool $var - * @return $this - */ - public function setFixAvailable($var) - { - GPBUtil::checkBool($var); - $this->fix_available = $var; - - return $this; - } - - /** - * Output only. CVSS version used to populate cvss_score and severity. - * - * Generated from protobuf field .grafeas.v1.CVSSVersion cvss_version = 11; - * @return int - */ - public function getCvssVersion() - { - return $this->cvss_version; - } - - /** - * Output only. CVSS version used to populate cvss_score and severity. - * - * Generated from protobuf field .grafeas.v1.CVSSVersion cvss_version = 11; - * @param int $var - * @return $this - */ - public function setCvssVersion($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\CVSSVersion::class); - $this->cvss_version = $var; - - return $this; - } - - /** - * The cvss v2 score for the vulnerability. - * - * Generated from protobuf field .grafeas.v1.CVSS cvss_v2 = 12; - * @return \Grafeas\V1\CVSS|null - */ - public function getCvssV2() - { - return $this->cvss_v2; - } - - public function hasCvssV2() - { - return isset($this->cvss_v2); - } - - public function clearCvssV2() - { - unset($this->cvss_v2); - } - - /** - * The cvss v2 score for the vulnerability. - * - * Generated from protobuf field .grafeas.v1.CVSS cvss_v2 = 12; - * @param \Grafeas\V1\CVSS $var - * @return $this - */ - public function setCvssV2($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\CVSS::class); - $this->cvss_v2 = $var; - - return $this; - } - - /** - * Generated from protobuf field .grafeas.v1.VulnerabilityOccurrence.VexAssessment vex_assessment = 13; - * @return \Grafeas\V1\VulnerabilityOccurrence\VexAssessment|null - */ - public function getVexAssessment() - { - return $this->vex_assessment; - } - - public function hasVexAssessment() - { - return isset($this->vex_assessment); - } - - public function clearVexAssessment() - { - unset($this->vex_assessment); - } - - /** - * Generated from protobuf field .grafeas.v1.VulnerabilityOccurrence.VexAssessment vex_assessment = 13; - * @param \Grafeas\V1\VulnerabilityOccurrence\VexAssessment $var - * @return $this - */ - public function setVexAssessment($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\VulnerabilityOccurrence\VexAssessment::class); - $this->vex_assessment = $var; - - return $this; - } - - /** - * Occurrence-specific extra details about the vulnerability. - * - * Generated from protobuf field string extra_details = 14; - * @return string - */ - public function getExtraDetails() - { - return $this->extra_details; - } - - /** - * Occurrence-specific extra details about the vulnerability. - * - * Generated from protobuf field string extra_details = 14; - * @param string $var - * @return $this - */ - public function setExtraDetails($var) - { - GPBUtil::checkString($var, True); - $this->extra_details = $var; - - return $this; - } - - /** - * Risk information about the vulnerability, such as CISA, EPSS, etc. - * - * Generated from protobuf field .grafeas.v1.Risk risk = 15; - * @return \Grafeas\V1\Risk|null - */ - public function getRisk() - { - return $this->risk; - } - - public function hasRisk() - { - return isset($this->risk); - } - - public function clearRisk() - { - unset($this->risk); - } - - /** - * Risk information about the vulnerability, such as CISA, EPSS, etc. - * - * Generated from protobuf field .grafeas.v1.Risk risk = 15; - * @param \Grafeas\V1\Risk $var - * @return $this - */ - public function setRisk($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\Risk::class); - $this->risk = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityOccurrence/PackageIssue.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityOccurrence/PackageIssue.php deleted file mode 100644 index 50eb18f7d2f5..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityOccurrence/PackageIssue.php +++ /dev/null @@ -1,429 +0,0 @@ -grafeas.v1.VulnerabilityOccurrence.PackageIssue - */ -class PackageIssue extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The [CPE URI](https://cpe.mitre.org/specification/) this - * vulnerability was found in. - * - * Generated from protobuf field string affected_cpe_uri = 1; - */ - protected $affected_cpe_uri = ''; - /** - * Required. The package this vulnerability was found in. - * - * Generated from protobuf field string affected_package = 2; - */ - protected $affected_package = ''; - /** - * Required. The version of the package that is installed on the resource - * affected by this vulnerability. - * - * Generated from protobuf field .grafeas.v1.Version affected_version = 3; - */ - protected $affected_version = null; - /** - * The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability - * was fixed in. It is possible for this to be different from the - * affected_cpe_uri. - * - * Generated from protobuf field string fixed_cpe_uri = 4; - */ - protected $fixed_cpe_uri = ''; - /** - * The package this vulnerability was fixed in. It is possible for this to - * be different from the affected_package. - * - * Generated from protobuf field string fixed_package = 5; - */ - protected $fixed_package = ''; - /** - * Required. The version of the package this vulnerability was fixed in. - * Setting this to VersionKind.MAXIMUM means no fix is yet available. - * - * Generated from protobuf field .grafeas.v1.Version fixed_version = 6; - */ - protected $fixed_version = null; - /** - * Output only. Whether a fix is available for this package. - * - * Generated from protobuf field bool fix_available = 7; - */ - protected $fix_available = false; - /** - * The type of package (e.g. OS, MAVEN, GO). - * - * Generated from protobuf field string package_type = 8; - */ - protected $package_type = ''; - /** - * The distro or language system assigned severity for this vulnerability - * when that is available and note provider assigned severity when it is not - * available. - * - * Generated from protobuf field .grafeas.v1.Severity effective_severity = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $effective_severity = 0; - /** - * The location at which this package was found. - * - * Generated from protobuf field repeated .grafeas.v1.FileLocation file_location = 10; - */ - private $file_location; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $affected_cpe_uri - * Required. The [CPE URI](https://cpe.mitre.org/specification/) this - * vulnerability was found in. - * @type string $affected_package - * Required. The package this vulnerability was found in. - * @type \Grafeas\V1\Version $affected_version - * Required. The version of the package that is installed on the resource - * affected by this vulnerability. - * @type string $fixed_cpe_uri - * The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability - * was fixed in. It is possible for this to be different from the - * affected_cpe_uri. - * @type string $fixed_package - * The package this vulnerability was fixed in. It is possible for this to - * be different from the affected_package. - * @type \Grafeas\V1\Version $fixed_version - * Required. The version of the package this vulnerability was fixed in. - * Setting this to VersionKind.MAXIMUM means no fix is yet available. - * @type bool $fix_available - * Output only. Whether a fix is available for this package. - * @type string $package_type - * The type of package (e.g. OS, MAVEN, GO). - * @type int $effective_severity - * The distro or language system assigned severity for this vulnerability - * when that is available and note provider assigned severity when it is not - * available. - * @type array<\Grafeas\V1\FileLocation>|\Google\Protobuf\Internal\RepeatedField $file_location - * The location at which this package was found. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Vulnerability::initOnce(); - parent::__construct($data); - } - - /** - * Required. The [CPE URI](https://cpe.mitre.org/specification/) this - * vulnerability was found in. - * - * Generated from protobuf field string affected_cpe_uri = 1; - * @return string - */ - public function getAffectedCpeUri() - { - return $this->affected_cpe_uri; - } - - /** - * Required. The [CPE URI](https://cpe.mitre.org/specification/) this - * vulnerability was found in. - * - * Generated from protobuf field string affected_cpe_uri = 1; - * @param string $var - * @return $this - */ - public function setAffectedCpeUri($var) - { - GPBUtil::checkString($var, True); - $this->affected_cpe_uri = $var; - - return $this; - } - - /** - * Required. The package this vulnerability was found in. - * - * Generated from protobuf field string affected_package = 2; - * @return string - */ - public function getAffectedPackage() - { - return $this->affected_package; - } - - /** - * Required. The package this vulnerability was found in. - * - * Generated from protobuf field string affected_package = 2; - * @param string $var - * @return $this - */ - public function setAffectedPackage($var) - { - GPBUtil::checkString($var, True); - $this->affected_package = $var; - - return $this; - } - - /** - * Required. The version of the package that is installed on the resource - * affected by this vulnerability. - * - * Generated from protobuf field .grafeas.v1.Version affected_version = 3; - * @return \Grafeas\V1\Version|null - */ - public function getAffectedVersion() - { - return $this->affected_version; - } - - public function hasAffectedVersion() - { - return isset($this->affected_version); - } - - public function clearAffectedVersion() - { - unset($this->affected_version); - } - - /** - * Required. The version of the package that is installed on the resource - * affected by this vulnerability. - * - * Generated from protobuf field .grafeas.v1.Version affected_version = 3; - * @param \Grafeas\V1\Version $var - * @return $this - */ - public function setAffectedVersion($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\Version::class); - $this->affected_version = $var; - - return $this; - } - - /** - * The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability - * was fixed in. It is possible for this to be different from the - * affected_cpe_uri. - * - * Generated from protobuf field string fixed_cpe_uri = 4; - * @return string - */ - public function getFixedCpeUri() - { - return $this->fixed_cpe_uri; - } - - /** - * The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability - * was fixed in. It is possible for this to be different from the - * affected_cpe_uri. - * - * Generated from protobuf field string fixed_cpe_uri = 4; - * @param string $var - * @return $this - */ - public function setFixedCpeUri($var) - { - GPBUtil::checkString($var, True); - $this->fixed_cpe_uri = $var; - - return $this; - } - - /** - * The package this vulnerability was fixed in. It is possible for this to - * be different from the affected_package. - * - * Generated from protobuf field string fixed_package = 5; - * @return string - */ - public function getFixedPackage() - { - return $this->fixed_package; - } - - /** - * The package this vulnerability was fixed in. It is possible for this to - * be different from the affected_package. - * - * Generated from protobuf field string fixed_package = 5; - * @param string $var - * @return $this - */ - public function setFixedPackage($var) - { - GPBUtil::checkString($var, True); - $this->fixed_package = $var; - - return $this; - } - - /** - * Required. The version of the package this vulnerability was fixed in. - * Setting this to VersionKind.MAXIMUM means no fix is yet available. - * - * Generated from protobuf field .grafeas.v1.Version fixed_version = 6; - * @return \Grafeas\V1\Version|null - */ - public function getFixedVersion() - { - return $this->fixed_version; - } - - public function hasFixedVersion() - { - return isset($this->fixed_version); - } - - public function clearFixedVersion() - { - unset($this->fixed_version); - } - - /** - * Required. The version of the package this vulnerability was fixed in. - * Setting this to VersionKind.MAXIMUM means no fix is yet available. - * - * Generated from protobuf field .grafeas.v1.Version fixed_version = 6; - * @param \Grafeas\V1\Version $var - * @return $this - */ - public function setFixedVersion($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\Version::class); - $this->fixed_version = $var; - - return $this; - } - - /** - * Output only. Whether a fix is available for this package. - * - * Generated from protobuf field bool fix_available = 7; - * @return bool - */ - public function getFixAvailable() - { - return $this->fix_available; - } - - /** - * Output only. Whether a fix is available for this package. - * - * Generated from protobuf field bool fix_available = 7; - * @param bool $var - * @return $this - */ - public function setFixAvailable($var) - { - GPBUtil::checkBool($var); - $this->fix_available = $var; - - return $this; - } - - /** - * The type of package (e.g. OS, MAVEN, GO). - * - * Generated from protobuf field string package_type = 8; - * @return string - */ - public function getPackageType() - { - return $this->package_type; - } - - /** - * The type of package (e.g. OS, MAVEN, GO). - * - * Generated from protobuf field string package_type = 8; - * @param string $var - * @return $this - */ - public function setPackageType($var) - { - GPBUtil::checkString($var, True); - $this->package_type = $var; - - return $this; - } - - /** - * The distro or language system assigned severity for this vulnerability - * when that is available and note provider assigned severity when it is not - * available. - * - * Generated from protobuf field .grafeas.v1.Severity effective_severity = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getEffectiveSeverity() - { - return $this->effective_severity; - } - - /** - * The distro or language system assigned severity for this vulnerability - * when that is available and note provider assigned severity when it is not - * available. - * - * Generated from protobuf field .grafeas.v1.Severity effective_severity = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setEffectiveSeverity($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\Severity::class); - $this->effective_severity = $var; - - return $this; - } - - /** - * The location at which this package was found. - * - * Generated from protobuf field repeated .grafeas.v1.FileLocation file_location = 10; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFileLocation() - { - return $this->file_location; - } - - /** - * The location at which this package was found. - * - * Generated from protobuf field repeated .grafeas.v1.FileLocation file_location = 10; - * @param array<\Grafeas\V1\FileLocation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFileLocation($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\FileLocation::class); - $this->file_location = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PackageIssue::class, \Grafeas\V1\VulnerabilityOccurrence_PackageIssue::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityOccurrence/VexAssessment.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityOccurrence/VexAssessment.php deleted file mode 100644 index 3489e7d0fdb2..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityOccurrence/VexAssessment.php +++ /dev/null @@ -1,366 +0,0 @@ -grafeas.v1.VulnerabilityOccurrence.VexAssessment - */ -class VexAssessment extends \Google\Protobuf\Internal\Message -{ - /** - * Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) - * tracking number for the vulnerability. - * Deprecated: Use vulnerability_id instead to denote CVEs. - * - * Generated from protobuf field string cve = 1 [deprecated = true]; - * @deprecated - */ - protected $cve = ''; - /** - * The vulnerability identifier for this Assessment. Will hold one of - * common identifiers e.g. CVE, GHSA etc. - * - * Generated from protobuf field string vulnerability_id = 8; - */ - protected $vulnerability_id = ''; - /** - * Holds a list of references associated with this vulnerability item and - * assessment. - * - * Generated from protobuf field repeated .grafeas.v1.RelatedUrl related_uris = 2; - */ - private $related_uris; - /** - * The VulnerabilityAssessment note from which this VexAssessment was - * generated. - * This will be of the form: `projects/[PROJECT_ID]/notes/[NOTE_ID]`. - * (-- api-linter: core::0122::name-suffix=disabled - * aip.dev/not-precedent: The suffix is kept for consistency. --) - * - * Generated from protobuf field string note_name = 3; - */ - protected $note_name = ''; - /** - * Provides the state of this Vulnerability assessment. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.State state = 4; - */ - protected $state = 0; - /** - * Contains information about the impact of this vulnerability, - * this will change with time. - * - * Generated from protobuf field repeated string impacts = 5; - */ - private $impacts; - /** - * Specifies details on how to handle (and presumably, fix) a vulnerability. - * - * Generated from protobuf field repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 6; - */ - private $remediations; - /** - * Justification provides the justification when the state of the - * assessment if NOT_AFFECTED. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7; - */ - protected $justification = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $cve - * Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) - * tracking number for the vulnerability. - * Deprecated: Use vulnerability_id instead to denote CVEs. - * @type string $vulnerability_id - * The vulnerability identifier for this Assessment. Will hold one of - * common identifiers e.g. CVE, GHSA etc. - * @type array<\Grafeas\V1\RelatedUrl>|\Google\Protobuf\Internal\RepeatedField $related_uris - * Holds a list of references associated with this vulnerability item and - * assessment. - * @type string $note_name - * The VulnerabilityAssessment note from which this VexAssessment was - * generated. - * This will be of the form: `projects/[PROJECT_ID]/notes/[NOTE_ID]`. - * (-- api-linter: core::0122::name-suffix=disabled - * aip.dev/not-precedent: The suffix is kept for consistency. --) - * @type int $state - * Provides the state of this Vulnerability assessment. - * @type array|\Google\Protobuf\Internal\RepeatedField $impacts - * Contains information about the impact of this vulnerability, - * this will change with time. - * @type array<\Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Remediation>|\Google\Protobuf\Internal\RepeatedField $remediations - * Specifies details on how to handle (and presumably, fix) a vulnerability. - * @type \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Justification $justification - * Justification provides the justification when the state of the - * assessment if NOT_AFFECTED. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Vulnerability::initOnce(); - parent::__construct($data); - } - - /** - * Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) - * tracking number for the vulnerability. - * Deprecated: Use vulnerability_id instead to denote CVEs. - * - * Generated from protobuf field string cve = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getCve() - { - if ($this->cve !== '') { - @trigger_error('cve is deprecated.', E_USER_DEPRECATED); - } - return $this->cve; - } - - /** - * Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) - * tracking number for the vulnerability. - * Deprecated: Use vulnerability_id instead to denote CVEs. - * - * Generated from protobuf field string cve = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setCve($var) - { - @trigger_error('cve is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cve = $var; - - return $this; - } - - /** - * The vulnerability identifier for this Assessment. Will hold one of - * common identifiers e.g. CVE, GHSA etc. - * - * Generated from protobuf field string vulnerability_id = 8; - * @return string - */ - public function getVulnerabilityId() - { - return $this->vulnerability_id; - } - - /** - * The vulnerability identifier for this Assessment. Will hold one of - * common identifiers e.g. CVE, GHSA etc. - * - * Generated from protobuf field string vulnerability_id = 8; - * @param string $var - * @return $this - */ - public function setVulnerabilityId($var) - { - GPBUtil::checkString($var, True); - $this->vulnerability_id = $var; - - return $this; - } - - /** - * Holds a list of references associated with this vulnerability item and - * assessment. - * - * Generated from protobuf field repeated .grafeas.v1.RelatedUrl related_uris = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRelatedUris() - { - return $this->related_uris; - } - - /** - * Holds a list of references associated with this vulnerability item and - * assessment. - * - * Generated from protobuf field repeated .grafeas.v1.RelatedUrl related_uris = 2; - * @param array<\Grafeas\V1\RelatedUrl>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRelatedUris($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\RelatedUrl::class); - $this->related_uris = $arr; - - return $this; - } - - /** - * The VulnerabilityAssessment note from which this VexAssessment was - * generated. - * This will be of the form: `projects/[PROJECT_ID]/notes/[NOTE_ID]`. - * (-- api-linter: core::0122::name-suffix=disabled - * aip.dev/not-precedent: The suffix is kept for consistency. --) - * - * Generated from protobuf field string note_name = 3; - * @return string - */ - public function getNoteName() - { - return $this->note_name; - } - - /** - * The VulnerabilityAssessment note from which this VexAssessment was - * generated. - * This will be of the form: `projects/[PROJECT_ID]/notes/[NOTE_ID]`. - * (-- api-linter: core::0122::name-suffix=disabled - * aip.dev/not-precedent: The suffix is kept for consistency. --) - * - * Generated from protobuf field string note_name = 3; - * @param string $var - * @return $this - */ - public function setNoteName($var) - { - GPBUtil::checkString($var, True); - $this->note_name = $var; - - return $this; - } - - /** - * Provides the state of this Vulnerability assessment. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.State state = 4; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Provides the state of this Vulnerability assessment. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.State state = 4; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\State::class); - $this->state = $var; - - return $this; - } - - /** - * Contains information about the impact of this vulnerability, - * this will change with time. - * - * Generated from protobuf field repeated string impacts = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getImpacts() - { - return $this->impacts; - } - - /** - * Contains information about the impact of this vulnerability, - * this will change with time. - * - * Generated from protobuf field repeated string impacts = 5; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setImpacts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->impacts = $arr; - - return $this; - } - - /** - * Specifies details on how to handle (and presumably, fix) a vulnerability. - * - * Generated from protobuf field repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRemediations() - { - return $this->remediations; - } - - /** - * Specifies details on how to handle (and presumably, fix) a vulnerability. - * - * Generated from protobuf field repeated .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation remediations = 6; - * @param array<\Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Remediation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRemediations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Remediation::class); - $this->remediations = $arr; - - return $this; - } - - /** - * Justification provides the justification when the state of the - * assessment if NOT_AFFECTED. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7; - * @return \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Justification|null - */ - public function getJustification() - { - return $this->justification; - } - - public function hasJustification() - { - return isset($this->justification); - } - - public function clearJustification() - { - unset($this->justification); - } - - /** - * Justification provides the justification when the state of the - * assessment if NOT_AFFECTED. - * - * Generated from protobuf field .grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification justification = 7; - * @param \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Justification $var - * @return $this - */ - public function setJustification($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Justification::class); - $this->justification = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(VexAssessment::class, \Grafeas\V1\VulnerabilityOccurrence_VexAssessment::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/WindowsUpdate.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/WindowsUpdate.php deleted file mode 100644 index 49f8fd4e9db6..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/WindowsUpdate.php +++ /dev/null @@ -1,298 +0,0 @@ -grafeas.v1.WindowsUpdate - */ -class WindowsUpdate extends \Google\Protobuf\Internal\Message -{ - /** - * Required - The unique identifier for the update. - * - * Generated from protobuf field .grafeas.v1.WindowsUpdate.Identity identity = 1; - */ - protected $identity = null; - /** - * The localized title of the update. - * - * Generated from protobuf field string title = 2; - */ - protected $title = ''; - /** - * The localized description of the update. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * The list of categories to which the update belongs. - * - * Generated from protobuf field repeated .grafeas.v1.WindowsUpdate.Category categories = 4; - */ - private $categories; - /** - * The Microsoft Knowledge Base article IDs that are associated with the - * update. - * - * Generated from protobuf field repeated string kb_article_ids = 5; - */ - private $kb_article_ids; - /** - * The hyperlink to the support information for the update. - * - * Generated from protobuf field string support_url = 6; - */ - protected $support_url = ''; - /** - * The last published timestamp of the update. - * - * Generated from protobuf field .google.protobuf.Timestamp last_published_timestamp = 7; - */ - protected $last_published_timestamp = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Grafeas\V1\WindowsUpdate\Identity $identity - * Required - The unique identifier for the update. - * @type string $title - * The localized title of the update. - * @type string $description - * The localized description of the update. - * @type array<\Grafeas\V1\WindowsUpdate\Category>|\Google\Protobuf\Internal\RepeatedField $categories - * The list of categories to which the update belongs. - * @type array|\Google\Protobuf\Internal\RepeatedField $kb_article_ids - * The Microsoft Knowledge Base article IDs that are associated with the - * update. - * @type string $support_url - * The hyperlink to the support information for the update. - * @type \Google\Protobuf\Timestamp $last_published_timestamp - * The last published timestamp of the update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Upgrade::initOnce(); - parent::__construct($data); - } - - /** - * Required - The unique identifier for the update. - * - * Generated from protobuf field .grafeas.v1.WindowsUpdate.Identity identity = 1; - * @return \Grafeas\V1\WindowsUpdate\Identity|null - */ - public function getIdentity() - { - return $this->identity; - } - - public function hasIdentity() - { - return isset($this->identity); - } - - public function clearIdentity() - { - unset($this->identity); - } - - /** - * Required - The unique identifier for the update. - * - * Generated from protobuf field .grafeas.v1.WindowsUpdate.Identity identity = 1; - * @param \Grafeas\V1\WindowsUpdate\Identity $var - * @return $this - */ - public function setIdentity($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\WindowsUpdate\Identity::class); - $this->identity = $var; - - return $this; - } - - /** - * The localized title of the update. - * - * Generated from protobuf field string title = 2; - * @return string - */ - public function getTitle() - { - return $this->title; - } - - /** - * The localized title of the update. - * - * Generated from protobuf field string title = 2; - * @param string $var - * @return $this - */ - public function setTitle($var) - { - GPBUtil::checkString($var, True); - $this->title = $var; - - return $this; - } - - /** - * The localized description of the update. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * The localized description of the update. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * The list of categories to which the update belongs. - * - * Generated from protobuf field repeated .grafeas.v1.WindowsUpdate.Category categories = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCategories() - { - return $this->categories; - } - - /** - * The list of categories to which the update belongs. - * - * Generated from protobuf field repeated .grafeas.v1.WindowsUpdate.Category categories = 4; - * @param array<\Grafeas\V1\WindowsUpdate\Category>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCategories($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grafeas\V1\WindowsUpdate\Category::class); - $this->categories = $arr; - - return $this; - } - - /** - * The Microsoft Knowledge Base article IDs that are associated with the - * update. - * - * Generated from protobuf field repeated string kb_article_ids = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getKbArticleIds() - { - return $this->kb_article_ids; - } - - /** - * The Microsoft Knowledge Base article IDs that are associated with the - * update. - * - * Generated from protobuf field repeated string kb_article_ids = 5; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setKbArticleIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->kb_article_ids = $arr; - - return $this; - } - - /** - * The hyperlink to the support information for the update. - * - * Generated from protobuf field string support_url = 6; - * @return string - */ - public function getSupportUrl() - { - return $this->support_url; - } - - /** - * The hyperlink to the support information for the update. - * - * Generated from protobuf field string support_url = 6; - * @param string $var - * @return $this - */ - public function setSupportUrl($var) - { - GPBUtil::checkString($var, True); - $this->support_url = $var; - - return $this; - } - - /** - * The last published timestamp of the update. - * - * Generated from protobuf field .google.protobuf.Timestamp last_published_timestamp = 7; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastPublishedTimestamp() - { - return $this->last_published_timestamp; - } - - public function hasLastPublishedTimestamp() - { - return isset($this->last_published_timestamp); - } - - public function clearLastPublishedTimestamp() - { - unset($this->last_published_timestamp); - } - - /** - * The last published timestamp of the update. - * - * Generated from protobuf field .google.protobuf.Timestamp last_published_timestamp = 7; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastPublishedTimestamp($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_published_timestamp = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/WindowsUpdate/Category.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/WindowsUpdate/Category.php deleted file mode 100644 index f3fc03d57a42..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/WindowsUpdate/Category.php +++ /dev/null @@ -1,104 +0,0 @@ -grafeas.v1.WindowsUpdate.Category - */ -class Category extends \Google\Protobuf\Internal\Message -{ - /** - * The identifier of the category. - * - * Generated from protobuf field string category_id = 1; - */ - protected $category_id = ''; - /** - * The localized name of the category. - * - * Generated from protobuf field string name = 2; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $category_id - * The identifier of the category. - * @type string $name - * The localized name of the category. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Upgrade::initOnce(); - parent::__construct($data); - } - - /** - * The identifier of the category. - * - * Generated from protobuf field string category_id = 1; - * @return string - */ - public function getCategoryId() - { - return $this->category_id; - } - - /** - * The identifier of the category. - * - * Generated from protobuf field string category_id = 1; - * @param string $var - * @return $this - */ - public function setCategoryId($var) - { - GPBUtil::checkString($var, True); - $this->category_id = $var; - - return $this; - } - - /** - * The localized name of the category. - * - * Generated from protobuf field string name = 2; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The localized name of the category. - * - * Generated from protobuf field string name = 2; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Category::class, \Grafeas\V1\WindowsUpdate_Category::class); - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/WindowsUpdate/Identity.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/WindowsUpdate/Identity.php deleted file mode 100644 index 8d4340a93fc8..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/WindowsUpdate/Identity.php +++ /dev/null @@ -1,104 +0,0 @@ -grafeas.v1.WindowsUpdate.Identity - */ -class Identity extends \Google\Protobuf\Internal\Message -{ - /** - * The revision independent identifier of the update. - * - * Generated from protobuf field string update_id = 1; - */ - protected $update_id = ''; - /** - * The revision number of the update. - * - * Generated from protobuf field int32 revision = 2; - */ - protected $revision = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $update_id - * The revision independent identifier of the update. - * @type int $revision - * The revision number of the update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Grafeas\V1\Upgrade::initOnce(); - parent::__construct($data); - } - - /** - * The revision independent identifier of the update. - * - * Generated from protobuf field string update_id = 1; - * @return string - */ - public function getUpdateId() - { - return $this->update_id; - } - - /** - * The revision independent identifier of the update. - * - * Generated from protobuf field string update_id = 1; - * @param string $var - * @return $this - */ - public function setUpdateId($var) - { - GPBUtil::checkString($var, True); - $this->update_id = $var; - - return $this; - } - - /** - * The revision number of the update. - * - * Generated from protobuf field int32 revision = 2; - * @return int - */ - public function getRevision() - { - return $this->revision; - } - - /** - * The revision number of the update. - * - * Generated from protobuf field int32 revision = 2; - * @param int $var - * @return $this - */ - public function setRevision($var) - { - GPBUtil::checkInt32($var); - $this->revision = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Identity::class, \Grafeas\V1\WindowsUpdate_Identity::class); - diff --git a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/batch_create_notes.php b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/batch_create_notes.php deleted file mode 100644 index e77b9640d774..000000000000 --- a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/batch_create_notes.php +++ /dev/null @@ -1,74 +0,0 @@ -setParent($formattedParent) - ->setNotes($notes); - - // Call the API and handle any network failures. - try { - /** @var BatchCreateNotesResponse $response */ - $response = $grafeasClient->batchCreateNotes($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = GrafeasClient::projectName('[PROJECT]'); - - batch_create_notes_sample($formattedParent); -} -// [END containeranalysis_v1_generated_Grafeas_BatchCreateNotes_sync] diff --git a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/batch_create_occurrences.php b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/batch_create_occurrences.php deleted file mode 100644 index 901bf3fa07ce..000000000000 --- a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/batch_create_occurrences.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent) - ->setOccurrences($occurrences); - - // Call the API and handle any network failures. - try { - /** @var BatchCreateOccurrencesResponse $response */ - $response = $grafeasClient->batchCreateOccurrences($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = GrafeasClient::projectName('[PROJECT]'); - - batch_create_occurrences_sample($formattedParent); -} -// [END containeranalysis_v1_generated_Grafeas_BatchCreateOccurrences_sync] diff --git a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/create_note.php b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/create_note.php deleted file mode 100644 index a0e288c39341..000000000000 --- a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/create_note.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent) - ->setNoteId($noteId) - ->setNote($note); - - // Call the API and handle any network failures. - try { - /** @var Note $response */ - $response = $grafeasClient->createNote($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = GrafeasClient::projectName('[PROJECT]'); - $noteId = '[NOTE_ID]'; - - create_note_sample($formattedParent, $noteId); -} -// [END containeranalysis_v1_generated_Grafeas_CreateNote_sync] diff --git a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/create_occurrence.php b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/create_occurrence.php deleted file mode 100644 index 5cd87a2f20b3..000000000000 --- a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/create_occurrence.php +++ /dev/null @@ -1,74 +0,0 @@ -setParent($formattedParent) - ->setOccurrence($occurrence); - - // Call the API and handle any network failures. - try { - /** @var Occurrence $response */ - $response = $grafeasClient->createOccurrence($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = GrafeasClient::projectName('[PROJECT]'); - - create_occurrence_sample($formattedParent); -} -// [END containeranalysis_v1_generated_Grafeas_CreateOccurrence_sync] diff --git a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/delete_note.php b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/delete_note.php deleted file mode 100644 index 8f7859b4b496..000000000000 --- a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/delete_note.php +++ /dev/null @@ -1,70 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $grafeasClient->deleteNote($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = GrafeasClient::noteName('[PROJECT]', '[NOTE]'); - - delete_note_sample($formattedName); -} -// [END containeranalysis_v1_generated_Grafeas_DeleteNote_sync] diff --git a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/delete_occurrence.php b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/delete_occurrence.php deleted file mode 100644 index d32356e96d3c..000000000000 --- a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/delete_occurrence.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $grafeasClient->deleteOccurrence($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = GrafeasClient::occurrenceName('[PROJECT]', '[OCCURRENCE]'); - - delete_occurrence_sample($formattedName); -} -// [END containeranalysis_v1_generated_Grafeas_DeleteOccurrence_sync] diff --git a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/get_note.php b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/get_note.php deleted file mode 100644 index ca7da3201d5e..000000000000 --- a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/get_note.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Note $response */ - $response = $grafeasClient->getNote($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = GrafeasClient::noteName('[PROJECT]', '[NOTE]'); - - get_note_sample($formattedName); -} -// [END containeranalysis_v1_generated_Grafeas_GetNote_sync] diff --git a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/get_occurrence.php b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/get_occurrence.php deleted file mode 100644 index db0443c6bbfb..000000000000 --- a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/get_occurrence.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Occurrence $response */ - $response = $grafeasClient->getOccurrence($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = GrafeasClient::occurrenceName('[PROJECT]', '[OCCURRENCE]'); - - get_occurrence_sample($formattedName); -} -// [END containeranalysis_v1_generated_Grafeas_GetOccurrence_sync] diff --git a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/get_occurrence_note.php b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/get_occurrence_note.php deleted file mode 100644 index 2144b22a5ee3..000000000000 --- a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/get_occurrence_note.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Note $response */ - $response = $grafeasClient->getOccurrenceNote($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = GrafeasClient::occurrenceName('[PROJECT]', '[OCCURRENCE]'); - - get_occurrence_note_sample($formattedName); -} -// [END containeranalysis_v1_generated_Grafeas_GetOccurrenceNote_sync] diff --git a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/list_note_occurrences.php b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/list_note_occurrences.php deleted file mode 100644 index 5c5f85473366..000000000000 --- a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/list_note_occurrences.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $grafeasClient->listNoteOccurrences($request); - - /** @var Occurrence $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = GrafeasClient::noteName('[PROJECT]', '[NOTE]'); - - list_note_occurrences_sample($formattedName); -} -// [END containeranalysis_v1_generated_Grafeas_ListNoteOccurrences_sync] diff --git a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/list_notes.php b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/list_notes.php deleted file mode 100644 index d5c185c3e99f..000000000000 --- a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/list_notes.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $grafeasClient->listNotes($request); - - /** @var Note $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = GrafeasClient::projectName('[PROJECT]'); - - list_notes_sample($formattedParent); -} -// [END containeranalysis_v1_generated_Grafeas_ListNotes_sync] diff --git a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/list_occurrences.php b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/list_occurrences.php deleted file mode 100644 index ddfd0bc932a0..000000000000 --- a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/list_occurrences.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $grafeasClient->listOccurrences($request); - - /** @var Occurrence $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = GrafeasClient::projectName('[PROJECT]'); - - list_occurrences_sample($formattedParent); -} -// [END containeranalysis_v1_generated_Grafeas_ListOccurrences_sync] diff --git a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/update_note.php b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/update_note.php deleted file mode 100644 index 0787efb18b44..000000000000 --- a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/update_note.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName) - ->setNote($note); - - // Call the API and handle any network failures. - try { - /** @var Note $response */ - $response = $grafeasClient->updateNote($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = GrafeasClient::noteName('[PROJECT]', '[NOTE]'); - - update_note_sample($formattedName); -} -// [END containeranalysis_v1_generated_Grafeas_UpdateNote_sync] diff --git a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/update_occurrence.php b/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/update_occurrence.php deleted file mode 100644 index 92d03ecea012..000000000000 --- a/owl-bot-staging/Grafeas/v1/samples/V1/GrafeasClient/update_occurrence.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName) - ->setOccurrence($occurrence); - - // Call the API and handle any network failures. - try { - /** @var Occurrence $response */ - $response = $grafeasClient->updateOccurrence($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = GrafeasClient::occurrenceName('[PROJECT]', '[OCCURRENCE]'); - - update_occurrence_sample($formattedName); -} -// [END containeranalysis_v1_generated_Grafeas_UpdateOccurrence_sync] diff --git a/owl-bot-staging/Grafeas/v1/src/V1/Client/GrafeasClient.php b/owl-bot-staging/Grafeas/v1/src/V1/Client/GrafeasClient.php deleted file mode 100644 index d23450a34c31..000000000000 --- a/owl-bot-staging/Grafeas/v1/src/V1/Client/GrafeasClient.php +++ /dev/null @@ -1,667 +0,0 @@ - batchCreateNotesAsync(BatchCreateNotesRequest $request, array $optionalArgs = []) - * @method PromiseInterface batchCreateOccurrencesAsync(BatchCreateOccurrencesRequest $request, array $optionalArgs = []) - * @method PromiseInterface createNoteAsync(CreateNoteRequest $request, array $optionalArgs = []) - * @method PromiseInterface createOccurrenceAsync(CreateOccurrenceRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteNoteAsync(DeleteNoteRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteOccurrenceAsync(DeleteOccurrenceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getNoteAsync(GetNoteRequest $request, array $optionalArgs = []) - * @method PromiseInterface getOccurrenceAsync(GetOccurrenceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getOccurrenceNoteAsync(GetOccurrenceNoteRequest $request, array $optionalArgs = []) - * @method PromiseInterface listNoteOccurrencesAsync(ListNoteOccurrencesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listNotesAsync(ListNotesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listOccurrencesAsync(ListOccurrencesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateNoteAsync(UpdateNoteRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateOccurrenceAsync(UpdateOccurrenceRequest $request, array $optionalArgs = []) - */ -final class GrafeasClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'grafeas.v1.Grafeas'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'containeranalysis.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'containeranalysis.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = []; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/grafeas_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/grafeas_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/grafeas_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/grafeas_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a note - * resource. - * - * @param string $project - * @param string $note - * - * @return string The formatted note resource. - */ - public static function noteName(string $project, string $note): string - { - return self::getPathTemplate('note')->render([ - 'project' => $project, - 'note' => $note, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a occurrence - * resource. - * - * @param string $project - * @param string $occurrence - * - * @return string The formatted occurrence resource. - */ - public static function occurrenceName(string $project, string $occurrence): string - { - return self::getPathTemplate('occurrence')->render([ - 'project' => $project, - 'occurrence' => $occurrence, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a project - * resource. - * - * @param string $project - * - * @return string The formatted project resource. - */ - public static function projectName(string $project): string - { - return self::getPathTemplate('project')->render([ - 'project' => $project, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - note: projects/{project}/notes/{note} - * - occurrence: projects/{project}/occurrences/{occurrence} - * - project: projects/{project} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'containeranalysis.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Grafeas\V1\GrafeasClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new GrafeasClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Creates new notes in batch. - * - * The async variant is {@see GrafeasClient::batchCreateNotesAsync()} . - * - * @example samples/V1/GrafeasClient/batch_create_notes.php - * - * @param BatchCreateNotesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BatchCreateNotesResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function batchCreateNotes(BatchCreateNotesRequest $request, array $callOptions = []): BatchCreateNotesResponse - { - return $this->startApiCall('BatchCreateNotes', $request, $callOptions)->wait(); - } - - /** - * Creates new occurrences in batch. - * - * The async variant is {@see GrafeasClient::batchCreateOccurrencesAsync()} . - * - * @example samples/V1/GrafeasClient/batch_create_occurrences.php - * - * @param BatchCreateOccurrencesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BatchCreateOccurrencesResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function batchCreateOccurrences(BatchCreateOccurrencesRequest $request, array $callOptions = []): BatchCreateOccurrencesResponse - { - return $this->startApiCall('BatchCreateOccurrences', $request, $callOptions)->wait(); - } - - /** - * Creates a new note. - * - * The async variant is {@see GrafeasClient::createNoteAsync()} . - * - * @example samples/V1/GrafeasClient/create_note.php - * - * @param CreateNoteRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Note - * - * @throws ApiException Thrown if the API call fails. - */ - public function createNote(CreateNoteRequest $request, array $callOptions = []): Note - { - return $this->startApiCall('CreateNote', $request, $callOptions)->wait(); - } - - /** - * Creates a new occurrence. - * - * The async variant is {@see GrafeasClient::createOccurrenceAsync()} . - * - * @example samples/V1/GrafeasClient/create_occurrence.php - * - * @param CreateOccurrenceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Occurrence - * - * @throws ApiException Thrown if the API call fails. - */ - public function createOccurrence(CreateOccurrenceRequest $request, array $callOptions = []): Occurrence - { - return $this->startApiCall('CreateOccurrence', $request, $callOptions)->wait(); - } - - /** - * Deletes the specified note. - * - * The async variant is {@see GrafeasClient::deleteNoteAsync()} . - * - * @example samples/V1/GrafeasClient/delete_note.php - * - * @param DeleteNoteRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteNote(DeleteNoteRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteNote', $request, $callOptions)->wait(); - } - - /** - * Deletes the specified occurrence. For example, use this method to delete an - * occurrence when the occurrence is no longer applicable for the given - * resource. - * - * The async variant is {@see GrafeasClient::deleteOccurrenceAsync()} . - * - * @example samples/V1/GrafeasClient/delete_occurrence.php - * - * @param DeleteOccurrenceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteOccurrence(DeleteOccurrenceRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteOccurrence', $request, $callOptions)->wait(); - } - - /** - * Gets the specified note. - * - * The async variant is {@see GrafeasClient::getNoteAsync()} . - * - * @example samples/V1/GrafeasClient/get_note.php - * - * @param GetNoteRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Note - * - * @throws ApiException Thrown if the API call fails. - */ - public function getNote(GetNoteRequest $request, array $callOptions = []): Note - { - return $this->startApiCall('GetNote', $request, $callOptions)->wait(); - } - - /** - * Gets the specified occurrence. - * - * The async variant is {@see GrafeasClient::getOccurrenceAsync()} . - * - * @example samples/V1/GrafeasClient/get_occurrence.php - * - * @param GetOccurrenceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Occurrence - * - * @throws ApiException Thrown if the API call fails. - */ - public function getOccurrence(GetOccurrenceRequest $request, array $callOptions = []): Occurrence - { - return $this->startApiCall('GetOccurrence', $request, $callOptions)->wait(); - } - - /** - * Gets the note attached to the specified occurrence. Consumer projects can - * use this method to get a note that belongs to a provider project. - * - * The async variant is {@see GrafeasClient::getOccurrenceNoteAsync()} . - * - * @example samples/V1/GrafeasClient/get_occurrence_note.php - * - * @param GetOccurrenceNoteRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Note - * - * @throws ApiException Thrown if the API call fails. - */ - public function getOccurrenceNote(GetOccurrenceNoteRequest $request, array $callOptions = []): Note - { - return $this->startApiCall('GetOccurrenceNote', $request, $callOptions)->wait(); - } - - /** - * Lists occurrences referencing the specified note. Provider projects can use - * this method to get all occurrences across consumer projects referencing the - * specified note. - * - * The async variant is {@see GrafeasClient::listNoteOccurrencesAsync()} . - * - * @example samples/V1/GrafeasClient/list_note_occurrences.php - * - * @param ListNoteOccurrencesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listNoteOccurrences(ListNoteOccurrencesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListNoteOccurrences', $request, $callOptions); - } - - /** - * Lists notes for the specified project. - * - * The async variant is {@see GrafeasClient::listNotesAsync()} . - * - * @example samples/V1/GrafeasClient/list_notes.php - * - * @param ListNotesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listNotes(ListNotesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListNotes', $request, $callOptions); - } - - /** - * Lists occurrences for the specified project. - * - * The async variant is {@see GrafeasClient::listOccurrencesAsync()} . - * - * @example samples/V1/GrafeasClient/list_occurrences.php - * - * @param ListOccurrencesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listOccurrences(ListOccurrencesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListOccurrences', $request, $callOptions); - } - - /** - * Updates the specified note. - * - * The async variant is {@see GrafeasClient::updateNoteAsync()} . - * - * @example samples/V1/GrafeasClient/update_note.php - * - * @param UpdateNoteRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Note - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateNote(UpdateNoteRequest $request, array $callOptions = []): Note - { - return $this->startApiCall('UpdateNote', $request, $callOptions)->wait(); - } - - /** - * Updates the specified occurrence. - * - * The async variant is {@see GrafeasClient::updateOccurrenceAsync()} . - * - * @example samples/V1/GrafeasClient/update_occurrence.php - * - * @param UpdateOccurrenceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Occurrence - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateOccurrence(UpdateOccurrenceRequest $request, array $callOptions = []): Occurrence - { - return $this->startApiCall('UpdateOccurrence', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Grafeas/v1/src/V1/gapic_metadata.json b/owl-bot-staging/Grafeas/v1/src/V1/gapic_metadata.json deleted file mode 100644 index c113418d85c6..000000000000 --- a/owl-bot-staging/Grafeas/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "grafeas.v1", - "libraryPackage": "Grafeas\\V1", - "services": { - "Grafeas": { - "clients": { - "grpc": { - "libraryClient": "GrafeasGapicClient", - "rpcs": { - "BatchCreateNotes": { - "methods": [ - "batchCreateNotes" - ] - }, - "BatchCreateOccurrences": { - "methods": [ - "batchCreateOccurrences" - ] - }, - "CreateNote": { - "methods": [ - "createNote" - ] - }, - "CreateOccurrence": { - "methods": [ - "createOccurrence" - ] - }, - "DeleteNote": { - "methods": [ - "deleteNote" - ] - }, - "DeleteOccurrence": { - "methods": [ - "deleteOccurrence" - ] - }, - "GetNote": { - "methods": [ - "getNote" - ] - }, - "GetOccurrence": { - "methods": [ - "getOccurrence" - ] - }, - "GetOccurrenceNote": { - "methods": [ - "getOccurrenceNote" - ] - }, - "ListNoteOccurrences": { - "methods": [ - "listNoteOccurrences" - ] - }, - "ListNotes": { - "methods": [ - "listNotes" - ] - }, - "ListOccurrences": { - "methods": [ - "listOccurrences" - ] - }, - "UpdateNote": { - "methods": [ - "updateNote" - ] - }, - "UpdateOccurrence": { - "methods": [ - "updateOccurrence" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/Grafeas/v1/src/V1/resources/grafeas_client_config.json b/owl-bot-staging/Grafeas/v1/src/V1/resources/grafeas_client_config.json deleted file mode 100644 index 5cb46837e7a6..000000000000 --- a/owl-bot-staging/Grafeas/v1/src/V1/resources/grafeas_client_config.json +++ /dev/null @@ -1,115 +0,0 @@ -{ - "interfaces": { - "grafeas.v1.Grafeas": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE", - "DEADLINE_EXCEEDED" - ], - "no_retry_1_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 100, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 30000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 30000, - "total_timeout_millis": 30000 - }, - "no_retry_1_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 30000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 30000, - "total_timeout_millis": 30000 - } - }, - "methods": { - "BatchCreateNotes": { - "timeout_millis": 30000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "BatchCreateOccurrences": { - "timeout_millis": 30000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateNote": { - "timeout_millis": 30000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateOccurrence": { - "timeout_millis": 30000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteNote": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteOccurrence": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetNote": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetOccurrence": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetOccurrenceNote": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListNoteOccurrences": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListNotes": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListOccurrences": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateNote": { - "timeout_millis": 30000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateOccurrence": { - "timeout_millis": 30000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/Grafeas/v1/src/V1/resources/grafeas_descriptor_config.php b/owl-bot-staging/Grafeas/v1/src/V1/resources/grafeas_descriptor_config.php deleted file mode 100644 index 06632b4f7987..000000000000 --- a/owl-bot-staging/Grafeas/v1/src/V1/resources/grafeas_descriptor_config.php +++ /dev/null @@ -1,225 +0,0 @@ - [ - 'grafeas.v1.Grafeas' => [ - 'BatchCreateNotes' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Grafeas\V1\BatchCreateNotesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'BatchCreateOccurrences' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Grafeas\V1\BatchCreateOccurrencesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateNote' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Grafeas\V1\Note', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateOccurrence' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Grafeas\V1\Occurrence', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteNote' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOccurrence' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetNote' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Grafeas\V1\Note', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetOccurrence' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Grafeas\V1\Occurrence', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetOccurrenceNote' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Grafeas\V1\Note', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListNoteOccurrences' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getOccurrences', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Grafeas\V1\ListNoteOccurrencesResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListNotes' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getNotes', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Grafeas\V1\ListNotesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListOccurrences' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getOccurrences', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Grafeas\V1\ListOccurrencesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateNote' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Grafeas\V1\Note', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateOccurrence' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Grafeas\V1\Occurrence', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'note' => 'projects/{project}/notes/{note}', - 'occurrence' => 'projects/{project}/occurrences/{occurrence}', - 'project' => 'projects/{project}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Grafeas/v1/src/V1/resources/grafeas_rest_client_config.php b/owl-bot-staging/Grafeas/v1/src/V1/resources/grafeas_rest_client_config.php deleted file mode 100644 index 2c9129698ddd..000000000000 --- a/owl-bot-staging/Grafeas/v1/src/V1/resources/grafeas_rest_client_config.php +++ /dev/null @@ -1,285 +0,0 @@ - [ - 'grafeas.v1.Grafeas' => [ - 'BatchCreateNotes' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*}/notes:batchCreate', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/notes:batchCreate', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'BatchCreateOccurrences' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*}/occurrences:batchCreate', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/occurrences:batchCreate', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateNote' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*}/notes', - 'body' => 'note', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/notes', - 'body' => 'note', - 'queryParams' => [ - 'note_id', - ], - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'note_id', - ], - ], - 'CreateOccurrence' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*}/occurrences', - 'body' => 'occurrence', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/occurrences', - 'body' => 'occurrence', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteNote' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/notes/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/notes/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOccurrence' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/occurrences/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/occurrences/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetNote' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/notes/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/notes/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOccurrence' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/occurrences/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/occurrences/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOccurrenceNote' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/occurrences/*}/notes', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/occurrences/*}/notes', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListNoteOccurrences' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/notes/*}/occurrences', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/notes/*}/occurrences', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListNotes' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*}/notes', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/notes', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListOccurrences' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*}/occurrences', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/occurrences', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateNote' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{name=projects/*/notes/*}', - 'body' => 'note', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/notes/*}', - 'body' => 'note', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateOccurrence' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{name=projects/*/occurrences/*}', - 'body' => 'occurrence', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/occurrences/*}', - 'body' => 'occurrence', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Grafeas/v1/tests/Unit/V1/Client/GrafeasClientTest.php b/owl-bot-staging/Grafeas/v1/tests/Unit/V1/Client/GrafeasClientTest.php deleted file mode 100644 index a27db0de4d68..000000000000 --- a/owl-bot-staging/Grafeas/v1/tests/Unit/V1/Client/GrafeasClientTest.php +++ /dev/null @@ -1,1108 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return GrafeasClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new GrafeasClient($options); - } - - /** @test */ - public function batchCreateNotesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchCreateNotesResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $notesValue = new Note(); - $notes = [ - 'notesKey' => $notesValue, - ]; - $request = (new BatchCreateNotesRequest()) - ->setParent($formattedParent) - ->setNotes($notes); - $response = $gapicClient->batchCreateNotes($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/grafeas.v1.Grafeas/BatchCreateNotes', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getNotes(); - $this->assertProtobufEquals($notes, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchCreateNotesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $notesValue = new Note(); - $notes = [ - 'notesKey' => $notesValue, - ]; - $request = (new BatchCreateNotesRequest()) - ->setParent($formattedParent) - ->setNotes($notes); - try { - $gapicClient->batchCreateNotes($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchCreateOccurrencesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchCreateOccurrencesResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $occurrences = []; - $request = (new BatchCreateOccurrencesRequest()) - ->setParent($formattedParent) - ->setOccurrences($occurrences); - $response = $gapicClient->batchCreateOccurrences($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/grafeas.v1.Grafeas/BatchCreateOccurrences', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getOccurrences(); - $this->assertProtobufEquals($occurrences, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchCreateOccurrencesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $occurrences = []; - $request = (new BatchCreateOccurrencesRequest()) - ->setParent($formattedParent) - ->setOccurrences($occurrences); - try { - $gapicClient->batchCreateOccurrences($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createNoteTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $shortDescription = 'shortDescription-235369287'; - $longDescription = 'longDescription-1747792199'; - $expectedResponse = new Note(); - $expectedResponse->setName($name); - $expectedResponse->setShortDescription($shortDescription); - $expectedResponse->setLongDescription($longDescription); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $noteId = 'noteId2129224840'; - $note = new Note(); - $request = (new CreateNoteRequest()) - ->setParent($formattedParent) - ->setNoteId($noteId) - ->setNote($note); - $response = $gapicClient->createNote($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/grafeas.v1.Grafeas/CreateNote', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getNoteId(); - $this->assertProtobufEquals($noteId, $actualValue); - $actualValue = $actualRequestObject->getNote(); - $this->assertProtobufEquals($note, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createNoteExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $noteId = 'noteId2129224840'; - $note = new Note(); - $request = (new CreateNoteRequest()) - ->setParent($formattedParent) - ->setNoteId($noteId) - ->setNote($note); - try { - $gapicClient->createNote($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createOccurrenceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $resourceUri = 'resourceUri-384040517'; - $noteName = 'noteName1780787896'; - $remediation = 'remediation779381797'; - $expectedResponse = new Occurrence(); - $expectedResponse->setName($name); - $expectedResponse->setResourceUri($resourceUri); - $expectedResponse->setNoteName($noteName); - $expectedResponse->setRemediation($remediation); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $occurrence = new Occurrence(); - $request = (new CreateOccurrenceRequest()) - ->setParent($formattedParent) - ->setOccurrence($occurrence); - $response = $gapicClient->createOccurrence($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/grafeas.v1.Grafeas/CreateOccurrence', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getOccurrence(); - $this->assertProtobufEquals($occurrence, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createOccurrenceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $occurrence = new Occurrence(); - $request = (new CreateOccurrenceRequest()) - ->setParent($formattedParent) - ->setOccurrence($occurrence); - try { - $gapicClient->createOccurrence($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteNoteTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->noteName('[PROJECT]', '[NOTE]'); - $request = (new DeleteNoteRequest()) - ->setName($formattedName); - $gapicClient->deleteNote($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/grafeas.v1.Grafeas/DeleteNote', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteNoteExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->noteName('[PROJECT]', '[NOTE]'); - $request = (new DeleteNoteRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteNote($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteOccurrenceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->occurrenceName('[PROJECT]', '[OCCURRENCE]'); - $request = (new DeleteOccurrenceRequest()) - ->setName($formattedName); - $gapicClient->deleteOccurrence($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/grafeas.v1.Grafeas/DeleteOccurrence', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteOccurrenceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->occurrenceName('[PROJECT]', '[OCCURRENCE]'); - $request = (new DeleteOccurrenceRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteOccurrence($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getNoteTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $shortDescription = 'shortDescription-235369287'; - $longDescription = 'longDescription-1747792199'; - $expectedResponse = new Note(); - $expectedResponse->setName($name2); - $expectedResponse->setShortDescription($shortDescription); - $expectedResponse->setLongDescription($longDescription); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->noteName('[PROJECT]', '[NOTE]'); - $request = (new GetNoteRequest()) - ->setName($formattedName); - $response = $gapicClient->getNote($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/grafeas.v1.Grafeas/GetNote', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getNoteExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->noteName('[PROJECT]', '[NOTE]'); - $request = (new GetNoteRequest()) - ->setName($formattedName); - try { - $gapicClient->getNote($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getOccurrenceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $resourceUri = 'resourceUri-384040517'; - $noteName = 'noteName1780787896'; - $remediation = 'remediation779381797'; - $expectedResponse = new Occurrence(); - $expectedResponse->setName($name2); - $expectedResponse->setResourceUri($resourceUri); - $expectedResponse->setNoteName($noteName); - $expectedResponse->setRemediation($remediation); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->occurrenceName('[PROJECT]', '[OCCURRENCE]'); - $request = (new GetOccurrenceRequest()) - ->setName($formattedName); - $response = $gapicClient->getOccurrence($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/grafeas.v1.Grafeas/GetOccurrence', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getOccurrenceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->occurrenceName('[PROJECT]', '[OCCURRENCE]'); - $request = (new GetOccurrenceRequest()) - ->setName($formattedName); - try { - $gapicClient->getOccurrence($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getOccurrenceNoteTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $shortDescription = 'shortDescription-235369287'; - $longDescription = 'longDescription-1747792199'; - $expectedResponse = new Note(); - $expectedResponse->setName($name2); - $expectedResponse->setShortDescription($shortDescription); - $expectedResponse->setLongDescription($longDescription); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->occurrenceName('[PROJECT]', '[OCCURRENCE]'); - $request = (new GetOccurrenceNoteRequest()) - ->setName($formattedName); - $response = $gapicClient->getOccurrenceNote($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/grafeas.v1.Grafeas/GetOccurrenceNote', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getOccurrenceNoteExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->occurrenceName('[PROJECT]', '[OCCURRENCE]'); - $request = (new GetOccurrenceNoteRequest()) - ->setName($formattedName); - try { - $gapicClient->getOccurrenceNote($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listNoteOccurrencesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $occurrencesElement = new Occurrence(); - $occurrences = [ - $occurrencesElement, - ]; - $expectedResponse = new ListNoteOccurrencesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setOccurrences($occurrences); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->noteName('[PROJECT]', '[NOTE]'); - $request = (new ListNoteOccurrencesRequest()) - ->setName($formattedName); - $response = $gapicClient->listNoteOccurrences($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getOccurrences()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/grafeas.v1.Grafeas/ListNoteOccurrences', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listNoteOccurrencesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->noteName('[PROJECT]', '[NOTE]'); - $request = (new ListNoteOccurrencesRequest()) - ->setName($formattedName); - try { - $gapicClient->listNoteOccurrences($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listNotesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $notesElement = new Note(); - $notes = [ - $notesElement, - ]; - $expectedResponse = new ListNotesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setNotes($notes); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new ListNotesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listNotes($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getNotes()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/grafeas.v1.Grafeas/ListNotes', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listNotesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new ListNotesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listNotes($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listOccurrencesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $occurrencesElement = new Occurrence(); - $occurrences = [ - $occurrencesElement, - ]; - $expectedResponse = new ListOccurrencesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setOccurrences($occurrences); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new ListOccurrencesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listOccurrences($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getOccurrences()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/grafeas.v1.Grafeas/ListOccurrences', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listOccurrencesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new ListOccurrencesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listOccurrences($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateNoteTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $shortDescription = 'shortDescription-235369287'; - $longDescription = 'longDescription-1747792199'; - $expectedResponse = new Note(); - $expectedResponse->setName($name2); - $expectedResponse->setShortDescription($shortDescription); - $expectedResponse->setLongDescription($longDescription); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->noteName('[PROJECT]', '[NOTE]'); - $note = new Note(); - $request = (new UpdateNoteRequest()) - ->setName($formattedName) - ->setNote($note); - $response = $gapicClient->updateNote($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/grafeas.v1.Grafeas/UpdateNote', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getNote(); - $this->assertProtobufEquals($note, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateNoteExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->noteName('[PROJECT]', '[NOTE]'); - $note = new Note(); - $request = (new UpdateNoteRequest()) - ->setName($formattedName) - ->setNote($note); - try { - $gapicClient->updateNote($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateOccurrenceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $resourceUri = 'resourceUri-384040517'; - $noteName = 'noteName1780787896'; - $remediation = 'remediation779381797'; - $expectedResponse = new Occurrence(); - $expectedResponse->setName($name2); - $expectedResponse->setResourceUri($resourceUri); - $expectedResponse->setNoteName($noteName); - $expectedResponse->setRemediation($remediation); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->occurrenceName('[PROJECT]', '[OCCURRENCE]'); - $occurrence = new Occurrence(); - $request = (new UpdateOccurrenceRequest()) - ->setName($formattedName) - ->setOccurrence($occurrence); - $response = $gapicClient->updateOccurrence($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/grafeas.v1.Grafeas/UpdateOccurrence', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getOccurrence(); - $this->assertProtobufEquals($occurrence, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateOccurrenceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->occurrenceName('[PROJECT]', '[OCCURRENCE]'); - $occurrence = new Occurrence(); - $request = (new UpdateOccurrenceRequest()) - ->setName($formattedName) - ->setOccurrence($occurrence); - try { - $gapicClient->updateOccurrence($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchCreateNotesAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchCreateNotesResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $notesValue = new Note(); - $notes = [ - 'notesKey' => $notesValue, - ]; - $request = (new BatchCreateNotesRequest()) - ->setParent($formattedParent) - ->setNotes($notes); - $response = $gapicClient->batchCreateNotesAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/grafeas.v1.Grafeas/BatchCreateNotes', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getNotes(); - $this->assertProtobufEquals($notes, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -}