From e9d38d63b28be54e1d0809ea72933590ed13fc9e Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 24 Jul 2026 19:01:45 +0000 Subject: [PATCH 1/2] feat: A new field `attack_requirements` is added to message `.grafeas.v1.CVSS` feat: A new field `vulnerable_system_confidentiality_impact` is added to message `.grafeas.v1.CVSS` feat: A new field `vulnerable_system_integrity_impact` is added to message `.grafeas.v1.CVSS` feat: A new field `vulnerable_system_availability_impact` is added to message `.grafeas.v1.CVSS` feat: A new field `subsequent_system_confidentiality_impact` is added to message `.grafeas.v1.CVSS` feat: A new field `subsequent_system_integrity_impact` is added to message `.grafeas.v1.CVSS` feat: A new field `subsequent_system_availability_impact` is added to message `.grafeas.v1.CVSS` feat: A new field `exploit_maturity` is added to message `.grafeas.v1.CVSS` feat: A new value `USER_INTERACTION_PASSIVE` is added to enum `UserInteraction` feat: A new value `USER_INTERACTION_ACTIVE` is added to enum `UserInteraction` feat: A new enum `AttackRequirements` is added feat: A new enum `ExploitMaturity` is added feat: A new value `CVSS_VERSION_4` is added to enum `CVSSVersion` feat: A new field `cvss_v4` is added to message `.grafeas.v1.VulnerabilityNote` feat: A new field `cvss_v4` is added to message `.grafeas.v1.VulnerabilityOccurrence` docs: A comment for field `attack_vector` in message `.grafeas.v1.CVSS` is changed docs: A comment for field `attack_complexity` in message `.grafeas.v1.CVSS` is changed docs: A comment for field `authentication` in message `.grafeas.v1.CVSS` is changed docs: A comment for field `privileges_required` in message `.grafeas.v1.CVSS` is changed docs: A comment for field `user_interaction` in message `.grafeas.v1.CVSS` is changed docs: A comment for field `scope` in message `.grafeas.v1.CVSS` is changed docs: A comment for field `confidentiality_impact` in message `.grafeas.v1.CVSS` is changed docs: A comment for field `integrity_impact` in message `.grafeas.v1.CVSS` is changed docs: A comment for field `availability_impact` in message `.grafeas.v1.CVSS` is changed docs: A comment for enum `AttackVector` is changed docs: A comment for enum value `ATTACK_VECTOR_UNSPECIFIED` in enum `AttackVector` is changed docs: A comment for enum value `ATTACK_VECTOR_NETWORK` in enum `AttackVector` is changed docs: A comment for enum value `ATTACK_VECTOR_ADJACENT` in enum `AttackVector` is changed docs: A comment for enum value `ATTACK_VECTOR_LOCAL` in enum `AttackVector` is changed docs: A comment for enum value `ATTACK_VECTOR_PHYSICAL` in enum `AttackVector` is changed docs: A comment for enum `AttackComplexity` is changed docs: A comment for enum value `ATTACK_COMPLEXITY_UNSPECIFIED` in enum `AttackComplexity` is changed docs: A comment for enum value `ATTACK_COMPLEXITY_LOW` in enum `AttackComplexity` is changed docs: A comment for enum value `ATTACK_COMPLEXITY_HIGH` in enum `AttackComplexity` is changed docs: A comment for enum value `ATTACK_COMPLEXITY_MEDIUM` in enum `AttackComplexity` is changed docs: A comment for enum `Authentication` is changed docs: A comment for enum value `AUTHENTICATION_UNSPECIFIED` in enum `Authentication` is changed docs: A comment for enum value `AUTHENTICATION_MULTIPLE` in enum `Authentication` is changed docs: A comment for enum value `AUTHENTICATION_SINGLE` in enum `Authentication` is changed docs: A comment for enum value `AUTHENTICATION_NONE` in enum `Authentication` is changed docs: A comment for enum `PrivilegesRequired` is changed docs: A comment for enum value `PRIVILEGES_REQUIRED_UNSPECIFIED` in enum `PrivilegesRequired` is changed docs: A comment for enum value `PRIVILEGES_REQUIRED_NONE` in enum `PrivilegesRequired` is changed docs: A comment for enum value `PRIVILEGES_REQUIRED_LOW` in enum `PrivilegesRequired` is changed docs: A comment for enum value `PRIVILEGES_REQUIRED_HIGH` in enum `PrivilegesRequired` is changed docs: A comment for enum `UserInteraction` is changed docs: A comment for enum value `USER_INTERACTION_UNSPECIFIED` in enum `UserInteraction` is changed docs: A comment for enum value `USER_INTERACTION_NONE` in enum `UserInteraction` is changed docs: A comment for enum value `USER_INTERACTION_REQUIRED` in enum `UserInteraction` is changed docs: A comment for enum `Scope` is changed docs: A comment for enum value `SCOPE_UNSPECIFIED` in enum `Scope` is changed docs: A comment for enum value `SCOPE_UNCHANGED` in enum `Scope` is changed docs: A comment for enum value `SCOPE_CHANGED` in enum `Scope` is changed docs: A comment for enum `Impact` is changed docs: A comment for enum value `IMPACT_UNSPECIFIED` in enum `Impact` is changed docs: A comment for enum value `IMPACT_HIGH` in enum `Impact` is changed docs: A comment for enum value `IMPACT_LOW` in enum `Impact` is changed docs: A comment for enum value `IMPACT_NONE` in enum `Impact` is changed docs: A comment for enum value `IMPACT_PARTIAL` in enum `Impact` is changed docs: A comment for enum value `IMPACT_COMPLETE` in enum `Impact` is changed docs: A comment for enum value `CVSS_VERSION_UNSPECIFIED` in enum `CVSSVersion` is changed docs: A comment for enum value `CVSS_VERSION_2` in enum `CVSSVersion` is changed docs: A comment for enum value `CVSS_VERSION_3` in enum `CVSSVersion` is changed PiperOrigin-RevId: 953424457 Source-Link: https://github.com/googleapis/googleapis/commit/c7f9a1d25f2a99c2031103a3c5ac1d795a584c10 Source-Link: https://github.com/googleapis/googleapis-gen/commit/2f7acb386608837a30d31c2d57766b75bb289a9c Copy-Tag: eyJwIjoiR3JhZmVhcy8uT3dsQm90LnlhbWwiLCJoIjoiMmY3YWNiMzg2NjA4ODM3YTMwZDMxYzJkNTc3NjZiNzViYjI4OWE5YyJ9 --- .../GPBMetadata/Grafeas/V1/Attestation.php | 25 + .../src/GPBMetadata/Grafeas/V1/Build.php | 27 + .../src/GPBMetadata/Grafeas/V1/Common.php | 24 + .../src/GPBMetadata/Grafeas/V1/Compliance.php | 25 + .../proto/src/GPBMetadata/Grafeas/V1/Cvss.php | 24 + .../src/GPBMetadata/Grafeas/V1/Deployment.php | 25 + .../src/GPBMetadata/Grafeas/V1/Discovery.php | 28 + .../Grafeas/V1/DsseAttestation.php | 26 + .../src/GPBMetadata/Grafeas/V1/Grafeas.php | 45 + .../src/GPBMetadata/Grafeas/V1/Image.php | 24 + .../Grafeas/V1/IntotoProvenance.php | 26 + .../Grafeas/V1/IntotoStatement.php | 29 + .../src/GPBMetadata/Grafeas/V1/Package.php | 26 + .../src/GPBMetadata/Grafeas/V1/Provenance.php | 25 + .../proto/src/GPBMetadata/Grafeas/V1/Risk.php | 24 + .../proto/src/GPBMetadata/Grafeas/V1/Sbom.php | 26 + .../src/GPBMetadata/Grafeas/V1/Secret.php | 28 + .../src/GPBMetadata/Grafeas/V1/Severity.php | 24 + .../GPBMetadata/Grafeas/V1/SlsaProvenance.php | 26 + .../Grafeas/V1/SlsaProvenanceZeroTwo.php | 26 + .../src/GPBMetadata/Grafeas/V1/Upgrade.php | 26 + .../proto/src/GPBMetadata/Grafeas/V1/Vex.php | 25 + .../GPBMetadata/Grafeas/V1/Vulnerability.php | 32 + .../v1/proto/src/Grafeas/V1/AliasContext.php | 101 ++ .../src/Grafeas/V1/AliasContext/Kind.php | 69 + .../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 | 77 ++ .../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 | 702 +++++++++++ .../src/Grafeas/V1/CVSS/AttackComplexity.php | 68 + .../Grafeas/V1/CVSS/AttackRequirements.php | 61 + .../src/Grafeas/V1/CVSS/AttackVector.php | 75 ++ .../src/Grafeas/V1/CVSS/Authentication.php | 68 + .../src/Grafeas/V1/CVSS/ExploitMaturity.php | 75 ++ .../v1/proto/src/Grafeas/V1/CVSS/Impact.php | 82 ++ .../Grafeas/V1/CVSS/PrivilegesRequired.php | 68 + .../v1/proto/src/Grafeas/V1/CVSS/Scope.php | 61 + .../src/Grafeas/V1/CVSS/UserInteraction.php | 75 ++ .../v1/proto/src/Grafeas/V1/CVSSVersion.php | 68 + .../v1/proto/src/Grafeas/V1/CVSSv3.php | 353 ++++++ .../Grafeas/V1/CVSSv3/AttackComplexity.php | 53 + .../src/Grafeas/V1/CVSSv3/AttackVector.php | 63 + .../v1/proto/src/Grafeas/V1/CVSSv3/Impact.php | 58 + .../Grafeas/V1/CVSSv3/PrivilegesRequired.php | 58 + .../v1/proto/src/Grafeas/V1/CVSSv3/Scope.php | 53 + .../src/Grafeas/V1/CVSSv3/UserInteraction.php | 53 + .../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 | 87 ++ .../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 | 77 ++ .../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 | 68 + .../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 | 61 + .../V1/DiscoveryOccurrence/AnalysisStatus.php | 91 ++ .../ContinuousAnalysis.php | 61 + .../Grafeas/V1/DiscoveryOccurrence/File.php | 85 ++ .../V1/DiscoveryOccurrence/SBOMStatus.php | 105 ++ .../SBOMStatus/SBOMState.php | 61 + .../VulnerabilityAttestation.php | 145 +++ .../VulnerabilityAttestationState.php | 61 + .../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 | 157 +++ .../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 | 159 +++ .../InTotoSlsaProvenanceV1/BuildMetadata.php | 132 ++ .../ProvenanceBuilder.php | 112 ++ .../ResourceDescriptor.php | 220 ++++ .../V1/InTotoSlsaProvenanceV1/RunDetails.php | 132 ++ .../SlsaProvenanceV1.php | 109 ++ .../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 | 68 + .../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 | 85 ++ .../Grafeas/V1/SlsaProvenance/SlsaBuilder.php | 58 + .../V1/SlsaProvenance/SlsaCompleteness.php | 148 +++ .../V1/SlsaProvenance/SlsaMetadata.php | 249 ++++ .../Grafeas/V1/SlsaProvenance/SlsaRecipe.php | 293 +++++ .../src/Grafeas/V1/SlsaProvenanceZeroTwo.php | 235 ++++ .../V1/SlsaProvenanceZeroTwo/SlsaBuilder.php | 61 + .../SlsaCompleteness.php | 115 ++ .../SlsaConfigSource.php | 115 ++ .../SlsaProvenanceZeroTwo/SlsaInvocation.php | 144 +++ .../V1/SlsaProvenanceZeroTwo/SlsaMaterial.php | 88 ++ .../V1/SlsaProvenanceZeroTwo/SlsaMetadata.php | 198 +++ .../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 | 68 + .../V1/VulnerabilityAssessmentNote.php | 306 +++++ .../Assessment.php | 389 ++++++ .../Assessment/Justification.php | 102 ++ .../Justification/JustificationType.php | 91 ++ .../Assessment/Remediation.php | 145 +++ .../Remediation/RemediationType.php | 82 ++ .../Assessment/State.php | 76 ++ .../VulnerabilityAssessmentNote/Product.php | 157 +++ .../VulnerabilityAssessmentNote/Publisher.php | 162 +++ .../src/Grafeas/V1/VulnerabilityNote.php | 447 +++++++ .../Grafeas/V1/VulnerabilityNote/Detail.php | 642 ++++++++++ .../V1/VulnerabilityNote/WindowsDetail.php | 183 +++ .../WindowsDetail/KnowledgeBase.php | 103 ++ .../Grafeas/V1/VulnerabilityOccurrence.php | 672 ++++++++++ .../VulnerabilityOccurrence/PackageIssue.php | 426 +++++++ .../VulnerabilityOccurrence/VexAssessment.php | 363 ++++++ .../v1/proto/src/Grafeas/V1/WindowsUpdate.php | 298 +++++ .../src/Grafeas/V1/WindowsUpdate/Category.php | 101 ++ .../src/Grafeas/V1/WindowsUpdate/Identity.php | 101 ++ .../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 +++++++++++++++++ 207 files changed, 31278 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/AttackRequirements.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/ExploitMaturity.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..42774ef0b8cb --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Attestation.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\x88\x03\x0A\x1Cgrafeas/v1/attestation.proto\x12\x0Agrafeas.v1\"f\x0A\x0FAttestationNote\x12.\x0A\x04hint\x18\x01 \x01(\x0B2 .grafeas.v1.AttestationNote.Hint\x1A#\x0A\x04Hint\x12\x1B\x0A\x13human_readable_name\x18\x01 \x01(\x09\"\x1A\x0A\x03Jwt\x12\x13\x0A\x0Bcompact_jwt\x18\x01 \x01(\x09\"}\x0A\x15AttestationOccurrence\x12\x1A\x0A\x12serialized_payload\x18\x01 \x01(\x0C\x12)\x0A\x0Asignatures\x18\x02 \x03(\x0B2\x15.grafeas.v1.Signature\x12\x1D\x0A\x04jwts\x18\x03 \x03(\x0B2\x0F.grafeas.v1.JwtBQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" + , 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..0c3f28167500 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Build.php @@ -0,0 +1,27 @@ +internalAddGeneratedFile( + "\x0A\xFC\x03\x0A\x16grafeas/v1/build.proto\x12\x0Agrafeas.v1\x1A!grafeas/v1/intoto_statement.proto\x1A\x1Bgrafeas/v1/provenance.proto\"\$\x0A\x09BuildNote\x12\x17\x0A\x0Fbuilder_version\x18\x01 \x01(\x09\"\x94\x02\x0A\x0FBuildOccurrence\x12/\x0A\x0Aprovenance\x18\x01 \x01(\x0B2\x1B.grafeas.v1.BuildProvenance\x12\x18\x0A\x10provenance_bytes\x18\x02 \x01(\x09\x127\x0A\x11intoto_provenance\x18\x03 \x01(\x0B2\x1C.grafeas.v1.InTotoProvenance\x125\x0A\x10intoto_statement\x18\x04 \x01(\x0B2\x1B.grafeas.v1.InTotoStatement\x12F\x0A\x1Ain_toto_slsa_provenance_v1\x18\x05 \x01(\x0B2\".grafeas.v1.InTotoSlsaProvenanceV1BQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" + , 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 000000000000..12c668648636 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Common.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\x94\x08\x0A\x17grafeas/v1/common.proto\x12\x0Agrafeas.v1\"(\x0A\x0ARelatedUrl\x12\x0B\x0A\x03url\x18\x01 \x01(\x09\x12\x0D\x0A\x05label\x18\x02 \x01(\x09\"5\x0A\x09Signature\x12\x11\x0A\x09signature\x18\x01 \x01(\x0C\x12\x15\x0A\x0Dpublic_key_id\x18\x02 \x01(\x09\"d\x0A\x08Envelope\x12\x0F\x0A\x07payload\x18\x01 \x01(\x0C\x12\x14\x0A\x0Cpayload_type\x18\x02 \x01(\x09\x121\x0A\x0Asignatures\x18\x03 \x03(\x0B2\x1D.grafeas.v1.EnvelopeSignature\"/\x0A\x11EnvelopeSignature\x12\x0B\x0A\x03sig\x18\x01 \x01(\x0C\x12\x0D\x0A\x05keyid\x18\x02 \x01(\x09\"g\x0A\x0CFileLocation\x12\x11\x0A\x09file_path\x18\x01 \x01(\x09\x12/\x0A\x0Dlayer_details\x18\x02 \x01(\x0B2\x18.grafeas.v1.LayerDetails\x12\x13\x0A\x0Bline_number\x18\x03 \x01(\x05\"T\x0A\x09BaseImage\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x12\x0A\x0Arepository\x18\x02 \x01(\x09\x12\x13\x0A\x0Blayer_count\x18\x03 \x01(\x05\x12\x10\x0A\x08registry\x18\x04 \x01(\x09\"}\x0A\x0CLayerDetails\x12\x0D\x0A\x05index\x18\x01 \x01(\x05\x12\x0F\x0A\x07diff_id\x18\x02 \x01(\x09\x12\x10\x0A\x08chain_id\x18\x05 \x01(\x09\x12\x0F\x0A\x07command\x18\x03 \x01(\x09\x12*\x0A\x0Bbase_images\x18\x04 \x03(\x0B2\x15.grafeas.v1.BaseImage\"/\x0A\x07License\x12\x12\x0A\x0Aexpression\x18\x01 \x01(\x09\x12\x10\x0A\x08comments\x18\x02 \x01(\x09\",\x0A\x06Digest\x12\x0C\x0A\x04algo\x18\x01 \x01(\x09\x12\x14\x0A\x0Cdigest_bytes\x18\x02 \x01(\x0C*\xFC\x01\x0A\x08NoteKind\x12\x19\x0A\x15NOTE_KIND_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DVULNERABILITY\x10\x01\x12\x09\x0A\x05BUILD\x10\x02\x12\x09\x0A\x05IMAGE\x10\x03\x12\x0B\x0A\x07PACKAGE\x10\x04\x12\x0E\x0A\x0ADEPLOYMENT\x10\x05\x12\x0D\x0A\x09DISCOVERY\x10\x06\x12\x0F\x0A\x0BATTESTATION\x10\x07\x12\x0B\x0A\x07UPGRADE\x10\x08\x12\x0E\x0A\x0ACOMPLIANCE\x10\x09\x12\x14\x0A\x10DSSE_ATTESTATION\x10\x0A\x12\x1C\x0A\x18VULNERABILITY_ASSESSMENT\x10\x0B\x12\x12\x0A\x0ESBOM_REFERENCE\x10\x0C\x12\x0A\x0A\x06SECRET\x10\x0DBQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Compliance.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Compliance.php new file mode 100644 index 000000000000..3ce1523aa4e3 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Compliance.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xB9\x06\x0A\x1Bgrafeas/v1/compliance.proto\x12\x0Agrafeas.v1\"\xF1\x02\x0A\x0EComplianceNote\x12\x0D\x0A\x05title\x18\x01 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12.\x0A\x07version\x18\x03 \x03(\x0B2\x1D.grafeas.v1.ComplianceVersion\x12\x11\x0A\x09rationale\x18\x04 \x01(\x09\x12\x13\x0A\x0Bremediation\x18\x05 \x01(\x09\x12@\x0A\x0Dcis_benchmark\x18\x06 \x01(\x0B2'.grafeas.v1.ComplianceNote.CisBenchmarkH\x00\x12\x19\x0A\x11scan_instructions\x18\x07 \x01(\x0C\x12\x10\x0A\x06impact\x18\x08 \x01(\x09H\x01\x1AM\x0A\x0CCisBenchmark\x12\x15\x0A\x0Dprofile_level\x18\x01 \x01(\x05\x12&\x0A\x08severity\x18\x02 \x01(\x0E2\x14.grafeas.v1.SeverityB\x11\x0A\x0Fcompliance_typeB\x12\x0A\x10potential_impact\"Q\x0A\x11ComplianceVersion\x12\x0F\x0A\x07cpe_uri\x18\x01 \x01(\x09\x12\x1A\x0A\x12benchmark_document\x18\x03 \x01(\x09\x12\x0F\x0A\x07version\x18\x02 \x01(\x09\"\xA0\x01\x0A\x14ComplianceOccurrence\x129\x0A\x13non_compliant_files\x18\x02 \x03(\x0B2\x1C.grafeas.v1.NonCompliantFile\x12\x1D\x0A\x15non_compliance_reason\x18\x03 \x01(\x09\x12.\x0A\x07version\x18\x04 \x01(\x0B2\x1D.grafeas.v1.ComplianceVersion\"I\x0A\x10NonCompliantFile\x12\x0C\x0A\x04path\x18\x01 \x01(\x09\x12\x17\x0A\x0Fdisplay_command\x18\x02 \x01(\x09\x12\x0E\x0A\x06reason\x18\x03 \x01(\x09BQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Cvss.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Cvss.php new file mode 100644 index 000000000000..142a64ec011a --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Cvss.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\x8B\x1E\x0A\x15grafeas/v1/cvss.proto\x12\x0Agrafeas.v1\"\xC5\x09\x0A\x06CVSSv3\x12\x12\x0A\x0Abase_score\x18\x01 \x01(\x02\x12\x1C\x0A\x14exploitability_score\x18\x02 \x01(\x02\x12\x14\x0A\x0Cimpact_score\x18\x03 \x01(\x02\x126\x0A\x0Dattack_vector\x18\x05 \x01(\x0E2\x1F.grafeas.v1.CVSSv3.AttackVector\x12>\x0A\x11attack_complexity\x18\x06 \x01(\x0E2#.grafeas.v1.CVSSv3.AttackComplexity\x12B\x0A\x13privileges_required\x18\x07 \x01(\x0E2%.grafeas.v1.CVSSv3.PrivilegesRequired\x12<\x0A\x10user_interaction\x18\x08 \x01(\x0E2\".grafeas.v1.CVSSv3.UserInteraction\x12'\x0A\x05scope\x18\x09 \x01(\x0E2\x18.grafeas.v1.CVSSv3.Scope\x129\x0A\x16confidentiality_impact\x18\x0A \x01(\x0E2\x19.grafeas.v1.CVSSv3.Impact\x123\x0A\x10integrity_impact\x18\x0B \x01(\x0E2\x19.grafeas.v1.CVSSv3.Impact\x126\x0A\x13availability_impact\x18\x0C \x01(\x0E2\x19.grafeas.v1.CVSSv3.Impact\"\x99\x01\x0A\x0CAttackVector\x12\x1D\x0A\x19ATTACK_VECTOR_UNSPECIFIED\x10\x00\x12\x19\x0A\x15ATTACK_VECTOR_NETWORK\x10\x01\x12\x1A\x0A\x16ATTACK_VECTOR_ADJACENT\x10\x02\x12\x17\x0A\x13ATTACK_VECTOR_LOCAL\x10\x03\x12\x1A\x0A\x16ATTACK_VECTOR_PHYSICAL\x10\x04\"l\x0A\x10AttackComplexity\x12!\x0A\x1DATTACK_COMPLEXITY_UNSPECIFIED\x10\x00\x12\x19\x0A\x15ATTACK_COMPLEXITY_LOW\x10\x01\x12\x1A\x0A\x16ATTACK_COMPLEXITY_HIGH\x10\x02\"\x92\x01\x0A\x12PrivilegesRequired\x12#\x0A\x1FPRIVILEGES_REQUIRED_UNSPECIFIED\x10\x00\x12\x1C\x0A\x18PRIVILEGES_REQUIRED_NONE\x10\x01\x12\x1B\x0A\x17PRIVILEGES_REQUIRED_LOW\x10\x02\x12\x1C\x0A\x18PRIVILEGES_REQUIRED_HIGH\x10\x03\"m\x0A\x0FUserInteraction\x12 \x0A\x1CUSER_INTERACTION_UNSPECIFIED\x10\x00\x12\x19\x0A\x15USER_INTERACTION_NONE\x10\x01\x12\x1D\x0A\x19USER_INTERACTION_REQUIRED\x10\x02\"F\x0A\x05Scope\x12\x15\x0A\x11SCOPE_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FSCOPE_UNCHANGED\x10\x01\x12\x11\x0A\x0DSCOPE_CHANGED\x10\x02\"R\x0A\x06Impact\x12\x16\x0A\x12IMPACT_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BIMPACT_HIGH\x10\x01\x12\x0E\x0A\x0AIMPACT_LOW\x10\x02\x12\x0F\x0A\x0BIMPACT_NONE\x10\x03\"\xCE\x12\x0A\x04CVSS\x12\x12\x0A\x0Abase_score\x18\x01 \x01(\x02\x12\x1C\x0A\x14exploitability_score\x18\x02 \x01(\x02\x12\x14\x0A\x0Cimpact_score\x18\x03 \x01(\x02\x124\x0A\x0Dattack_vector\x18\x04 \x01(\x0E2\x1D.grafeas.v1.CVSS.AttackVector\x12<\x0A\x11attack_complexity\x18\x05 \x01(\x0E2!.grafeas.v1.CVSS.AttackComplexity\x127\x0A\x0Eauthentication\x18\x06 \x01(\x0E2\x1F.grafeas.v1.CVSS.Authentication\x12@\x0A\x13privileges_required\x18\x07 \x01(\x0E2#.grafeas.v1.CVSS.PrivilegesRequired\x12:\x0A\x10user_interaction\x18\x08 \x01(\x0E2 .grafeas.v1.CVSS.UserInteraction\x12%\x0A\x05scope\x18\x09 \x01(\x0E2\x16.grafeas.v1.CVSS.Scope\x127\x0A\x16confidentiality_impact\x18\x0A \x01(\x0E2\x17.grafeas.v1.CVSS.Impact\x121\x0A\x10integrity_impact\x18\x0B \x01(\x0E2\x17.grafeas.v1.CVSS.Impact\x124\x0A\x13availability_impact\x18\x0C \x01(\x0E2\x17.grafeas.v1.CVSS.Impact\x12@\x0A\x13attack_requirements\x18\x0D \x01(\x0E2#.grafeas.v1.CVSS.AttackRequirements\x12I\x0A(vulnerable_system_confidentiality_impact\x18\x0E \x01(\x0E2\x17.grafeas.v1.CVSS.Impact\x12C\x0A\"vulnerable_system_integrity_impact\x18\x0F \x01(\x0E2\x17.grafeas.v1.CVSS.Impact\x12F\x0A%vulnerable_system_availability_impact\x18\x10 \x01(\x0E2\x17.grafeas.v1.CVSS.Impact\x12I\x0A(subsequent_system_confidentiality_impact\x18\x11 \x01(\x0E2\x17.grafeas.v1.CVSS.Impact\x12C\x0A\"subsequent_system_integrity_impact\x18\x12 \x01(\x0E2\x17.grafeas.v1.CVSS.Impact\x12F\x0A%subsequent_system_availability_impact\x18\x13 \x01(\x0E2\x17.grafeas.v1.CVSS.Impact\x12:\x0A\x10exploit_maturity\x18\x14 \x01(\x0E2 .grafeas.v1.CVSS.ExploitMaturity\"\x99\x01\x0A\x0CAttackVector\x12\x1D\x0A\x19ATTACK_VECTOR_UNSPECIFIED\x10\x00\x12\x19\x0A\x15ATTACK_VECTOR_NETWORK\x10\x01\x12\x1A\x0A\x16ATTACK_VECTOR_ADJACENT\x10\x02\x12\x17\x0A\x13ATTACK_VECTOR_LOCAL\x10\x03\x12\x1A\x0A\x16ATTACK_VECTOR_PHYSICAL\x10\x04\"\x8A\x01\x0A\x10AttackComplexity\x12!\x0A\x1DATTACK_COMPLEXITY_UNSPECIFIED\x10\x00\x12\x19\x0A\x15ATTACK_COMPLEXITY_LOW\x10\x01\x12\x1A\x0A\x16ATTACK_COMPLEXITY_HIGH\x10\x02\x12\x1C\x0A\x18ATTACK_COMPLEXITY_MEDIUM\x10\x03\"\x81\x01\x0A\x0EAuthentication\x12\x1E\x0A\x1AAUTHENTICATION_UNSPECIFIED\x10\x00\x12\x1B\x0A\x17AUTHENTICATION_MULTIPLE\x10\x01\x12\x19\x0A\x15AUTHENTICATION_SINGLE\x10\x02\x12\x17\x0A\x13AUTHENTICATION_NONE\x10\x03\"\x92\x01\x0A\x12PrivilegesRequired\x12#\x0A\x1FPRIVILEGES_REQUIRED_UNSPECIFIED\x10\x00\x12\x1C\x0A\x18PRIVILEGES_REQUIRED_NONE\x10\x01\x12\x1B\x0A\x17PRIVILEGES_REQUIRED_LOW\x10\x02\x12\x1C\x0A\x18PRIVILEGES_REQUIRED_HIGH\x10\x03\"\xA8\x01\x0A\x0FUserInteraction\x12 \x0A\x1CUSER_INTERACTION_UNSPECIFIED\x10\x00\x12\x19\x0A\x15USER_INTERACTION_NONE\x10\x01\x12\x1D\x0A\x19USER_INTERACTION_REQUIRED\x10\x02\x12\x1C\x0A\x18USER_INTERACTION_PASSIVE\x10\x03\x12\x1B\x0A\x17USER_INTERACTION_ACTIVE\x10\x04\"F\x0A\x05Scope\x12\x15\x0A\x11SCOPE_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FSCOPE_UNCHANGED\x10\x01\x12\x11\x0A\x0DSCOPE_CHANGED\x10\x02\"{\x0A\x06Impact\x12\x16\x0A\x12IMPACT_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BIMPACT_HIGH\x10\x01\x12\x0E\x0A\x0AIMPACT_LOW\x10\x02\x12\x0F\x0A\x0BIMPACT_NONE\x10\x03\x12\x12\x0A\x0EIMPACT_PARTIAL\x10\x04\x12\x13\x0A\x0FIMPACT_COMPLETE\x10\x05\"x\x0A\x12AttackRequirements\x12#\x0A\x1FATTACK_REQUIREMENTS_UNSPECIFIED\x10\x00\x12\x1C\x0A\x18ATTACK_REQUIREMENTS_NONE\x10\x01\x12\x1F\x0A\x1BATTACK_REQUIREMENTS_PRESENT\x10\x02\"\xAF\x01\x0A\x0FExploitMaturity\x12 \x0A\x1CEXPLOIT_MATURITY_UNSPECIFIED\x10\x00\x12 \x0A\x1CEXPLOIT_MATURITY_NOT_DEFINED\x10\x01\x12\x1D\x0A\x19EXPLOIT_MATURITY_ATTACKED\x10\x02\x12\x18\x0A\x14EXPLOIT_MATURITY_POC\x10\x03\x12\x1F\x0A\x1BEXPLOIT_MATURITY_UNREPORTED\x10\x04*g\x0A\x0BCVSSVersion\x12\x1C\x0A\x18CVSS_VERSION_UNSPECIFIED\x10\x00\x12\x12\x0A\x0ECVSS_VERSION_2\x10\x01\x12\x12\x0A\x0ECVSS_VERSION_3\x10\x02\x12\x12\x0A\x0ECVSS_VERSION_4\x10\x03B\\\x0A\x0Dio.grafeas.v1B\x09CVSSProtoP\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Deployment.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Deployment.php new file mode 100644 index 000000000000..b14e83bf749f --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Deployment.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xF6\x03\x0A\x1Bgrafeas/v1/deployment.proto\x12\x0Agrafeas.v1\"&\x0A\x0EDeploymentNote\x12\x14\x0A\x0Cresource_uri\x18\x01 \x03(\x09\"\xC7\x02\x0A\x14DeploymentOccurrence\x12\x12\x0A\x0Auser_email\x18\x01 \x01(\x09\x12/\x0A\x0Bdeploy_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x121\x0A\x0Dundeploy_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x0E\x0A\x06config\x18\x04 \x01(\x09\x12\x0F\x0A\x07address\x18\x05 \x01(\x09\x12\x14\x0A\x0Cresource_uri\x18\x06 \x03(\x09\x12;\x0A\x08platform\x18\x07 \x01(\x0E2).grafeas.v1.DeploymentOccurrence.Platform\"C\x0A\x08Platform\x12\x18\x0A\x14PLATFORM_UNSPECIFIED\x10\x00\x12\x07\x0A\x03GKE\x10\x01\x12\x08\x0A\x04FLEX\x10\x02\x12\x0A\x0A\x06CUSTOM\x10\x03BQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Discovery.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Discovery.php new file mode 100644 index 000000000000..ea555f88a4fb --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Discovery.php @@ -0,0 +1,28 @@ +internalAddGeneratedFile( + "\x0A\x94\x0F\x0A\x1Agrafeas/v1/discovery.proto\x12\x0Agrafeas.v1\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x17google/rpc/status.proto\x1A\x17grafeas/v1/common.proto\"<\x0A\x0DDiscoveryNote\x12+\x0A\x0Danalysis_kind\x18\x01 \x01(\x0E2\x14.grafeas.v1.NoteKind\"\xFD\x0C\x0A\x13DiscoveryOccurrence\x12O\x0A\x13continuous_analysis\x18\x01 \x01(\x0E22.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis\x12G\x0A\x0Fanalysis_status\x18\x02 \x01(\x0E2..grafeas.v1.DiscoveryOccurrence.AnalysisStatus\x12M\x0A\x12analysis_completed\x18\x07 \x01(\x0B21.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted\x12*\x0A\x0Eanalysis_error\x18\x08 \x03(\x0B2\x12.google.rpc.Status\x121\x0A\x15analysis_status_error\x18\x03 \x01(\x0B2\x12.google.rpc.Status\x12\x0B\x0A\x03cpe\x18\x04 \x01(\x09\x122\x0A\x0Elast_scan_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.Timestamp\x125\x0A\x0Carchive_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12?\x0A\x0Bsbom_status\x18\x09 \x01(\x0B2*.grafeas.v1.DiscoveryOccurrence.SBOMStatus\x12[\x0A\x19vulnerability_attestation\x18\x0A \x01(\x0B28.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation\x123\x0A\x05files\x18\x0B \x03(\x0B2\$.grafeas.v1.DiscoveryOccurrence.File\x12B\x0A\x1Elast_vulnerability_update_time\x18\x0C \x01(\x0B2\x1A.google.protobuf.Timestamp\x1A*\x0A\x11AnalysisCompleted\x12\x15\x0A\x0Danalysis_type\x18\x01 \x03(\x09\x1A\xA9\x01\x0A\x0ASBOMStatus\x12H\x0A\x0Asbom_state\x18\x01 \x01(\x0E24.grafeas.v1.DiscoveryOccurrence.SBOMStatus.SBOMState\x12\x0D\x0A\x05error\x18\x02 \x01(\x09\"B\x0A\x09SBOMState\x12\x1A\x0A\x16SBOM_STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PENDING\x10\x01\x12\x0C\x0A\x08COMPLETE\x10\x02\x1A\xB3\x02\x0A\x18VulnerabilityAttestation\x125\x0A\x11last_attempt_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12e\x0A\x05state\x18\x02 \x01(\x0E2V.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState\x12\x0D\x0A\x05error\x18\x03 \x01(\x09\"j\x0A\x1DVulnerabilityAttestationState\x12/\x0A+VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07SUCCESS\x10\x01\x12\x0B\x0A\x07FAILURE\x10\x02\x1A\x85\x01\x0A\x04File\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12@\x0A\x06digest\x18\x02 \x03(\x0B20.grafeas.v1.DiscoveryOccurrence.File.DigestEntry\x1A-\x0A\x0BDigestEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"S\x0A\x12ContinuousAnalysis\x12#\x0A\x1FCONTINUOUS_ANALYSIS_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06ACTIVE\x10\x01\x12\x0C\x0A\x08INACTIVE\x10\x02\"\xA3\x01\x0A\x0EAnalysisStatus\x12\x1F\x0A\x1BANALYSIS_STATUS_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PENDING\x10\x01\x12\x0C\x0A\x08SCANNING\x10\x02\x12\x14\x0A\x10FINISHED_SUCCESS\x10\x03\x12\x0C\x0A\x08COMPLETE\x10\x03\x12\x13\x0A\x0FFINISHED_FAILED\x10\x04\x12\x18\x0A\x14FINISHED_UNSUPPORTED\x10\x05\x1A\x02\x10\x01BQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + 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 000000000000..f7e7f5396088 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/DsseAttestation.php @@ -0,0 +1,26 @@ +internalAddGeneratedFile( + "\x0A\xB0\x03\x0A!grafeas/v1/dsse_attestation.proto\x12\x0Agrafeas.v1\x1A!grafeas/v1/intoto_statement.proto\"v\x0A\x13DSSEAttestationNote\x126\x0A\x04hint\x18\x01 \x01(\x0B2(.grafeas.v1.DSSEAttestationNote.DSSEHint\x1A'\x0A\x08DSSEHint\x12\x1B\x0A\x13human_readable_name\x18\x01 \x01(\x09\"\x88\x01\x0A\x19DSSEAttestationOccurrence\x12&\x0A\x08envelope\x18\x01 \x01(\x0B2\x14.grafeas.v1.Envelope\x120\x0A\x09statement\x18\x02 \x01(\x0B2\x1B.grafeas.v1.InTotoStatementH\x00B\x11\x0A\x0Fdecoded_payloadBQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Grafeas.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Grafeas.php new file mode 100644 index 000000000000..92247f411aa2 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Grafeas.php @@ -0,0 +1,45 @@ +internalAddGeneratedFile( + "\x0A\xCB<\x0A\x18grafeas/v1/grafeas.proto\x12\x0Agrafeas.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x1Cgrafeas/v1/attestation.proto\x1A\x16grafeas/v1/build.proto\x1A\x17grafeas/v1/common.proto\x1A\x1Bgrafeas/v1/compliance.proto\x1A\x1Bgrafeas/v1/deployment.proto\x1A\x1Agrafeas/v1/discovery.proto\x1A!grafeas/v1/dsse_attestation.proto\x1A\x16grafeas/v1/image.proto\x1A\x18grafeas/v1/package.proto\x1A\x15grafeas/v1/sbom.proto\x1A\x17grafeas/v1/secret.proto\x1A\x18grafeas/v1/upgrade.proto\x1A\x14grafeas/v1/vex.proto\x1A\x1Egrafeas/v1/vulnerability.proto\"\xEA\x07\x0A\x0AOccurrence\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x14\x0A\x0Cresource_uri\x18\x02 \x01(\x09\x12\x11\x0A\x09note_name\x18\x03 \x01(\x09\x12\"\x0A\x04kind\x18\x04 \x01(\x0E2\x14.grafeas.v1.NoteKind\x12\x13\x0A\x0Bremediation\x18\x05 \x01(\x09\x12/\x0A\x0Bcreate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bupdate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12<\x0A\x0Dvulnerability\x18\x08 \x01(\x0B2#.grafeas.v1.VulnerabilityOccurrenceH\x00\x12,\x0A\x05build\x18\x09 \x01(\x0B2\x1B.grafeas.v1.BuildOccurrenceH\x00\x12,\x0A\x05image\x18\x0A \x01(\x0B2\x1B.grafeas.v1.ImageOccurrenceH\x00\x120\x0A\x07package\x18\x0B \x01(\x0B2\x1D.grafeas.v1.PackageOccurrenceH\x00\x126\x0A\x0Adeployment\x18\x0C \x01(\x0B2 .grafeas.v1.DeploymentOccurrenceH\x00\x124\x0A\x09discovery\x18\x0D \x01(\x0B2\x1F.grafeas.v1.DiscoveryOccurrenceH\x00\x128\x0A\x0Battestation\x18\x0E \x01(\x0B2!.grafeas.v1.AttestationOccurrenceH\x00\x120\x0A\x07upgrade\x18\x0F \x01(\x0B2\x1D.grafeas.v1.UpgradeOccurrenceH\x00\x126\x0A\x0Acompliance\x18\x10 \x01(\x0B2 .grafeas.v1.ComplianceOccurrenceH\x00\x12A\x0A\x10dsse_attestation\x18\x11 \x01(\x0B2%.grafeas.v1.DSSEAttestationOccurrenceH\x00\x12=\x0A\x0Esbom_reference\x18\x13 \x01(\x0B2#.grafeas.v1.SBOMReferenceOccurrenceH\x00\x12.\x0A\x06secret\x18\x14 \x01(\x0B2\x1C.grafeas.v1.SecretOccurrenceH\x00\x12&\x0A\x08envelope\x18\x12 \x01(\x0B2\x14.grafeas.v1.Envelope:G\xEAAD\x0A\x15grafeas.io/Occurrence\x12+projects/{project}/occurrences/{occurrence}B\x09\x0A\x07details\"\xA1\x08\x0A\x04Note\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x19\x0A\x11short_description\x18\x02 \x01(\x09\x12\x18\x0A\x10long_description\x18\x03 \x01(\x09\x12\"\x0A\x04kind\x18\x04 \x01(\x0E2\x14.grafeas.v1.NoteKind\x12+\x0A\x0Brelated_url\x18\x05 \x03(\x0B2\x16.grafeas.v1.RelatedUrl\x123\x0A\x0Fexpiration_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bcreate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bupdate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x1A\x0A\x12related_note_names\x18\x09 \x03(\x09\x126\x0A\x0Dvulnerability\x18\x0A \x01(\x0B2\x1D.grafeas.v1.VulnerabilityNoteH\x00\x12&\x0A\x05build\x18\x0B \x01(\x0B2\x15.grafeas.v1.BuildNoteH\x00\x12&\x0A\x05image\x18\x0C \x01(\x0B2\x15.grafeas.v1.ImageNoteH\x00\x12*\x0A\x07package\x18\x0D \x01(\x0B2\x17.grafeas.v1.PackageNoteH\x00\x120\x0A\x0Adeployment\x18\x0E \x01(\x0B2\x1A.grafeas.v1.DeploymentNoteH\x00\x12.\x0A\x09discovery\x18\x0F \x01(\x0B2\x19.grafeas.v1.DiscoveryNoteH\x00\x122\x0A\x0Battestation\x18\x10 \x01(\x0B2\x1B.grafeas.v1.AttestationNoteH\x00\x12*\x0A\x07upgrade\x18\x11 \x01(\x0B2\x17.grafeas.v1.UpgradeNoteH\x00\x120\x0A\x0Acompliance\x18\x12 \x01(\x0B2\x1A.grafeas.v1.ComplianceNoteH\x00\x12;\x0A\x10dsse_attestation\x18\x13 \x01(\x0B2\x1F.grafeas.v1.DSSEAttestationNoteH\x00\x12K\x0A\x18vulnerability_assessment\x18\x14 \x01(\x0B2'.grafeas.v1.VulnerabilityAssessmentNoteH\x00\x127\x0A\x0Esbom_reference\x18\x15 \x01(\x0B2\x1D.grafeas.v1.SBOMReferenceNoteH\x00\x12(\x0A\x06secret\x18\x16 \x01(\x0B2\x16.grafeas.v1.SecretNoteH\x00:5\xEAA2\x0A\x0Fgrafeas.io/Note\x12\x1Fprojects/{project}/notes/{note}B\x06\x0A\x04type\"C\x0A\x14GetOccurrenceRequest\x12+\x0A\x04name\x18\x01 \x01(\x09B\x1D\xE0A\x02\xFAA\x17\x0A\x15grafeas.io/Occurrence\"\x9B\x01\x0A\x16ListOccurrencesRequest\x12*\x0A\x06parent\x18\x01 \x01(\x09B\x1A\xE0A\x02\xFAA\x14\x0A\x12grafeas.io/Project\x12\x0E\x0A\x06filter\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x04 \x01(\x09\x12\x1E\x0A\x16return_partial_success\x18\x05 \x01(\x08\"y\x0A\x17ListOccurrencesResponse\x12+\x0A\x0Boccurrences\x18\x01 \x03(\x0B2\x16.grafeas.v1.Occurrence\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x18\x0A\x0Bunreachable\x18\x03 \x03(\x09B\x03\xE0A\x06\"F\x0A\x17DeleteOccurrenceRequest\x12+\x0A\x04name\x18\x01 \x01(\x09B\x1D\xE0A\x02\xFAA\x17\x0A\x15grafeas.io/Occurrence\"v\x0A\x17CreateOccurrenceRequest\x12*\x0A\x06parent\x18\x01 \x01(\x09B\x1A\xE0A\x02\xFAA\x14\x0A\x12grafeas.io/Project\x12/\x0A\x0Aoccurrence\x18\x02 \x01(\x0B2\x16.grafeas.v1.OccurrenceB\x03\xE0A\x02\"\xA8\x01\x0A\x17UpdateOccurrenceRequest\x12+\x0A\x04name\x18\x01 \x01(\x09B\x1D\xE0A\x02\xFAA\x17\x0A\x15grafeas.io/Occurrence\x12/\x0A\x0Aoccurrence\x18\x02 \x01(\x0B2\x16.grafeas.v1.OccurrenceB\x03\xE0A\x02\x12/\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMask\"7\x0A\x0EGetNoteRequest\x12%\x0A\x04name\x18\x01 \x01(\x09B\x17\xE0A\x02\xFAA\x11\x0A\x0Fgrafeas.io/Note\"G\x0A\x18GetOccurrenceNoteRequest\x12+\x0A\x04name\x18\x01 \x01(\x09B\x1D\xE0A\x02\xFAA\x17\x0A\x15grafeas.io/Occurrence\"\x95\x01\x0A\x10ListNotesRequest\x12*\x0A\x06parent\x18\x01 \x01(\x09B\x1A\xE0A\x02\xFAA\x14\x0A\x12grafeas.io/Project\x12\x0E\x0A\x06filter\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x04 \x01(\x09\x12\x1E\x0A\x16return_partial_success\x18\x05 \x01(\x08\"g\x0A\x11ListNotesResponse\x12\x1F\x0A\x05notes\x18\x01 \x03(\x0B2\x10.grafeas.v1.Note\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x18\x0A\x0Bunreachable\x18\x03 \x03(\x09B\x03\xE0A\x06\":\x0A\x11DeleteNoteRequest\x12%\x0A\x04name\x18\x01 \x01(\x09B\x17\xE0A\x02\xFAA\x11\x0A\x0Fgrafeas.io/Note\"z\x0A\x11CreateNoteRequest\x12*\x0A\x06parent\x18\x01 \x01(\x09B\x1A\xE0A\x02\xFAA\x14\x0A\x12grafeas.io/Project\x12\x14\x0A\x07note_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12#\x0A\x04note\x18\x03 \x01(\x0B2\x10.grafeas.v1.NoteB\x03\xE0A\x02\"\x90\x01\x0A\x11UpdateNoteRequest\x12%\x0A\x04name\x18\x01 \x01(\x09B\x17\xE0A\x02\xFAA\x11\x0A\x0Fgrafeas.io/Note\x12#\x0A\x04note\x18\x02 \x01(\x0B2\x10.grafeas.v1.NoteB\x03\xE0A\x02\x12/\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMask\"z\x0A\x1AListNoteOccurrencesRequest\x12%\x0A\x04name\x18\x01 \x01(\x09B\x17\xE0A\x02\xFAA\x11\x0A\x0Fgrafeas.io/Note\x12\x0E\x0A\x06filter\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x04 \x01(\x09\"c\x0A\x1BListNoteOccurrencesResponse\x12+\x0A\x0Boccurrences\x18\x01 \x03(\x0B2\x16.grafeas.v1.Occurrence\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xC9\x01\x0A\x17BatchCreateNotesRequest\x12*\x0A\x06parent\x18\x01 \x01(\x09B\x1A\xE0A\x02\xFAA\x14\x0A\x12grafeas.io/Project\x12B\x0A\x05notes\x18\x02 \x03(\x0B2..grafeas.v1.BatchCreateNotesRequest.NotesEntryB\x03\xE0A\x02\x1A>\x0A\x0ANotesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x1F\x0A\x05value\x18\x02 \x01(\x0B2\x10.grafeas.v1.Note:\x028\x01\";\x0A\x18BatchCreateNotesResponse\x12\x1F\x0A\x05notes\x18\x01 \x03(\x0B2\x10.grafeas.v1.Note\"}\x0A\x1DBatchCreateOccurrencesRequest\x12*\x0A\x06parent\x18\x01 \x01(\x09B\x1A\xE0A\x02\xFAA\x14\x0A\x12grafeas.io/Project\x120\x0A\x0Boccurrences\x18\x02 \x03(\x0B2\x16.grafeas.v1.OccurrenceB\x03\xE0A\x02\"M\x0A\x1EBatchCreateOccurrencesResponse\x12+\x0A\x0Boccurrences\x18\x01 \x03(\x0B2\x16.grafeas.v1.Occurrence2\x8D\x16\x0A\x07Grafeas\x12\xB0\x01\x0A\x0DGetOccurrence\x12 .grafeas.v1.GetOccurrenceRequest\x1A\x16.grafeas.v1.Occurrence\"e\xDAA\x04name\x82\xD3\xE4\x93\x02X\x12#/v1/{name=projects/*/occurrences/*}Z1\x12//v1/{name=projects/*/locations/*/occurrences/*}\x12\xCA\x01\x0A\x0FListOccurrences\x12\".grafeas.v1.ListOccurrencesRequest\x1A#.grafeas.v1.ListOccurrencesResponse\"n\xDAA\x0Dparent,filter\x82\xD3\xE4\x93\x02X\x12#/v1/{parent=projects/*}/occurrencesZ1\x12//v1/{parent=projects/*/locations/*}/occurrences\x12\xB6\x01\x0A\x10DeleteOccurrence\x12#.grafeas.v1.DeleteOccurrenceRequest\x1A\x16.google.protobuf.Empty\"e\xDAA\x04name\x82\xD3\xE4\x93\x02X*#/v1/{name=projects/*/occurrences/*}Z1*//v1/{name=projects/*/locations/*/occurrences/*}\x12\xDC\x01\x0A\x10CreateOccurrence\x12#.grafeas.v1.CreateOccurrenceRequest\x1A\x16.grafeas.v1.Occurrence\"\x8A\x01\xDAA\x11parent,occurrence\x82\xD3\xE4\x93\x02p\"#/v1/{parent=projects/*}/occurrences:\x0AoccurrenceZ=\"//v1/{parent=projects/*/locations/*}/occurrences:\x0Aoccurrence\x12\x83\x02\x0A\x16BatchCreateOccurrences\x12).grafeas.v1.BatchCreateOccurrencesRequest\x1A*.grafeas.v1.BatchCreateOccurrencesResponse\"\x91\x01\xDAA\x12parent,occurrences\x82\xD3\xE4\x93\x02v\"//v1/{parent=projects/*}/occurrences:batchCreate:\x01*Z@\";/v1/{parent=projects/*/locations/*}/occurrences:batchCreate:\x01*\x12\xE6\x01\x0A\x10UpdateOccurrence\x12#.grafeas.v1.UpdateOccurrenceRequest\x1A\x16.grafeas.v1.Occurrence\"\x94\x01\xDAA\x1Bname,occurrence,update_mask\x82\xD3\xE4\x93\x02p2#/v1/{name=projects/*/occurrences/*}:\x0AoccurrenceZ=2//v1/{name=projects/*/locations/*/occurrences/*}:\x0Aoccurrence\x12\xBE\x01\x0A\x11GetOccurrenceNote\x12\$.grafeas.v1.GetOccurrenceNoteRequest\x1A\x10.grafeas.v1.Note\"q\xDAA\x04name\x82\xD3\xE4\x93\x02d\x12)/v1/{name=projects/*/occurrences/*}/notesZ7\x125/v1/{name=projects/*/locations/*/occurrences/*}/notes\x12\x92\x01\x0A\x07GetNote\x12\x1A.grafeas.v1.GetNoteRequest\x1A\x10.grafeas.v1.Note\"Y\xDAA\x04name\x82\xD3\xE4\x93\x02L\x12\x1D/v1/{name=projects/*/notes/*}Z+\x12)/v1/{name=projects/*/locations/*/notes/*}\x12\xAC\x01\x0A\x09ListNotes\x12\x1C.grafeas.v1.ListNotesRequest\x1A\x1D.grafeas.v1.ListNotesResponse\"b\xDAA\x0Dparent,filter\x82\xD3\xE4\x93\x02L\x12\x1D/v1/{parent=projects/*}/notesZ+\x12)/v1/{parent=projects/*/locations/*}/notes\x12\x9E\x01\x0A\x0ADeleteNote\x12\x1D.grafeas.v1.DeleteNoteRequest\x1A\x16.google.protobuf.Empty\"Y\xDAA\x04name\x82\xD3\xE4\x93\x02L*\x1D/v1/{name=projects/*/notes/*}Z+*)/v1/{name=projects/*/locations/*/notes/*}\x12\xB3\x01\x0A\x0ACreateNote\x12\x1D.grafeas.v1.CreateNoteRequest\x1A\x10.grafeas.v1.Note\"t\xDAA\x13parent,note_id,note\x82\xD3\xE4\x93\x02X\"\x1D/v1/{parent=projects/*}/notes:\x04noteZ1\")/v1/{parent=projects/*/locations/*}/notes:\x04note\x12\xDE\x01\x0A\x10BatchCreateNotes\x12#.grafeas.v1.BatchCreateNotesRequest\x1A\$.grafeas.v1.BatchCreateNotesResponse\"\x7F\xDAA\x0Cparent,notes\x82\xD3\xE4\x93\x02j\")/v1/{parent=projects/*}/notes:batchCreate:\x01*Z:\"5/v1/{parent=projects/*/locations/*}/notes:batchCreate:\x01*\x12\xB5\x01\x0A\x0AUpdateNote\x12\x1D.grafeas.v1.UpdateNoteRequest\x1A\x10.grafeas.v1.Note\"v\xDAA\x15name,note,update_mask\x82\xD3\xE4\x93\x02X2\x1D/v1/{name=projects/*/notes/*}:\x04noteZ12)/v1/{name=projects/*/locations/*/notes/*}:\x04note\x12\xE0\x01\x0A\x13ListNoteOccurrences\x12&.grafeas.v1.ListNoteOccurrencesRequest\x1A'.grafeas.v1.ListNoteOccurrencesResponse\"x\xDAA\x0Bname,filter\x82\xD3\xE4\x93\x02d\x12)/v1/{name=projects/*/notes/*}/occurrencesZ7\x125/v1/{name=projects/*/locations/*/notes/*}/occurrences\x1A#\xCAA containeranalysis.googleapis.comB|\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRA\xEAA(\x0A\x12grafeas.io/Project\x12\x12projects/{project}b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + 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..5d8d5c9a7ba2 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Image.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xD7\x03\x0A\x16grafeas/v1/image.proto\x12\x0Agrafeas.v1\"-\x0A\x05Layer\x12\x11\x0A\x09directive\x18\x01 \x01(\x09\x12\x11\x0A\x09arguments\x18\x02 \x01(\x09\"@\x0A\x0BFingerprint\x12\x0F\x0A\x07v1_name\x18\x01 \x01(\x09\x12\x0F\x0A\x07v2_blob\x18\x02 \x03(\x09\x12\x0F\x0A\x07v2_name\x18\x03 \x01(\x09\"O\x0A\x09ImageNote\x12\x14\x0A\x0Cresource_url\x18\x01 \x01(\x09\x12,\x0A\x0Bfingerprint\x18\x02 \x01(\x0B2\x17.grafeas.v1.Fingerprint\"\x93\x01\x0A\x0FImageOccurrence\x12,\x0A\x0Bfingerprint\x18\x01 \x01(\x0B2\x17.grafeas.v1.Fingerprint\x12\x10\x0A\x08distance\x18\x02 \x01(\x05\x12%\x0A\x0Alayer_info\x18\x03 \x03(\x0B2\x11.grafeas.v1.Layer\x12\x19\x0A\x11base_resource_url\x18\x04 \x01(\x09BQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" + , 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..67ab4b1e4b58 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/IntotoProvenance.php @@ -0,0 +1,26 @@ +internalAddGeneratedFile( + "\x0A\xCE\x06\x0A\"grafeas/v1/intoto_provenance.proto\x12\x0Agrafeas.v1\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x9C\x01\x0A\x06Recipe\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x1B\x0A\x13defined_in_material\x18\x02 \x01(\x03\x12\x13\x0A\x0Bentry_point\x18\x03 \x01(\x09\x12'\x0A\x09arguments\x18\x04 \x03(\x0B2\x14.google.protobuf.Any\x12)\x0A\x0Benvironment\x18\x05 \x03(\x0B2\x14.google.protobuf.Any\"I\x0A\x0CCompleteness\x12\x11\x0A\x09arguments\x18\x01 \x01(\x08\x12\x13\x0A\x0Benvironment\x18\x02 \x01(\x08\x12\x11\x0A\x09materials\x18\x03 \x01(\x08\"\xDA\x01\x0A\x08Metadata\x12\x1B\x0A\x13build_invocation_id\x18\x01 \x01(\x09\x124\x0A\x10build_started_on\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x125\x0A\x11build_finished_on\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12.\x0A\x0Ccompleteness\x18\x04 \x01(\x0B2\x18.grafeas.v1.Completeness\x12\x14\x0A\x0Creproducible\x18\x05 \x01(\x08\"\x1B\x0A\x0DBuilderConfig\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\"\xA4\x01\x0A\x10InTotoProvenance\x121\x0A\x0Ebuilder_config\x18\x01 \x01(\x0B2\x19.grafeas.v1.BuilderConfig\x12\"\x0A\x06recipe\x18\x02 \x01(\x0B2\x12.grafeas.v1.Recipe\x12&\x0A\x08metadata\x18\x03 \x01(\x0B2\x14.grafeas.v1.Metadata\x12\x11\x0A\x09materials\x18\x04 \x03(\x09Bh\x0A\x0Dio.grafeas.v1B\x15InTotoProvenanceProtoP\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" + , 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 000000000000..6ca1135941eb --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/IntotoStatement.php @@ -0,0 +1,29 @@ +internalAddGeneratedFile( + "\x0A\x9F\x12\x0A!grafeas/v1/intoto_statement.proto\x12\x0Agrafeas.v1\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\"grafeas/v1/intoto_provenance.proto\x1A grafeas/v1/slsa_provenance.proto\x1A)grafeas/v1/slsa_provenance_zero_two.proto\"\xA3\x02\x0A\x0FInTotoStatement\x12\x13\x0A\x04type\x18\x01 \x01(\x09R\x05_type\x12\$\x0A\x07subject\x18\x02 \x03(\x0B2\x13.grafeas.v1.Subject\x12\x16\x0A\x0Epredicate_type\x18\x03 \x01(\x09\x122\x0A\x0Aprovenance\x18\x04 \x01(\x0B2\x1C.grafeas.v1.InTotoProvenanceH\x00\x125\x0A\x0Fslsa_provenance\x18\x05 \x01(\x0B2\x1A.grafeas.v1.SlsaProvenanceH\x00\x12E\x0A\x18slsa_provenance_zero_two\x18\x06 \x01(\x0B2!.grafeas.v1.SlsaProvenanceZeroTwoH\x00B\x0B\x0A\x09predicate\"w\x0A\x07Subject\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12/\x0A\x06digest\x18\x02 \x03(\x0B2\x1F.grafeas.v1.Subject.DigestEntry\x1A-\x0A\x0BDigestEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xCB\x0C\x0A\x16InTotoSlsaProvenanceV1\x12\x13\x0A\x04type\x18\x01 \x01(\x09R\x05_type\x12\$\x0A\x07subject\x18\x02 \x03(\x0B2\x13.grafeas.v1.Subject\x12\x16\x0A\x0Epredicate_type\x18\x03 \x01(\x09\x12F\x0A\x09predicate\x18\x04 \x01(\x0B23.grafeas.v1.InTotoSlsaProvenanceV1.SlsaProvenanceV1\x1A\xA4\x01\x0A\x10SlsaProvenanceV1\x12L\x0A\x10build_definition\x18\x01 \x01(\x0B22.grafeas.v1.InTotoSlsaProvenanceV1.BuildDefinition\x12B\x0A\x0Brun_details\x18\x02 \x01(\x0B2-.grafeas.v1.InTotoSlsaProvenanceV1.RunDetails\x1A\xE7\x01\x0A\x0FBuildDefinition\x12\x12\x0A\x0Abuild_type\x18\x01 \x01(\x09\x124\x0A\x13external_parameters\x18\x02 \x01(\x0B2\x17.google.protobuf.Struct\x124\x0A\x13internal_parameters\x18\x03 \x01(\x0B2\x17.google.protobuf.Struct\x12T\x0A\x15resolved_dependencies\x18\x04 \x03(\x0B25.grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor\x1A\x9A\x03\x0A\x12ResourceDescriptor\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0B\x0A\x03uri\x18\x02 \x01(\x09\x12Q\x0A\x06digest\x18\x03 \x03(\x0B2A.grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor.DigestEntry\x12\x0F\x0A\x07content\x18\x04 \x01(\x0C\x12\x19\x0A\x11download_location\x18\x05 \x01(\x09\x12\x12\x0A\x0Amedia_type\x18\x06 \x01(\x09\x12[\x0A\x0Bannotations\x18\x07 \x03(\x0B2F.grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor.AnnotationsEntry\x1A-\x0A\x0BDigestEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1AJ\x0A\x10AnnotationsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12%\x0A\x05value\x18\x02 \x01(\x0B2\x16.google.protobuf.Value:\x028\x01\x1A\xE2\x01\x0A\x0ARunDetails\x12E\x0A\x07builder\x18\x01 \x01(\x0B24.grafeas.v1.InTotoSlsaProvenanceV1.ProvenanceBuilder\x12B\x0A\x08metadata\x18\x02 \x01(\x0B20.grafeas.v1.InTotoSlsaProvenanceV1.BuildMetadata\x12I\x0A\x0Abyproducts\x18\x03 \x03(\x0B25.grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor\x1A\xF8\x01\x0A\x11ProvenanceBuilder\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x12R\x0A\x07version\x18\x02 \x03(\x0B2A.grafeas.v1.InTotoSlsaProvenanceV1.ProvenanceBuilder.VersionEntry\x12S\x0A\x14builder_dependencies\x18\x03 \x03(\x0B25.grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor\x1A.\x0A\x0CVersionEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A\x87\x01\x0A\x0DBuildMetadata\x12\x15\x0A\x0Dinvocation_id\x18\x01 \x01(\x09\x12.\x0A\x0Astarted_on\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bfinished_on\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampBg\x0A\x0Dio.grafeas.v1B\x14InTotoStatementProtoP\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + 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 000000000000..e195c07f7c9c --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Package.php @@ -0,0 +1,26 @@ +internalAddGeneratedFile( + "\x0A\xA6\x0A\x0A\x18grafeas/v1/package.proto\x12\x0Agrafeas.v1\x1A\x17grafeas/v1/common.proto\"\xB7\x01\x0A\x0CDistribution\x12\x14\x0A\x07cpe_uri\x18\x01 \x01(\x09B\x03\xE0A\x02\x12.\x0A\x0Carchitecture\x18\x02 \x01(\x0E2\x18.grafeas.v1.Architecture\x12+\x0A\x0Elatest_version\x18\x03 \x01(\x0B2\x13.grafeas.v1.Version\x12\x12\x0A\x0Amaintainer\x18\x04 \x01(\x09\x12\x0B\x0A\x03url\x18\x05 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x06 \x01(\x09\"O\x0A\x08Location\x12\x0F\x0A\x07cpe_uri\x18\x01 \x01(\x09\x12\$\x0A\x07version\x18\x02 \x01(\x0B2\x13.grafeas.v1.Version\x12\x0C\x0A\x04path\x18\x03 \x01(\x09\"\xD0\x02\x0A\x0BPackageNote\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x02\xE0A\x05\x12.\x0A\x0Cdistribution\x18\x0A \x03(\x0B2\x18.grafeas.v1.Distribution\x12\x14\x0A\x0Cpackage_type\x18\x0B \x01(\x09\x12\x0F\x0A\x07cpe_uri\x18\x0C \x01(\x09\x12.\x0A\x0Carchitecture\x18\x0D \x01(\x0E2\x18.grafeas.v1.Architecture\x12\$\x0A\x07version\x18\x0E \x01(\x0B2\x13.grafeas.v1.Version\x12\x12\x0A\x0Amaintainer\x18\x0F \x01(\x09\x12\x0B\x0A\x03url\x18\x10 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x11 \x01(\x09\x12\$\x0A\x07license\x18\x12 \x01(\x0B2\x13.grafeas.v1.License\x12\"\x0A\x06digest\x18\x13 \x03(\x0B2\x12.grafeas.v1.Digest\"\x88\x02\x0A\x11PackageOccurrence\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x02\xE0A\x03\x12&\x0A\x08location\x18\x02 \x03(\x0B2\x14.grafeas.v1.Location\x12\x19\x0A\x0Cpackage_type\x18\x03 \x01(\x09B\x03\xE0A\x03\x12\x14\x0A\x07cpe_uri\x18\x04 \x01(\x09B\x03\xE0A\x03\x123\x0A\x0Carchitecture\x18\x05 \x01(\x0E2\x18.grafeas.v1.ArchitectureB\x03\xE0A\x03\x12\$\x0A\x07license\x18\x06 \x01(\x0B2\x13.grafeas.v1.License\x12)\x0A\x07version\x18\x07 \x01(\x0B2\x13.grafeas.v1.VersionB\x03\xE0A\x03\"\xE0\x01\x0A\x07Version\x12\x0D\x0A\x05epoch\x18\x01 \x01(\x05\x12\x0C\x0A\x04name\x18\x02 \x01(\x09\x12\x10\x0A\x08revision\x18\x03 \x01(\x09\x12\x11\x0A\x09inclusive\x18\x06 \x01(\x08\x12-\x0A\x04kind\x18\x04 \x01(\x0E2\x1F.grafeas.v1.Version.VersionKind\x12\x11\x0A\x09full_name\x18\x05 \x01(\x09\"Q\x0A\x0BVersionKind\x12\x1C\x0A\x18VERSION_KIND_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06NORMAL\x10\x01\x12\x0B\x0A\x07MINIMUM\x10\x02\x12\x0B\x0A\x07MAXIMUM\x10\x03*>\x0A\x0CArchitecture\x12\x1C\x0A\x18ARCHITECTURE_UNSPECIFIED\x10\x00\x12\x07\x0A\x03X86\x10\x01\x12\x07\x0A\x03X64\x10\x02BQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + 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 000000000000..8f5db5977ef6 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Provenance.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xBA\x10\x0A\x1Bgrafeas/v1/provenance.proto\x12\x0Agrafeas.v1\"\x90\x04\x0A\x0FBuildProvenance\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x12\x12\x0A\x0Aproject_id\x18\x02 \x01(\x09\x12%\x0A\x08commands\x18\x03 \x03(\x0B2\x13.grafeas.v1.Command\x12-\x0A\x0Fbuilt_artifacts\x18\x04 \x03(\x0B2\x14.grafeas.v1.Artifact\x12/\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12.\x0A\x0Astart_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x0F\x0A\x07creator\x18\x08 \x01(\x09\x12\x10\x0A\x08logs_uri\x18\x09 \x01(\x09\x12-\x0A\x11source_provenance\x18\x0A \x01(\x0B2\x12.grafeas.v1.Source\x12\x12\x0A\x0Atrigger_id\x18\x0B \x01(\x09\x12D\x0A\x0Dbuild_options\x18\x0C \x03(\x0B2-.grafeas.v1.BuildProvenance.BuildOptionsEntry\x12\x17\x0A\x0Fbuilder_version\x18\x0D \x01(\x09\x1A3\x0A\x11BuildOptionsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\x95\x02\x0A\x06Source\x12#\x0A\x1Bartifact_storage_source_uri\x18\x01 \x01(\x09\x127\x0A\x0Bfile_hashes\x18\x02 \x03(\x0B2\".grafeas.v1.Source.FileHashesEntry\x12*\x0A\x07context\x18\x03 \x01(\x0B2\x19.grafeas.v1.SourceContext\x126\x0A\x13additional_contexts\x18\x04 \x03(\x0B2\x19.grafeas.v1.SourceContext\x1AI\x0A\x0FFileHashesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12%\x0A\x05value\x18\x02 \x01(\x0B2\x16.grafeas.v1.FileHashes:\x028\x01\"1\x0A\x0AFileHashes\x12#\x0A\x09file_hash\x18\x01 \x03(\x0B2\x10.grafeas.v1.Hash\"#\x0A\x04Hash\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x0C\"]\x0A\x07Command\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0B\x0A\x03env\x18\x02 \x03(\x09\x12\x0C\x0A\x04args\x18\x03 \x03(\x09\x12\x0B\x0A\x03dir\x18\x04 \x01(\x09\x12\x0A\x0A\x02id\x18\x05 \x01(\x09\x12\x10\x0A\x08wait_for\x18\x06 \x03(\x09\"7\x0A\x08Artifact\x12\x10\x0A\x08checksum\x18\x01 \x01(\x09\x12\x0A\x0A\x02id\x18\x02 \x01(\x09\x12\x0D\x0A\x05names\x18\x03 \x03(\x09\"\x9A\x02\x0A\x0DSourceContext\x128\x0A\x0Acloud_repo\x18\x01 \x01(\x0B2\".grafeas.v1.CloudRepoSourceContextH\x00\x121\x0A\x06gerrit\x18\x02 \x01(\x0B2\x1F.grafeas.v1.GerritSourceContextH\x00\x12+\x0A\x03git\x18\x03 \x01(\x0B2\x1C.grafeas.v1.GitSourceContextH\x00\x125\x0A\x06labels\x18\x04 \x03(\x0B2%.grafeas.v1.SourceContext.LabelsEntry\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01B\x09\x0A\x07context\"\x8A\x01\x0A\x0CAliasContext\x12+\x0A\x04kind\x18\x01 \x01(\x0E2\x1D.grafeas.v1.AliasContext.Kind\x12\x0C\x0A\x04name\x18\x02 \x01(\x09\"?\x0A\x04Kind\x12\x14\x0A\x10KIND_UNSPECIFIED\x10\x00\x12\x09\x0A\x05FIXED\x10\x01\x12\x0B\x0A\x07MOVABLE\x10\x02\x12\x09\x0A\x05OTHER\x10\x04\"\x93\x01\x0A\x16CloudRepoSourceContext\x12#\x0A\x07repo_id\x18\x01 \x01(\x0B2\x12.grafeas.v1.RepoId\x12\x15\x0A\x0Brevision_id\x18\x02 \x01(\x09H\x00\x121\x0A\x0Dalias_context\x18\x03 \x01(\x0B2\x18.grafeas.v1.AliasContextH\x00B\x0A\x0A\x08revision\"\x95\x01\x0A\x13GerritSourceContext\x12\x10\x0A\x08host_uri\x18\x01 \x01(\x09\x12\x16\x0A\x0Egerrit_project\x18\x02 \x01(\x09\x12\x15\x0A\x0Brevision_id\x18\x03 \x01(\x09H\x00\x121\x0A\x0Dalias_context\x18\x04 \x01(\x0B2\x18.grafeas.v1.AliasContextH\x00B\x0A\x0A\x08revision\"4\x0A\x10GitSourceContext\x12\x0B\x0A\x03url\x18\x01 \x01(\x09\x12\x13\x0A\x0Brevision_id\x18\x02 \x01(\x09\"S\x0A\x06RepoId\x124\x0A\x0Fproject_repo_id\x18\x01 \x01(\x0B2\x19.grafeas.v1.ProjectRepoIdH\x00\x12\x0D\x0A\x03uid\x18\x02 \x01(\x09H\x00B\x04\x0A\x02id\"6\x0A\x0DProjectRepoId\x12\x12\x0A\x0Aproject_id\x18\x01 \x01(\x09\x12\x11\x0A\x09repo_name\x18\x02 \x01(\x09BQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + 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..4519aaf5ca28 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Risk.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\x93\x03\x0A\x15grafeas/v1/risk.proto\x12\x0Agrafeas.v1\"\x81\x01\x0A\x04Risk\x12?\x0A\x08cisa_kev\x18\x01 \x01(\x0B2-.grafeas.v1.CISAKnownExploitedVulnerabilities\x128\x0A\x04epss\x18\x02 \x01(\x0B2*.grafeas.v1.ExploitPredictionScoringSystem\"J\x0A!CISAKnownExploitedVulnerabilities\x12%\x0A\x1Dknown_ransomware_campaign_use\x18\x01 \x01(\x09\"C\x0A\x1EExploitPredictionScoringSystem\x12\x12\x0A\x0Apercentile\x18\x01 \x01(\x01\x12\x0D\x0A\x05score\x18\x02 \x01(\x01BQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" + , 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..eda6f5fbce08 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Sbom.php @@ -0,0 +1,26 @@ +internalAddGeneratedFile( + "\x0A\xF4\x05\x0A\x15grafeas/v1/sbom.proto\x12\x0Agrafeas.v1\x1A!grafeas/v1/intoto_statement.proto\"4\x0A\x11SBOMReferenceNote\x12\x0E\x0A\x06format\x18\x01 \x01(\x09\x12\x0F\x0A\x07version\x18\x02 \x01(\x09\"\x9B\x01\x0A\x17SBOMReferenceOccurrence\x127\x0A\x07payload\x18\x01 \x01(\x0B2&.grafeas.v1.SbomReferenceIntotoPayload\x12\x14\x0A\x0Cpayload_type\x18\x02 \x01(\x09\x121\x0A\x0Asignatures\x18\x03 \x03(\x0B2\x1D.grafeas.v1.EnvelopeSignature\"\xAC\x01\x0A\x1ASbomReferenceIntotoPayload\x12\x13\x0A\x04type\x18\x01 \x01(\x09R\x05_type\x12\x16\x0A\x0Epredicate_type\x18\x02 \x01(\x09\x12\$\x0A\x07subject\x18\x03 \x03(\x0B2\x13.grafeas.v1.Subject\x12;\x0A\x09predicate\x18\x04 \x01(\x0B2(.grafeas.v1.SbomReferenceIntotoPredicate\"\xCD\x01\x0A\x1CSbomReferenceIntotoPredicate\x12\x13\x0A\x0Breferrer_id\x18\x01 \x01(\x09\x12\x10\x0A\x08location\x18\x02 \x01(\x09\x12\x11\x0A\x09mime_type\x18\x03 \x01(\x09\x12D\x0A\x06digest\x18\x04 \x03(\x0B24.grafeas.v1.SbomReferenceIntotoPredicate.DigestEntry\x1A-\x0A\x0BDigestEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01BQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" + , 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 000000000000..120b7d15a0b5 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Secret.php @@ -0,0 +1,28 @@ +internalAddGeneratedFile( + "\x0A\xA3\x0D\x0A\x17grafeas/v1/secret.proto\x12\x0Agrafeas.v1\x1A\x19google/protobuf/any.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x17grafeas/v1/common.proto\"\x0C\x0A\x0ASecretNote\"\xEA\x01\x0A\x10SecretOccurrence\x12)\x0A\x04kind\x18\x01 \x01(\x0E2\x16.grafeas.v1.SecretKindB\x03\xE0A\x02\x122\x0A\x09locations\x18\x02 \x03(\x0B2\x1A.grafeas.v1.SecretLocationB\x03\xE0A\x01\x12/\x0A\x08statuses\x18\x03 \x03(\x0B2\x18.grafeas.v1.SecretStatusB\x03\xE0A\x01\x12\"\x0A\x04data\x18\x04 \x01(\x0B2\x14.google.protobuf.Any\x12\"\x0A\x06digest\x18\x05 \x01(\x0B2\x12.grafeas.v1.Digest\"O\x0A\x0ESecretLocation\x121\x0A\x0Dfile_location\x18\x01 \x01(\x0B2\x18.grafeas.v1.FileLocationH\x00B\x0A\x0A\x08location\"\xD7\x01\x0A\x0CSecretStatus\x124\x0A\x06status\x18\x01 \x01(\x0E2\x1F.grafeas.v1.SecretStatus.StatusB\x03\xE0A\x01\x124\x0A\x0Bupdate_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x12\x14\x0A\x07message\x18\x03 \x01(\x09B\x03\xE0A\x01\"E\x0A\x06Status\x12\x16\x0A\x12STATUS_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07UNKNOWN\x10\x01\x12\x09\x0A\x05VALID\x10\x02\x12\x0B\x0A\x07INVALID\x10\x03*\xA5\x07\x0A\x0ASecretKind\x12\x1B\x0A\x17SECRET_KIND_UNSPECIFIED\x10\x00\x12\x17\x0A\x13SECRET_KIND_UNKNOWN\x10\x01\x12'\x0A#SECRET_KIND_GCP_SERVICE_ACCOUNT_KEY\x10\x02\x12\x1B\x0A\x17SECRET_KIND_GCP_API_KEY\x10\x03\x12-\x0A)SECRET_KIND_GCP_OAUTH2_CLIENT_CREDENTIALS\x10\x04\x12'\x0A#SECRET_KIND_GCP_OAUTH2_ACCESS_TOKEN\x10\x05\x12'\x0A#SECRET_KIND_ANTHROPIC_ADMIN_API_KEY\x10\x06\x12!\x0A\x1DSECRET_KIND_ANTHROPIC_API_KEY\x10\x07\x12\"\x0A\x1ESECRET_KIND_AZURE_ACCESS_TOKEN\x10\x08\x12\$\x0A SECRET_KIND_AZURE_IDENTITY_TOKEN\x10\x09\x120\x0A,SECRET_KIND_DOCKER_HUB_PERSONAL_ACCESS_TOKEN\x10\x0A\x12(\x0A\$SECRET_KIND_GITHUB_APP_REFRESH_TOKEN\x10\x0B\x121\x0A-SECRET_KIND_GITHUB_APP_SERVER_TO_SERVER_TOKEN\x10\x0C\x12/\x0A+SECRET_KIND_GITHUB_APP_USER_TO_SERVER_TOKEN\x10\x0D\x124\x0A0SECRET_KIND_GITHUB_CLASSIC_PERSONAL_ACCESS_TOKEN\x10\x0E\x129\x0A5SECRET_KIND_GITHUB_FINE_GRAINED_PERSONAL_ACCESS_TOKEN\x10\x0F\x12\"\x0A\x1ESECRET_KIND_GITHUB_OAUTH_TOKEN\x10\x10\x12#\x0A\x1FSECRET_KIND_HUGGINGFACE_API_KEY\x10\x11\x12\x1E\x0A\x1ASECRET_KIND_OPENAI_API_KEY\x10\x12\x12\"\x0A\x1ESECRET_KIND_PERPLEXITY_API_KEY\x10\x13\x12!\x0A\x1DSECRET_KIND_STRIPE_SECRET_KEY\x10\x14\x12%\x0A!SECRET_KIND_STRIPE_RESTRICTED_KEY\x10\x15\x12%\x0A!SECRET_KIND_STRIPE_WEBHOOK_SECRET\x10\x16BQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + 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 000000000000..a39337810961 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Severity.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xE2\x01\x0A\x19grafeas/v1/severity.proto\x12\x0Agrafeas.v1*^\x0A\x08Severity\x12\x18\x0A\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07MINIMAL\x10\x01\x12\x07\x0A\x03LOW\x10\x02\x12\x0A\x0A\x06MEDIUM\x10\x03\x12\x08\x0A\x04HIGH\x10\x04\x12\x0C\x0A\x08CRITICAL\x10\x05BQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + 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..823bafe83839 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/SlsaProvenance.php @@ -0,0 +1,26 @@ +internalAddGeneratedFile( + "\x0A\xC0\x08\x0A grafeas/v1/slsa_provenance.proto\x12\x0Agrafeas.v1\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xFE\x06\x0A\x0ESlsaProvenance\x127\x0A\x07builder\x18\x01 \x01(\x0B2&.grafeas.v1.SlsaProvenance.SlsaBuilder\x125\x0A\x06recipe\x18\x02 \x01(\x0B2%.grafeas.v1.SlsaProvenance.SlsaRecipe\x129\x0A\x08metadata\x18\x03 \x01(\x0B2'.grafeas.v1.SlsaProvenance.SlsaMetadata\x126\x0A\x09materials\x18\x04 \x03(\x0B2#.grafeas.v1.SlsaProvenance.Material\x1A\xA0\x01\x0A\x0ASlsaRecipe\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x1B\x0A\x13defined_in_material\x18\x02 \x01(\x03\x12\x13\x0A\x0Bentry_point\x18\x03 \x01(\x09\x12'\x0A\x09arguments\x18\x04 \x01(\x0B2\x14.google.protobuf.Any\x12)\x0A\x0Benvironment\x18\x05 \x01(\x0B2\x14.google.protobuf.Any\x1AM\x0A\x10SlsaCompleteness\x12\x11\x0A\x09arguments\x18\x01 \x01(\x08\x12\x13\x0A\x0Benvironment\x18\x02 \x01(\x08\x12\x11\x0A\x09materials\x18\x03 \x01(\x08\x1A\xF1\x01\x0A\x0CSlsaMetadata\x12\x1B\x0A\x13build_invocation_id\x18\x01 \x01(\x09\x124\x0A\x10build_started_on\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x125\x0A\x11build_finished_on\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12A\x0A\x0Ccompleteness\x18\x04 \x01(\x0B2+.grafeas.v1.SlsaProvenance.SlsaCompleteness\x12\x14\x0A\x0Creproducible\x18\x05 \x01(\x08\x1A\x19\x0A\x0BSlsaBuilder\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x1A\x87\x01\x0A\x08Material\x12\x0B\x0A\x03uri\x18\x01 \x01(\x09\x12?\x0A\x06digest\x18\x02 \x03(\x0B2/.grafeas.v1.SlsaProvenance.Material.DigestEntry\x1A-\x0A\x0BDigestEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01Bf\x0A\x0Dio.grafeas.v1B\x13SlsaProvenanceProtoP\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" + , 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..03b14948b0dd --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/SlsaProvenanceZeroTwo.php @@ -0,0 +1,26 @@ +internalAddGeneratedFile( + "\x0A\xA5\x0B\x0A)grafeas/v1/slsa_provenance_zero_two.proto\x12\x0Agrafeas.v1\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xD3\x09\x0A\x15SlsaProvenanceZeroTwo\x12>\x0A\x07builder\x18\x01 \x01(\x0B2-.grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder\x12\x12\x0A\x0Abuild_type\x18\x02 \x01(\x09\x12D\x0A\x0Ainvocation\x18\x03 \x01(\x0B20.grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation\x12-\x0A\x0Cbuild_config\x18\x04 \x01(\x0B2\x17.google.protobuf.Struct\x12@\x0A\x08metadata\x18\x05 \x01(\x0B2..grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata\x12A\x0A\x09materials\x18\x06 \x03(\x0B2..grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial\x1A\x19\x0A\x0BSlsaBuilder\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x1A\x96\x01\x0A\x0CSlsaMaterial\x12\x0B\x0A\x03uri\x18\x01 \x01(\x09\x12J\x0A\x06digest\x18\x02 \x03(\x0B2:.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial.DigestEntry\x1A-\x0A\x0BDigestEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A\xB6\x01\x0A\x0ESlsaInvocation\x12I\x0A\x0Dconfig_source\x18\x01 \x01(\x0B22.grafeas.v1.SlsaProvenanceZeroTwo.SlsaConfigSource\x12+\x0A\x0Aparameters\x18\x02 \x01(\x0B2\x17.google.protobuf.Struct\x12,\x0A\x0Benvironment\x18\x03 \x01(\x0B2\x17.google.protobuf.Struct\x1A\xB3\x01\x0A\x10SlsaConfigSource\x12\x0B\x0A\x03uri\x18\x01 \x01(\x09\x12N\x0A\x06digest\x18\x02 \x03(\x0B2>.grafeas.v1.SlsaProvenanceZeroTwo.SlsaConfigSource.DigestEntry\x12\x13\x0A\x0Bentry_point\x18\x03 \x01(\x09\x1A-\x0A\x0BDigestEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A\xF8\x01\x0A\x0CSlsaMetadata\x12\x1B\x0A\x13build_invocation_id\x18\x01 \x01(\x09\x124\x0A\x10build_started_on\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x125\x0A\x11build_finished_on\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12H\x0A\x0Ccompleteness\x18\x04 \x01(\x0B22.grafeas.v1.SlsaProvenanceZeroTwo.SlsaCompleteness\x12\x14\x0A\x0Creproducible\x18\x05 \x01(\x08\x1AN\x0A\x10SlsaCompleteness\x12\x12\x0A\x0Aparameters\x18\x01 \x01(\x08\x12\x13\x0A\x0Benvironment\x18\x02 \x01(\x08\x12\x11\x0A\x09materials\x18\x03 \x01(\x08Bm\x0A\x0Dio.grafeas.v1B\x1ASlsaProvenanceZeroTwoProtoP\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" + , 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..cf298d511803 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Upgrade.php @@ -0,0 +1,26 @@ +internalAddGeneratedFile( + "\x0A\xD9\x07\x0A\x18grafeas/v1/upgrade.proto\x12\x0Agrafeas.v1\x1A\x18grafeas/v1/package.proto\"\xAF\x01\x0A\x0BUpgradeNote\x12\x0F\x0A\x07package\x18\x01 \x01(\x09\x12\$\x0A\x07version\x18\x02 \x01(\x0B2\x13.grafeas.v1.Version\x126\x0A\x0Ddistributions\x18\x03 \x03(\x0B2\x1F.grafeas.v1.UpgradeDistribution\x121\x0A\x0Ewindows_update\x18\x04 \x01(\x0B2\x19.grafeas.v1.WindowsUpdate\"]\x0A\x13UpgradeDistribution\x12\x0F\x0A\x07cpe_uri\x18\x01 \x01(\x09\x12\x16\x0A\x0Eclassification\x18\x02 \x01(\x09\x12\x10\x0A\x08severity\x18\x03 \x01(\x09\x12\x0B\x0A\x03cve\x18\x04 \x03(\x09\"\xEC\x02\x0A\x0DWindowsUpdate\x124\x0A\x08identity\x18\x01 \x01(\x0B2\".grafeas.v1.WindowsUpdate.Identity\x12\x0D\x0A\x05title\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x126\x0A\x0Acategories\x18\x04 \x03(\x0B2\".grafeas.v1.WindowsUpdate.Category\x12\x16\x0A\x0Ekb_article_ids\x18\x05 \x03(\x09\x12\x13\x0A\x0Bsupport_url\x18\x06 \x01(\x09\x12<\x0A\x18last_published_timestamp\x18\x07 \x01(\x0B2\x1A.google.protobuf.Timestamp\x1A/\x0A\x08Identity\x12\x11\x0A\x09update_id\x18\x01 \x01(\x09\x12\x10\x0A\x08revision\x18\x02 \x01(\x05\x1A-\x0A\x08Category\x12\x13\x0A\x0Bcategory_id\x18\x01 \x01(\x09\x12\x0C\x0A\x04name\x18\x02 \x01(\x09\"\xBB\x01\x0A\x11UpgradeOccurrence\x12\x0F\x0A\x07package\x18\x01 \x01(\x09\x12+\x0A\x0Eparsed_version\x18\x03 \x01(\x0B2\x13.grafeas.v1.Version\x125\x0A\x0Cdistribution\x18\x04 \x01(\x0B2\x1F.grafeas.v1.UpgradeDistribution\x121\x0A\x0Ewindows_update\x18\x05 \x01(\x0B2\x19.grafeas.v1.WindowsUpdateBQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" + , 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 000000000000..38482cf10129 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Vex.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xC8\x0E\x0A\x14grafeas/v1/vex.proto\x12\x0Agrafeas.v1\"\xC8\x0D\x0A\x1BVulnerabilityAssessmentNote\x12\x0D\x0A\x05title\x18\x01 \x01(\x09\x12\x19\x0A\x11short_description\x18\x02 \x01(\x09\x12\x18\x0A\x10long_description\x18\x03 \x01(\x09\x12\x15\x0A\x0Dlanguage_code\x18\x04 \x01(\x09\x12D\x0A\x09publisher\x18\x05 \x01(\x0B21.grafeas.v1.VulnerabilityAssessmentNote.Publisher\x12@\x0A\x07product\x18\x06 \x01(\x0B2/.grafeas.v1.VulnerabilityAssessmentNote.Product\x12F\x0A\x0Aassessment\x18\x07 \x01(\x0B22.grafeas.v1.VulnerabilityAssessmentNote.Assessment\x1AQ\x0A\x09Publisher\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x19\x0A\x11issuing_authority\x18\x02 \x01(\x09\x12\x1B\x0A\x13publisher_namespace\x18\x03 \x01(\x09\x1AH\x0A\x07Product\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0A\x0A\x02id\x18\x02 \x01(\x09\x12\x15\x0A\x0Bgeneric_uri\x18\x03 \x01(\x09H\x00B\x0C\x0A\x0Aidentifier\x1A\xE0\x09\x0A\x0AAssessment\x12\x0F\x0A\x03cve\x18\x01 \x01(\x09B\x02\x18\x01\x12\x18\x0A\x10vulnerability_id\x18\x09 \x01(\x09\x12\x19\x0A\x11short_description\x18\x02 \x01(\x09\x12\x18\x0A\x10long_description\x18\x03 \x01(\x09\x12,\x0A\x0Crelated_uris\x18\x04 \x03(\x0B2\x16.grafeas.v1.RelatedUrl\x12G\x0A\x05state\x18\x05 \x01(\x0E28.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State\x12\x0F\x0A\x07impacts\x18\x06 \x03(\x09\x12W\x0A\x0Djustification\x18\x07 \x01(\x0B2@.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification\x12T\x0A\x0Cremediations\x18\x08 \x03(\x0B2>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation\x1A\x8C\x03\x0A\x0DJustification\x12n\x0A\x12justification_type\x18\x01 \x01(\x0E2R.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType\x12\x0F\x0A\x07details\x18\x02 \x01(\x09\"\xF9\x01\x0A\x11JustificationType\x12\"\x0A\x1EJUSTIFICATION_TYPE_UNSPECIFIED\x10\x00\x12\x19\x0A\x15COMPONENT_NOT_PRESENT\x10\x01\x12\x1F\x0A\x1BVULNERABLE_CODE_NOT_PRESENT\x10\x02\x12'\x0A#VULNERABLE_CODE_NOT_IN_EXECUTE_PATH\x10\x03\x125\x0A1VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY\x10\x04\x12\$\x0A INLINE_MITIGATIONS_ALREADY_EXIST\x10\x05\x1A\xC7\x02\x0A\x0BRemediation\x12h\x0A\x10remediation_type\x18\x01 \x01(\x0E2N.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType\x12\x0F\x0A\x07details\x18\x02 \x01(\x09\x12/\x0A\x0Fremediation_uri\x18\x03 \x01(\x0B2\x16.grafeas.v1.RelatedUrl\"\x8B\x01\x0A\x0FRemediationType\x12 \x0A\x1CREMEDIATION_TYPE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0AMITIGATION\x10\x01\x12\x12\x0A\x0ENO_FIX_PLANNED\x10\x02\x12\x12\x0A\x0ENONE_AVAILABLE\x10\x03\x12\x0E\x0A\x0AVENDOR_FIX\x10\x04\x12\x0E\x0A\x0AWORKAROUND\x10\x05\"b\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08AFFECTED\x10\x01\x12\x10\x0A\x0CNOT_AFFECTED\x10\x02\x12\x09\x0A\x05FIXED\x10\x03\x12\x17\x0A\x13UNDER_INVESTIGATION\x10\x04BQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Vulnerability.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Vulnerability.php new file mode 100644 index 000000000000..2c95566a33f5 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Vulnerability.php @@ -0,0 +1,32 @@ +internalAddGeneratedFile( + "\x0A\xE5\x15\x0A\x1Egrafeas/v1/vulnerability.proto\x12\x0Agrafeas.v1\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x17grafeas/v1/common.proto\x1A\x15grafeas/v1/cvss.proto\x1A\x18grafeas/v1/package.proto\x1A\x15grafeas/v1/risk.proto\x1A\x19grafeas/v1/severity.proto\x1A\x14grafeas/v1/vex.proto\"\xCA\x08\x0A\x11VulnerabilityNote\x12\x12\x0A\x0Acvss_score\x18\x01 \x01(\x02\x12&\x0A\x08severity\x18\x02 \x01(\x0E2\x14.grafeas.v1.Severity\x125\x0A\x07details\x18\x03 \x03(\x0B2\$.grafeas.v1.VulnerabilityNote.Detail\x12#\x0A\x07cvss_v3\x18\x04 \x01(\x0B2\x12.grafeas.v1.CVSSv3\x12D\x0A\x0Fwindows_details\x18\x05 \x03(\x0B2+.grafeas.v1.VulnerabilityNote.WindowsDetail\x126\x0A\x12source_update_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12-\x0A\x0Ccvss_version\x18\x07 \x01(\x0E2\x17.grafeas.v1.CVSSVersion\x12!\x0A\x07cvss_v2\x18\x08 \x01(\x0B2\x10.grafeas.v1.CVSS\x129\x0A\x15advisory_publish_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12!\x0A\x07cvss_v4\x18\x0A \x01(\x0B2\x10.grafeas.v1.CVSS\x1A\xAD\x03\x0A\x06Detail\x12\x15\x0A\x0Dseverity_name\x18\x01 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12\x14\x0A\x0Cpackage_type\x18\x03 \x01(\x09\x12\x18\x0A\x10affected_cpe_uri\x18\x04 \x01(\x09\x12\x18\x0A\x10affected_package\x18\x05 \x01(\x09\x123\x0A\x16affected_version_start\x18\x06 \x01(\x0B2\x13.grafeas.v1.Version\x121\x0A\x14affected_version_end\x18\x07 \x01(\x0B2\x13.grafeas.v1.Version\x12\x15\x0A\x0Dfixed_cpe_uri\x18\x08 \x01(\x09\x12\x15\x0A\x0Dfixed_package\x18\x09 \x01(\x09\x12*\x0A\x0Dfixed_version\x18\x0A \x01(\x0B2\x13.grafeas.v1.Version\x12\x13\x0A\x0Bis_obsolete\x18\x0B \x01(\x08\x126\x0A\x12source_update_time\x18\x0C \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x0E\x0A\x06source\x18\x0D \x01(\x09\x12\x0E\x0A\x06vendor\x18\x0E \x01(\x09\x1A\xBE\x01\x0A\x0DWindowsDetail\x12\x0F\x0A\x07cpe_uri\x18\x01 \x01(\x09\x12\x0C\x0A\x04name\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x12M\x0A\x0Afixing_kbs\x18\x04 \x03(\x0B29.grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase\x1A*\x0A\x0DKnowledgeBase\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0B\x0A\x03url\x18\x02 \x01(\x09\"\xDB\x0A\x0A\x17VulnerabilityOccurrence\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12&\x0A\x08severity\x18\x02 \x01(\x0E2\x14.grafeas.v1.Severity\x12\x12\x0A\x0Acvss_score\x18\x03 \x01(\x02\x12 \x0A\x06cvssv3\x18\x0A \x01(\x0B2\x10.grafeas.v1.CVSS\x12G\x0A\x0Dpackage_issue\x18\x04 \x03(\x0B20.grafeas.v1.VulnerabilityOccurrence.PackageIssue\x12\x19\x0A\x11short_description\x18\x05 \x01(\x09\x12\x18\x0A\x10long_description\x18\x06 \x01(\x09\x12,\x0A\x0Crelated_urls\x18\x07 \x03(\x0B2\x16.grafeas.v1.RelatedUrl\x120\x0A\x12effective_severity\x18\x08 \x01(\x0E2\x14.grafeas.v1.Severity\x12\x15\x0A\x0Dfix_available\x18\x09 \x01(\x08\x12-\x0A\x0Ccvss_version\x18\x0B \x01(\x0E2\x17.grafeas.v1.CVSSVersion\x12!\x0A\x07cvss_v2\x18\x0C \x01(\x0B2\x10.grafeas.v1.CVSS\x12I\x0A\x0Evex_assessment\x18\x0D \x01(\x0B21.grafeas.v1.VulnerabilityOccurrence.VexAssessment\x12\x15\x0A\x0Dextra_details\x18\x0E \x01(\x09\x12\x1E\x0A\x04risk\x18\x0F \x01(\x0B2\x10.grafeas.v1.Risk\x12!\x0A\x07cvss_v4\x18\x10 \x01(\x0B2\x10.grafeas.v1.CVSS\x1A\xE0\x02\x0A\x0CPackageIssue\x12\x18\x0A\x10affected_cpe_uri\x18\x01 \x01(\x09\x12\x18\x0A\x10affected_package\x18\x02 \x01(\x09\x12-\x0A\x10affected_version\x18\x03 \x01(\x0B2\x13.grafeas.v1.Version\x12\x15\x0A\x0Dfixed_cpe_uri\x18\x04 \x01(\x09\x12\x15\x0A\x0Dfixed_package\x18\x05 \x01(\x09\x12*\x0A\x0Dfixed_version\x18\x06 \x01(\x0B2\x13.grafeas.v1.Version\x12\x15\x0A\x0Dfix_available\x18\x07 \x01(\x08\x12\x14\x0A\x0Cpackage_type\x18\x08 \x01(\x09\x125\x0A\x12effective_severity\x18\x09 \x01(\x0E2\x14.grafeas.v1.SeverityB\x03\xE0A\x03\x12/\x0A\x0Dfile_location\x18\x0A \x03(\x0B2\x18.grafeas.v1.FileLocation\x1A\x84\x03\x0A\x0DVexAssessment\x12\x0F\x0A\x03cve\x18\x01 \x01(\x09B\x02\x18\x01\x12\x18\x0A\x10vulnerability_id\x18\x08 \x01(\x09\x12,\x0A\x0Crelated_uris\x18\x02 \x03(\x0B2\x16.grafeas.v1.RelatedUrl\x12\x11\x0A\x09note_name\x18\x03 \x01(\x09\x12G\x0A\x05state\x18\x04 \x01(\x0E28.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State\x12\x0F\x0A\x07impacts\x18\x05 \x03(\x09\x12T\x0A\x0Cremediations\x18\x06 \x03(\x0B2>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation\x12W\x0A\x0Djustification\x18\x07 \x01(\x0B2@.grafeas.v1.VulnerabilityAssessmentNote.Assessment.JustificationBQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" + , 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..945cbe0f570f --- /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..bd6c01322566 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AliasContext/Kind.php @@ -0,0 +1,69 @@ +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); + } +} + 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..982291bd74fb --- /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 string[] $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 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 string[] $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..589d9d200f73 --- /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..6905d1e98b65 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AttestationNote/Hint.php @@ -0,0 +1,77 @@ +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; + } + +} + 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..63639a2b8e36 --- /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 \Grafeas\V1\Signature[] $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 \Grafeas\V1\Jwt[] $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 RepeatedField<\Grafeas\V1\Signature> + */ + 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 \Grafeas\V1\Signature[] $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 RepeatedField<\Grafeas\V1\Jwt> + */ + 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 \Grafeas\V1\Jwt[] $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..ceeb782933c6 --- /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..4364e06b7e3e --- /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..c2a9ee998217 --- /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 \Grafeas\V1\Note[] $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 RepeatedField<\Grafeas\V1\Note> + */ + public function getNotes() + { + return $this->notes; + } + + /** + * The notes that were created. + * + * Generated from protobuf field repeated .grafeas.v1.Note notes = 1; + * @param \Grafeas\V1\Note[] $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..96ff243d615e --- /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 \Grafeas\V1\Occurrence[] $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 RepeatedField<\Grafeas\V1\Occurrence> + */ + 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 \Grafeas\V1\Occurrence[] $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..99b88fbf625f --- /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 \Grafeas\V1\Occurrence[] $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 RepeatedField<\Grafeas\V1\Occurrence> + */ + public function getOccurrences() + { + return $this->occurrences; + } + + /** + * The occurrences that were created. + * + * Generated from protobuf field repeated .grafeas.v1.Occurrence occurrences = 1; + * @param \Grafeas\V1\Occurrence[] $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..eff0bc9f35af --- /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..150fa6044114 --- /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..8722bdd3eb2d --- /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 \Grafeas\V1\Command[] $commands + * Commands requested by the build. + * @type \Grafeas\V1\Artifact[] $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 RepeatedField<\Grafeas\V1\Command> + */ + public function getCommands() + { + return $this->commands; + } + + /** + * Commands requested by the build. + * + * Generated from protobuf field repeated .grafeas.v1.Command commands = 3; + * @param \Grafeas\V1\Command[] $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 RepeatedField<\Grafeas\V1\Artifact> + */ + public function getBuiltArtifacts() + { + return $this->built_artifacts; + } + + /** + * Output of the build. + * + * Generated from protobuf field repeated .grafeas.v1.Artifact built_artifacts = 4; + * @param \Grafeas\V1\Artifact[] $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..76694e901992 --- /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..e5ab16156d43 --- /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..edd78fa2c52c --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS.php @@ -0,0 +1,702 @@ +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; + /** + * Attack Vector (AV). Defined in CVSS v2, v3, v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.AttackVector attack_vector = 4; + */ + protected $attack_vector = 0; + /** + * Attack Complexity (AC). Defined in CVSS v2, v3, v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.AttackComplexity attack_complexity = 5; + */ + protected $attack_complexity = 0; + /** + * Authentication (Au). Defined in CVSS v2. + * + * Generated from protobuf field .grafeas.v1.CVSS.Authentication authentication = 6; + */ + protected $authentication = 0; + /** + * Privileges Required (PR). Defined in CVSS v3, v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7; + */ + protected $privileges_required = 0; + /** + * User Interaction (UI). Defined in CVSS v3, v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.UserInteraction user_interaction = 8; + */ + protected $user_interaction = 0; + /** + * Scope (S). Defined in CVSS v3. + * + * Generated from protobuf field .grafeas.v1.CVSS.Scope scope = 9; + */ + protected $scope = 0; + /** + * Confidentiality Impact (C). Defined in CVSS v2, v3. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact confidentiality_impact = 10; + */ + protected $confidentiality_impact = 0; + /** + * Integrity Impact (I). Defined in CVSS v2, v3. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact integrity_impact = 11; + */ + protected $integrity_impact = 0; + /** + * Availability Impact (A). Defined in CVSS v2, v3. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact availability_impact = 12; + */ + protected $availability_impact = 0; + /** + * Attack Requirements (AT). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.AttackRequirements attack_requirements = 13; + */ + protected $attack_requirements = 0; + /** + * Vulnerable System Confidentiality Impact (VC). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact vulnerable_system_confidentiality_impact = 14; + */ + protected $vulnerable_system_confidentiality_impact = 0; + /** + * Vulnerable System Integrity Impact (VI). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact vulnerable_system_integrity_impact = 15; + */ + protected $vulnerable_system_integrity_impact = 0; + /** + * Vulnerable System Availability Impact (VA). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact vulnerable_system_availability_impact = 16; + */ + protected $vulnerable_system_availability_impact = 0; + /** + * Subsequent System Confidentiality Impact (SC). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact subsequent_system_confidentiality_impact = 17; + */ + protected $subsequent_system_confidentiality_impact = 0; + /** + * Subsequent System Integrity Impact (SI). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact subsequent_system_integrity_impact = 18; + */ + protected $subsequent_system_integrity_impact = 0; + /** + * Subsequent System Availability Impact (SA). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact subsequent_system_availability_impact = 19; + */ + protected $subsequent_system_availability_impact = 0; + /** + * Exploit Maturity (E). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.ExploitMaturity exploit_maturity = 20; + */ + protected $exploit_maturity = 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 + * Attack Vector (AV). Defined in CVSS v2, v3, v4. + * @type int $attack_complexity + * Attack Complexity (AC). Defined in CVSS v2, v3, v4. + * @type int $authentication + * Authentication (Au). Defined in CVSS v2. + * @type int $privileges_required + * Privileges Required (PR). Defined in CVSS v3, v4. + * @type int $user_interaction + * User Interaction (UI). Defined in CVSS v3, v4. + * @type int $scope + * Scope (S). Defined in CVSS v3. + * @type int $confidentiality_impact + * Confidentiality Impact (C). Defined in CVSS v2, v3. + * @type int $integrity_impact + * Integrity Impact (I). Defined in CVSS v2, v3. + * @type int $availability_impact + * Availability Impact (A). Defined in CVSS v2, v3. + * @type int $attack_requirements + * Attack Requirements (AT). Defined in CVSS v4. + * @type int $vulnerable_system_confidentiality_impact + * Vulnerable System Confidentiality Impact (VC). Defined in CVSS v4. + * @type int $vulnerable_system_integrity_impact + * Vulnerable System Integrity Impact (VI). Defined in CVSS v4. + * @type int $vulnerable_system_availability_impact + * Vulnerable System Availability Impact (VA). Defined in CVSS v4. + * @type int $subsequent_system_confidentiality_impact + * Subsequent System Confidentiality Impact (SC). Defined in CVSS v4. + * @type int $subsequent_system_integrity_impact + * Subsequent System Integrity Impact (SI). Defined in CVSS v4. + * @type int $subsequent_system_availability_impact + * Subsequent System Availability Impact (SA). Defined in CVSS v4. + * @type int $exploit_maturity + * Exploit Maturity (E). Defined in CVSS v4. + * } + */ + 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; + } + + /** + * Attack Vector (AV). Defined in CVSS v2, v3, v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.AttackVector attack_vector = 4; + * @return int + */ + public function getAttackVector() + { + return $this->attack_vector; + } + + /** + * Attack Vector (AV). Defined in CVSS v2, v3, v4. + * + * 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; + } + + /** + * Attack Complexity (AC). Defined in CVSS v2, v3, v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.AttackComplexity attack_complexity = 5; + * @return int + */ + public function getAttackComplexity() + { + return $this->attack_complexity; + } + + /** + * Attack Complexity (AC). Defined in CVSS v2, v3, v4. + * + * 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; + } + + /** + * Authentication (Au). Defined in CVSS v2. + * + * Generated from protobuf field .grafeas.v1.CVSS.Authentication authentication = 6; + * @return int + */ + public function getAuthentication() + { + return $this->authentication; + } + + /** + * Authentication (Au). Defined in CVSS v2. + * + * 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; + } + + /** + * Privileges Required (PR). Defined in CVSS v3, v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7; + * @return int + */ + public function getPrivilegesRequired() + { + return $this->privileges_required; + } + + /** + * Privileges Required (PR). Defined in CVSS v3, v4. + * + * 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; + } + + /** + * User Interaction (UI). Defined in CVSS v3, v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.UserInteraction user_interaction = 8; + * @return int + */ + public function getUserInteraction() + { + return $this->user_interaction; + } + + /** + * User Interaction (UI). Defined in CVSS v3, v4. + * + * 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; + } + + /** + * Scope (S). Defined in CVSS v3. + * + * Generated from protobuf field .grafeas.v1.CVSS.Scope scope = 9; + * @return int + */ + public function getScope() + { + return $this->scope; + } + + /** + * Scope (S). Defined in CVSS v3. + * + * 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; + } + + /** + * Confidentiality Impact (C). Defined in CVSS v2, v3. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact confidentiality_impact = 10; + * @return int + */ + public function getConfidentialityImpact() + { + return $this->confidentiality_impact; + } + + /** + * Confidentiality Impact (C). Defined in CVSS v2, v3. + * + * 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; + } + + /** + * Integrity Impact (I). Defined in CVSS v2, v3. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact integrity_impact = 11; + * @return int + */ + public function getIntegrityImpact() + { + return $this->integrity_impact; + } + + /** + * Integrity Impact (I). Defined in CVSS v2, v3. + * + * 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; + } + + /** + * Availability Impact (A). Defined in CVSS v2, v3. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact availability_impact = 12; + * @return int + */ + public function getAvailabilityImpact() + { + return $this->availability_impact; + } + + /** + * Availability Impact (A). Defined in CVSS v2, v3. + * + * 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; + } + + /** + * Attack Requirements (AT). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.AttackRequirements attack_requirements = 13; + * @return int + */ + public function getAttackRequirements() + { + return $this->attack_requirements; + } + + /** + * Attack Requirements (AT). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.AttackRequirements attack_requirements = 13; + * @param int $var + * @return $this + */ + public function setAttackRequirements($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\AttackRequirements::class); + $this->attack_requirements = $var; + + return $this; + } + + /** + * Vulnerable System Confidentiality Impact (VC). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact vulnerable_system_confidentiality_impact = 14; + * @return int + */ + public function getVulnerableSystemConfidentialityImpact() + { + return $this->vulnerable_system_confidentiality_impact; + } + + /** + * Vulnerable System Confidentiality Impact (VC). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact vulnerable_system_confidentiality_impact = 14; + * @param int $var + * @return $this + */ + public function setVulnerableSystemConfidentialityImpact($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\Impact::class); + $this->vulnerable_system_confidentiality_impact = $var; + + return $this; + } + + /** + * Vulnerable System Integrity Impact (VI). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact vulnerable_system_integrity_impact = 15; + * @return int + */ + public function getVulnerableSystemIntegrityImpact() + { + return $this->vulnerable_system_integrity_impact; + } + + /** + * Vulnerable System Integrity Impact (VI). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact vulnerable_system_integrity_impact = 15; + * @param int $var + * @return $this + */ + public function setVulnerableSystemIntegrityImpact($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\Impact::class); + $this->vulnerable_system_integrity_impact = $var; + + return $this; + } + + /** + * Vulnerable System Availability Impact (VA). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact vulnerable_system_availability_impact = 16; + * @return int + */ + public function getVulnerableSystemAvailabilityImpact() + { + return $this->vulnerable_system_availability_impact; + } + + /** + * Vulnerable System Availability Impact (VA). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact vulnerable_system_availability_impact = 16; + * @param int $var + * @return $this + */ + public function setVulnerableSystemAvailabilityImpact($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\Impact::class); + $this->vulnerable_system_availability_impact = $var; + + return $this; + } + + /** + * Subsequent System Confidentiality Impact (SC). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact subsequent_system_confidentiality_impact = 17; + * @return int + */ + public function getSubsequentSystemConfidentialityImpact() + { + return $this->subsequent_system_confidentiality_impact; + } + + /** + * Subsequent System Confidentiality Impact (SC). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact subsequent_system_confidentiality_impact = 17; + * @param int $var + * @return $this + */ + public function setSubsequentSystemConfidentialityImpact($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\Impact::class); + $this->subsequent_system_confidentiality_impact = $var; + + return $this; + } + + /** + * Subsequent System Integrity Impact (SI). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact subsequent_system_integrity_impact = 18; + * @return int + */ + public function getSubsequentSystemIntegrityImpact() + { + return $this->subsequent_system_integrity_impact; + } + + /** + * Subsequent System Integrity Impact (SI). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact subsequent_system_integrity_impact = 18; + * @param int $var + * @return $this + */ + public function setSubsequentSystemIntegrityImpact($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\Impact::class); + $this->subsequent_system_integrity_impact = $var; + + return $this; + } + + /** + * Subsequent System Availability Impact (SA). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact subsequent_system_availability_impact = 19; + * @return int + */ + public function getSubsequentSystemAvailabilityImpact() + { + return $this->subsequent_system_availability_impact; + } + + /** + * Subsequent System Availability Impact (SA). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact subsequent_system_availability_impact = 19; + * @param int $var + * @return $this + */ + public function setSubsequentSystemAvailabilityImpact($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\Impact::class); + $this->subsequent_system_availability_impact = $var; + + return $this; + } + + /** + * Exploit Maturity (E). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.ExploitMaturity exploit_maturity = 20; + * @return int + */ + public function getExploitMaturity() + { + return $this->exploit_maturity; + } + + /** + * Exploit Maturity (E). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.ExploitMaturity exploit_maturity = 20; + * @param int $var + * @return $this + */ + public function setExploitMaturity($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\ExploitMaturity::class); + $this->exploit_maturity = $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..2b1d4098457d --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/AttackComplexity.php @@ -0,0 +1,68 @@ +grafeas.v1.CVSS.AttackComplexity + */ +class AttackComplexity +{ + /** + * Unspecified. + * + * Generated from protobuf enum ATTACK_COMPLEXITY_UNSPECIFIED = 0; + */ + const ATTACK_COMPLEXITY_UNSPECIFIED = 0; + /** + * Low attack complexity (AC:L). Defined in CVSS v2, v3, v4. + * + * Generated from protobuf enum ATTACK_COMPLEXITY_LOW = 1; + */ + const ATTACK_COMPLEXITY_LOW = 1; + /** + * High attack complexity (AC:H). Defined in CVSS v2, v3, v4. + * + * Generated from protobuf enum ATTACK_COMPLEXITY_HIGH = 2; + */ + const ATTACK_COMPLEXITY_HIGH = 2; + /** + * Medium attack complexity (AC:M). Defined in CVSS v2. + * + * 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); + } +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/AttackRequirements.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/AttackRequirements.php new file mode 100644 index 000000000000..1b227df825ac --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/AttackRequirements.php @@ -0,0 +1,61 @@ +grafeas.v1.CVSS.AttackRequirements + */ +class AttackRequirements +{ + /** + * Unspecified. + * + * Generated from protobuf enum ATTACK_REQUIREMENTS_UNSPECIFIED = 0; + */ + const ATTACK_REQUIREMENTS_UNSPECIFIED = 0; + /** + * No attack requirements (AT:N). Defined in CVSS v4. + * + * Generated from protobuf enum ATTACK_REQUIREMENTS_NONE = 1; + */ + const ATTACK_REQUIREMENTS_NONE = 1; + /** + * Attack requirements: Present (AT:P). Defined in CVSS v4. + * + * Generated from protobuf enum ATTACK_REQUIREMENTS_PRESENT = 2; + */ + const ATTACK_REQUIREMENTS_PRESENT = 2; + + private static $valueToName = [ + self::ATTACK_REQUIREMENTS_UNSPECIFIED => 'ATTACK_REQUIREMENTS_UNSPECIFIED', + self::ATTACK_REQUIREMENTS_NONE => 'ATTACK_REQUIREMENTS_NONE', + self::ATTACK_REQUIREMENTS_PRESENT => 'ATTACK_REQUIREMENTS_PRESENT', + ]; + + 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/CVSS/AttackVector.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/AttackVector.php new file mode 100644 index 000000000000..4ab65c8844ea --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/AttackVector.php @@ -0,0 +1,75 @@ +grafeas.v1.CVSS.AttackVector + */ +class AttackVector +{ + /** + * Unspecified. + * + * Generated from protobuf enum ATTACK_VECTOR_UNSPECIFIED = 0; + */ + const ATTACK_VECTOR_UNSPECIFIED = 0; + /** + * Attack Vector: Network (AV:N). Defined in CVSS v2, v3, v4. + * + * Generated from protobuf enum ATTACK_VECTOR_NETWORK = 1; + */ + const ATTACK_VECTOR_NETWORK = 1; + /** + * Attack Vector: Adjacent (AV:A). Defined in CVSS v2, v3, v4. + * + * Generated from protobuf enum ATTACK_VECTOR_ADJACENT = 2; + */ + const ATTACK_VECTOR_ADJACENT = 2; + /** + * Attack Vector: Local (AV:L). Defined in CVSS v2, v3, v4. + * + * Generated from protobuf enum ATTACK_VECTOR_LOCAL = 3; + */ + const ATTACK_VECTOR_LOCAL = 3; + /** + * Attack Vector: Physical (AV:P). Defined in CVSS v3, v4. + * + * 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); + } +} + 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..f101e48277d5 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/Authentication.php @@ -0,0 +1,68 @@ +grafeas.v1.CVSS.Authentication + */ +class Authentication +{ + /** + * Unspecified. + * + * Generated from protobuf enum AUTHENTICATION_UNSPECIFIED = 0; + */ + const AUTHENTICATION_UNSPECIFIED = 0; + /** + * Multiple authentication required (Au:M). Defined in CVSS v2. + * + * Generated from protobuf enum AUTHENTICATION_MULTIPLE = 1; + */ + const AUTHENTICATION_MULTIPLE = 1; + /** + * Single authentication required (Au:S). Defined in CVSS v2. + * + * Generated from protobuf enum AUTHENTICATION_SINGLE = 2; + */ + const AUTHENTICATION_SINGLE = 2; + /** + * No authentication required (Au:N). Defined in CVSS v2. + * + * 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); + } +} + diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/ExploitMaturity.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/ExploitMaturity.php new file mode 100644 index 000000000000..a0d70461e4fd --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/ExploitMaturity.php @@ -0,0 +1,75 @@ +grafeas.v1.CVSS.ExploitMaturity + */ +class ExploitMaturity +{ + /** + * Unspecified. + * + * Generated from protobuf enum EXPLOIT_MATURITY_UNSPECIFIED = 0; + */ + const EXPLOIT_MATURITY_UNSPECIFIED = 0; + /** + * Exploit maturity: Not defined (E:X). Defined in CVSS v4. + * + * Generated from protobuf enum EXPLOIT_MATURITY_NOT_DEFINED = 1; + */ + const EXPLOIT_MATURITY_NOT_DEFINED = 1; + /** + * Exploit maturity: Attacked (E:A). Defined in CVSS v4. + * + * Generated from protobuf enum EXPLOIT_MATURITY_ATTACKED = 2; + */ + const EXPLOIT_MATURITY_ATTACKED = 2; + /** + * Exploit maturity: Proof-of-concept (E:P). Defined in CVSS v4. + * + * Generated from protobuf enum EXPLOIT_MATURITY_POC = 3; + */ + const EXPLOIT_MATURITY_POC = 3; + /** + * Exploit maturity: Unreported (E:U). Defined in CVSS v4. + * + * Generated from protobuf enum EXPLOIT_MATURITY_UNREPORTED = 4; + */ + const EXPLOIT_MATURITY_UNREPORTED = 4; + + private static $valueToName = [ + self::EXPLOIT_MATURITY_UNSPECIFIED => 'EXPLOIT_MATURITY_UNSPECIFIED', + self::EXPLOIT_MATURITY_NOT_DEFINED => 'EXPLOIT_MATURITY_NOT_DEFINED', + self::EXPLOIT_MATURITY_ATTACKED => 'EXPLOIT_MATURITY_ATTACKED', + self::EXPLOIT_MATURITY_POC => 'EXPLOIT_MATURITY_POC', + self::EXPLOIT_MATURITY_UNREPORTED => 'EXPLOIT_MATURITY_UNREPORTED', + ]; + + 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/CVSS/Impact.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/Impact.php new file mode 100644 index 000000000000..2c1b8d8dbf3c --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/Impact.php @@ -0,0 +1,82 @@ +grafeas.v1.CVSS.Impact + */ +class Impact +{ + /** + * Unspecified. + * + * Generated from protobuf enum IMPACT_UNSPECIFIED = 0; + */ + const IMPACT_UNSPECIFIED = 0; + /** + * High impact (H). Defined in CVSS v3, v4. + * + * Generated from protobuf enum IMPACT_HIGH = 1; + */ + const IMPACT_HIGH = 1; + /** + * Low impact (L). Defined in CVSS v3, v4. + * + * Generated from protobuf enum IMPACT_LOW = 2; + */ + const IMPACT_LOW = 2; + /** + * No impact (N). Defined in CVSS v2, v3, v4. + * + * Generated from protobuf enum IMPACT_NONE = 3; + */ + const IMPACT_NONE = 3; + /** + * Partial impact (P). Defined in CVSS v2. + * + * Generated from protobuf enum IMPACT_PARTIAL = 4; + */ + const IMPACT_PARTIAL = 4; + /** + * Complete impact (C). Defined in CVSS v2. + * + * 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); + } +} + 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..3e40a774b3ea --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/PrivilegesRequired.php @@ -0,0 +1,68 @@ +grafeas.v1.CVSS.PrivilegesRequired + */ +class PrivilegesRequired +{ + /** + * Unspecified. + * + * Generated from protobuf enum PRIVILEGES_REQUIRED_UNSPECIFIED = 0; + */ + const PRIVILEGES_REQUIRED_UNSPECIFIED = 0; + /** + * No privileges required (PR:N). Defined in CVSS v3, v4. + * + * Generated from protobuf enum PRIVILEGES_REQUIRED_NONE = 1; + */ + const PRIVILEGES_REQUIRED_NONE = 1; + /** + * Low privileges required (PR:L). Defined in CVSS v3, v4. + * + * Generated from protobuf enum PRIVILEGES_REQUIRED_LOW = 2; + */ + const PRIVILEGES_REQUIRED_LOW = 2; + /** + * High privileges required (PR:H). Defined in CVSS v3, v4. + * + * 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); + } +} + 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..2a839cf6ea43 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/Scope.php @@ -0,0 +1,61 @@ +grafeas.v1.CVSS.Scope + */ +class Scope +{ + /** + * Unspecified. + * + * Generated from protobuf enum SCOPE_UNSPECIFIED = 0; + */ + const SCOPE_UNSPECIFIED = 0; + /** + * Scope: Unchanged (S:U). Defined in CVSS v3. + * + * Generated from protobuf enum SCOPE_UNCHANGED = 1; + */ + const SCOPE_UNCHANGED = 1; + /** + * Scope: Changed (S:C). Defined in CVSS v3. + * + * 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); + } +} + 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..929a34509dea --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/UserInteraction.php @@ -0,0 +1,75 @@ +grafeas.v1.CVSS.UserInteraction + */ +class UserInteraction +{ + /** + * Unspecified. + * + * Generated from protobuf enum USER_INTERACTION_UNSPECIFIED = 0; + */ + const USER_INTERACTION_UNSPECIFIED = 0; + /** + * No user interaction required (UI:N). Defined in CVSS v3, v4. + * + * Generated from protobuf enum USER_INTERACTION_NONE = 1; + */ + const USER_INTERACTION_NONE = 1; + /** + * User interaction required (UI:R). Defined in CVSS v3. + * + * Generated from protobuf enum USER_INTERACTION_REQUIRED = 2; + */ + const USER_INTERACTION_REQUIRED = 2; + /** + * Passive user interaction required (UI:P). Defined in CVSS v4. + * + * Generated from protobuf enum USER_INTERACTION_PASSIVE = 3; + */ + const USER_INTERACTION_PASSIVE = 3; + /** + * Active user interaction required (UI:A). Defined in CVSS v4. + * + * Generated from protobuf enum USER_INTERACTION_ACTIVE = 4; + */ + const USER_INTERACTION_ACTIVE = 4; + + private static $valueToName = [ + self::USER_INTERACTION_UNSPECIFIED => 'USER_INTERACTION_UNSPECIFIED', + self::USER_INTERACTION_NONE => 'USER_INTERACTION_NONE', + self::USER_INTERACTION_REQUIRED => 'USER_INTERACTION_REQUIRED', + self::USER_INTERACTION_PASSIVE => 'USER_INTERACTION_PASSIVE', + self::USER_INTERACTION_ACTIVE => 'USER_INTERACTION_ACTIVE', + ]; + + 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/CVSSVersion.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSVersion.php new file mode 100644 index 000000000000..2742277cdc44 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSVersion.php @@ -0,0 +1,68 @@ +grafeas.v1.CVSSVersion + */ +class CVSSVersion +{ + /** + * Unspecified. + * + * Generated from protobuf enum CVSS_VERSION_UNSPECIFIED = 0; + */ + const CVSS_VERSION_UNSPECIFIED = 0; + /** + * CVSS v2. + * + * Generated from protobuf enum CVSS_VERSION_2 = 1; + */ + const CVSS_VERSION_2 = 1; + /** + * CVSS v3. + * + * Generated from protobuf enum CVSS_VERSION_3 = 2; + */ + const CVSS_VERSION_3 = 2; + /** + * CVSS v4. + * + * Generated from protobuf enum CVSS_VERSION_4 = 3; + */ + const CVSS_VERSION_4 = 3; + + private static $valueToName = [ + self::CVSS_VERSION_UNSPECIFIED => 'CVSS_VERSION_UNSPECIFIED', + self::CVSS_VERSION_2 => 'CVSS_VERSION_2', + self::CVSS_VERSION_3 => 'CVSS_VERSION_3', + self::CVSS_VERSION_4 => 'CVSS_VERSION_4', + ]; + + 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..343460e357fc --- /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..7a026343b407 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/AttackComplexity.php @@ -0,0 +1,53 @@ +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); + } +} + 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..682c74c71dd5 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/AttackVector.php @@ -0,0 +1,63 @@ +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); + } +} + 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..41922cb88a95 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/Impact.php @@ -0,0 +1,58 @@ +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); + } +} + 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..1f68ac35c8ce --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/PrivilegesRequired.php @@ -0,0 +1,58 @@ +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); + } +} + 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..5e2dafd1bb11 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/Scope.php @@ -0,0 +1,53 @@ +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); + } +} + 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..8fca75002260 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/UserInteraction.php @@ -0,0 +1,53 @@ +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); + } +} + 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..737015536da5 --- /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..464bdd3139bc --- /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 string[] $env + * Environment variables set before running this command. + * @type string[] $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 string[] $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 RepeatedField + */ + public function getEnv() + { + return $this->env; + } + + /** + * Environment variables set before running this command. + * + * Generated from protobuf field repeated string env = 2; + * @param string[] $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 RepeatedField + */ + public function getArgs() + { + return $this->args; + } + + /** + * Command-line arguments used when executing this command. + * + * Generated from protobuf field repeated string args = 3; + * @param string[] $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 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 string[] $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..2fad11887552 --- /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..d88de3c807a3 --- /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 \Grafeas\V1\ComplianceVersion[] $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 RepeatedField<\Grafeas\V1\ComplianceVersion> + */ + 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 \Grafeas\V1\ComplianceVersion[] $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..9ff55a077a5a --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceNote/CisBenchmark.php @@ -0,0 +1,87 @@ +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; + } + +} + 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..a1b782ba7404 --- /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 \Grafeas\V1\NonCompliantFile[] $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 RepeatedField<\Grafeas\V1\NonCompliantFile> + */ + public function getNonCompliantFiles() + { + return $this->non_compliant_files; + } + + /** + * Generated from protobuf field repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2; + * @param \Grafeas\V1\NonCompliantFile[] $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..89bd259007f1 --- /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..39c091325ade --- /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..275b61bc7657 --- /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..d909a0ba6089 --- /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..748f48eff564 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DSSEAttestationNote/DSSEHint.php @@ -0,0 +1,77 @@ +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; + } + +} + 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..e5875ab26a7a --- /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..bb1b1bace8c5 --- /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..7bcf02943729 --- /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..4f2e8ff65fac --- /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 string[] $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 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 string[] $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..d04b86b53826 --- /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 string[] $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 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 string[] $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..4cc9bddfa242 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeploymentOccurrence/Platform.php @@ -0,0 +1,68 @@ +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); + } +} + 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..5b257b36100b --- /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..0f1fd43fd56e --- /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..2a2a202a6f1e --- /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 \Google\Rpc\Status[] $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 \Grafeas\V1\DiscoveryOccurrence\File[] $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 RepeatedField<\Google\Rpc\Status> + */ + 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 \Google\Rpc\Status[] $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 RepeatedField<\Grafeas\V1\DiscoveryOccurrence\File> + */ + 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 \Grafeas\V1\DiscoveryOccurrence\File[] $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..bbb497c199b6 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/AnalysisCompleted.php @@ -0,0 +1,61 @@ +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 string[] $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 RepeatedField + */ + public function getAnalysisType() + { + return $this->analysis_type; + } + + /** + * Generated from protobuf field repeated string analysis_type = 1; + * @param string[] $var + * @return $this + */ + public function setAnalysisType($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->analysis_type = $arr; + + return $this; + } + +} + 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..3708071a7422 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/AnalysisStatus.php @@ -0,0 +1,91 @@ +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); + } +} + 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..7311f8992399 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/ContinuousAnalysis.php @@ -0,0 +1,61 @@ +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); + } +} + 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..e059a4400123 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/File.php @@ -0,0 +1,85 @@ +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; + } + +} + 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..ff4ad0e17529 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/SBOMStatus.php @@ -0,0 +1,105 @@ +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; + } + +} + 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..75c3f3aa25bc --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/SBOMStatus/SBOMState.php @@ -0,0 +1,61 @@ +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); + } +} + 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..a4dd954b4cf3 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/VulnerabilityAttestation.php @@ -0,0 +1,145 @@ +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; + } + +} + 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..dda5724b0c2f --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/VulnerabilityAttestation/VulnerabilityAttestationState.php @@ -0,0 +1,61 @@ +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); + } +} + 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..7968be558b57 --- /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..5b7e2a255d9e --- /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 \Grafeas\V1\EnvelopeSignature[] $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 RepeatedField<\Grafeas\V1\EnvelopeSignature> + */ + public function getSignatures() + { + return $this->signatures; + } + + /** + * Generated from protobuf field repeated .grafeas.v1.EnvelopeSignature signatures = 3; + * @param \Grafeas\V1\EnvelopeSignature[] $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..32a23542e101 --- /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..91303ea09351 --- /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..9d1afa6cc3e4 --- /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 \Grafeas\V1\Hash[] $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 RepeatedField<\Grafeas\V1\Hash> + */ + public function getFileHash() + { + return $this->file_hash; + } + + /** + * Required. Collection of file hashes. + * + * Generated from protobuf field repeated .grafeas.v1.Hash file_hash = 1; + * @param \Grafeas\V1\Hash[] $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..91aeada12f8b --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/FileLocation.php @@ -0,0 +1,157 @@ +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; + /** + * Line number in the file where the package was found. + * Optional field that only applies to source repository scanning. + * + * Generated from protobuf field int32 line_number = 3; + */ + protected $line_number = 0; + + /** + * 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). + * @type int $line_number + * Line number in the file where the package was found. + * Optional field that only applies to source repository scanning. + * } + */ + 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; + } + + /** + * Line number in the file where the package was found. + * Optional field that only applies to source repository scanning. + * + * Generated from protobuf field int32 line_number = 3; + * @return int + */ + public function getLineNumber() + { + return $this->line_number; + } + + /** + * Line number in the file where the package was found. + * Optional field that only applies to source repository scanning. + * + * Generated from protobuf field int32 line_number = 3; + * @param int $var + * @return $this + */ + public function setLineNumber($var) + { + GPBUtil::checkInt32($var); + $this->line_number = $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..52438cab5cc0 --- /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 string[] $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 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 string[] $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..c51ee3caceab --- /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..8c205c7e2bbf --- /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..babb8014fac8 --- /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..cb59741a0e07 --- /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..a8908da8ffb0 --- /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..51f97d5fb758 --- /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..ff9c8a36ff47 --- /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..971d02418e86 --- /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 \Grafeas\V1\Layer[] $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 RepeatedField<\Grafeas\V1\Layer> + */ + 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 \Grafeas\V1\Layer[] $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..e5ee043ea943 --- /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 string[] $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 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 string[] $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..f82d594d353c --- /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 \Grafeas\V1\Subject[] $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 RepeatedField<\Grafeas\V1\Subject> + */ + public function getSubject() + { + return $this->subject; + } + + /** + * Generated from protobuf field repeated .grafeas.v1.Subject subject = 2; + * @param \Grafeas\V1\Subject[] $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..cbe97fcf307f --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/BuildDefinition.php @@ -0,0 +1,159 @@ +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 \Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor[] $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 RepeatedField<\Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor> + */ + public function getResolvedDependencies() + { + return $this->resolved_dependencies; + } + + /** + * Generated from protobuf field repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor resolved_dependencies = 4; + * @param \Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor[] $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; + } + +} + 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..fd7821a3054d --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/BuildMetadata.php @@ -0,0 +1,132 @@ +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; + } + +} + 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..a69a1ad7c7cb --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/ProvenanceBuilder.php @@ -0,0 +1,112 @@ +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 \Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor[] $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 RepeatedField<\Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor> + */ + public function getBuilderDependencies() + { + return $this->builder_dependencies; + } + + /** + * Generated from protobuf field repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor builder_dependencies = 3; + * @param \Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor[] $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; + } + +} + 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..1a6dcc2c1fe0 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/ResourceDescriptor.php @@ -0,0 +1,220 @@ +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; + } + +} + 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..394d8c8012f3 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/RunDetails.php @@ -0,0 +1,132 @@ +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 \Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor[] $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 RepeatedField<\Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor> + */ + public function getByproducts() + { + return $this->byproducts; + } + + /** + * Generated from protobuf field repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor byproducts = 3; + * @param \Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor[] $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; + } + +} + 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..1014880fe0d6 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/SlsaProvenanceV1.php @@ -0,0 +1,109 @@ +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; + } + +} + 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..b1b543b7b028 --- /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 \Grafeas\V1\Subject[] $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 RepeatedField<\Grafeas\V1\Subject> + */ + public function getSubject() + { + return $this->subject; + } + + /** + * Generated from protobuf field repeated .grafeas.v1.Subject subject = 2; + * @param \Grafeas\V1\Subject[] $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..3a930b5cde3b --- /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..1d8871570cb7 --- /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..649acb744e7f --- /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 \Grafeas\V1\BaseImage[] $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 RepeatedField<\Grafeas\V1\BaseImage> + */ + 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 \Grafeas\V1\BaseImage[] $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..a017e8935df4 --- /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..ca2d23f353cd --- /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..fafa2f85908e --- /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 \Grafeas\V1\Occurrence[] $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 RepeatedField<\Grafeas\V1\Occurrence> + */ + public function getOccurrences() + { + return $this->occurrences; + } + + /** + * The occurrences attached to the specified note. + * + * Generated from protobuf field repeated .grafeas.v1.Occurrence occurrences = 1; + * @param \Grafeas\V1\Occurrence[] $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..2340b857e6c1 --- /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..7147c8e71721 --- /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 \Grafeas\V1\Note[] $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 string[] $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 RepeatedField<\Grafeas\V1\Note> + */ + public function getNotes() + { + return $this->notes; + } + + /** + * The notes requested. + * + * Generated from protobuf field repeated .grafeas.v1.Note notes = 1; + * @param \Grafeas\V1\Note[] $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 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 string[] $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..0c5e8fcd4f20 --- /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..0fd028e70a7c --- /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 \Grafeas\V1\Occurrence[] $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 string[] $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 RepeatedField<\Grafeas\V1\Occurrence> + */ + public function getOccurrences() + { + return $this->occurrences; + } + + /** + * The occurrences requested. + * + * Generated from protobuf field repeated .grafeas.v1.Occurrence occurrences = 1; + * @param \Grafeas\V1\Occurrence[] $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 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 string[] $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..d3c52d78b375 --- /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..0f2f5b73d46d --- /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..5a6e54939241 --- /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..fd403bca269e --- /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 \Grafeas\V1\RelatedUrl[] $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 string[] $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 RepeatedField<\Grafeas\V1\RelatedUrl> + */ + public function getRelatedUrl() + { + return $this->related_url; + } + + /** + * URLs associated with this note. + * + * Generated from protobuf field repeated .grafeas.v1.RelatedUrl related_url = 5; + * @param \Grafeas\V1\RelatedUrl[] $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 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 string[] $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..426e03ad2768 --- /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..357cd458a4b0 --- /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 \Grafeas\V1\Distribution[] $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 \Grafeas\V1\Digest[] $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 RepeatedField<\Grafeas\V1\Distribution> + */ + 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 \Grafeas\V1\Distribution[] $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 RepeatedField<\Grafeas\V1\Digest> + */ + 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 \Grafeas\V1\Digest[] $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..9528c6efc26e --- /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 \Grafeas\V1\Location[] $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 RepeatedField<\Grafeas\V1\Location> + */ + 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 \Grafeas\V1\Location[] $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..d6f60eb8e461 --- /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..7febcd531924 --- /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 \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. Since the arguments + * field can greatly vary in structure, depending on the builder and recipe + * type, this is of form "Any". + * @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. 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 RepeatedField<\Google\Protobuf\Any> + */ + 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 \Google\Protobuf\Any[] $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 RepeatedField<\Google\Protobuf\Any> + */ + 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 \Google\Protobuf\Any[] $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..ad2eb7bc9117 --- /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..f84c3d607dfc --- /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..1bb73b3e47f1 --- /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..e069099eff4a --- /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..f48701a33eab --- /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 \Grafeas\V1\EnvelopeSignature[] $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 RepeatedField<\Grafeas\V1\EnvelopeSignature> + */ + public function getSignatures() + { + return $this->signatures; + } + + /** + * The signatures over the payload. + * + * Generated from protobuf field repeated .grafeas.v1.EnvelopeSignature signatures = 3; + * @param \Grafeas\V1\EnvelopeSignature[] $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..5399035b84e6 --- /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 \Grafeas\V1\Subject[] $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 RepeatedField<\Grafeas\V1\Subject> + */ + 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 \Grafeas\V1\Subject[] $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..e3c5ec2a50cb --- /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..e42536eb3b43 --- /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..8699694aeade --- /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..eef6c66061ce --- /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 \Grafeas\V1\SecretLocation[] $locations + * Locations where the secret is detected. + * @type \Grafeas\V1\SecretStatus[] $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 RepeatedField<\Grafeas\V1\SecretLocation> + */ + 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 \Grafeas\V1\SecretLocation[] $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 RepeatedField<\Grafeas\V1\SecretStatus> + */ + 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 \Grafeas\V1\SecretStatus[] $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..7fd48695a060 --- /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..88dab1ca2e6e --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretStatus/Status.php @@ -0,0 +1,68 @@ +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); + } +} + 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..66bc0496c7ec --- /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..3fc3e8da355b --- /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 \Grafeas\V1\SlsaProvenance\Material[] $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 RepeatedField<\Grafeas\V1\SlsaProvenance\Material> + */ + 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 \Grafeas\V1\SlsaProvenance\Material[] $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..4bca3f3393fa --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/Material.php @@ -0,0 +1,85 @@ +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; + } + +} + 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..08708ccefbca --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaBuilder.php @@ -0,0 +1,58 @@ +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; + } + +} + 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..b1472ae09bf5 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaCompleteness.php @@ -0,0 +1,148 @@ +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; + } + +} + 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..f2c5f122d2bc --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaMetadata.php @@ -0,0 +1,249 @@ +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; + } + +} + 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..4c20bcd6d3ad --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaRecipe.php @@ -0,0 +1,293 @@ +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; + } + +} + 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..0b91ba669ed7 --- /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 \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaMaterial[] $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 RepeatedField<\Grafeas\V1\SlsaProvenanceZeroTwo\SlsaMaterial> + */ + public function getMaterials() + { + return $this->materials; + } + + /** + * Generated from protobuf field repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6; + * @param \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaMaterial[] $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..fe024f7c11d0 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaBuilder.php @@ -0,0 +1,61 @@ +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; + } + +} + 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..d643e1b77b80 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaCompleteness.php @@ -0,0 +1,115 @@ +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; + } + +} + 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..25c90d5884e9 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaConfigSource.php @@ -0,0 +1,115 @@ +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; + } + +} + 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..b5f59a3cc697 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaInvocation.php @@ -0,0 +1,144 @@ +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; + } + +} + 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..bc35b22ef115 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaMaterial.php @@ -0,0 +1,88 @@ +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; + } + +} + 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..13e8b597b2af --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaMetadata.php @@ -0,0 +1,198 @@ +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; + } + +} + 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..90999c75ac70 --- /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 \Grafeas\V1\SourceContext[] $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 RepeatedField<\Grafeas\V1\SourceContext> + */ + 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 \Grafeas\V1\SourceContext[] $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..c23eb3cf08ef --- /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..c46a8424a06a --- /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..c0fede3655ca --- /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..131aebe7f974 --- /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..36d6234a2d7d --- /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 string[] $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 RepeatedField + */ + public function getCve() + { + return $this->cve; + } + + /** + * The cve tied to this Upgrade. + * + * Generated from protobuf field repeated string cve = 4; + * @param string[] $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..f237daa6f70c --- /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 \Grafeas\V1\UpgradeDistribution[] $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 RepeatedField<\Grafeas\V1\UpgradeDistribution> + */ + 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 \Grafeas\V1\UpgradeDistribution[] $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..9e07aeb69095 --- /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..8c7c6cc6619b --- /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..1dc694ba000d --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Version/VersionKind.php @@ -0,0 +1,68 @@ +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); + } +} + 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..2debdc115b14 --- /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..cc1e040a2c41 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment.php @@ -0,0 +1,389 @@ +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 \Grafeas\V1\RelatedUrl[] $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 string[] $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 \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Remediation[] $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 RepeatedField<\Grafeas\V1\RelatedUrl> + */ + 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 \Grafeas\V1\RelatedUrl[] $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 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 string[] $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 RepeatedField<\Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Remediation> + */ + 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 \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Remediation[] $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; + } + +} + 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..631d830979e6 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Justification.php @@ -0,0 +1,102 @@ +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; + } + +} + 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..8a1a57d80a81 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Justification/JustificationType.php @@ -0,0 +1,91 @@ +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); + } +} + 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..c3a4f108cbdd --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Remediation.php @@ -0,0 +1,145 @@ +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; + } + +} + 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..aba39fcf282a --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Remediation/RemediationType.php @@ -0,0 +1,82 @@ +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); + } +} + 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..d79e0db71de2 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/State.php @@ -0,0 +1,76 @@ +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); + } +} + 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..a75fef901744 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Product.php @@ -0,0 +1,157 @@ +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"); + } + +} + 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..71457ae23302 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Publisher.php @@ -0,0 +1,162 @@ +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; + } + +} + 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..86c34eb3ab8a --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote.php @@ -0,0 +1,447 @@ +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; + /** + * The full description of the v4 CVSS for this vulnerability. + * + * Generated from protobuf field .grafeas.v1.CVSS cvss_v4 = 10; + */ + protected $cvss_v4 = 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 \Grafeas\V1\VulnerabilityNote\Detail[] $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 \Grafeas\V1\VulnerabilityNote\WindowsDetail[] $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. + * @type \Grafeas\V1\CVSS $cvss_v4 + * The full description of the v4 CVSS for this vulnerability. + * } + */ + 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 RepeatedField<\Grafeas\V1\VulnerabilityNote\Detail> + */ + 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 \Grafeas\V1\VulnerabilityNote\Detail[] $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 RepeatedField<\Grafeas\V1\VulnerabilityNote\WindowsDetail> + */ + 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 \Grafeas\V1\VulnerabilityNote\WindowsDetail[] $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; + } + + /** + * The full description of the v4 CVSS for this vulnerability. + * + * Generated from protobuf field .grafeas.v1.CVSS cvss_v4 = 10; + * @return \Grafeas\V1\CVSS|null + */ + public function getCvssV4() + { + return $this->cvss_v4; + } + + public function hasCvssV4() + { + return isset($this->cvss_v4); + } + + public function clearCvssV4() + { + unset($this->cvss_v4); + } + + /** + * The full description of the v4 CVSS for this vulnerability. + * + * Generated from protobuf field .grafeas.v1.CVSS cvss_v4 = 10; + * @param \Grafeas\V1\CVSS $var + * @return $this + */ + public function setCvssV4($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\CVSS::class); + $this->cvss_v4 = $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..cc8020c5cd01 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote/Detail.php @@ -0,0 +1,642 @@ +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; + } + +} + 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..13a94c23156a --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote/WindowsDetail.php @@ -0,0 +1,183 @@ +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 \Grafeas\V1\VulnerabilityNote\WindowsDetail\KnowledgeBase[] $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 RepeatedField<\Grafeas\V1\VulnerabilityNote\WindowsDetail\KnowledgeBase> + */ + 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 \Grafeas\V1\VulnerabilityNote\WindowsDetail\KnowledgeBase[] $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; + } + +} + 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..ae2fb417bf78 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote/WindowsDetail/KnowledgeBase.php @@ -0,0 +1,103 @@ +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; + } + +} + 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..bb29924e3d5b --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityOccurrence.php @@ -0,0 +1,672 @@ +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; + /** + * The cvss v4 score for the vulnerability. + * + * Generated from protobuf field .grafeas.v1.CVSS cvss_v4 = 16; + */ + protected $cvss_v4 = 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 \Grafeas\V1\VulnerabilityOccurrence\PackageIssue[] $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 \Grafeas\V1\RelatedUrl[] $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. + * @type \Grafeas\V1\CVSS $cvss_v4 + * The cvss v4 score for the vulnerability. + * } + */ + 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 RepeatedField<\Grafeas\V1\VulnerabilityOccurrence\PackageIssue> + */ + 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 \Grafeas\V1\VulnerabilityOccurrence\PackageIssue[] $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 RepeatedField<\Grafeas\V1\RelatedUrl> + */ + 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 \Grafeas\V1\RelatedUrl[] $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; + } + + /** + * The cvss v4 score for the vulnerability. + * + * Generated from protobuf field .grafeas.v1.CVSS cvss_v4 = 16; + * @return \Grafeas\V1\CVSS|null + */ + public function getCvssV4() + { + return $this->cvss_v4; + } + + public function hasCvssV4() + { + return isset($this->cvss_v4); + } + + public function clearCvssV4() + { + unset($this->cvss_v4); + } + + /** + * The cvss v4 score for the vulnerability. + * + * Generated from protobuf field .grafeas.v1.CVSS cvss_v4 = 16; + * @param \Grafeas\V1\CVSS $var + * @return $this + */ + public function setCvssV4($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\CVSS::class); + $this->cvss_v4 = $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..5544b1125237 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityOccurrence/PackageIssue.php @@ -0,0 +1,426 @@ +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 \Grafeas\V1\FileLocation[] $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 RepeatedField<\Grafeas\V1\FileLocation> + */ + 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 \Grafeas\V1\FileLocation[] $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; + } + +} + 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..15ec504814f2 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityOccurrence/VexAssessment.php @@ -0,0 +1,363 @@ +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 \Grafeas\V1\RelatedUrl[] $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 string[] $impacts + * Contains information about the impact of this vulnerability, + * this will change with time. + * @type \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Remediation[] $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 RepeatedField<\Grafeas\V1\RelatedUrl> + */ + 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 \Grafeas\V1\RelatedUrl[] $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 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 string[] $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 RepeatedField<\Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Remediation> + */ + 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 \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Remediation[] $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; + } + +} + 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..bfad4c7519b0 --- /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 \Grafeas\V1\WindowsUpdate\Category[] $categories + * The list of categories to which the update belongs. + * @type string[] $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 RepeatedField<\Grafeas\V1\WindowsUpdate\Category> + */ + 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 \Grafeas\V1\WindowsUpdate\Category[] $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 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 string[] $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..3489bad42bf6 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/WindowsUpdate/Category.php @@ -0,0 +1,101 @@ +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; + } + +} + 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..247ec8f020d4 --- /dev/null +++ b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/WindowsUpdate/Identity.php @@ -0,0 +1,101 @@ +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; + } + +} + 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 a10de85afa09f216b96574a90109a448de895be0 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 24 Jul 2026 19:05:12 +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/Cvss.php | 2 +- Grafeas/metadata/V1/Vulnerability.php | 2 +- Grafeas/src/V1/CVSS.php | 344 ++++- Grafeas/src/V1/CVSS/AttackComplexity.php | 10 + .../src}/V1/CVSS/AttackRequirements.php | 0 Grafeas/src/V1/CVSS/AttackVector.php | 12 + Grafeas/src/V1/CVSS/Authentication.php | 10 + .../src}/V1/CVSS/ExploitMaturity.php | 0 Grafeas/src/V1/CVSS/Impact.php | 14 + Grafeas/src/V1/CVSS/PrivilegesRequired.php | 10 + Grafeas/src/V1/CVSS/Scope.php | 8 + Grafeas/src/V1/CVSS/UserInteraction.php | 22 + Grafeas/src/V1/CVSSVersion.php | 13 + Grafeas/src/V1/VulnerabilityNote.php | 44 + Grafeas/src/V1/VulnerabilityOccurrence.php | 44 + .../GPBMetadata/Grafeas/V1/Attestation.php | 25 - .../src/GPBMetadata/Grafeas/V1/Build.php | 27 - .../src/GPBMetadata/Grafeas/V1/Common.php | 24 - .../src/GPBMetadata/Grafeas/V1/Compliance.php | 25 - .../proto/src/GPBMetadata/Grafeas/V1/Cvss.php | 24 - .../src/GPBMetadata/Grafeas/V1/Deployment.php | 25 - .../src/GPBMetadata/Grafeas/V1/Discovery.php | 28 - .../Grafeas/V1/DsseAttestation.php | 26 - .../src/GPBMetadata/Grafeas/V1/Grafeas.php | 45 - .../src/GPBMetadata/Grafeas/V1/Image.php | 24 - .../Grafeas/V1/IntotoProvenance.php | 26 - .../Grafeas/V1/IntotoStatement.php | 29 - .../src/GPBMetadata/Grafeas/V1/Package.php | 26 - .../src/GPBMetadata/Grafeas/V1/Provenance.php | 25 - .../proto/src/GPBMetadata/Grafeas/V1/Risk.php | 24 - .../proto/src/GPBMetadata/Grafeas/V1/Sbom.php | 26 - .../src/GPBMetadata/Grafeas/V1/Secret.php | 28 - .../src/GPBMetadata/Grafeas/V1/Severity.php | 24 - .../GPBMetadata/Grafeas/V1/SlsaProvenance.php | 26 - .../Grafeas/V1/SlsaProvenanceZeroTwo.php | 26 - .../src/GPBMetadata/Grafeas/V1/Upgrade.php | 26 - .../proto/src/GPBMetadata/Grafeas/V1/Vex.php | 25 - .../GPBMetadata/Grafeas/V1/Vulnerability.php | 32 - .../v1/proto/src/Grafeas/V1/AliasContext.php | 101 -- .../src/Grafeas/V1/AliasContext/Kind.php | 69 - .../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 | 77 -- .../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 | 702 ----------- .../src/Grafeas/V1/CVSS/AttackComplexity.php | 68 - .../src/Grafeas/V1/CVSS/AttackVector.php | 75 -- .../src/Grafeas/V1/CVSS/Authentication.php | 68 - .../v1/proto/src/Grafeas/V1/CVSS/Impact.php | 82 -- .../Grafeas/V1/CVSS/PrivilegesRequired.php | 68 - .../v1/proto/src/Grafeas/V1/CVSS/Scope.php | 61 - .../src/Grafeas/V1/CVSS/UserInteraction.php | 75 -- .../v1/proto/src/Grafeas/V1/CVSSVersion.php | 68 - .../v1/proto/src/Grafeas/V1/CVSSv3.php | 353 ------ .../Grafeas/V1/CVSSv3/AttackComplexity.php | 53 - .../src/Grafeas/V1/CVSSv3/AttackVector.php | 63 - .../v1/proto/src/Grafeas/V1/CVSSv3/Impact.php | 58 - .../Grafeas/V1/CVSSv3/PrivilegesRequired.php | 58 - .../v1/proto/src/Grafeas/V1/CVSSv3/Scope.php | 53 - .../src/Grafeas/V1/CVSSv3/UserInteraction.php | 53 - .../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 | 87 -- .../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 | 77 -- .../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 | 68 - .../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 | 61 - .../V1/DiscoveryOccurrence/AnalysisStatus.php | 91 -- .../ContinuousAnalysis.php | 61 - .../Grafeas/V1/DiscoveryOccurrence/File.php | 85 -- .../V1/DiscoveryOccurrence/SBOMStatus.php | 105 -- .../SBOMStatus/SBOMState.php | 61 - .../VulnerabilityAttestation.php | 145 --- .../VulnerabilityAttestationState.php | 61 - .../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 | 157 --- .../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 | 159 --- .../InTotoSlsaProvenanceV1/BuildMetadata.php | 132 -- .../ProvenanceBuilder.php | 112 -- .../ResourceDescriptor.php | 220 ---- .../V1/InTotoSlsaProvenanceV1/RunDetails.php | 132 -- .../SlsaProvenanceV1.php | 109 -- .../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 | 68 - .../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 | 85 -- .../Grafeas/V1/SlsaProvenance/SlsaBuilder.php | 58 - .../V1/SlsaProvenance/SlsaCompleteness.php | 148 --- .../V1/SlsaProvenance/SlsaMetadata.php | 249 ---- .../Grafeas/V1/SlsaProvenance/SlsaRecipe.php | 293 ----- .../src/Grafeas/V1/SlsaProvenanceZeroTwo.php | 235 ---- .../V1/SlsaProvenanceZeroTwo/SlsaBuilder.php | 61 - .../SlsaCompleteness.php | 115 -- .../SlsaConfigSource.php | 115 -- .../SlsaProvenanceZeroTwo/SlsaInvocation.php | 144 --- .../V1/SlsaProvenanceZeroTwo/SlsaMaterial.php | 88 -- .../V1/SlsaProvenanceZeroTwo/SlsaMetadata.php | 198 --- .../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 | 68 - .../V1/VulnerabilityAssessmentNote.php | 306 ----- .../Assessment.php | 389 ------ .../Assessment/Justification.php | 102 -- .../Justification/JustificationType.php | 91 -- .../Assessment/Remediation.php | 145 --- .../Remediation/RemediationType.php | 82 -- .../Assessment/State.php | 76 -- .../VulnerabilityAssessmentNote/Product.php | 157 --- .../VulnerabilityAssessmentNote/Publisher.php | 162 --- .../src/Grafeas/V1/VulnerabilityNote.php | 447 ------- .../Grafeas/V1/VulnerabilityNote/Detail.php | 642 ---------- .../V1/VulnerabilityNote/WindowsDetail.php | 183 --- .../WindowsDetail/KnowledgeBase.php | 103 -- .../Grafeas/V1/VulnerabilityOccurrence.php | 672 ---------- .../VulnerabilityOccurrence/PackageIssue.php | 426 ------- .../VulnerabilityOccurrence/VexAssessment.php | 363 ------ .../v1/proto/src/Grafeas/V1/WindowsUpdate.php | 298 ----- .../src/Grafeas/V1/WindowsUpdate/Category.php | 101 -- .../src/Grafeas/V1/WindowsUpdate/Identity.php | 101 -- .../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 ----------------- 220 files changed, 521 insertions(+), 31156 deletions(-) rename {owl-bot-staging/Grafeas/v1/proto/src/Grafeas => Grafeas/src}/V1/CVSS/AttackRequirements.php (100%) rename {owl-bot-staging/Grafeas/v1/proto/src/Grafeas => Grafeas/src}/V1/CVSS/ExploitMaturity.php (100%) 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/Cvss.php b/Grafeas/metadata/V1/Cvss.php index 1b6ec289500c..142a64ec011a 100644 --- a/Grafeas/metadata/V1/Cvss.php +++ b/Grafeas/metadata/V1/Cvss.php @@ -15,7 +15,7 @@ public static function initOnce() { return; } $pool->internalAddGeneratedFile( - "\x0A\xE1\x16\x0A\x15grafeas/v1/cvss.proto\x12\x0Agrafeas.v1\"\xC5\x09\x0A\x06CVSSv3\x12\x12\x0A\x0Abase_score\x18\x01 \x01(\x02\x12\x1C\x0A\x14exploitability_score\x18\x02 \x01(\x02\x12\x14\x0A\x0Cimpact_score\x18\x03 \x01(\x02\x126\x0A\x0Dattack_vector\x18\x05 \x01(\x0E2\x1F.grafeas.v1.CVSSv3.AttackVector\x12>\x0A\x11attack_complexity\x18\x06 \x01(\x0E2#.grafeas.v1.CVSSv3.AttackComplexity\x12B\x0A\x13privileges_required\x18\x07 \x01(\x0E2%.grafeas.v1.CVSSv3.PrivilegesRequired\x12<\x0A\x10user_interaction\x18\x08 \x01(\x0E2\".grafeas.v1.CVSSv3.UserInteraction\x12'\x0A\x05scope\x18\x09 \x01(\x0E2\x18.grafeas.v1.CVSSv3.Scope\x129\x0A\x16confidentiality_impact\x18\x0A \x01(\x0E2\x19.grafeas.v1.CVSSv3.Impact\x123\x0A\x10integrity_impact\x18\x0B \x01(\x0E2\x19.grafeas.v1.CVSSv3.Impact\x126\x0A\x13availability_impact\x18\x0C \x01(\x0E2\x19.grafeas.v1.CVSSv3.Impact\"\x99\x01\x0A\x0CAttackVector\x12\x1D\x0A\x19ATTACK_VECTOR_UNSPECIFIED\x10\x00\x12\x19\x0A\x15ATTACK_VECTOR_NETWORK\x10\x01\x12\x1A\x0A\x16ATTACK_VECTOR_ADJACENT\x10\x02\x12\x17\x0A\x13ATTACK_VECTOR_LOCAL\x10\x03\x12\x1A\x0A\x16ATTACK_VECTOR_PHYSICAL\x10\x04\"l\x0A\x10AttackComplexity\x12!\x0A\x1DATTACK_COMPLEXITY_UNSPECIFIED\x10\x00\x12\x19\x0A\x15ATTACK_COMPLEXITY_LOW\x10\x01\x12\x1A\x0A\x16ATTACK_COMPLEXITY_HIGH\x10\x02\"\x92\x01\x0A\x12PrivilegesRequired\x12#\x0A\x1FPRIVILEGES_REQUIRED_UNSPECIFIED\x10\x00\x12\x1C\x0A\x18PRIVILEGES_REQUIRED_NONE\x10\x01\x12\x1B\x0A\x17PRIVILEGES_REQUIRED_LOW\x10\x02\x12\x1C\x0A\x18PRIVILEGES_REQUIRED_HIGH\x10\x03\"m\x0A\x0FUserInteraction\x12 \x0A\x1CUSER_INTERACTION_UNSPECIFIED\x10\x00\x12\x19\x0A\x15USER_INTERACTION_NONE\x10\x01\x12\x1D\x0A\x19USER_INTERACTION_REQUIRED\x10\x02\"F\x0A\x05Scope\x12\x15\x0A\x11SCOPE_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FSCOPE_UNCHANGED\x10\x01\x12\x11\x0A\x0DSCOPE_CHANGED\x10\x02\"R\x0A\x06Impact\x12\x16\x0A\x12IMPACT_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BIMPACT_HIGH\x10\x01\x12\x0E\x0A\x0AIMPACT_LOW\x10\x02\x12\x0F\x0A\x0BIMPACT_NONE\x10\x03\"\xB8\x0B\x0A\x04CVSS\x12\x12\x0A\x0Abase_score\x18\x01 \x01(\x02\x12\x1C\x0A\x14exploitability_score\x18\x02 \x01(\x02\x12\x14\x0A\x0Cimpact_score\x18\x03 \x01(\x02\x124\x0A\x0Dattack_vector\x18\x04 \x01(\x0E2\x1D.grafeas.v1.CVSS.AttackVector\x12<\x0A\x11attack_complexity\x18\x05 \x01(\x0E2!.grafeas.v1.CVSS.AttackComplexity\x127\x0A\x0Eauthentication\x18\x06 \x01(\x0E2\x1F.grafeas.v1.CVSS.Authentication\x12@\x0A\x13privileges_required\x18\x07 \x01(\x0E2#.grafeas.v1.CVSS.PrivilegesRequired\x12:\x0A\x10user_interaction\x18\x08 \x01(\x0E2 .grafeas.v1.CVSS.UserInteraction\x12%\x0A\x05scope\x18\x09 \x01(\x0E2\x16.grafeas.v1.CVSS.Scope\x127\x0A\x16confidentiality_impact\x18\x0A \x01(\x0E2\x17.grafeas.v1.CVSS.Impact\x121\x0A\x10integrity_impact\x18\x0B \x01(\x0E2\x17.grafeas.v1.CVSS.Impact\x124\x0A\x13availability_impact\x18\x0C \x01(\x0E2\x17.grafeas.v1.CVSS.Impact\"\x99\x01\x0A\x0CAttackVector\x12\x1D\x0A\x19ATTACK_VECTOR_UNSPECIFIED\x10\x00\x12\x19\x0A\x15ATTACK_VECTOR_NETWORK\x10\x01\x12\x1A\x0A\x16ATTACK_VECTOR_ADJACENT\x10\x02\x12\x17\x0A\x13ATTACK_VECTOR_LOCAL\x10\x03\x12\x1A\x0A\x16ATTACK_VECTOR_PHYSICAL\x10\x04\"\x8A\x01\x0A\x10AttackComplexity\x12!\x0A\x1DATTACK_COMPLEXITY_UNSPECIFIED\x10\x00\x12\x19\x0A\x15ATTACK_COMPLEXITY_LOW\x10\x01\x12\x1A\x0A\x16ATTACK_COMPLEXITY_HIGH\x10\x02\x12\x1C\x0A\x18ATTACK_COMPLEXITY_MEDIUM\x10\x03\"\x81\x01\x0A\x0EAuthentication\x12\x1E\x0A\x1AAUTHENTICATION_UNSPECIFIED\x10\x00\x12\x1B\x0A\x17AUTHENTICATION_MULTIPLE\x10\x01\x12\x19\x0A\x15AUTHENTICATION_SINGLE\x10\x02\x12\x17\x0A\x13AUTHENTICATION_NONE\x10\x03\"\x92\x01\x0A\x12PrivilegesRequired\x12#\x0A\x1FPRIVILEGES_REQUIRED_UNSPECIFIED\x10\x00\x12\x1C\x0A\x18PRIVILEGES_REQUIRED_NONE\x10\x01\x12\x1B\x0A\x17PRIVILEGES_REQUIRED_LOW\x10\x02\x12\x1C\x0A\x18PRIVILEGES_REQUIRED_HIGH\x10\x03\"m\x0A\x0FUserInteraction\x12 \x0A\x1CUSER_INTERACTION_UNSPECIFIED\x10\x00\x12\x19\x0A\x15USER_INTERACTION_NONE\x10\x01\x12\x1D\x0A\x19USER_INTERACTION_REQUIRED\x10\x02\"F\x0A\x05Scope\x12\x15\x0A\x11SCOPE_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FSCOPE_UNCHANGED\x10\x01\x12\x11\x0A\x0DSCOPE_CHANGED\x10\x02\"{\x0A\x06Impact\x12\x16\x0A\x12IMPACT_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BIMPACT_HIGH\x10\x01\x12\x0E\x0A\x0AIMPACT_LOW\x10\x02\x12\x0F\x0A\x0BIMPACT_NONE\x10\x03\x12\x12\x0A\x0EIMPACT_PARTIAL\x10\x04\x12\x13\x0A\x0FIMPACT_COMPLETE\x10\x05*S\x0A\x0BCVSSVersion\x12\x1C\x0A\x18CVSS_VERSION_UNSPECIFIED\x10\x00\x12\x12\x0A\x0ECVSS_VERSION_2\x10\x01\x12\x12\x0A\x0ECVSS_VERSION_3\x10\x02B\\\x0A\x0Dio.grafeas.v1B\x09CVSSProtoP\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" + "\x0A\x8B\x1E\x0A\x15grafeas/v1/cvss.proto\x12\x0Agrafeas.v1\"\xC5\x09\x0A\x06CVSSv3\x12\x12\x0A\x0Abase_score\x18\x01 \x01(\x02\x12\x1C\x0A\x14exploitability_score\x18\x02 \x01(\x02\x12\x14\x0A\x0Cimpact_score\x18\x03 \x01(\x02\x126\x0A\x0Dattack_vector\x18\x05 \x01(\x0E2\x1F.grafeas.v1.CVSSv3.AttackVector\x12>\x0A\x11attack_complexity\x18\x06 \x01(\x0E2#.grafeas.v1.CVSSv3.AttackComplexity\x12B\x0A\x13privileges_required\x18\x07 \x01(\x0E2%.grafeas.v1.CVSSv3.PrivilegesRequired\x12<\x0A\x10user_interaction\x18\x08 \x01(\x0E2\".grafeas.v1.CVSSv3.UserInteraction\x12'\x0A\x05scope\x18\x09 \x01(\x0E2\x18.grafeas.v1.CVSSv3.Scope\x129\x0A\x16confidentiality_impact\x18\x0A \x01(\x0E2\x19.grafeas.v1.CVSSv3.Impact\x123\x0A\x10integrity_impact\x18\x0B \x01(\x0E2\x19.grafeas.v1.CVSSv3.Impact\x126\x0A\x13availability_impact\x18\x0C \x01(\x0E2\x19.grafeas.v1.CVSSv3.Impact\"\x99\x01\x0A\x0CAttackVector\x12\x1D\x0A\x19ATTACK_VECTOR_UNSPECIFIED\x10\x00\x12\x19\x0A\x15ATTACK_VECTOR_NETWORK\x10\x01\x12\x1A\x0A\x16ATTACK_VECTOR_ADJACENT\x10\x02\x12\x17\x0A\x13ATTACK_VECTOR_LOCAL\x10\x03\x12\x1A\x0A\x16ATTACK_VECTOR_PHYSICAL\x10\x04\"l\x0A\x10AttackComplexity\x12!\x0A\x1DATTACK_COMPLEXITY_UNSPECIFIED\x10\x00\x12\x19\x0A\x15ATTACK_COMPLEXITY_LOW\x10\x01\x12\x1A\x0A\x16ATTACK_COMPLEXITY_HIGH\x10\x02\"\x92\x01\x0A\x12PrivilegesRequired\x12#\x0A\x1FPRIVILEGES_REQUIRED_UNSPECIFIED\x10\x00\x12\x1C\x0A\x18PRIVILEGES_REQUIRED_NONE\x10\x01\x12\x1B\x0A\x17PRIVILEGES_REQUIRED_LOW\x10\x02\x12\x1C\x0A\x18PRIVILEGES_REQUIRED_HIGH\x10\x03\"m\x0A\x0FUserInteraction\x12 \x0A\x1CUSER_INTERACTION_UNSPECIFIED\x10\x00\x12\x19\x0A\x15USER_INTERACTION_NONE\x10\x01\x12\x1D\x0A\x19USER_INTERACTION_REQUIRED\x10\x02\"F\x0A\x05Scope\x12\x15\x0A\x11SCOPE_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FSCOPE_UNCHANGED\x10\x01\x12\x11\x0A\x0DSCOPE_CHANGED\x10\x02\"R\x0A\x06Impact\x12\x16\x0A\x12IMPACT_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BIMPACT_HIGH\x10\x01\x12\x0E\x0A\x0AIMPACT_LOW\x10\x02\x12\x0F\x0A\x0BIMPACT_NONE\x10\x03\"\xCE\x12\x0A\x04CVSS\x12\x12\x0A\x0Abase_score\x18\x01 \x01(\x02\x12\x1C\x0A\x14exploitability_score\x18\x02 \x01(\x02\x12\x14\x0A\x0Cimpact_score\x18\x03 \x01(\x02\x124\x0A\x0Dattack_vector\x18\x04 \x01(\x0E2\x1D.grafeas.v1.CVSS.AttackVector\x12<\x0A\x11attack_complexity\x18\x05 \x01(\x0E2!.grafeas.v1.CVSS.AttackComplexity\x127\x0A\x0Eauthentication\x18\x06 \x01(\x0E2\x1F.grafeas.v1.CVSS.Authentication\x12@\x0A\x13privileges_required\x18\x07 \x01(\x0E2#.grafeas.v1.CVSS.PrivilegesRequired\x12:\x0A\x10user_interaction\x18\x08 \x01(\x0E2 .grafeas.v1.CVSS.UserInteraction\x12%\x0A\x05scope\x18\x09 \x01(\x0E2\x16.grafeas.v1.CVSS.Scope\x127\x0A\x16confidentiality_impact\x18\x0A \x01(\x0E2\x17.grafeas.v1.CVSS.Impact\x121\x0A\x10integrity_impact\x18\x0B \x01(\x0E2\x17.grafeas.v1.CVSS.Impact\x124\x0A\x13availability_impact\x18\x0C \x01(\x0E2\x17.grafeas.v1.CVSS.Impact\x12@\x0A\x13attack_requirements\x18\x0D \x01(\x0E2#.grafeas.v1.CVSS.AttackRequirements\x12I\x0A(vulnerable_system_confidentiality_impact\x18\x0E \x01(\x0E2\x17.grafeas.v1.CVSS.Impact\x12C\x0A\"vulnerable_system_integrity_impact\x18\x0F \x01(\x0E2\x17.grafeas.v1.CVSS.Impact\x12F\x0A%vulnerable_system_availability_impact\x18\x10 \x01(\x0E2\x17.grafeas.v1.CVSS.Impact\x12I\x0A(subsequent_system_confidentiality_impact\x18\x11 \x01(\x0E2\x17.grafeas.v1.CVSS.Impact\x12C\x0A\"subsequent_system_integrity_impact\x18\x12 \x01(\x0E2\x17.grafeas.v1.CVSS.Impact\x12F\x0A%subsequent_system_availability_impact\x18\x13 \x01(\x0E2\x17.grafeas.v1.CVSS.Impact\x12:\x0A\x10exploit_maturity\x18\x14 \x01(\x0E2 .grafeas.v1.CVSS.ExploitMaturity\"\x99\x01\x0A\x0CAttackVector\x12\x1D\x0A\x19ATTACK_VECTOR_UNSPECIFIED\x10\x00\x12\x19\x0A\x15ATTACK_VECTOR_NETWORK\x10\x01\x12\x1A\x0A\x16ATTACK_VECTOR_ADJACENT\x10\x02\x12\x17\x0A\x13ATTACK_VECTOR_LOCAL\x10\x03\x12\x1A\x0A\x16ATTACK_VECTOR_PHYSICAL\x10\x04\"\x8A\x01\x0A\x10AttackComplexity\x12!\x0A\x1DATTACK_COMPLEXITY_UNSPECIFIED\x10\x00\x12\x19\x0A\x15ATTACK_COMPLEXITY_LOW\x10\x01\x12\x1A\x0A\x16ATTACK_COMPLEXITY_HIGH\x10\x02\x12\x1C\x0A\x18ATTACK_COMPLEXITY_MEDIUM\x10\x03\"\x81\x01\x0A\x0EAuthentication\x12\x1E\x0A\x1AAUTHENTICATION_UNSPECIFIED\x10\x00\x12\x1B\x0A\x17AUTHENTICATION_MULTIPLE\x10\x01\x12\x19\x0A\x15AUTHENTICATION_SINGLE\x10\x02\x12\x17\x0A\x13AUTHENTICATION_NONE\x10\x03\"\x92\x01\x0A\x12PrivilegesRequired\x12#\x0A\x1FPRIVILEGES_REQUIRED_UNSPECIFIED\x10\x00\x12\x1C\x0A\x18PRIVILEGES_REQUIRED_NONE\x10\x01\x12\x1B\x0A\x17PRIVILEGES_REQUIRED_LOW\x10\x02\x12\x1C\x0A\x18PRIVILEGES_REQUIRED_HIGH\x10\x03\"\xA8\x01\x0A\x0FUserInteraction\x12 \x0A\x1CUSER_INTERACTION_UNSPECIFIED\x10\x00\x12\x19\x0A\x15USER_INTERACTION_NONE\x10\x01\x12\x1D\x0A\x19USER_INTERACTION_REQUIRED\x10\x02\x12\x1C\x0A\x18USER_INTERACTION_PASSIVE\x10\x03\x12\x1B\x0A\x17USER_INTERACTION_ACTIVE\x10\x04\"F\x0A\x05Scope\x12\x15\x0A\x11SCOPE_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FSCOPE_UNCHANGED\x10\x01\x12\x11\x0A\x0DSCOPE_CHANGED\x10\x02\"{\x0A\x06Impact\x12\x16\x0A\x12IMPACT_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BIMPACT_HIGH\x10\x01\x12\x0E\x0A\x0AIMPACT_LOW\x10\x02\x12\x0F\x0A\x0BIMPACT_NONE\x10\x03\x12\x12\x0A\x0EIMPACT_PARTIAL\x10\x04\x12\x13\x0A\x0FIMPACT_COMPLETE\x10\x05\"x\x0A\x12AttackRequirements\x12#\x0A\x1FATTACK_REQUIREMENTS_UNSPECIFIED\x10\x00\x12\x1C\x0A\x18ATTACK_REQUIREMENTS_NONE\x10\x01\x12\x1F\x0A\x1BATTACK_REQUIREMENTS_PRESENT\x10\x02\"\xAF\x01\x0A\x0FExploitMaturity\x12 \x0A\x1CEXPLOIT_MATURITY_UNSPECIFIED\x10\x00\x12 \x0A\x1CEXPLOIT_MATURITY_NOT_DEFINED\x10\x01\x12\x1D\x0A\x19EXPLOIT_MATURITY_ATTACKED\x10\x02\x12\x18\x0A\x14EXPLOIT_MATURITY_POC\x10\x03\x12\x1F\x0A\x1BEXPLOIT_MATURITY_UNREPORTED\x10\x04*g\x0A\x0BCVSSVersion\x12\x1C\x0A\x18CVSS_VERSION_UNSPECIFIED\x10\x00\x12\x12\x0A\x0ECVSS_VERSION_2\x10\x01\x12\x12\x0A\x0ECVSS_VERSION_3\x10\x02\x12\x12\x0A\x0ECVSS_VERSION_4\x10\x03B\\\x0A\x0Dio.grafeas.v1B\x09CVSSProtoP\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" , true); static::$is_initialized = true; diff --git a/Grafeas/metadata/V1/Vulnerability.php b/Grafeas/metadata/V1/Vulnerability.php index 588101da2cb4..2c95566a33f5 100644 --- a/Grafeas/metadata/V1/Vulnerability.php +++ b/Grafeas/metadata/V1/Vulnerability.php @@ -23,7 +23,7 @@ public static function initOnce() { \GPBMetadata\Grafeas\V1\Severity::initOnce(); \GPBMetadata\Grafeas\V1\Vex::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\x9F\x15\x0A\x1Egrafeas/v1/vulnerability.proto\x12\x0Agrafeas.v1\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x17grafeas/v1/common.proto\x1A\x15grafeas/v1/cvss.proto\x1A\x18grafeas/v1/package.proto\x1A\x15grafeas/v1/risk.proto\x1A\x19grafeas/v1/severity.proto\x1A\x14grafeas/v1/vex.proto\"\xA7\x08\x0A\x11VulnerabilityNote\x12\x12\x0A\x0Acvss_score\x18\x01 \x01(\x02\x12&\x0A\x08severity\x18\x02 \x01(\x0E2\x14.grafeas.v1.Severity\x125\x0A\x07details\x18\x03 \x03(\x0B2\$.grafeas.v1.VulnerabilityNote.Detail\x12#\x0A\x07cvss_v3\x18\x04 \x01(\x0B2\x12.grafeas.v1.CVSSv3\x12D\x0A\x0Fwindows_details\x18\x05 \x03(\x0B2+.grafeas.v1.VulnerabilityNote.WindowsDetail\x126\x0A\x12source_update_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12-\x0A\x0Ccvss_version\x18\x07 \x01(\x0E2\x17.grafeas.v1.CVSSVersion\x12!\x0A\x07cvss_v2\x18\x08 \x01(\x0B2\x10.grafeas.v1.CVSS\x129\x0A\x15advisory_publish_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.Timestamp\x1A\xAD\x03\x0A\x06Detail\x12\x15\x0A\x0Dseverity_name\x18\x01 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12\x14\x0A\x0Cpackage_type\x18\x03 \x01(\x09\x12\x18\x0A\x10affected_cpe_uri\x18\x04 \x01(\x09\x12\x18\x0A\x10affected_package\x18\x05 \x01(\x09\x123\x0A\x16affected_version_start\x18\x06 \x01(\x0B2\x13.grafeas.v1.Version\x121\x0A\x14affected_version_end\x18\x07 \x01(\x0B2\x13.grafeas.v1.Version\x12\x15\x0A\x0Dfixed_cpe_uri\x18\x08 \x01(\x09\x12\x15\x0A\x0Dfixed_package\x18\x09 \x01(\x09\x12*\x0A\x0Dfixed_version\x18\x0A \x01(\x0B2\x13.grafeas.v1.Version\x12\x13\x0A\x0Bis_obsolete\x18\x0B \x01(\x08\x126\x0A\x12source_update_time\x18\x0C \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x0E\x0A\x06source\x18\x0D \x01(\x09\x12\x0E\x0A\x06vendor\x18\x0E \x01(\x09\x1A\xBE\x01\x0A\x0DWindowsDetail\x12\x0F\x0A\x07cpe_uri\x18\x01 \x01(\x09\x12\x0C\x0A\x04name\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x12M\x0A\x0Afixing_kbs\x18\x04 \x03(\x0B29.grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase\x1A*\x0A\x0DKnowledgeBase\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0B\x0A\x03url\x18\x02 \x01(\x09\"\xB8\x0A\x0A\x17VulnerabilityOccurrence\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12&\x0A\x08severity\x18\x02 \x01(\x0E2\x14.grafeas.v1.Severity\x12\x12\x0A\x0Acvss_score\x18\x03 \x01(\x02\x12 \x0A\x06cvssv3\x18\x0A \x01(\x0B2\x10.grafeas.v1.CVSS\x12G\x0A\x0Dpackage_issue\x18\x04 \x03(\x0B20.grafeas.v1.VulnerabilityOccurrence.PackageIssue\x12\x19\x0A\x11short_description\x18\x05 \x01(\x09\x12\x18\x0A\x10long_description\x18\x06 \x01(\x09\x12,\x0A\x0Crelated_urls\x18\x07 \x03(\x0B2\x16.grafeas.v1.RelatedUrl\x120\x0A\x12effective_severity\x18\x08 \x01(\x0E2\x14.grafeas.v1.Severity\x12\x15\x0A\x0Dfix_available\x18\x09 \x01(\x08\x12-\x0A\x0Ccvss_version\x18\x0B \x01(\x0E2\x17.grafeas.v1.CVSSVersion\x12!\x0A\x07cvss_v2\x18\x0C \x01(\x0B2\x10.grafeas.v1.CVSS\x12I\x0A\x0Evex_assessment\x18\x0D \x01(\x0B21.grafeas.v1.VulnerabilityOccurrence.VexAssessment\x12\x15\x0A\x0Dextra_details\x18\x0E \x01(\x09\x12\x1E\x0A\x04risk\x18\x0F \x01(\x0B2\x10.grafeas.v1.Risk\x1A\xE0\x02\x0A\x0CPackageIssue\x12\x18\x0A\x10affected_cpe_uri\x18\x01 \x01(\x09\x12\x18\x0A\x10affected_package\x18\x02 \x01(\x09\x12-\x0A\x10affected_version\x18\x03 \x01(\x0B2\x13.grafeas.v1.Version\x12\x15\x0A\x0Dfixed_cpe_uri\x18\x04 \x01(\x09\x12\x15\x0A\x0Dfixed_package\x18\x05 \x01(\x09\x12*\x0A\x0Dfixed_version\x18\x06 \x01(\x0B2\x13.grafeas.v1.Version\x12\x15\x0A\x0Dfix_available\x18\x07 \x01(\x08\x12\x14\x0A\x0Cpackage_type\x18\x08 \x01(\x09\x125\x0A\x12effective_severity\x18\x09 \x01(\x0E2\x14.grafeas.v1.SeverityB\x03\xE0A\x03\x12/\x0A\x0Dfile_location\x18\x0A \x03(\x0B2\x18.grafeas.v1.FileLocation\x1A\x84\x03\x0A\x0DVexAssessment\x12\x0F\x0A\x03cve\x18\x01 \x01(\x09B\x02\x18\x01\x12\x18\x0A\x10vulnerability_id\x18\x08 \x01(\x09\x12,\x0A\x0Crelated_uris\x18\x02 \x03(\x0B2\x16.grafeas.v1.RelatedUrl\x12\x11\x0A\x09note_name\x18\x03 \x01(\x09\x12G\x0A\x05state\x18\x04 \x01(\x0E28.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State\x12\x0F\x0A\x07impacts\x18\x05 \x03(\x09\x12T\x0A\x0Cremediations\x18\x06 \x03(\x0B2>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation\x12W\x0A\x0Djustification\x18\x07 \x01(\x0B2@.grafeas.v1.VulnerabilityAssessmentNote.Assessment.JustificationBQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" + "\x0A\xE5\x15\x0A\x1Egrafeas/v1/vulnerability.proto\x12\x0Agrafeas.v1\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x17grafeas/v1/common.proto\x1A\x15grafeas/v1/cvss.proto\x1A\x18grafeas/v1/package.proto\x1A\x15grafeas/v1/risk.proto\x1A\x19grafeas/v1/severity.proto\x1A\x14grafeas/v1/vex.proto\"\xCA\x08\x0A\x11VulnerabilityNote\x12\x12\x0A\x0Acvss_score\x18\x01 \x01(\x02\x12&\x0A\x08severity\x18\x02 \x01(\x0E2\x14.grafeas.v1.Severity\x125\x0A\x07details\x18\x03 \x03(\x0B2\$.grafeas.v1.VulnerabilityNote.Detail\x12#\x0A\x07cvss_v3\x18\x04 \x01(\x0B2\x12.grafeas.v1.CVSSv3\x12D\x0A\x0Fwindows_details\x18\x05 \x03(\x0B2+.grafeas.v1.VulnerabilityNote.WindowsDetail\x126\x0A\x12source_update_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12-\x0A\x0Ccvss_version\x18\x07 \x01(\x0E2\x17.grafeas.v1.CVSSVersion\x12!\x0A\x07cvss_v2\x18\x08 \x01(\x0B2\x10.grafeas.v1.CVSS\x129\x0A\x15advisory_publish_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12!\x0A\x07cvss_v4\x18\x0A \x01(\x0B2\x10.grafeas.v1.CVSS\x1A\xAD\x03\x0A\x06Detail\x12\x15\x0A\x0Dseverity_name\x18\x01 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12\x14\x0A\x0Cpackage_type\x18\x03 \x01(\x09\x12\x18\x0A\x10affected_cpe_uri\x18\x04 \x01(\x09\x12\x18\x0A\x10affected_package\x18\x05 \x01(\x09\x123\x0A\x16affected_version_start\x18\x06 \x01(\x0B2\x13.grafeas.v1.Version\x121\x0A\x14affected_version_end\x18\x07 \x01(\x0B2\x13.grafeas.v1.Version\x12\x15\x0A\x0Dfixed_cpe_uri\x18\x08 \x01(\x09\x12\x15\x0A\x0Dfixed_package\x18\x09 \x01(\x09\x12*\x0A\x0Dfixed_version\x18\x0A \x01(\x0B2\x13.grafeas.v1.Version\x12\x13\x0A\x0Bis_obsolete\x18\x0B \x01(\x08\x126\x0A\x12source_update_time\x18\x0C \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x0E\x0A\x06source\x18\x0D \x01(\x09\x12\x0E\x0A\x06vendor\x18\x0E \x01(\x09\x1A\xBE\x01\x0A\x0DWindowsDetail\x12\x0F\x0A\x07cpe_uri\x18\x01 \x01(\x09\x12\x0C\x0A\x04name\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x12M\x0A\x0Afixing_kbs\x18\x04 \x03(\x0B29.grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase\x1A*\x0A\x0DKnowledgeBase\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0B\x0A\x03url\x18\x02 \x01(\x09\"\xDB\x0A\x0A\x17VulnerabilityOccurrence\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12&\x0A\x08severity\x18\x02 \x01(\x0E2\x14.grafeas.v1.Severity\x12\x12\x0A\x0Acvss_score\x18\x03 \x01(\x02\x12 \x0A\x06cvssv3\x18\x0A \x01(\x0B2\x10.grafeas.v1.CVSS\x12G\x0A\x0Dpackage_issue\x18\x04 \x03(\x0B20.grafeas.v1.VulnerabilityOccurrence.PackageIssue\x12\x19\x0A\x11short_description\x18\x05 \x01(\x09\x12\x18\x0A\x10long_description\x18\x06 \x01(\x09\x12,\x0A\x0Crelated_urls\x18\x07 \x03(\x0B2\x16.grafeas.v1.RelatedUrl\x120\x0A\x12effective_severity\x18\x08 \x01(\x0E2\x14.grafeas.v1.Severity\x12\x15\x0A\x0Dfix_available\x18\x09 \x01(\x08\x12-\x0A\x0Ccvss_version\x18\x0B \x01(\x0E2\x17.grafeas.v1.CVSSVersion\x12!\x0A\x07cvss_v2\x18\x0C \x01(\x0B2\x10.grafeas.v1.CVSS\x12I\x0A\x0Evex_assessment\x18\x0D \x01(\x0B21.grafeas.v1.VulnerabilityOccurrence.VexAssessment\x12\x15\x0A\x0Dextra_details\x18\x0E \x01(\x09\x12\x1E\x0A\x04risk\x18\x0F \x01(\x0B2\x10.grafeas.v1.Risk\x12!\x0A\x07cvss_v4\x18\x10 \x01(\x0B2\x10.grafeas.v1.CVSS\x1A\xE0\x02\x0A\x0CPackageIssue\x12\x18\x0A\x10affected_cpe_uri\x18\x01 \x01(\x09\x12\x18\x0A\x10affected_package\x18\x02 \x01(\x09\x12-\x0A\x10affected_version\x18\x03 \x01(\x0B2\x13.grafeas.v1.Version\x12\x15\x0A\x0Dfixed_cpe_uri\x18\x04 \x01(\x09\x12\x15\x0A\x0Dfixed_package\x18\x05 \x01(\x09\x12*\x0A\x0Dfixed_version\x18\x06 \x01(\x0B2\x13.grafeas.v1.Version\x12\x15\x0A\x0Dfix_available\x18\x07 \x01(\x08\x12\x14\x0A\x0Cpackage_type\x18\x08 \x01(\x09\x125\x0A\x12effective_severity\x18\x09 \x01(\x0E2\x14.grafeas.v1.SeverityB\x03\xE0A\x03\x12/\x0A\x0Dfile_location\x18\x0A \x03(\x0B2\x18.grafeas.v1.FileLocation\x1A\x84\x03\x0A\x0DVexAssessment\x12\x0F\x0A\x03cve\x18\x01 \x01(\x09B\x02\x18\x01\x12\x18\x0A\x10vulnerability_id\x18\x08 \x01(\x09\x12,\x0A\x0Crelated_uris\x18\x02 \x03(\x0B2\x16.grafeas.v1.RelatedUrl\x12\x11\x0A\x09note_name\x18\x03 \x01(\x09\x12G\x0A\x05state\x18\x04 \x01(\x0E28.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State\x12\x0F\x0A\x07impacts\x18\x05 \x03(\x09\x12T\x0A\x0Cremediations\x18\x06 \x03(\x0B2>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation\x12W\x0A\x0Djustification\x18\x07 \x01(\x0B2@.grafeas.v1.VulnerabilityAssessmentNote.Assessment.JustificationBQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" , true); static::$is_initialized = true; diff --git a/Grafeas/src/V1/CVSS.php b/Grafeas/src/V1/CVSS.php index 01938b781ab4..edd78fa2c52c 100644 --- a/Grafeas/src/V1/CVSS.php +++ b/Grafeas/src/V1/CVSS.php @@ -33,45 +33,107 @@ class CVSS extends \Google\Protobuf\Internal\Message */ protected $impact_score = 0.0; /** - * Base Metrics - * Represents the intrinsic characteristics of a vulnerability that are - * constant over time and across user environments. + * Attack Vector (AV). Defined in CVSS v2, v3, v4. * * Generated from protobuf field .grafeas.v1.CVSS.AttackVector attack_vector = 4; */ protected $attack_vector = 0; /** + * Attack Complexity (AC). Defined in CVSS v2, v3, v4. + * * Generated from protobuf field .grafeas.v1.CVSS.AttackComplexity attack_complexity = 5; */ protected $attack_complexity = 0; /** + * Authentication (Au). Defined in CVSS v2. + * * Generated from protobuf field .grafeas.v1.CVSS.Authentication authentication = 6; */ protected $authentication = 0; /** + * Privileges Required (PR). Defined in CVSS v3, v4. + * * Generated from protobuf field .grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7; */ protected $privileges_required = 0; /** + * User Interaction (UI). Defined in CVSS v3, v4. + * * Generated from protobuf field .grafeas.v1.CVSS.UserInteraction user_interaction = 8; */ protected $user_interaction = 0; /** + * Scope (S). Defined in CVSS v3. + * * Generated from protobuf field .grafeas.v1.CVSS.Scope scope = 9; */ protected $scope = 0; /** + * Confidentiality Impact (C). Defined in CVSS v2, v3. + * * Generated from protobuf field .grafeas.v1.CVSS.Impact confidentiality_impact = 10; */ protected $confidentiality_impact = 0; /** + * Integrity Impact (I). Defined in CVSS v2, v3. + * * Generated from protobuf field .grafeas.v1.CVSS.Impact integrity_impact = 11; */ protected $integrity_impact = 0; /** + * Availability Impact (A). Defined in CVSS v2, v3. + * * Generated from protobuf field .grafeas.v1.CVSS.Impact availability_impact = 12; */ protected $availability_impact = 0; + /** + * Attack Requirements (AT). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.AttackRequirements attack_requirements = 13; + */ + protected $attack_requirements = 0; + /** + * Vulnerable System Confidentiality Impact (VC). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact vulnerable_system_confidentiality_impact = 14; + */ + protected $vulnerable_system_confidentiality_impact = 0; + /** + * Vulnerable System Integrity Impact (VI). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact vulnerable_system_integrity_impact = 15; + */ + protected $vulnerable_system_integrity_impact = 0; + /** + * Vulnerable System Availability Impact (VA). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact vulnerable_system_availability_impact = 16; + */ + protected $vulnerable_system_availability_impact = 0; + /** + * Subsequent System Confidentiality Impact (SC). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact subsequent_system_confidentiality_impact = 17; + */ + protected $subsequent_system_confidentiality_impact = 0; + /** + * Subsequent System Integrity Impact (SI). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact subsequent_system_integrity_impact = 18; + */ + protected $subsequent_system_integrity_impact = 0; + /** + * Subsequent System Availability Impact (SA). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact subsequent_system_availability_impact = 19; + */ + protected $subsequent_system_availability_impact = 0; + /** + * Exploit Maturity (E). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.ExploitMaturity exploit_maturity = 20; + */ + protected $exploit_maturity = 0; /** * Constructor. @@ -84,17 +146,39 @@ class CVSS extends \Google\Protobuf\Internal\Message * @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. + * Attack Vector (AV). Defined in CVSS v2, v3, v4. * @type int $attack_complexity + * Attack Complexity (AC). Defined in CVSS v2, v3, v4. * @type int $authentication + * Authentication (Au). Defined in CVSS v2. * @type int $privileges_required + * Privileges Required (PR). Defined in CVSS v3, v4. * @type int $user_interaction + * User Interaction (UI). Defined in CVSS v3, v4. * @type int $scope + * Scope (S). Defined in CVSS v3. * @type int $confidentiality_impact + * Confidentiality Impact (C). Defined in CVSS v2, v3. * @type int $integrity_impact + * Integrity Impact (I). Defined in CVSS v2, v3. * @type int $availability_impact + * Availability Impact (A). Defined in CVSS v2, v3. + * @type int $attack_requirements + * Attack Requirements (AT). Defined in CVSS v4. + * @type int $vulnerable_system_confidentiality_impact + * Vulnerable System Confidentiality Impact (VC). Defined in CVSS v4. + * @type int $vulnerable_system_integrity_impact + * Vulnerable System Integrity Impact (VI). Defined in CVSS v4. + * @type int $vulnerable_system_availability_impact + * Vulnerable System Availability Impact (VA). Defined in CVSS v4. + * @type int $subsequent_system_confidentiality_impact + * Subsequent System Confidentiality Impact (SC). Defined in CVSS v4. + * @type int $subsequent_system_integrity_impact + * Subsequent System Integrity Impact (SI). Defined in CVSS v4. + * @type int $subsequent_system_availability_impact + * Subsequent System Availability Impact (SA). Defined in CVSS v4. + * @type int $exploit_maturity + * Exploit Maturity (E). Defined in CVSS v4. * } */ public function __construct($data = NULL) { @@ -173,9 +257,7 @@ public function setImpactScore($var) } /** - * Base Metrics - * Represents the intrinsic characteristics of a vulnerability that are - * constant over time and across user environments. + * Attack Vector (AV). Defined in CVSS v2, v3, v4. * * Generated from protobuf field .grafeas.v1.CVSS.AttackVector attack_vector = 4; * @return int @@ -186,9 +268,7 @@ public function getAttackVector() } /** - * Base Metrics - * Represents the intrinsic characteristics of a vulnerability that are - * constant over time and across user environments. + * Attack Vector (AV). Defined in CVSS v2, v3, v4. * * Generated from protobuf field .grafeas.v1.CVSS.AttackVector attack_vector = 4; * @param int $var @@ -203,6 +283,8 @@ public function setAttackVector($var) } /** + * Attack Complexity (AC). Defined in CVSS v2, v3, v4. + * * Generated from protobuf field .grafeas.v1.CVSS.AttackComplexity attack_complexity = 5; * @return int */ @@ -212,6 +294,8 @@ public function getAttackComplexity() } /** + * Attack Complexity (AC). Defined in CVSS v2, v3, v4. + * * Generated from protobuf field .grafeas.v1.CVSS.AttackComplexity attack_complexity = 5; * @param int $var * @return $this @@ -225,6 +309,8 @@ public function setAttackComplexity($var) } /** + * Authentication (Au). Defined in CVSS v2. + * * Generated from protobuf field .grafeas.v1.CVSS.Authentication authentication = 6; * @return int */ @@ -234,6 +320,8 @@ public function getAuthentication() } /** + * Authentication (Au). Defined in CVSS v2. + * * Generated from protobuf field .grafeas.v1.CVSS.Authentication authentication = 6; * @param int $var * @return $this @@ -247,6 +335,8 @@ public function setAuthentication($var) } /** + * Privileges Required (PR). Defined in CVSS v3, v4. + * * Generated from protobuf field .grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7; * @return int */ @@ -256,6 +346,8 @@ public function getPrivilegesRequired() } /** + * Privileges Required (PR). Defined in CVSS v3, v4. + * * Generated from protobuf field .grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7; * @param int $var * @return $this @@ -269,6 +361,8 @@ public function setPrivilegesRequired($var) } /** + * User Interaction (UI). Defined in CVSS v3, v4. + * * Generated from protobuf field .grafeas.v1.CVSS.UserInteraction user_interaction = 8; * @return int */ @@ -278,6 +372,8 @@ public function getUserInteraction() } /** + * User Interaction (UI). Defined in CVSS v3, v4. + * * Generated from protobuf field .grafeas.v1.CVSS.UserInteraction user_interaction = 8; * @param int $var * @return $this @@ -291,6 +387,8 @@ public function setUserInteraction($var) } /** + * Scope (S). Defined in CVSS v3. + * * Generated from protobuf field .grafeas.v1.CVSS.Scope scope = 9; * @return int */ @@ -300,6 +398,8 @@ public function getScope() } /** + * Scope (S). Defined in CVSS v3. + * * Generated from protobuf field .grafeas.v1.CVSS.Scope scope = 9; * @param int $var * @return $this @@ -313,6 +413,8 @@ public function setScope($var) } /** + * Confidentiality Impact (C). Defined in CVSS v2, v3. + * * Generated from protobuf field .grafeas.v1.CVSS.Impact confidentiality_impact = 10; * @return int */ @@ -322,6 +424,8 @@ public function getConfidentialityImpact() } /** + * Confidentiality Impact (C). Defined in CVSS v2, v3. + * * Generated from protobuf field .grafeas.v1.CVSS.Impact confidentiality_impact = 10; * @param int $var * @return $this @@ -335,6 +439,8 @@ public function setConfidentialityImpact($var) } /** + * Integrity Impact (I). Defined in CVSS v2, v3. + * * Generated from protobuf field .grafeas.v1.CVSS.Impact integrity_impact = 11; * @return int */ @@ -344,6 +450,8 @@ public function getIntegrityImpact() } /** + * Integrity Impact (I). Defined in CVSS v2, v3. + * * Generated from protobuf field .grafeas.v1.CVSS.Impact integrity_impact = 11; * @param int $var * @return $this @@ -357,6 +465,8 @@ public function setIntegrityImpact($var) } /** + * Availability Impact (A). Defined in CVSS v2, v3. + * * Generated from protobuf field .grafeas.v1.CVSS.Impact availability_impact = 12; * @return int */ @@ -366,6 +476,8 @@ public function getAvailabilityImpact() } /** + * Availability Impact (A). Defined in CVSS v2, v3. + * * Generated from protobuf field .grafeas.v1.CVSS.Impact availability_impact = 12; * @param int $var * @return $this @@ -378,5 +490,213 @@ public function setAvailabilityImpact($var) return $this; } + /** + * Attack Requirements (AT). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.AttackRequirements attack_requirements = 13; + * @return int + */ + public function getAttackRequirements() + { + return $this->attack_requirements; + } + + /** + * Attack Requirements (AT). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.AttackRequirements attack_requirements = 13; + * @param int $var + * @return $this + */ + public function setAttackRequirements($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\AttackRequirements::class); + $this->attack_requirements = $var; + + return $this; + } + + /** + * Vulnerable System Confidentiality Impact (VC). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact vulnerable_system_confidentiality_impact = 14; + * @return int + */ + public function getVulnerableSystemConfidentialityImpact() + { + return $this->vulnerable_system_confidentiality_impact; + } + + /** + * Vulnerable System Confidentiality Impact (VC). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact vulnerable_system_confidentiality_impact = 14; + * @param int $var + * @return $this + */ + public function setVulnerableSystemConfidentialityImpact($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\Impact::class); + $this->vulnerable_system_confidentiality_impact = $var; + + return $this; + } + + /** + * Vulnerable System Integrity Impact (VI). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact vulnerable_system_integrity_impact = 15; + * @return int + */ + public function getVulnerableSystemIntegrityImpact() + { + return $this->vulnerable_system_integrity_impact; + } + + /** + * Vulnerable System Integrity Impact (VI). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact vulnerable_system_integrity_impact = 15; + * @param int $var + * @return $this + */ + public function setVulnerableSystemIntegrityImpact($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\Impact::class); + $this->vulnerable_system_integrity_impact = $var; + + return $this; + } + + /** + * Vulnerable System Availability Impact (VA). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact vulnerable_system_availability_impact = 16; + * @return int + */ + public function getVulnerableSystemAvailabilityImpact() + { + return $this->vulnerable_system_availability_impact; + } + + /** + * Vulnerable System Availability Impact (VA). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact vulnerable_system_availability_impact = 16; + * @param int $var + * @return $this + */ + public function setVulnerableSystemAvailabilityImpact($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\Impact::class); + $this->vulnerable_system_availability_impact = $var; + + return $this; + } + + /** + * Subsequent System Confidentiality Impact (SC). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact subsequent_system_confidentiality_impact = 17; + * @return int + */ + public function getSubsequentSystemConfidentialityImpact() + { + return $this->subsequent_system_confidentiality_impact; + } + + /** + * Subsequent System Confidentiality Impact (SC). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact subsequent_system_confidentiality_impact = 17; + * @param int $var + * @return $this + */ + public function setSubsequentSystemConfidentialityImpact($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\Impact::class); + $this->subsequent_system_confidentiality_impact = $var; + + return $this; + } + + /** + * Subsequent System Integrity Impact (SI). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact subsequent_system_integrity_impact = 18; + * @return int + */ + public function getSubsequentSystemIntegrityImpact() + { + return $this->subsequent_system_integrity_impact; + } + + /** + * Subsequent System Integrity Impact (SI). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact subsequent_system_integrity_impact = 18; + * @param int $var + * @return $this + */ + public function setSubsequentSystemIntegrityImpact($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\Impact::class); + $this->subsequent_system_integrity_impact = $var; + + return $this; + } + + /** + * Subsequent System Availability Impact (SA). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact subsequent_system_availability_impact = 19; + * @return int + */ + public function getSubsequentSystemAvailabilityImpact() + { + return $this->subsequent_system_availability_impact; + } + + /** + * Subsequent System Availability Impact (SA). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.Impact subsequent_system_availability_impact = 19; + * @param int $var + * @return $this + */ + public function setSubsequentSystemAvailabilityImpact($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\Impact::class); + $this->subsequent_system_availability_impact = $var; + + return $this; + } + + /** + * Exploit Maturity (E). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.ExploitMaturity exploit_maturity = 20; + * @return int + */ + public function getExploitMaturity() + { + return $this->exploit_maturity; + } + + /** + * Exploit Maturity (E). Defined in CVSS v4. + * + * Generated from protobuf field .grafeas.v1.CVSS.ExploitMaturity exploit_maturity = 20; + * @param int $var + * @return $this + */ + public function setExploitMaturity($var) + { + GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\ExploitMaturity::class); + $this->exploit_maturity = $var; + + return $this; + } + } diff --git a/Grafeas/src/V1/CVSS/AttackComplexity.php b/Grafeas/src/V1/CVSS/AttackComplexity.php index a87fe65c9543..2b1d4098457d 100644 --- a/Grafeas/src/V1/CVSS/AttackComplexity.php +++ b/Grafeas/src/V1/CVSS/AttackComplexity.php @@ -7,23 +7,33 @@ use UnexpectedValueException; /** + * Attack Complexity. + * * Protobuf type grafeas.v1.CVSS.AttackComplexity */ class AttackComplexity { /** + * Unspecified. + * * Generated from protobuf enum ATTACK_COMPLEXITY_UNSPECIFIED = 0; */ const ATTACK_COMPLEXITY_UNSPECIFIED = 0; /** + * Low attack complexity (AC:L). Defined in CVSS v2, v3, v4. + * * Generated from protobuf enum ATTACK_COMPLEXITY_LOW = 1; */ const ATTACK_COMPLEXITY_LOW = 1; /** + * High attack complexity (AC:H). Defined in CVSS v2, v3, v4. + * * Generated from protobuf enum ATTACK_COMPLEXITY_HIGH = 2; */ const ATTACK_COMPLEXITY_HIGH = 2; /** + * Medium attack complexity (AC:M). Defined in CVSS v2. + * * Generated from protobuf enum ATTACK_COMPLEXITY_MEDIUM = 3; */ const ATTACK_COMPLEXITY_MEDIUM = 3; diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/AttackRequirements.php b/Grafeas/src/V1/CVSS/AttackRequirements.php similarity index 100% rename from owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/AttackRequirements.php rename to Grafeas/src/V1/CVSS/AttackRequirements.php diff --git a/Grafeas/src/V1/CVSS/AttackVector.php b/Grafeas/src/V1/CVSS/AttackVector.php index bbdae62d56d4..4ab65c8844ea 100644 --- a/Grafeas/src/V1/CVSS/AttackVector.php +++ b/Grafeas/src/V1/CVSS/AttackVector.php @@ -7,27 +7,39 @@ use UnexpectedValueException; /** + * Attack Vector. + * * Protobuf type grafeas.v1.CVSS.AttackVector */ class AttackVector { /** + * Unspecified. + * * Generated from protobuf enum ATTACK_VECTOR_UNSPECIFIED = 0; */ const ATTACK_VECTOR_UNSPECIFIED = 0; /** + * Attack Vector: Network (AV:N). Defined in CVSS v2, v3, v4. + * * Generated from protobuf enum ATTACK_VECTOR_NETWORK = 1; */ const ATTACK_VECTOR_NETWORK = 1; /** + * Attack Vector: Adjacent (AV:A). Defined in CVSS v2, v3, v4. + * * Generated from protobuf enum ATTACK_VECTOR_ADJACENT = 2; */ const ATTACK_VECTOR_ADJACENT = 2; /** + * Attack Vector: Local (AV:L). Defined in CVSS v2, v3, v4. + * * Generated from protobuf enum ATTACK_VECTOR_LOCAL = 3; */ const ATTACK_VECTOR_LOCAL = 3; /** + * Attack Vector: Physical (AV:P). Defined in CVSS v3, v4. + * * Generated from protobuf enum ATTACK_VECTOR_PHYSICAL = 4; */ const ATTACK_VECTOR_PHYSICAL = 4; diff --git a/Grafeas/src/V1/CVSS/Authentication.php b/Grafeas/src/V1/CVSS/Authentication.php index 9828285bc7cc..f101e48277d5 100644 --- a/Grafeas/src/V1/CVSS/Authentication.php +++ b/Grafeas/src/V1/CVSS/Authentication.php @@ -7,23 +7,33 @@ use UnexpectedValueException; /** + * Authentication. + * * Protobuf type grafeas.v1.CVSS.Authentication */ class Authentication { /** + * Unspecified. + * * Generated from protobuf enum AUTHENTICATION_UNSPECIFIED = 0; */ const AUTHENTICATION_UNSPECIFIED = 0; /** + * Multiple authentication required (Au:M). Defined in CVSS v2. + * * Generated from protobuf enum AUTHENTICATION_MULTIPLE = 1; */ const AUTHENTICATION_MULTIPLE = 1; /** + * Single authentication required (Au:S). Defined in CVSS v2. + * * Generated from protobuf enum AUTHENTICATION_SINGLE = 2; */ const AUTHENTICATION_SINGLE = 2; /** + * No authentication required (Au:N). Defined in CVSS v2. + * * Generated from protobuf enum AUTHENTICATION_NONE = 3; */ const AUTHENTICATION_NONE = 3; diff --git a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/ExploitMaturity.php b/Grafeas/src/V1/CVSS/ExploitMaturity.php similarity index 100% rename from owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/ExploitMaturity.php rename to Grafeas/src/V1/CVSS/ExploitMaturity.php diff --git a/Grafeas/src/V1/CVSS/Impact.php b/Grafeas/src/V1/CVSS/Impact.php index 00f37c05419f..2c1b8d8dbf3c 100644 --- a/Grafeas/src/V1/CVSS/Impact.php +++ b/Grafeas/src/V1/CVSS/Impact.php @@ -7,31 +7,45 @@ use UnexpectedValueException; /** + * Impact. + * * Protobuf type grafeas.v1.CVSS.Impact */ class Impact { /** + * Unspecified. + * * Generated from protobuf enum IMPACT_UNSPECIFIED = 0; */ const IMPACT_UNSPECIFIED = 0; /** + * High impact (H). Defined in CVSS v3, v4. + * * Generated from protobuf enum IMPACT_HIGH = 1; */ const IMPACT_HIGH = 1; /** + * Low impact (L). Defined in CVSS v3, v4. + * * Generated from protobuf enum IMPACT_LOW = 2; */ const IMPACT_LOW = 2; /** + * No impact (N). Defined in CVSS v2, v3, v4. + * * Generated from protobuf enum IMPACT_NONE = 3; */ const IMPACT_NONE = 3; /** + * Partial impact (P). Defined in CVSS v2. + * * Generated from protobuf enum IMPACT_PARTIAL = 4; */ const IMPACT_PARTIAL = 4; /** + * Complete impact (C). Defined in CVSS v2. + * * Generated from protobuf enum IMPACT_COMPLETE = 5; */ const IMPACT_COMPLETE = 5; diff --git a/Grafeas/src/V1/CVSS/PrivilegesRequired.php b/Grafeas/src/V1/CVSS/PrivilegesRequired.php index 8bdde3ec90b8..3e40a774b3ea 100644 --- a/Grafeas/src/V1/CVSS/PrivilegesRequired.php +++ b/Grafeas/src/V1/CVSS/PrivilegesRequired.php @@ -7,23 +7,33 @@ use UnexpectedValueException; /** + * Privileges Required. + * * Protobuf type grafeas.v1.CVSS.PrivilegesRequired */ class PrivilegesRequired { /** + * Unspecified. + * * Generated from protobuf enum PRIVILEGES_REQUIRED_UNSPECIFIED = 0; */ const PRIVILEGES_REQUIRED_UNSPECIFIED = 0; /** + * No privileges required (PR:N). Defined in CVSS v3, v4. + * * Generated from protobuf enum PRIVILEGES_REQUIRED_NONE = 1; */ const PRIVILEGES_REQUIRED_NONE = 1; /** + * Low privileges required (PR:L). Defined in CVSS v3, v4. + * * Generated from protobuf enum PRIVILEGES_REQUIRED_LOW = 2; */ const PRIVILEGES_REQUIRED_LOW = 2; /** + * High privileges required (PR:H). Defined in CVSS v3, v4. + * * Generated from protobuf enum PRIVILEGES_REQUIRED_HIGH = 3; */ const PRIVILEGES_REQUIRED_HIGH = 3; diff --git a/Grafeas/src/V1/CVSS/Scope.php b/Grafeas/src/V1/CVSS/Scope.php index ed4ed20ed9f7..2a839cf6ea43 100644 --- a/Grafeas/src/V1/CVSS/Scope.php +++ b/Grafeas/src/V1/CVSS/Scope.php @@ -7,19 +7,27 @@ use UnexpectedValueException; /** + * Scope. + * * Protobuf type grafeas.v1.CVSS.Scope */ class Scope { /** + * Unspecified. + * * Generated from protobuf enum SCOPE_UNSPECIFIED = 0; */ const SCOPE_UNSPECIFIED = 0; /** + * Scope: Unchanged (S:U). Defined in CVSS v3. + * * Generated from protobuf enum SCOPE_UNCHANGED = 1; */ const SCOPE_UNCHANGED = 1; /** + * Scope: Changed (S:C). Defined in CVSS v3. + * * Generated from protobuf enum SCOPE_CHANGED = 2; */ const SCOPE_CHANGED = 2; diff --git a/Grafeas/src/V1/CVSS/UserInteraction.php b/Grafeas/src/V1/CVSS/UserInteraction.php index ec30fffd526c..929a34509dea 100644 --- a/Grafeas/src/V1/CVSS/UserInteraction.php +++ b/Grafeas/src/V1/CVSS/UserInteraction.php @@ -7,27 +7,49 @@ use UnexpectedValueException; /** + * User Interaction. + * * Protobuf type grafeas.v1.CVSS.UserInteraction */ class UserInteraction { /** + * Unspecified. + * * Generated from protobuf enum USER_INTERACTION_UNSPECIFIED = 0; */ const USER_INTERACTION_UNSPECIFIED = 0; /** + * No user interaction required (UI:N). Defined in CVSS v3, v4. + * * Generated from protobuf enum USER_INTERACTION_NONE = 1; */ const USER_INTERACTION_NONE = 1; /** + * User interaction required (UI:R). Defined in CVSS v3. + * * Generated from protobuf enum USER_INTERACTION_REQUIRED = 2; */ const USER_INTERACTION_REQUIRED = 2; + /** + * Passive user interaction required (UI:P). Defined in CVSS v4. + * + * Generated from protobuf enum USER_INTERACTION_PASSIVE = 3; + */ + const USER_INTERACTION_PASSIVE = 3; + /** + * Active user interaction required (UI:A). Defined in CVSS v4. + * + * Generated from protobuf enum USER_INTERACTION_ACTIVE = 4; + */ + const USER_INTERACTION_ACTIVE = 4; private static $valueToName = [ self::USER_INTERACTION_UNSPECIFIED => 'USER_INTERACTION_UNSPECIFIED', self::USER_INTERACTION_NONE => 'USER_INTERACTION_NONE', self::USER_INTERACTION_REQUIRED => 'USER_INTERACTION_REQUIRED', + self::USER_INTERACTION_PASSIVE => 'USER_INTERACTION_PASSIVE', + self::USER_INTERACTION_ACTIVE => 'USER_INTERACTION_ACTIVE', ]; public static function name($value) diff --git a/Grafeas/src/V1/CVSSVersion.php b/Grafeas/src/V1/CVSSVersion.php index 8c25036f4fff..2742277cdc44 100644 --- a/Grafeas/src/V1/CVSSVersion.php +++ b/Grafeas/src/V1/CVSSVersion.php @@ -14,22 +14,35 @@ class CVSSVersion { /** + * Unspecified. + * * Generated from protobuf enum CVSS_VERSION_UNSPECIFIED = 0; */ const CVSS_VERSION_UNSPECIFIED = 0; /** + * CVSS v2. + * * Generated from protobuf enum CVSS_VERSION_2 = 1; */ const CVSS_VERSION_2 = 1; /** + * CVSS v3. + * * Generated from protobuf enum CVSS_VERSION_3 = 2; */ const CVSS_VERSION_3 = 2; + /** + * CVSS v4. + * + * Generated from protobuf enum CVSS_VERSION_4 = 3; + */ + const CVSS_VERSION_4 = 3; private static $valueToName = [ self::CVSS_VERSION_UNSPECIFIED => 'CVSS_VERSION_UNSPECIFIED', self::CVSS_VERSION_2 => 'CVSS_VERSION_2', self::CVSS_VERSION_3 => 'CVSS_VERSION_3', + self::CVSS_VERSION_4 => 'CVSS_VERSION_4', ]; public static function name($value) diff --git a/Grafeas/src/V1/VulnerabilityNote.php b/Grafeas/src/V1/VulnerabilityNote.php index 3e1b1c7545c2..86c34eb3ab8a 100644 --- a/Grafeas/src/V1/VulnerabilityNote.php +++ b/Grafeas/src/V1/VulnerabilityNote.php @@ -75,6 +75,12 @@ class VulnerabilityNote extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.protobuf.Timestamp advisory_publish_time = 9; */ protected $advisory_publish_time = null; + /** + * The full description of the v4 CVSS for this vulnerability. + * + * Generated from protobuf field .grafeas.v1.CVSS cvss_v4 = 10; + */ + protected $cvss_v4 = null; /** * Constructor. @@ -106,6 +112,8 @@ class VulnerabilityNote extends \Google\Protobuf\Internal\Message * 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. + * @type \Grafeas\V1\CVSS $cvss_v4 + * The full description of the v4 CVSS for this vulnerability. * } */ public function __construct($data = NULL) { @@ -399,5 +407,41 @@ public function setAdvisoryPublishTime($var) return $this; } + /** + * The full description of the v4 CVSS for this vulnerability. + * + * Generated from protobuf field .grafeas.v1.CVSS cvss_v4 = 10; + * @return \Grafeas\V1\CVSS|null + */ + public function getCvssV4() + { + return $this->cvss_v4; + } + + public function hasCvssV4() + { + return isset($this->cvss_v4); + } + + public function clearCvssV4() + { + unset($this->cvss_v4); + } + + /** + * The full description of the v4 CVSS for this vulnerability. + * + * Generated from protobuf field .grafeas.v1.CVSS cvss_v4 = 10; + * @param \Grafeas\V1\CVSS $var + * @return $this + */ + public function setCvssV4($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\CVSS::class); + $this->cvss_v4 = $var; + + return $this; + } + } diff --git a/Grafeas/src/V1/VulnerabilityOccurrence.php b/Grafeas/src/V1/VulnerabilityOccurrence.php index 980bc5113aef..bb29924e3d5b 100644 --- a/Grafeas/src/V1/VulnerabilityOccurrence.php +++ b/Grafeas/src/V1/VulnerabilityOccurrence.php @@ -116,6 +116,12 @@ class VulnerabilityOccurrence extends \Google\Protobuf\Internal\Message * Generated from protobuf field .grafeas.v1.Risk risk = 15; */ protected $risk = null; + /** + * The cvss v4 score for the vulnerability. + * + * Generated from protobuf field .grafeas.v1.CVSS cvss_v4 = 16; + */ + protected $cvss_v4 = null; /** * Constructor. @@ -165,6 +171,8 @@ class VulnerabilityOccurrence extends \Google\Protobuf\Internal\Message * Occurrence-specific extra details about the vulnerability. * @type \Grafeas\V1\Risk $risk * Risk information about the vulnerability, such as CISA, EPSS, etc. + * @type \Grafeas\V1\CVSS $cvss_v4 + * The cvss v4 score for the vulnerability. * } */ public function __construct($data = NULL) { @@ -624,5 +632,41 @@ public function setRisk($var) return $this; } + /** + * The cvss v4 score for the vulnerability. + * + * Generated from protobuf field .grafeas.v1.CVSS cvss_v4 = 16; + * @return \Grafeas\V1\CVSS|null + */ + public function getCvssV4() + { + return $this->cvss_v4; + } + + public function hasCvssV4() + { + return isset($this->cvss_v4); + } + + public function clearCvssV4() + { + unset($this->cvss_v4); + } + + /** + * The cvss v4 score for the vulnerability. + * + * Generated from protobuf field .grafeas.v1.CVSS cvss_v4 = 16; + * @param \Grafeas\V1\CVSS $var + * @return $this + */ + public function setCvssV4($var) + { + GPBUtil::checkMessage($var, \Grafeas\V1\CVSS::class); + $this->cvss_v4 = $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 42774ef0b8cb..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Attestation.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x88\x03\x0A\x1Cgrafeas/v1/attestation.proto\x12\x0Agrafeas.v1\"f\x0A\x0FAttestationNote\x12.\x0A\x04hint\x18\x01 \x01(\x0B2 .grafeas.v1.AttestationNote.Hint\x1A#\x0A\x04Hint\x12\x1B\x0A\x13human_readable_name\x18\x01 \x01(\x09\"\x1A\x0A\x03Jwt\x12\x13\x0A\x0Bcompact_jwt\x18\x01 \x01(\x09\"}\x0A\x15AttestationOccurrence\x12\x1A\x0A\x12serialized_payload\x18\x01 \x01(\x0C\x12)\x0A\x0Asignatures\x18\x02 \x03(\x0B2\x15.grafeas.v1.Signature\x12\x1D\x0A\x04jwts\x18\x03 \x03(\x0B2\x0F.grafeas.v1.JwtBQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" - , 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 0c3f28167500..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Build.php +++ /dev/null @@ -1,27 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xFC\x03\x0A\x16grafeas/v1/build.proto\x12\x0Agrafeas.v1\x1A!grafeas/v1/intoto_statement.proto\x1A\x1Bgrafeas/v1/provenance.proto\"\$\x0A\x09BuildNote\x12\x17\x0A\x0Fbuilder_version\x18\x01 \x01(\x09\"\x94\x02\x0A\x0FBuildOccurrence\x12/\x0A\x0Aprovenance\x18\x01 \x01(\x0B2\x1B.grafeas.v1.BuildProvenance\x12\x18\x0A\x10provenance_bytes\x18\x02 \x01(\x09\x127\x0A\x11intoto_provenance\x18\x03 \x01(\x0B2\x1C.grafeas.v1.InTotoProvenance\x125\x0A\x10intoto_statement\x18\x04 \x01(\x0B2\x1B.grafeas.v1.InTotoStatement\x12F\x0A\x1Ain_toto_slsa_provenance_v1\x18\x05 \x01(\x0B2\".grafeas.v1.InTotoSlsaProvenanceV1BQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" - , 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 12c668648636..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Common.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x94\x08\x0A\x17grafeas/v1/common.proto\x12\x0Agrafeas.v1\"(\x0A\x0ARelatedUrl\x12\x0B\x0A\x03url\x18\x01 \x01(\x09\x12\x0D\x0A\x05label\x18\x02 \x01(\x09\"5\x0A\x09Signature\x12\x11\x0A\x09signature\x18\x01 \x01(\x0C\x12\x15\x0A\x0Dpublic_key_id\x18\x02 \x01(\x09\"d\x0A\x08Envelope\x12\x0F\x0A\x07payload\x18\x01 \x01(\x0C\x12\x14\x0A\x0Cpayload_type\x18\x02 \x01(\x09\x121\x0A\x0Asignatures\x18\x03 \x03(\x0B2\x1D.grafeas.v1.EnvelopeSignature\"/\x0A\x11EnvelopeSignature\x12\x0B\x0A\x03sig\x18\x01 \x01(\x0C\x12\x0D\x0A\x05keyid\x18\x02 \x01(\x09\"g\x0A\x0CFileLocation\x12\x11\x0A\x09file_path\x18\x01 \x01(\x09\x12/\x0A\x0Dlayer_details\x18\x02 \x01(\x0B2\x18.grafeas.v1.LayerDetails\x12\x13\x0A\x0Bline_number\x18\x03 \x01(\x05\"T\x0A\x09BaseImage\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x12\x0A\x0Arepository\x18\x02 \x01(\x09\x12\x13\x0A\x0Blayer_count\x18\x03 \x01(\x05\x12\x10\x0A\x08registry\x18\x04 \x01(\x09\"}\x0A\x0CLayerDetails\x12\x0D\x0A\x05index\x18\x01 \x01(\x05\x12\x0F\x0A\x07diff_id\x18\x02 \x01(\x09\x12\x10\x0A\x08chain_id\x18\x05 \x01(\x09\x12\x0F\x0A\x07command\x18\x03 \x01(\x09\x12*\x0A\x0Bbase_images\x18\x04 \x03(\x0B2\x15.grafeas.v1.BaseImage\"/\x0A\x07License\x12\x12\x0A\x0Aexpression\x18\x01 \x01(\x09\x12\x10\x0A\x08comments\x18\x02 \x01(\x09\",\x0A\x06Digest\x12\x0C\x0A\x04algo\x18\x01 \x01(\x09\x12\x14\x0A\x0Cdigest_bytes\x18\x02 \x01(\x0C*\xFC\x01\x0A\x08NoteKind\x12\x19\x0A\x15NOTE_KIND_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DVULNERABILITY\x10\x01\x12\x09\x0A\x05BUILD\x10\x02\x12\x09\x0A\x05IMAGE\x10\x03\x12\x0B\x0A\x07PACKAGE\x10\x04\x12\x0E\x0A\x0ADEPLOYMENT\x10\x05\x12\x0D\x0A\x09DISCOVERY\x10\x06\x12\x0F\x0A\x0BATTESTATION\x10\x07\x12\x0B\x0A\x07UPGRADE\x10\x08\x12\x0E\x0A\x0ACOMPLIANCE\x10\x09\x12\x14\x0A\x10DSSE_ATTESTATION\x10\x0A\x12\x1C\x0A\x18VULNERABILITY_ASSESSMENT\x10\x0B\x12\x12\x0A\x0ESBOM_REFERENCE\x10\x0C\x12\x0A\x0A\x06SECRET\x10\x0DBQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Compliance.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Compliance.php deleted file mode 100644 index 3ce1523aa4e3..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Compliance.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xB9\x06\x0A\x1Bgrafeas/v1/compliance.proto\x12\x0Agrafeas.v1\"\xF1\x02\x0A\x0EComplianceNote\x12\x0D\x0A\x05title\x18\x01 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12.\x0A\x07version\x18\x03 \x03(\x0B2\x1D.grafeas.v1.ComplianceVersion\x12\x11\x0A\x09rationale\x18\x04 \x01(\x09\x12\x13\x0A\x0Bremediation\x18\x05 \x01(\x09\x12@\x0A\x0Dcis_benchmark\x18\x06 \x01(\x0B2'.grafeas.v1.ComplianceNote.CisBenchmarkH\x00\x12\x19\x0A\x11scan_instructions\x18\x07 \x01(\x0C\x12\x10\x0A\x06impact\x18\x08 \x01(\x09H\x01\x1AM\x0A\x0CCisBenchmark\x12\x15\x0A\x0Dprofile_level\x18\x01 \x01(\x05\x12&\x0A\x08severity\x18\x02 \x01(\x0E2\x14.grafeas.v1.SeverityB\x11\x0A\x0Fcompliance_typeB\x12\x0A\x10potential_impact\"Q\x0A\x11ComplianceVersion\x12\x0F\x0A\x07cpe_uri\x18\x01 \x01(\x09\x12\x1A\x0A\x12benchmark_document\x18\x03 \x01(\x09\x12\x0F\x0A\x07version\x18\x02 \x01(\x09\"\xA0\x01\x0A\x14ComplianceOccurrence\x129\x0A\x13non_compliant_files\x18\x02 \x03(\x0B2\x1C.grafeas.v1.NonCompliantFile\x12\x1D\x0A\x15non_compliance_reason\x18\x03 \x01(\x09\x12.\x0A\x07version\x18\x04 \x01(\x0B2\x1D.grafeas.v1.ComplianceVersion\"I\x0A\x10NonCompliantFile\x12\x0C\x0A\x04path\x18\x01 \x01(\x09\x12\x17\x0A\x0Fdisplay_command\x18\x02 \x01(\x09\x12\x0E\x0A\x06reason\x18\x03 \x01(\x09BQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Cvss.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Cvss.php deleted file mode 100644 index 142a64ec011a..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Cvss.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x8B\x1E\x0A\x15grafeas/v1/cvss.proto\x12\x0Agrafeas.v1\"\xC5\x09\x0A\x06CVSSv3\x12\x12\x0A\x0Abase_score\x18\x01 \x01(\x02\x12\x1C\x0A\x14exploitability_score\x18\x02 \x01(\x02\x12\x14\x0A\x0Cimpact_score\x18\x03 \x01(\x02\x126\x0A\x0Dattack_vector\x18\x05 \x01(\x0E2\x1F.grafeas.v1.CVSSv3.AttackVector\x12>\x0A\x11attack_complexity\x18\x06 \x01(\x0E2#.grafeas.v1.CVSSv3.AttackComplexity\x12B\x0A\x13privileges_required\x18\x07 \x01(\x0E2%.grafeas.v1.CVSSv3.PrivilegesRequired\x12<\x0A\x10user_interaction\x18\x08 \x01(\x0E2\".grafeas.v1.CVSSv3.UserInteraction\x12'\x0A\x05scope\x18\x09 \x01(\x0E2\x18.grafeas.v1.CVSSv3.Scope\x129\x0A\x16confidentiality_impact\x18\x0A \x01(\x0E2\x19.grafeas.v1.CVSSv3.Impact\x123\x0A\x10integrity_impact\x18\x0B \x01(\x0E2\x19.grafeas.v1.CVSSv3.Impact\x126\x0A\x13availability_impact\x18\x0C \x01(\x0E2\x19.grafeas.v1.CVSSv3.Impact\"\x99\x01\x0A\x0CAttackVector\x12\x1D\x0A\x19ATTACK_VECTOR_UNSPECIFIED\x10\x00\x12\x19\x0A\x15ATTACK_VECTOR_NETWORK\x10\x01\x12\x1A\x0A\x16ATTACK_VECTOR_ADJACENT\x10\x02\x12\x17\x0A\x13ATTACK_VECTOR_LOCAL\x10\x03\x12\x1A\x0A\x16ATTACK_VECTOR_PHYSICAL\x10\x04\"l\x0A\x10AttackComplexity\x12!\x0A\x1DATTACK_COMPLEXITY_UNSPECIFIED\x10\x00\x12\x19\x0A\x15ATTACK_COMPLEXITY_LOW\x10\x01\x12\x1A\x0A\x16ATTACK_COMPLEXITY_HIGH\x10\x02\"\x92\x01\x0A\x12PrivilegesRequired\x12#\x0A\x1FPRIVILEGES_REQUIRED_UNSPECIFIED\x10\x00\x12\x1C\x0A\x18PRIVILEGES_REQUIRED_NONE\x10\x01\x12\x1B\x0A\x17PRIVILEGES_REQUIRED_LOW\x10\x02\x12\x1C\x0A\x18PRIVILEGES_REQUIRED_HIGH\x10\x03\"m\x0A\x0FUserInteraction\x12 \x0A\x1CUSER_INTERACTION_UNSPECIFIED\x10\x00\x12\x19\x0A\x15USER_INTERACTION_NONE\x10\x01\x12\x1D\x0A\x19USER_INTERACTION_REQUIRED\x10\x02\"F\x0A\x05Scope\x12\x15\x0A\x11SCOPE_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FSCOPE_UNCHANGED\x10\x01\x12\x11\x0A\x0DSCOPE_CHANGED\x10\x02\"R\x0A\x06Impact\x12\x16\x0A\x12IMPACT_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BIMPACT_HIGH\x10\x01\x12\x0E\x0A\x0AIMPACT_LOW\x10\x02\x12\x0F\x0A\x0BIMPACT_NONE\x10\x03\"\xCE\x12\x0A\x04CVSS\x12\x12\x0A\x0Abase_score\x18\x01 \x01(\x02\x12\x1C\x0A\x14exploitability_score\x18\x02 \x01(\x02\x12\x14\x0A\x0Cimpact_score\x18\x03 \x01(\x02\x124\x0A\x0Dattack_vector\x18\x04 \x01(\x0E2\x1D.grafeas.v1.CVSS.AttackVector\x12<\x0A\x11attack_complexity\x18\x05 \x01(\x0E2!.grafeas.v1.CVSS.AttackComplexity\x127\x0A\x0Eauthentication\x18\x06 \x01(\x0E2\x1F.grafeas.v1.CVSS.Authentication\x12@\x0A\x13privileges_required\x18\x07 \x01(\x0E2#.grafeas.v1.CVSS.PrivilegesRequired\x12:\x0A\x10user_interaction\x18\x08 \x01(\x0E2 .grafeas.v1.CVSS.UserInteraction\x12%\x0A\x05scope\x18\x09 \x01(\x0E2\x16.grafeas.v1.CVSS.Scope\x127\x0A\x16confidentiality_impact\x18\x0A \x01(\x0E2\x17.grafeas.v1.CVSS.Impact\x121\x0A\x10integrity_impact\x18\x0B \x01(\x0E2\x17.grafeas.v1.CVSS.Impact\x124\x0A\x13availability_impact\x18\x0C \x01(\x0E2\x17.grafeas.v1.CVSS.Impact\x12@\x0A\x13attack_requirements\x18\x0D \x01(\x0E2#.grafeas.v1.CVSS.AttackRequirements\x12I\x0A(vulnerable_system_confidentiality_impact\x18\x0E \x01(\x0E2\x17.grafeas.v1.CVSS.Impact\x12C\x0A\"vulnerable_system_integrity_impact\x18\x0F \x01(\x0E2\x17.grafeas.v1.CVSS.Impact\x12F\x0A%vulnerable_system_availability_impact\x18\x10 \x01(\x0E2\x17.grafeas.v1.CVSS.Impact\x12I\x0A(subsequent_system_confidentiality_impact\x18\x11 \x01(\x0E2\x17.grafeas.v1.CVSS.Impact\x12C\x0A\"subsequent_system_integrity_impact\x18\x12 \x01(\x0E2\x17.grafeas.v1.CVSS.Impact\x12F\x0A%subsequent_system_availability_impact\x18\x13 \x01(\x0E2\x17.grafeas.v1.CVSS.Impact\x12:\x0A\x10exploit_maturity\x18\x14 \x01(\x0E2 .grafeas.v1.CVSS.ExploitMaturity\"\x99\x01\x0A\x0CAttackVector\x12\x1D\x0A\x19ATTACK_VECTOR_UNSPECIFIED\x10\x00\x12\x19\x0A\x15ATTACK_VECTOR_NETWORK\x10\x01\x12\x1A\x0A\x16ATTACK_VECTOR_ADJACENT\x10\x02\x12\x17\x0A\x13ATTACK_VECTOR_LOCAL\x10\x03\x12\x1A\x0A\x16ATTACK_VECTOR_PHYSICAL\x10\x04\"\x8A\x01\x0A\x10AttackComplexity\x12!\x0A\x1DATTACK_COMPLEXITY_UNSPECIFIED\x10\x00\x12\x19\x0A\x15ATTACK_COMPLEXITY_LOW\x10\x01\x12\x1A\x0A\x16ATTACK_COMPLEXITY_HIGH\x10\x02\x12\x1C\x0A\x18ATTACK_COMPLEXITY_MEDIUM\x10\x03\"\x81\x01\x0A\x0EAuthentication\x12\x1E\x0A\x1AAUTHENTICATION_UNSPECIFIED\x10\x00\x12\x1B\x0A\x17AUTHENTICATION_MULTIPLE\x10\x01\x12\x19\x0A\x15AUTHENTICATION_SINGLE\x10\x02\x12\x17\x0A\x13AUTHENTICATION_NONE\x10\x03\"\x92\x01\x0A\x12PrivilegesRequired\x12#\x0A\x1FPRIVILEGES_REQUIRED_UNSPECIFIED\x10\x00\x12\x1C\x0A\x18PRIVILEGES_REQUIRED_NONE\x10\x01\x12\x1B\x0A\x17PRIVILEGES_REQUIRED_LOW\x10\x02\x12\x1C\x0A\x18PRIVILEGES_REQUIRED_HIGH\x10\x03\"\xA8\x01\x0A\x0FUserInteraction\x12 \x0A\x1CUSER_INTERACTION_UNSPECIFIED\x10\x00\x12\x19\x0A\x15USER_INTERACTION_NONE\x10\x01\x12\x1D\x0A\x19USER_INTERACTION_REQUIRED\x10\x02\x12\x1C\x0A\x18USER_INTERACTION_PASSIVE\x10\x03\x12\x1B\x0A\x17USER_INTERACTION_ACTIVE\x10\x04\"F\x0A\x05Scope\x12\x15\x0A\x11SCOPE_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FSCOPE_UNCHANGED\x10\x01\x12\x11\x0A\x0DSCOPE_CHANGED\x10\x02\"{\x0A\x06Impact\x12\x16\x0A\x12IMPACT_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BIMPACT_HIGH\x10\x01\x12\x0E\x0A\x0AIMPACT_LOW\x10\x02\x12\x0F\x0A\x0BIMPACT_NONE\x10\x03\x12\x12\x0A\x0EIMPACT_PARTIAL\x10\x04\x12\x13\x0A\x0FIMPACT_COMPLETE\x10\x05\"x\x0A\x12AttackRequirements\x12#\x0A\x1FATTACK_REQUIREMENTS_UNSPECIFIED\x10\x00\x12\x1C\x0A\x18ATTACK_REQUIREMENTS_NONE\x10\x01\x12\x1F\x0A\x1BATTACK_REQUIREMENTS_PRESENT\x10\x02\"\xAF\x01\x0A\x0FExploitMaturity\x12 \x0A\x1CEXPLOIT_MATURITY_UNSPECIFIED\x10\x00\x12 \x0A\x1CEXPLOIT_MATURITY_NOT_DEFINED\x10\x01\x12\x1D\x0A\x19EXPLOIT_MATURITY_ATTACKED\x10\x02\x12\x18\x0A\x14EXPLOIT_MATURITY_POC\x10\x03\x12\x1F\x0A\x1BEXPLOIT_MATURITY_UNREPORTED\x10\x04*g\x0A\x0BCVSSVersion\x12\x1C\x0A\x18CVSS_VERSION_UNSPECIFIED\x10\x00\x12\x12\x0A\x0ECVSS_VERSION_2\x10\x01\x12\x12\x0A\x0ECVSS_VERSION_3\x10\x02\x12\x12\x0A\x0ECVSS_VERSION_4\x10\x03B\\\x0A\x0Dio.grafeas.v1B\x09CVSSProtoP\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Deployment.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Deployment.php deleted file mode 100644 index b14e83bf749f..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Deployment.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xF6\x03\x0A\x1Bgrafeas/v1/deployment.proto\x12\x0Agrafeas.v1\"&\x0A\x0EDeploymentNote\x12\x14\x0A\x0Cresource_uri\x18\x01 \x03(\x09\"\xC7\x02\x0A\x14DeploymentOccurrence\x12\x12\x0A\x0Auser_email\x18\x01 \x01(\x09\x12/\x0A\x0Bdeploy_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x121\x0A\x0Dundeploy_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x0E\x0A\x06config\x18\x04 \x01(\x09\x12\x0F\x0A\x07address\x18\x05 \x01(\x09\x12\x14\x0A\x0Cresource_uri\x18\x06 \x03(\x09\x12;\x0A\x08platform\x18\x07 \x01(\x0E2).grafeas.v1.DeploymentOccurrence.Platform\"C\x0A\x08Platform\x12\x18\x0A\x14PLATFORM_UNSPECIFIED\x10\x00\x12\x07\x0A\x03GKE\x10\x01\x12\x08\x0A\x04FLEX\x10\x02\x12\x0A\x0A\x06CUSTOM\x10\x03BQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Discovery.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Discovery.php deleted file mode 100644 index ea555f88a4fb..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Discovery.php +++ /dev/null @@ -1,28 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x94\x0F\x0A\x1Agrafeas/v1/discovery.proto\x12\x0Agrafeas.v1\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x17google/rpc/status.proto\x1A\x17grafeas/v1/common.proto\"<\x0A\x0DDiscoveryNote\x12+\x0A\x0Danalysis_kind\x18\x01 \x01(\x0E2\x14.grafeas.v1.NoteKind\"\xFD\x0C\x0A\x13DiscoveryOccurrence\x12O\x0A\x13continuous_analysis\x18\x01 \x01(\x0E22.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis\x12G\x0A\x0Fanalysis_status\x18\x02 \x01(\x0E2..grafeas.v1.DiscoveryOccurrence.AnalysisStatus\x12M\x0A\x12analysis_completed\x18\x07 \x01(\x0B21.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted\x12*\x0A\x0Eanalysis_error\x18\x08 \x03(\x0B2\x12.google.rpc.Status\x121\x0A\x15analysis_status_error\x18\x03 \x01(\x0B2\x12.google.rpc.Status\x12\x0B\x0A\x03cpe\x18\x04 \x01(\x09\x122\x0A\x0Elast_scan_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.Timestamp\x125\x0A\x0Carchive_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12?\x0A\x0Bsbom_status\x18\x09 \x01(\x0B2*.grafeas.v1.DiscoveryOccurrence.SBOMStatus\x12[\x0A\x19vulnerability_attestation\x18\x0A \x01(\x0B28.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation\x123\x0A\x05files\x18\x0B \x03(\x0B2\$.grafeas.v1.DiscoveryOccurrence.File\x12B\x0A\x1Elast_vulnerability_update_time\x18\x0C \x01(\x0B2\x1A.google.protobuf.Timestamp\x1A*\x0A\x11AnalysisCompleted\x12\x15\x0A\x0Danalysis_type\x18\x01 \x03(\x09\x1A\xA9\x01\x0A\x0ASBOMStatus\x12H\x0A\x0Asbom_state\x18\x01 \x01(\x0E24.grafeas.v1.DiscoveryOccurrence.SBOMStatus.SBOMState\x12\x0D\x0A\x05error\x18\x02 \x01(\x09\"B\x0A\x09SBOMState\x12\x1A\x0A\x16SBOM_STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PENDING\x10\x01\x12\x0C\x0A\x08COMPLETE\x10\x02\x1A\xB3\x02\x0A\x18VulnerabilityAttestation\x125\x0A\x11last_attempt_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12e\x0A\x05state\x18\x02 \x01(\x0E2V.grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation.VulnerabilityAttestationState\x12\x0D\x0A\x05error\x18\x03 \x01(\x09\"j\x0A\x1DVulnerabilityAttestationState\x12/\x0A+VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07SUCCESS\x10\x01\x12\x0B\x0A\x07FAILURE\x10\x02\x1A\x85\x01\x0A\x04File\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12@\x0A\x06digest\x18\x02 \x03(\x0B20.grafeas.v1.DiscoveryOccurrence.File.DigestEntry\x1A-\x0A\x0BDigestEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"S\x0A\x12ContinuousAnalysis\x12#\x0A\x1FCONTINUOUS_ANALYSIS_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06ACTIVE\x10\x01\x12\x0C\x0A\x08INACTIVE\x10\x02\"\xA3\x01\x0A\x0EAnalysisStatus\x12\x1F\x0A\x1BANALYSIS_STATUS_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PENDING\x10\x01\x12\x0C\x0A\x08SCANNING\x10\x02\x12\x14\x0A\x10FINISHED_SUCCESS\x10\x03\x12\x0C\x0A\x08COMPLETE\x10\x03\x12\x13\x0A\x0FFINISHED_FAILED\x10\x04\x12\x18\x0A\x14FINISHED_UNSUPPORTED\x10\x05\x1A\x02\x10\x01BQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - 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 f7e7f5396088..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/DsseAttestation.php +++ /dev/null @@ -1,26 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xB0\x03\x0A!grafeas/v1/dsse_attestation.proto\x12\x0Agrafeas.v1\x1A!grafeas/v1/intoto_statement.proto\"v\x0A\x13DSSEAttestationNote\x126\x0A\x04hint\x18\x01 \x01(\x0B2(.grafeas.v1.DSSEAttestationNote.DSSEHint\x1A'\x0A\x08DSSEHint\x12\x1B\x0A\x13human_readable_name\x18\x01 \x01(\x09\"\x88\x01\x0A\x19DSSEAttestationOccurrence\x12&\x0A\x08envelope\x18\x01 \x01(\x0B2\x14.grafeas.v1.Envelope\x120\x0A\x09statement\x18\x02 \x01(\x0B2\x1B.grafeas.v1.InTotoStatementH\x00B\x11\x0A\x0Fdecoded_payloadBQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Grafeas.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Grafeas.php deleted file mode 100644 index 92247f411aa2..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Grafeas.php +++ /dev/null @@ -1,45 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xCB<\x0A\x18grafeas/v1/grafeas.proto\x12\x0Agrafeas.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x1Cgrafeas/v1/attestation.proto\x1A\x16grafeas/v1/build.proto\x1A\x17grafeas/v1/common.proto\x1A\x1Bgrafeas/v1/compliance.proto\x1A\x1Bgrafeas/v1/deployment.proto\x1A\x1Agrafeas/v1/discovery.proto\x1A!grafeas/v1/dsse_attestation.proto\x1A\x16grafeas/v1/image.proto\x1A\x18grafeas/v1/package.proto\x1A\x15grafeas/v1/sbom.proto\x1A\x17grafeas/v1/secret.proto\x1A\x18grafeas/v1/upgrade.proto\x1A\x14grafeas/v1/vex.proto\x1A\x1Egrafeas/v1/vulnerability.proto\"\xEA\x07\x0A\x0AOccurrence\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x14\x0A\x0Cresource_uri\x18\x02 \x01(\x09\x12\x11\x0A\x09note_name\x18\x03 \x01(\x09\x12\"\x0A\x04kind\x18\x04 \x01(\x0E2\x14.grafeas.v1.NoteKind\x12\x13\x0A\x0Bremediation\x18\x05 \x01(\x09\x12/\x0A\x0Bcreate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bupdate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12<\x0A\x0Dvulnerability\x18\x08 \x01(\x0B2#.grafeas.v1.VulnerabilityOccurrenceH\x00\x12,\x0A\x05build\x18\x09 \x01(\x0B2\x1B.grafeas.v1.BuildOccurrenceH\x00\x12,\x0A\x05image\x18\x0A \x01(\x0B2\x1B.grafeas.v1.ImageOccurrenceH\x00\x120\x0A\x07package\x18\x0B \x01(\x0B2\x1D.grafeas.v1.PackageOccurrenceH\x00\x126\x0A\x0Adeployment\x18\x0C \x01(\x0B2 .grafeas.v1.DeploymentOccurrenceH\x00\x124\x0A\x09discovery\x18\x0D \x01(\x0B2\x1F.grafeas.v1.DiscoveryOccurrenceH\x00\x128\x0A\x0Battestation\x18\x0E \x01(\x0B2!.grafeas.v1.AttestationOccurrenceH\x00\x120\x0A\x07upgrade\x18\x0F \x01(\x0B2\x1D.grafeas.v1.UpgradeOccurrenceH\x00\x126\x0A\x0Acompliance\x18\x10 \x01(\x0B2 .grafeas.v1.ComplianceOccurrenceH\x00\x12A\x0A\x10dsse_attestation\x18\x11 \x01(\x0B2%.grafeas.v1.DSSEAttestationOccurrenceH\x00\x12=\x0A\x0Esbom_reference\x18\x13 \x01(\x0B2#.grafeas.v1.SBOMReferenceOccurrenceH\x00\x12.\x0A\x06secret\x18\x14 \x01(\x0B2\x1C.grafeas.v1.SecretOccurrenceH\x00\x12&\x0A\x08envelope\x18\x12 \x01(\x0B2\x14.grafeas.v1.Envelope:G\xEAAD\x0A\x15grafeas.io/Occurrence\x12+projects/{project}/occurrences/{occurrence}B\x09\x0A\x07details\"\xA1\x08\x0A\x04Note\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x19\x0A\x11short_description\x18\x02 \x01(\x09\x12\x18\x0A\x10long_description\x18\x03 \x01(\x09\x12\"\x0A\x04kind\x18\x04 \x01(\x0E2\x14.grafeas.v1.NoteKind\x12+\x0A\x0Brelated_url\x18\x05 \x03(\x0B2\x16.grafeas.v1.RelatedUrl\x123\x0A\x0Fexpiration_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bcreate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bupdate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x1A\x0A\x12related_note_names\x18\x09 \x03(\x09\x126\x0A\x0Dvulnerability\x18\x0A \x01(\x0B2\x1D.grafeas.v1.VulnerabilityNoteH\x00\x12&\x0A\x05build\x18\x0B \x01(\x0B2\x15.grafeas.v1.BuildNoteH\x00\x12&\x0A\x05image\x18\x0C \x01(\x0B2\x15.grafeas.v1.ImageNoteH\x00\x12*\x0A\x07package\x18\x0D \x01(\x0B2\x17.grafeas.v1.PackageNoteH\x00\x120\x0A\x0Adeployment\x18\x0E \x01(\x0B2\x1A.grafeas.v1.DeploymentNoteH\x00\x12.\x0A\x09discovery\x18\x0F \x01(\x0B2\x19.grafeas.v1.DiscoveryNoteH\x00\x122\x0A\x0Battestation\x18\x10 \x01(\x0B2\x1B.grafeas.v1.AttestationNoteH\x00\x12*\x0A\x07upgrade\x18\x11 \x01(\x0B2\x17.grafeas.v1.UpgradeNoteH\x00\x120\x0A\x0Acompliance\x18\x12 \x01(\x0B2\x1A.grafeas.v1.ComplianceNoteH\x00\x12;\x0A\x10dsse_attestation\x18\x13 \x01(\x0B2\x1F.grafeas.v1.DSSEAttestationNoteH\x00\x12K\x0A\x18vulnerability_assessment\x18\x14 \x01(\x0B2'.grafeas.v1.VulnerabilityAssessmentNoteH\x00\x127\x0A\x0Esbom_reference\x18\x15 \x01(\x0B2\x1D.grafeas.v1.SBOMReferenceNoteH\x00\x12(\x0A\x06secret\x18\x16 \x01(\x0B2\x16.grafeas.v1.SecretNoteH\x00:5\xEAA2\x0A\x0Fgrafeas.io/Note\x12\x1Fprojects/{project}/notes/{note}B\x06\x0A\x04type\"C\x0A\x14GetOccurrenceRequest\x12+\x0A\x04name\x18\x01 \x01(\x09B\x1D\xE0A\x02\xFAA\x17\x0A\x15grafeas.io/Occurrence\"\x9B\x01\x0A\x16ListOccurrencesRequest\x12*\x0A\x06parent\x18\x01 \x01(\x09B\x1A\xE0A\x02\xFAA\x14\x0A\x12grafeas.io/Project\x12\x0E\x0A\x06filter\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x04 \x01(\x09\x12\x1E\x0A\x16return_partial_success\x18\x05 \x01(\x08\"y\x0A\x17ListOccurrencesResponse\x12+\x0A\x0Boccurrences\x18\x01 \x03(\x0B2\x16.grafeas.v1.Occurrence\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x18\x0A\x0Bunreachable\x18\x03 \x03(\x09B\x03\xE0A\x06\"F\x0A\x17DeleteOccurrenceRequest\x12+\x0A\x04name\x18\x01 \x01(\x09B\x1D\xE0A\x02\xFAA\x17\x0A\x15grafeas.io/Occurrence\"v\x0A\x17CreateOccurrenceRequest\x12*\x0A\x06parent\x18\x01 \x01(\x09B\x1A\xE0A\x02\xFAA\x14\x0A\x12grafeas.io/Project\x12/\x0A\x0Aoccurrence\x18\x02 \x01(\x0B2\x16.grafeas.v1.OccurrenceB\x03\xE0A\x02\"\xA8\x01\x0A\x17UpdateOccurrenceRequest\x12+\x0A\x04name\x18\x01 \x01(\x09B\x1D\xE0A\x02\xFAA\x17\x0A\x15grafeas.io/Occurrence\x12/\x0A\x0Aoccurrence\x18\x02 \x01(\x0B2\x16.grafeas.v1.OccurrenceB\x03\xE0A\x02\x12/\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMask\"7\x0A\x0EGetNoteRequest\x12%\x0A\x04name\x18\x01 \x01(\x09B\x17\xE0A\x02\xFAA\x11\x0A\x0Fgrafeas.io/Note\"G\x0A\x18GetOccurrenceNoteRequest\x12+\x0A\x04name\x18\x01 \x01(\x09B\x1D\xE0A\x02\xFAA\x17\x0A\x15grafeas.io/Occurrence\"\x95\x01\x0A\x10ListNotesRequest\x12*\x0A\x06parent\x18\x01 \x01(\x09B\x1A\xE0A\x02\xFAA\x14\x0A\x12grafeas.io/Project\x12\x0E\x0A\x06filter\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x04 \x01(\x09\x12\x1E\x0A\x16return_partial_success\x18\x05 \x01(\x08\"g\x0A\x11ListNotesResponse\x12\x1F\x0A\x05notes\x18\x01 \x03(\x0B2\x10.grafeas.v1.Note\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x18\x0A\x0Bunreachable\x18\x03 \x03(\x09B\x03\xE0A\x06\":\x0A\x11DeleteNoteRequest\x12%\x0A\x04name\x18\x01 \x01(\x09B\x17\xE0A\x02\xFAA\x11\x0A\x0Fgrafeas.io/Note\"z\x0A\x11CreateNoteRequest\x12*\x0A\x06parent\x18\x01 \x01(\x09B\x1A\xE0A\x02\xFAA\x14\x0A\x12grafeas.io/Project\x12\x14\x0A\x07note_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12#\x0A\x04note\x18\x03 \x01(\x0B2\x10.grafeas.v1.NoteB\x03\xE0A\x02\"\x90\x01\x0A\x11UpdateNoteRequest\x12%\x0A\x04name\x18\x01 \x01(\x09B\x17\xE0A\x02\xFAA\x11\x0A\x0Fgrafeas.io/Note\x12#\x0A\x04note\x18\x02 \x01(\x0B2\x10.grafeas.v1.NoteB\x03\xE0A\x02\x12/\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMask\"z\x0A\x1AListNoteOccurrencesRequest\x12%\x0A\x04name\x18\x01 \x01(\x09B\x17\xE0A\x02\xFAA\x11\x0A\x0Fgrafeas.io/Note\x12\x0E\x0A\x06filter\x18\x02 \x01(\x09\x12\x11\x0A\x09page_size\x18\x03 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x04 \x01(\x09\"c\x0A\x1BListNoteOccurrencesResponse\x12+\x0A\x0Boccurrences\x18\x01 \x03(\x0B2\x16.grafeas.v1.Occurrence\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xC9\x01\x0A\x17BatchCreateNotesRequest\x12*\x0A\x06parent\x18\x01 \x01(\x09B\x1A\xE0A\x02\xFAA\x14\x0A\x12grafeas.io/Project\x12B\x0A\x05notes\x18\x02 \x03(\x0B2..grafeas.v1.BatchCreateNotesRequest.NotesEntryB\x03\xE0A\x02\x1A>\x0A\x0ANotesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x1F\x0A\x05value\x18\x02 \x01(\x0B2\x10.grafeas.v1.Note:\x028\x01\";\x0A\x18BatchCreateNotesResponse\x12\x1F\x0A\x05notes\x18\x01 \x03(\x0B2\x10.grafeas.v1.Note\"}\x0A\x1DBatchCreateOccurrencesRequest\x12*\x0A\x06parent\x18\x01 \x01(\x09B\x1A\xE0A\x02\xFAA\x14\x0A\x12grafeas.io/Project\x120\x0A\x0Boccurrences\x18\x02 \x03(\x0B2\x16.grafeas.v1.OccurrenceB\x03\xE0A\x02\"M\x0A\x1EBatchCreateOccurrencesResponse\x12+\x0A\x0Boccurrences\x18\x01 \x03(\x0B2\x16.grafeas.v1.Occurrence2\x8D\x16\x0A\x07Grafeas\x12\xB0\x01\x0A\x0DGetOccurrence\x12 .grafeas.v1.GetOccurrenceRequest\x1A\x16.grafeas.v1.Occurrence\"e\xDAA\x04name\x82\xD3\xE4\x93\x02X\x12#/v1/{name=projects/*/occurrences/*}Z1\x12//v1/{name=projects/*/locations/*/occurrences/*}\x12\xCA\x01\x0A\x0FListOccurrences\x12\".grafeas.v1.ListOccurrencesRequest\x1A#.grafeas.v1.ListOccurrencesResponse\"n\xDAA\x0Dparent,filter\x82\xD3\xE4\x93\x02X\x12#/v1/{parent=projects/*}/occurrencesZ1\x12//v1/{parent=projects/*/locations/*}/occurrences\x12\xB6\x01\x0A\x10DeleteOccurrence\x12#.grafeas.v1.DeleteOccurrenceRequest\x1A\x16.google.protobuf.Empty\"e\xDAA\x04name\x82\xD3\xE4\x93\x02X*#/v1/{name=projects/*/occurrences/*}Z1*//v1/{name=projects/*/locations/*/occurrences/*}\x12\xDC\x01\x0A\x10CreateOccurrence\x12#.grafeas.v1.CreateOccurrenceRequest\x1A\x16.grafeas.v1.Occurrence\"\x8A\x01\xDAA\x11parent,occurrence\x82\xD3\xE4\x93\x02p\"#/v1/{parent=projects/*}/occurrences:\x0AoccurrenceZ=\"//v1/{parent=projects/*/locations/*}/occurrences:\x0Aoccurrence\x12\x83\x02\x0A\x16BatchCreateOccurrences\x12).grafeas.v1.BatchCreateOccurrencesRequest\x1A*.grafeas.v1.BatchCreateOccurrencesResponse\"\x91\x01\xDAA\x12parent,occurrences\x82\xD3\xE4\x93\x02v\"//v1/{parent=projects/*}/occurrences:batchCreate:\x01*Z@\";/v1/{parent=projects/*/locations/*}/occurrences:batchCreate:\x01*\x12\xE6\x01\x0A\x10UpdateOccurrence\x12#.grafeas.v1.UpdateOccurrenceRequest\x1A\x16.grafeas.v1.Occurrence\"\x94\x01\xDAA\x1Bname,occurrence,update_mask\x82\xD3\xE4\x93\x02p2#/v1/{name=projects/*/occurrences/*}:\x0AoccurrenceZ=2//v1/{name=projects/*/locations/*/occurrences/*}:\x0Aoccurrence\x12\xBE\x01\x0A\x11GetOccurrenceNote\x12\$.grafeas.v1.GetOccurrenceNoteRequest\x1A\x10.grafeas.v1.Note\"q\xDAA\x04name\x82\xD3\xE4\x93\x02d\x12)/v1/{name=projects/*/occurrences/*}/notesZ7\x125/v1/{name=projects/*/locations/*/occurrences/*}/notes\x12\x92\x01\x0A\x07GetNote\x12\x1A.grafeas.v1.GetNoteRequest\x1A\x10.grafeas.v1.Note\"Y\xDAA\x04name\x82\xD3\xE4\x93\x02L\x12\x1D/v1/{name=projects/*/notes/*}Z+\x12)/v1/{name=projects/*/locations/*/notes/*}\x12\xAC\x01\x0A\x09ListNotes\x12\x1C.grafeas.v1.ListNotesRequest\x1A\x1D.grafeas.v1.ListNotesResponse\"b\xDAA\x0Dparent,filter\x82\xD3\xE4\x93\x02L\x12\x1D/v1/{parent=projects/*}/notesZ+\x12)/v1/{parent=projects/*/locations/*}/notes\x12\x9E\x01\x0A\x0ADeleteNote\x12\x1D.grafeas.v1.DeleteNoteRequest\x1A\x16.google.protobuf.Empty\"Y\xDAA\x04name\x82\xD3\xE4\x93\x02L*\x1D/v1/{name=projects/*/notes/*}Z+*)/v1/{name=projects/*/locations/*/notes/*}\x12\xB3\x01\x0A\x0ACreateNote\x12\x1D.grafeas.v1.CreateNoteRequest\x1A\x10.grafeas.v1.Note\"t\xDAA\x13parent,note_id,note\x82\xD3\xE4\x93\x02X\"\x1D/v1/{parent=projects/*}/notes:\x04noteZ1\")/v1/{parent=projects/*/locations/*}/notes:\x04note\x12\xDE\x01\x0A\x10BatchCreateNotes\x12#.grafeas.v1.BatchCreateNotesRequest\x1A\$.grafeas.v1.BatchCreateNotesResponse\"\x7F\xDAA\x0Cparent,notes\x82\xD3\xE4\x93\x02j\")/v1/{parent=projects/*}/notes:batchCreate:\x01*Z:\"5/v1/{parent=projects/*/locations/*}/notes:batchCreate:\x01*\x12\xB5\x01\x0A\x0AUpdateNote\x12\x1D.grafeas.v1.UpdateNoteRequest\x1A\x10.grafeas.v1.Note\"v\xDAA\x15name,note,update_mask\x82\xD3\xE4\x93\x02X2\x1D/v1/{name=projects/*/notes/*}:\x04noteZ12)/v1/{name=projects/*/locations/*/notes/*}:\x04note\x12\xE0\x01\x0A\x13ListNoteOccurrences\x12&.grafeas.v1.ListNoteOccurrencesRequest\x1A'.grafeas.v1.ListNoteOccurrencesResponse\"x\xDAA\x0Bname,filter\x82\xD3\xE4\x93\x02d\x12)/v1/{name=projects/*/notes/*}/occurrencesZ7\x125/v1/{name=projects/*/locations/*/notes/*}/occurrences\x1A#\xCAA containeranalysis.googleapis.comB|\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRA\xEAA(\x0A\x12grafeas.io/Project\x12\x12projects/{project}b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - 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 5d8d5c9a7ba2..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Image.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xD7\x03\x0A\x16grafeas/v1/image.proto\x12\x0Agrafeas.v1\"-\x0A\x05Layer\x12\x11\x0A\x09directive\x18\x01 \x01(\x09\x12\x11\x0A\x09arguments\x18\x02 \x01(\x09\"@\x0A\x0BFingerprint\x12\x0F\x0A\x07v1_name\x18\x01 \x01(\x09\x12\x0F\x0A\x07v2_blob\x18\x02 \x03(\x09\x12\x0F\x0A\x07v2_name\x18\x03 \x01(\x09\"O\x0A\x09ImageNote\x12\x14\x0A\x0Cresource_url\x18\x01 \x01(\x09\x12,\x0A\x0Bfingerprint\x18\x02 \x01(\x0B2\x17.grafeas.v1.Fingerprint\"\x93\x01\x0A\x0FImageOccurrence\x12,\x0A\x0Bfingerprint\x18\x01 \x01(\x0B2\x17.grafeas.v1.Fingerprint\x12\x10\x0A\x08distance\x18\x02 \x01(\x05\x12%\x0A\x0Alayer_info\x18\x03 \x03(\x0B2\x11.grafeas.v1.Layer\x12\x19\x0A\x11base_resource_url\x18\x04 \x01(\x09BQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" - , 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 67ab4b1e4b58..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/IntotoProvenance.php +++ /dev/null @@ -1,26 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xCE\x06\x0A\"grafeas/v1/intoto_provenance.proto\x12\x0Agrafeas.v1\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x9C\x01\x0A\x06Recipe\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x1B\x0A\x13defined_in_material\x18\x02 \x01(\x03\x12\x13\x0A\x0Bentry_point\x18\x03 \x01(\x09\x12'\x0A\x09arguments\x18\x04 \x03(\x0B2\x14.google.protobuf.Any\x12)\x0A\x0Benvironment\x18\x05 \x03(\x0B2\x14.google.protobuf.Any\"I\x0A\x0CCompleteness\x12\x11\x0A\x09arguments\x18\x01 \x01(\x08\x12\x13\x0A\x0Benvironment\x18\x02 \x01(\x08\x12\x11\x0A\x09materials\x18\x03 \x01(\x08\"\xDA\x01\x0A\x08Metadata\x12\x1B\x0A\x13build_invocation_id\x18\x01 \x01(\x09\x124\x0A\x10build_started_on\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x125\x0A\x11build_finished_on\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12.\x0A\x0Ccompleteness\x18\x04 \x01(\x0B2\x18.grafeas.v1.Completeness\x12\x14\x0A\x0Creproducible\x18\x05 \x01(\x08\"\x1B\x0A\x0DBuilderConfig\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\"\xA4\x01\x0A\x10InTotoProvenance\x121\x0A\x0Ebuilder_config\x18\x01 \x01(\x0B2\x19.grafeas.v1.BuilderConfig\x12\"\x0A\x06recipe\x18\x02 \x01(\x0B2\x12.grafeas.v1.Recipe\x12&\x0A\x08metadata\x18\x03 \x01(\x0B2\x14.grafeas.v1.Metadata\x12\x11\x0A\x09materials\x18\x04 \x03(\x09Bh\x0A\x0Dio.grafeas.v1B\x15InTotoProvenanceProtoP\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" - , 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 6ca1135941eb..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/IntotoStatement.php +++ /dev/null @@ -1,29 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x9F\x12\x0A!grafeas/v1/intoto_statement.proto\x12\x0Agrafeas.v1\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\"grafeas/v1/intoto_provenance.proto\x1A grafeas/v1/slsa_provenance.proto\x1A)grafeas/v1/slsa_provenance_zero_two.proto\"\xA3\x02\x0A\x0FInTotoStatement\x12\x13\x0A\x04type\x18\x01 \x01(\x09R\x05_type\x12\$\x0A\x07subject\x18\x02 \x03(\x0B2\x13.grafeas.v1.Subject\x12\x16\x0A\x0Epredicate_type\x18\x03 \x01(\x09\x122\x0A\x0Aprovenance\x18\x04 \x01(\x0B2\x1C.grafeas.v1.InTotoProvenanceH\x00\x125\x0A\x0Fslsa_provenance\x18\x05 \x01(\x0B2\x1A.grafeas.v1.SlsaProvenanceH\x00\x12E\x0A\x18slsa_provenance_zero_two\x18\x06 \x01(\x0B2!.grafeas.v1.SlsaProvenanceZeroTwoH\x00B\x0B\x0A\x09predicate\"w\x0A\x07Subject\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12/\x0A\x06digest\x18\x02 \x03(\x0B2\x1F.grafeas.v1.Subject.DigestEntry\x1A-\x0A\x0BDigestEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xCB\x0C\x0A\x16InTotoSlsaProvenanceV1\x12\x13\x0A\x04type\x18\x01 \x01(\x09R\x05_type\x12\$\x0A\x07subject\x18\x02 \x03(\x0B2\x13.grafeas.v1.Subject\x12\x16\x0A\x0Epredicate_type\x18\x03 \x01(\x09\x12F\x0A\x09predicate\x18\x04 \x01(\x0B23.grafeas.v1.InTotoSlsaProvenanceV1.SlsaProvenanceV1\x1A\xA4\x01\x0A\x10SlsaProvenanceV1\x12L\x0A\x10build_definition\x18\x01 \x01(\x0B22.grafeas.v1.InTotoSlsaProvenanceV1.BuildDefinition\x12B\x0A\x0Brun_details\x18\x02 \x01(\x0B2-.grafeas.v1.InTotoSlsaProvenanceV1.RunDetails\x1A\xE7\x01\x0A\x0FBuildDefinition\x12\x12\x0A\x0Abuild_type\x18\x01 \x01(\x09\x124\x0A\x13external_parameters\x18\x02 \x01(\x0B2\x17.google.protobuf.Struct\x124\x0A\x13internal_parameters\x18\x03 \x01(\x0B2\x17.google.protobuf.Struct\x12T\x0A\x15resolved_dependencies\x18\x04 \x03(\x0B25.grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor\x1A\x9A\x03\x0A\x12ResourceDescriptor\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0B\x0A\x03uri\x18\x02 \x01(\x09\x12Q\x0A\x06digest\x18\x03 \x03(\x0B2A.grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor.DigestEntry\x12\x0F\x0A\x07content\x18\x04 \x01(\x0C\x12\x19\x0A\x11download_location\x18\x05 \x01(\x09\x12\x12\x0A\x0Amedia_type\x18\x06 \x01(\x09\x12[\x0A\x0Bannotations\x18\x07 \x03(\x0B2F.grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor.AnnotationsEntry\x1A-\x0A\x0BDigestEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1AJ\x0A\x10AnnotationsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12%\x0A\x05value\x18\x02 \x01(\x0B2\x16.google.protobuf.Value:\x028\x01\x1A\xE2\x01\x0A\x0ARunDetails\x12E\x0A\x07builder\x18\x01 \x01(\x0B24.grafeas.v1.InTotoSlsaProvenanceV1.ProvenanceBuilder\x12B\x0A\x08metadata\x18\x02 \x01(\x0B20.grafeas.v1.InTotoSlsaProvenanceV1.BuildMetadata\x12I\x0A\x0Abyproducts\x18\x03 \x03(\x0B25.grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor\x1A\xF8\x01\x0A\x11ProvenanceBuilder\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x12R\x0A\x07version\x18\x02 \x03(\x0B2A.grafeas.v1.InTotoSlsaProvenanceV1.ProvenanceBuilder.VersionEntry\x12S\x0A\x14builder_dependencies\x18\x03 \x03(\x0B25.grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor\x1A.\x0A\x0CVersionEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A\x87\x01\x0A\x0DBuildMetadata\x12\x15\x0A\x0Dinvocation_id\x18\x01 \x01(\x09\x12.\x0A\x0Astarted_on\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bfinished_on\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampBg\x0A\x0Dio.grafeas.v1B\x14InTotoStatementProtoP\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - 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 e195c07f7c9c..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Package.php +++ /dev/null @@ -1,26 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xA6\x0A\x0A\x18grafeas/v1/package.proto\x12\x0Agrafeas.v1\x1A\x17grafeas/v1/common.proto\"\xB7\x01\x0A\x0CDistribution\x12\x14\x0A\x07cpe_uri\x18\x01 \x01(\x09B\x03\xE0A\x02\x12.\x0A\x0Carchitecture\x18\x02 \x01(\x0E2\x18.grafeas.v1.Architecture\x12+\x0A\x0Elatest_version\x18\x03 \x01(\x0B2\x13.grafeas.v1.Version\x12\x12\x0A\x0Amaintainer\x18\x04 \x01(\x09\x12\x0B\x0A\x03url\x18\x05 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x06 \x01(\x09\"O\x0A\x08Location\x12\x0F\x0A\x07cpe_uri\x18\x01 \x01(\x09\x12\$\x0A\x07version\x18\x02 \x01(\x0B2\x13.grafeas.v1.Version\x12\x0C\x0A\x04path\x18\x03 \x01(\x09\"\xD0\x02\x0A\x0BPackageNote\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x02\xE0A\x05\x12.\x0A\x0Cdistribution\x18\x0A \x03(\x0B2\x18.grafeas.v1.Distribution\x12\x14\x0A\x0Cpackage_type\x18\x0B \x01(\x09\x12\x0F\x0A\x07cpe_uri\x18\x0C \x01(\x09\x12.\x0A\x0Carchitecture\x18\x0D \x01(\x0E2\x18.grafeas.v1.Architecture\x12\$\x0A\x07version\x18\x0E \x01(\x0B2\x13.grafeas.v1.Version\x12\x12\x0A\x0Amaintainer\x18\x0F \x01(\x09\x12\x0B\x0A\x03url\x18\x10 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x11 \x01(\x09\x12\$\x0A\x07license\x18\x12 \x01(\x0B2\x13.grafeas.v1.License\x12\"\x0A\x06digest\x18\x13 \x03(\x0B2\x12.grafeas.v1.Digest\"\x88\x02\x0A\x11PackageOccurrence\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x02\xE0A\x03\x12&\x0A\x08location\x18\x02 \x03(\x0B2\x14.grafeas.v1.Location\x12\x19\x0A\x0Cpackage_type\x18\x03 \x01(\x09B\x03\xE0A\x03\x12\x14\x0A\x07cpe_uri\x18\x04 \x01(\x09B\x03\xE0A\x03\x123\x0A\x0Carchitecture\x18\x05 \x01(\x0E2\x18.grafeas.v1.ArchitectureB\x03\xE0A\x03\x12\$\x0A\x07license\x18\x06 \x01(\x0B2\x13.grafeas.v1.License\x12)\x0A\x07version\x18\x07 \x01(\x0B2\x13.grafeas.v1.VersionB\x03\xE0A\x03\"\xE0\x01\x0A\x07Version\x12\x0D\x0A\x05epoch\x18\x01 \x01(\x05\x12\x0C\x0A\x04name\x18\x02 \x01(\x09\x12\x10\x0A\x08revision\x18\x03 \x01(\x09\x12\x11\x0A\x09inclusive\x18\x06 \x01(\x08\x12-\x0A\x04kind\x18\x04 \x01(\x0E2\x1F.grafeas.v1.Version.VersionKind\x12\x11\x0A\x09full_name\x18\x05 \x01(\x09\"Q\x0A\x0BVersionKind\x12\x1C\x0A\x18VERSION_KIND_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06NORMAL\x10\x01\x12\x0B\x0A\x07MINIMUM\x10\x02\x12\x0B\x0A\x07MAXIMUM\x10\x03*>\x0A\x0CArchitecture\x12\x1C\x0A\x18ARCHITECTURE_UNSPECIFIED\x10\x00\x12\x07\x0A\x03X86\x10\x01\x12\x07\x0A\x03X64\x10\x02BQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - 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 8f5db5977ef6..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Provenance.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xBA\x10\x0A\x1Bgrafeas/v1/provenance.proto\x12\x0Agrafeas.v1\"\x90\x04\x0A\x0FBuildProvenance\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x12\x12\x0A\x0Aproject_id\x18\x02 \x01(\x09\x12%\x0A\x08commands\x18\x03 \x03(\x0B2\x13.grafeas.v1.Command\x12-\x0A\x0Fbuilt_artifacts\x18\x04 \x03(\x0B2\x14.grafeas.v1.Artifact\x12/\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12.\x0A\x0Astart_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x0F\x0A\x07creator\x18\x08 \x01(\x09\x12\x10\x0A\x08logs_uri\x18\x09 \x01(\x09\x12-\x0A\x11source_provenance\x18\x0A \x01(\x0B2\x12.grafeas.v1.Source\x12\x12\x0A\x0Atrigger_id\x18\x0B \x01(\x09\x12D\x0A\x0Dbuild_options\x18\x0C \x03(\x0B2-.grafeas.v1.BuildProvenance.BuildOptionsEntry\x12\x17\x0A\x0Fbuilder_version\x18\x0D \x01(\x09\x1A3\x0A\x11BuildOptionsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\x95\x02\x0A\x06Source\x12#\x0A\x1Bartifact_storage_source_uri\x18\x01 \x01(\x09\x127\x0A\x0Bfile_hashes\x18\x02 \x03(\x0B2\".grafeas.v1.Source.FileHashesEntry\x12*\x0A\x07context\x18\x03 \x01(\x0B2\x19.grafeas.v1.SourceContext\x126\x0A\x13additional_contexts\x18\x04 \x03(\x0B2\x19.grafeas.v1.SourceContext\x1AI\x0A\x0FFileHashesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12%\x0A\x05value\x18\x02 \x01(\x0B2\x16.grafeas.v1.FileHashes:\x028\x01\"1\x0A\x0AFileHashes\x12#\x0A\x09file_hash\x18\x01 \x03(\x0B2\x10.grafeas.v1.Hash\"#\x0A\x04Hash\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x0C\"]\x0A\x07Command\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0B\x0A\x03env\x18\x02 \x03(\x09\x12\x0C\x0A\x04args\x18\x03 \x03(\x09\x12\x0B\x0A\x03dir\x18\x04 \x01(\x09\x12\x0A\x0A\x02id\x18\x05 \x01(\x09\x12\x10\x0A\x08wait_for\x18\x06 \x03(\x09\"7\x0A\x08Artifact\x12\x10\x0A\x08checksum\x18\x01 \x01(\x09\x12\x0A\x0A\x02id\x18\x02 \x01(\x09\x12\x0D\x0A\x05names\x18\x03 \x03(\x09\"\x9A\x02\x0A\x0DSourceContext\x128\x0A\x0Acloud_repo\x18\x01 \x01(\x0B2\".grafeas.v1.CloudRepoSourceContextH\x00\x121\x0A\x06gerrit\x18\x02 \x01(\x0B2\x1F.grafeas.v1.GerritSourceContextH\x00\x12+\x0A\x03git\x18\x03 \x01(\x0B2\x1C.grafeas.v1.GitSourceContextH\x00\x125\x0A\x06labels\x18\x04 \x03(\x0B2%.grafeas.v1.SourceContext.LabelsEntry\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01B\x09\x0A\x07context\"\x8A\x01\x0A\x0CAliasContext\x12+\x0A\x04kind\x18\x01 \x01(\x0E2\x1D.grafeas.v1.AliasContext.Kind\x12\x0C\x0A\x04name\x18\x02 \x01(\x09\"?\x0A\x04Kind\x12\x14\x0A\x10KIND_UNSPECIFIED\x10\x00\x12\x09\x0A\x05FIXED\x10\x01\x12\x0B\x0A\x07MOVABLE\x10\x02\x12\x09\x0A\x05OTHER\x10\x04\"\x93\x01\x0A\x16CloudRepoSourceContext\x12#\x0A\x07repo_id\x18\x01 \x01(\x0B2\x12.grafeas.v1.RepoId\x12\x15\x0A\x0Brevision_id\x18\x02 \x01(\x09H\x00\x121\x0A\x0Dalias_context\x18\x03 \x01(\x0B2\x18.grafeas.v1.AliasContextH\x00B\x0A\x0A\x08revision\"\x95\x01\x0A\x13GerritSourceContext\x12\x10\x0A\x08host_uri\x18\x01 \x01(\x09\x12\x16\x0A\x0Egerrit_project\x18\x02 \x01(\x09\x12\x15\x0A\x0Brevision_id\x18\x03 \x01(\x09H\x00\x121\x0A\x0Dalias_context\x18\x04 \x01(\x0B2\x18.grafeas.v1.AliasContextH\x00B\x0A\x0A\x08revision\"4\x0A\x10GitSourceContext\x12\x0B\x0A\x03url\x18\x01 \x01(\x09\x12\x13\x0A\x0Brevision_id\x18\x02 \x01(\x09\"S\x0A\x06RepoId\x124\x0A\x0Fproject_repo_id\x18\x01 \x01(\x0B2\x19.grafeas.v1.ProjectRepoIdH\x00\x12\x0D\x0A\x03uid\x18\x02 \x01(\x09H\x00B\x04\x0A\x02id\"6\x0A\x0DProjectRepoId\x12\x12\x0A\x0Aproject_id\x18\x01 \x01(\x09\x12\x11\x0A\x09repo_name\x18\x02 \x01(\x09BQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - 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 4519aaf5ca28..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Risk.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x93\x03\x0A\x15grafeas/v1/risk.proto\x12\x0Agrafeas.v1\"\x81\x01\x0A\x04Risk\x12?\x0A\x08cisa_kev\x18\x01 \x01(\x0B2-.grafeas.v1.CISAKnownExploitedVulnerabilities\x128\x0A\x04epss\x18\x02 \x01(\x0B2*.grafeas.v1.ExploitPredictionScoringSystem\"J\x0A!CISAKnownExploitedVulnerabilities\x12%\x0A\x1Dknown_ransomware_campaign_use\x18\x01 \x01(\x09\"C\x0A\x1EExploitPredictionScoringSystem\x12\x12\x0A\x0Apercentile\x18\x01 \x01(\x01\x12\x0D\x0A\x05score\x18\x02 \x01(\x01BQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" - , 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 eda6f5fbce08..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Sbom.php +++ /dev/null @@ -1,26 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xF4\x05\x0A\x15grafeas/v1/sbom.proto\x12\x0Agrafeas.v1\x1A!grafeas/v1/intoto_statement.proto\"4\x0A\x11SBOMReferenceNote\x12\x0E\x0A\x06format\x18\x01 \x01(\x09\x12\x0F\x0A\x07version\x18\x02 \x01(\x09\"\x9B\x01\x0A\x17SBOMReferenceOccurrence\x127\x0A\x07payload\x18\x01 \x01(\x0B2&.grafeas.v1.SbomReferenceIntotoPayload\x12\x14\x0A\x0Cpayload_type\x18\x02 \x01(\x09\x121\x0A\x0Asignatures\x18\x03 \x03(\x0B2\x1D.grafeas.v1.EnvelopeSignature\"\xAC\x01\x0A\x1ASbomReferenceIntotoPayload\x12\x13\x0A\x04type\x18\x01 \x01(\x09R\x05_type\x12\x16\x0A\x0Epredicate_type\x18\x02 \x01(\x09\x12\$\x0A\x07subject\x18\x03 \x03(\x0B2\x13.grafeas.v1.Subject\x12;\x0A\x09predicate\x18\x04 \x01(\x0B2(.grafeas.v1.SbomReferenceIntotoPredicate\"\xCD\x01\x0A\x1CSbomReferenceIntotoPredicate\x12\x13\x0A\x0Breferrer_id\x18\x01 \x01(\x09\x12\x10\x0A\x08location\x18\x02 \x01(\x09\x12\x11\x0A\x09mime_type\x18\x03 \x01(\x09\x12D\x0A\x06digest\x18\x04 \x03(\x0B24.grafeas.v1.SbomReferenceIntotoPredicate.DigestEntry\x1A-\x0A\x0BDigestEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01BQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" - , 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 120b7d15a0b5..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Secret.php +++ /dev/null @@ -1,28 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xA3\x0D\x0A\x17grafeas/v1/secret.proto\x12\x0Agrafeas.v1\x1A\x19google/protobuf/any.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x17grafeas/v1/common.proto\"\x0C\x0A\x0ASecretNote\"\xEA\x01\x0A\x10SecretOccurrence\x12)\x0A\x04kind\x18\x01 \x01(\x0E2\x16.grafeas.v1.SecretKindB\x03\xE0A\x02\x122\x0A\x09locations\x18\x02 \x03(\x0B2\x1A.grafeas.v1.SecretLocationB\x03\xE0A\x01\x12/\x0A\x08statuses\x18\x03 \x03(\x0B2\x18.grafeas.v1.SecretStatusB\x03\xE0A\x01\x12\"\x0A\x04data\x18\x04 \x01(\x0B2\x14.google.protobuf.Any\x12\"\x0A\x06digest\x18\x05 \x01(\x0B2\x12.grafeas.v1.Digest\"O\x0A\x0ESecretLocation\x121\x0A\x0Dfile_location\x18\x01 \x01(\x0B2\x18.grafeas.v1.FileLocationH\x00B\x0A\x0A\x08location\"\xD7\x01\x0A\x0CSecretStatus\x124\x0A\x06status\x18\x01 \x01(\x0E2\x1F.grafeas.v1.SecretStatus.StatusB\x03\xE0A\x01\x124\x0A\x0Bupdate_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x12\x14\x0A\x07message\x18\x03 \x01(\x09B\x03\xE0A\x01\"E\x0A\x06Status\x12\x16\x0A\x12STATUS_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07UNKNOWN\x10\x01\x12\x09\x0A\x05VALID\x10\x02\x12\x0B\x0A\x07INVALID\x10\x03*\xA5\x07\x0A\x0ASecretKind\x12\x1B\x0A\x17SECRET_KIND_UNSPECIFIED\x10\x00\x12\x17\x0A\x13SECRET_KIND_UNKNOWN\x10\x01\x12'\x0A#SECRET_KIND_GCP_SERVICE_ACCOUNT_KEY\x10\x02\x12\x1B\x0A\x17SECRET_KIND_GCP_API_KEY\x10\x03\x12-\x0A)SECRET_KIND_GCP_OAUTH2_CLIENT_CREDENTIALS\x10\x04\x12'\x0A#SECRET_KIND_GCP_OAUTH2_ACCESS_TOKEN\x10\x05\x12'\x0A#SECRET_KIND_ANTHROPIC_ADMIN_API_KEY\x10\x06\x12!\x0A\x1DSECRET_KIND_ANTHROPIC_API_KEY\x10\x07\x12\"\x0A\x1ESECRET_KIND_AZURE_ACCESS_TOKEN\x10\x08\x12\$\x0A SECRET_KIND_AZURE_IDENTITY_TOKEN\x10\x09\x120\x0A,SECRET_KIND_DOCKER_HUB_PERSONAL_ACCESS_TOKEN\x10\x0A\x12(\x0A\$SECRET_KIND_GITHUB_APP_REFRESH_TOKEN\x10\x0B\x121\x0A-SECRET_KIND_GITHUB_APP_SERVER_TO_SERVER_TOKEN\x10\x0C\x12/\x0A+SECRET_KIND_GITHUB_APP_USER_TO_SERVER_TOKEN\x10\x0D\x124\x0A0SECRET_KIND_GITHUB_CLASSIC_PERSONAL_ACCESS_TOKEN\x10\x0E\x129\x0A5SECRET_KIND_GITHUB_FINE_GRAINED_PERSONAL_ACCESS_TOKEN\x10\x0F\x12\"\x0A\x1ESECRET_KIND_GITHUB_OAUTH_TOKEN\x10\x10\x12#\x0A\x1FSECRET_KIND_HUGGINGFACE_API_KEY\x10\x11\x12\x1E\x0A\x1ASECRET_KIND_OPENAI_API_KEY\x10\x12\x12\"\x0A\x1ESECRET_KIND_PERPLEXITY_API_KEY\x10\x13\x12!\x0A\x1DSECRET_KIND_STRIPE_SECRET_KEY\x10\x14\x12%\x0A!SECRET_KIND_STRIPE_RESTRICTED_KEY\x10\x15\x12%\x0A!SECRET_KIND_STRIPE_WEBHOOK_SECRET\x10\x16BQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - 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 a39337810961..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Severity.php +++ /dev/null @@ -1,24 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xE2\x01\x0A\x19grafeas/v1/severity.proto\x12\x0Agrafeas.v1*^\x0A\x08Severity\x12\x18\x0A\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07MINIMAL\x10\x01\x12\x07\x0A\x03LOW\x10\x02\x12\x0A\x0A\x06MEDIUM\x10\x03\x12\x08\x0A\x04HIGH\x10\x04\x12\x0C\x0A\x08CRITICAL\x10\x05BQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - 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 823bafe83839..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/SlsaProvenance.php +++ /dev/null @@ -1,26 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xC0\x08\x0A grafeas/v1/slsa_provenance.proto\x12\x0Agrafeas.v1\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xFE\x06\x0A\x0ESlsaProvenance\x127\x0A\x07builder\x18\x01 \x01(\x0B2&.grafeas.v1.SlsaProvenance.SlsaBuilder\x125\x0A\x06recipe\x18\x02 \x01(\x0B2%.grafeas.v1.SlsaProvenance.SlsaRecipe\x129\x0A\x08metadata\x18\x03 \x01(\x0B2'.grafeas.v1.SlsaProvenance.SlsaMetadata\x126\x0A\x09materials\x18\x04 \x03(\x0B2#.grafeas.v1.SlsaProvenance.Material\x1A\xA0\x01\x0A\x0ASlsaRecipe\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x1B\x0A\x13defined_in_material\x18\x02 \x01(\x03\x12\x13\x0A\x0Bentry_point\x18\x03 \x01(\x09\x12'\x0A\x09arguments\x18\x04 \x01(\x0B2\x14.google.protobuf.Any\x12)\x0A\x0Benvironment\x18\x05 \x01(\x0B2\x14.google.protobuf.Any\x1AM\x0A\x10SlsaCompleteness\x12\x11\x0A\x09arguments\x18\x01 \x01(\x08\x12\x13\x0A\x0Benvironment\x18\x02 \x01(\x08\x12\x11\x0A\x09materials\x18\x03 \x01(\x08\x1A\xF1\x01\x0A\x0CSlsaMetadata\x12\x1B\x0A\x13build_invocation_id\x18\x01 \x01(\x09\x124\x0A\x10build_started_on\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x125\x0A\x11build_finished_on\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12A\x0A\x0Ccompleteness\x18\x04 \x01(\x0B2+.grafeas.v1.SlsaProvenance.SlsaCompleteness\x12\x14\x0A\x0Creproducible\x18\x05 \x01(\x08\x1A\x19\x0A\x0BSlsaBuilder\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x1A\x87\x01\x0A\x08Material\x12\x0B\x0A\x03uri\x18\x01 \x01(\x09\x12?\x0A\x06digest\x18\x02 \x03(\x0B2/.grafeas.v1.SlsaProvenance.Material.DigestEntry\x1A-\x0A\x0BDigestEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01Bf\x0A\x0Dio.grafeas.v1B\x13SlsaProvenanceProtoP\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" - , 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 03b14948b0dd..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/SlsaProvenanceZeroTwo.php +++ /dev/null @@ -1,26 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xA5\x0B\x0A)grafeas/v1/slsa_provenance_zero_two.proto\x12\x0Agrafeas.v1\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xD3\x09\x0A\x15SlsaProvenanceZeroTwo\x12>\x0A\x07builder\x18\x01 \x01(\x0B2-.grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder\x12\x12\x0A\x0Abuild_type\x18\x02 \x01(\x09\x12D\x0A\x0Ainvocation\x18\x03 \x01(\x0B20.grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation\x12-\x0A\x0Cbuild_config\x18\x04 \x01(\x0B2\x17.google.protobuf.Struct\x12@\x0A\x08metadata\x18\x05 \x01(\x0B2..grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata\x12A\x0A\x09materials\x18\x06 \x03(\x0B2..grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial\x1A\x19\x0A\x0BSlsaBuilder\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x1A\x96\x01\x0A\x0CSlsaMaterial\x12\x0B\x0A\x03uri\x18\x01 \x01(\x09\x12J\x0A\x06digest\x18\x02 \x03(\x0B2:.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial.DigestEntry\x1A-\x0A\x0BDigestEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A\xB6\x01\x0A\x0ESlsaInvocation\x12I\x0A\x0Dconfig_source\x18\x01 \x01(\x0B22.grafeas.v1.SlsaProvenanceZeroTwo.SlsaConfigSource\x12+\x0A\x0Aparameters\x18\x02 \x01(\x0B2\x17.google.protobuf.Struct\x12,\x0A\x0Benvironment\x18\x03 \x01(\x0B2\x17.google.protobuf.Struct\x1A\xB3\x01\x0A\x10SlsaConfigSource\x12\x0B\x0A\x03uri\x18\x01 \x01(\x09\x12N\x0A\x06digest\x18\x02 \x03(\x0B2>.grafeas.v1.SlsaProvenanceZeroTwo.SlsaConfigSource.DigestEntry\x12\x13\x0A\x0Bentry_point\x18\x03 \x01(\x09\x1A-\x0A\x0BDigestEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A\xF8\x01\x0A\x0CSlsaMetadata\x12\x1B\x0A\x13build_invocation_id\x18\x01 \x01(\x09\x124\x0A\x10build_started_on\x18\x02 \x01(\x0B2\x1A.google.protobuf.Timestamp\x125\x0A\x11build_finished_on\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12H\x0A\x0Ccompleteness\x18\x04 \x01(\x0B22.grafeas.v1.SlsaProvenanceZeroTwo.SlsaCompleteness\x12\x14\x0A\x0Creproducible\x18\x05 \x01(\x08\x1AN\x0A\x10SlsaCompleteness\x12\x12\x0A\x0Aparameters\x18\x01 \x01(\x08\x12\x13\x0A\x0Benvironment\x18\x02 \x01(\x08\x12\x11\x0A\x09materials\x18\x03 \x01(\x08Bm\x0A\x0Dio.grafeas.v1B\x1ASlsaProvenanceZeroTwoProtoP\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" - , 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 cf298d511803..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Upgrade.php +++ /dev/null @@ -1,26 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xD9\x07\x0A\x18grafeas/v1/upgrade.proto\x12\x0Agrafeas.v1\x1A\x18grafeas/v1/package.proto\"\xAF\x01\x0A\x0BUpgradeNote\x12\x0F\x0A\x07package\x18\x01 \x01(\x09\x12\$\x0A\x07version\x18\x02 \x01(\x0B2\x13.grafeas.v1.Version\x126\x0A\x0Ddistributions\x18\x03 \x03(\x0B2\x1F.grafeas.v1.UpgradeDistribution\x121\x0A\x0Ewindows_update\x18\x04 \x01(\x0B2\x19.grafeas.v1.WindowsUpdate\"]\x0A\x13UpgradeDistribution\x12\x0F\x0A\x07cpe_uri\x18\x01 \x01(\x09\x12\x16\x0A\x0Eclassification\x18\x02 \x01(\x09\x12\x10\x0A\x08severity\x18\x03 \x01(\x09\x12\x0B\x0A\x03cve\x18\x04 \x03(\x09\"\xEC\x02\x0A\x0DWindowsUpdate\x124\x0A\x08identity\x18\x01 \x01(\x0B2\".grafeas.v1.WindowsUpdate.Identity\x12\x0D\x0A\x05title\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x126\x0A\x0Acategories\x18\x04 \x03(\x0B2\".grafeas.v1.WindowsUpdate.Category\x12\x16\x0A\x0Ekb_article_ids\x18\x05 \x03(\x09\x12\x13\x0A\x0Bsupport_url\x18\x06 \x01(\x09\x12<\x0A\x18last_published_timestamp\x18\x07 \x01(\x0B2\x1A.google.protobuf.Timestamp\x1A/\x0A\x08Identity\x12\x11\x0A\x09update_id\x18\x01 \x01(\x09\x12\x10\x0A\x08revision\x18\x02 \x01(\x05\x1A-\x0A\x08Category\x12\x13\x0A\x0Bcategory_id\x18\x01 \x01(\x09\x12\x0C\x0A\x04name\x18\x02 \x01(\x09\"\xBB\x01\x0A\x11UpgradeOccurrence\x12\x0F\x0A\x07package\x18\x01 \x01(\x09\x12+\x0A\x0Eparsed_version\x18\x03 \x01(\x0B2\x13.grafeas.v1.Version\x125\x0A\x0Cdistribution\x18\x04 \x01(\x0B2\x1F.grafeas.v1.UpgradeDistribution\x121\x0A\x0Ewindows_update\x18\x05 \x01(\x0B2\x19.grafeas.v1.WindowsUpdateBQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" - , 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 38482cf10129..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Vex.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xC8\x0E\x0A\x14grafeas/v1/vex.proto\x12\x0Agrafeas.v1\"\xC8\x0D\x0A\x1BVulnerabilityAssessmentNote\x12\x0D\x0A\x05title\x18\x01 \x01(\x09\x12\x19\x0A\x11short_description\x18\x02 \x01(\x09\x12\x18\x0A\x10long_description\x18\x03 \x01(\x09\x12\x15\x0A\x0Dlanguage_code\x18\x04 \x01(\x09\x12D\x0A\x09publisher\x18\x05 \x01(\x0B21.grafeas.v1.VulnerabilityAssessmentNote.Publisher\x12@\x0A\x07product\x18\x06 \x01(\x0B2/.grafeas.v1.VulnerabilityAssessmentNote.Product\x12F\x0A\x0Aassessment\x18\x07 \x01(\x0B22.grafeas.v1.VulnerabilityAssessmentNote.Assessment\x1AQ\x0A\x09Publisher\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x19\x0A\x11issuing_authority\x18\x02 \x01(\x09\x12\x1B\x0A\x13publisher_namespace\x18\x03 \x01(\x09\x1AH\x0A\x07Product\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0A\x0A\x02id\x18\x02 \x01(\x09\x12\x15\x0A\x0Bgeneric_uri\x18\x03 \x01(\x09H\x00B\x0C\x0A\x0Aidentifier\x1A\xE0\x09\x0A\x0AAssessment\x12\x0F\x0A\x03cve\x18\x01 \x01(\x09B\x02\x18\x01\x12\x18\x0A\x10vulnerability_id\x18\x09 \x01(\x09\x12\x19\x0A\x11short_description\x18\x02 \x01(\x09\x12\x18\x0A\x10long_description\x18\x03 \x01(\x09\x12,\x0A\x0Crelated_uris\x18\x04 \x03(\x0B2\x16.grafeas.v1.RelatedUrl\x12G\x0A\x05state\x18\x05 \x01(\x0E28.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State\x12\x0F\x0A\x07impacts\x18\x06 \x03(\x09\x12W\x0A\x0Djustification\x18\x07 \x01(\x0B2@.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification\x12T\x0A\x0Cremediations\x18\x08 \x03(\x0B2>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation\x1A\x8C\x03\x0A\x0DJustification\x12n\x0A\x12justification_type\x18\x01 \x01(\x0E2R.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType\x12\x0F\x0A\x07details\x18\x02 \x01(\x09\"\xF9\x01\x0A\x11JustificationType\x12\"\x0A\x1EJUSTIFICATION_TYPE_UNSPECIFIED\x10\x00\x12\x19\x0A\x15COMPONENT_NOT_PRESENT\x10\x01\x12\x1F\x0A\x1BVULNERABLE_CODE_NOT_PRESENT\x10\x02\x12'\x0A#VULNERABLE_CODE_NOT_IN_EXECUTE_PATH\x10\x03\x125\x0A1VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY\x10\x04\x12\$\x0A INLINE_MITIGATIONS_ALREADY_EXIST\x10\x05\x1A\xC7\x02\x0A\x0BRemediation\x12h\x0A\x10remediation_type\x18\x01 \x01(\x0E2N.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType\x12\x0F\x0A\x07details\x18\x02 \x01(\x09\x12/\x0A\x0Fremediation_uri\x18\x03 \x01(\x0B2\x16.grafeas.v1.RelatedUrl\"\x8B\x01\x0A\x0FRemediationType\x12 \x0A\x1CREMEDIATION_TYPE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0AMITIGATION\x10\x01\x12\x12\x0A\x0ENO_FIX_PLANNED\x10\x02\x12\x12\x0A\x0ENONE_AVAILABLE\x10\x03\x12\x0E\x0A\x0AVENDOR_FIX\x10\x04\x12\x0E\x0A\x0AWORKAROUND\x10\x05\"b\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08AFFECTED\x10\x01\x12\x10\x0A\x0CNOT_AFFECTED\x10\x02\x12\x09\x0A\x05FIXED\x10\x03\x12\x17\x0A\x13UNDER_INVESTIGATION\x10\x04BQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Vulnerability.php b/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Vulnerability.php deleted file mode 100644 index 2c95566a33f5..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/GPBMetadata/Grafeas/V1/Vulnerability.php +++ /dev/null @@ -1,32 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xE5\x15\x0A\x1Egrafeas/v1/vulnerability.proto\x12\x0Agrafeas.v1\x1A\x1Fgoogle/protobuf/timestamp.proto\x1A\x17grafeas/v1/common.proto\x1A\x15grafeas/v1/cvss.proto\x1A\x18grafeas/v1/package.proto\x1A\x15grafeas/v1/risk.proto\x1A\x19grafeas/v1/severity.proto\x1A\x14grafeas/v1/vex.proto\"\xCA\x08\x0A\x11VulnerabilityNote\x12\x12\x0A\x0Acvss_score\x18\x01 \x01(\x02\x12&\x0A\x08severity\x18\x02 \x01(\x0E2\x14.grafeas.v1.Severity\x125\x0A\x07details\x18\x03 \x03(\x0B2\$.grafeas.v1.VulnerabilityNote.Detail\x12#\x0A\x07cvss_v3\x18\x04 \x01(\x0B2\x12.grafeas.v1.CVSSv3\x12D\x0A\x0Fwindows_details\x18\x05 \x03(\x0B2+.grafeas.v1.VulnerabilityNote.WindowsDetail\x126\x0A\x12source_update_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12-\x0A\x0Ccvss_version\x18\x07 \x01(\x0E2\x17.grafeas.v1.CVSSVersion\x12!\x0A\x07cvss_v2\x18\x08 \x01(\x0B2\x10.grafeas.v1.CVSS\x129\x0A\x15advisory_publish_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12!\x0A\x07cvss_v4\x18\x0A \x01(\x0B2\x10.grafeas.v1.CVSS\x1A\xAD\x03\x0A\x06Detail\x12\x15\x0A\x0Dseverity_name\x18\x01 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12\x14\x0A\x0Cpackage_type\x18\x03 \x01(\x09\x12\x18\x0A\x10affected_cpe_uri\x18\x04 \x01(\x09\x12\x18\x0A\x10affected_package\x18\x05 \x01(\x09\x123\x0A\x16affected_version_start\x18\x06 \x01(\x0B2\x13.grafeas.v1.Version\x121\x0A\x14affected_version_end\x18\x07 \x01(\x0B2\x13.grafeas.v1.Version\x12\x15\x0A\x0Dfixed_cpe_uri\x18\x08 \x01(\x09\x12\x15\x0A\x0Dfixed_package\x18\x09 \x01(\x09\x12*\x0A\x0Dfixed_version\x18\x0A \x01(\x0B2\x13.grafeas.v1.Version\x12\x13\x0A\x0Bis_obsolete\x18\x0B \x01(\x08\x126\x0A\x12source_update_time\x18\x0C \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x0E\x0A\x06source\x18\x0D \x01(\x09\x12\x0E\x0A\x06vendor\x18\x0E \x01(\x09\x1A\xBE\x01\x0A\x0DWindowsDetail\x12\x0F\x0A\x07cpe_uri\x18\x01 \x01(\x09\x12\x0C\x0A\x04name\x18\x02 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x03 \x01(\x09\x12M\x0A\x0Afixing_kbs\x18\x04 \x03(\x0B29.grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase\x1A*\x0A\x0DKnowledgeBase\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0B\x0A\x03url\x18\x02 \x01(\x09\"\xDB\x0A\x0A\x17VulnerabilityOccurrence\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12&\x0A\x08severity\x18\x02 \x01(\x0E2\x14.grafeas.v1.Severity\x12\x12\x0A\x0Acvss_score\x18\x03 \x01(\x02\x12 \x0A\x06cvssv3\x18\x0A \x01(\x0B2\x10.grafeas.v1.CVSS\x12G\x0A\x0Dpackage_issue\x18\x04 \x03(\x0B20.grafeas.v1.VulnerabilityOccurrence.PackageIssue\x12\x19\x0A\x11short_description\x18\x05 \x01(\x09\x12\x18\x0A\x10long_description\x18\x06 \x01(\x09\x12,\x0A\x0Crelated_urls\x18\x07 \x03(\x0B2\x16.grafeas.v1.RelatedUrl\x120\x0A\x12effective_severity\x18\x08 \x01(\x0E2\x14.grafeas.v1.Severity\x12\x15\x0A\x0Dfix_available\x18\x09 \x01(\x08\x12-\x0A\x0Ccvss_version\x18\x0B \x01(\x0E2\x17.grafeas.v1.CVSSVersion\x12!\x0A\x07cvss_v2\x18\x0C \x01(\x0B2\x10.grafeas.v1.CVSS\x12I\x0A\x0Evex_assessment\x18\x0D \x01(\x0B21.grafeas.v1.VulnerabilityOccurrence.VexAssessment\x12\x15\x0A\x0Dextra_details\x18\x0E \x01(\x09\x12\x1E\x0A\x04risk\x18\x0F \x01(\x0B2\x10.grafeas.v1.Risk\x12!\x0A\x07cvss_v4\x18\x10 \x01(\x0B2\x10.grafeas.v1.CVSS\x1A\xE0\x02\x0A\x0CPackageIssue\x12\x18\x0A\x10affected_cpe_uri\x18\x01 \x01(\x09\x12\x18\x0A\x10affected_package\x18\x02 \x01(\x09\x12-\x0A\x10affected_version\x18\x03 \x01(\x0B2\x13.grafeas.v1.Version\x12\x15\x0A\x0Dfixed_cpe_uri\x18\x04 \x01(\x09\x12\x15\x0A\x0Dfixed_package\x18\x05 \x01(\x09\x12*\x0A\x0Dfixed_version\x18\x06 \x01(\x0B2\x13.grafeas.v1.Version\x12\x15\x0A\x0Dfix_available\x18\x07 \x01(\x08\x12\x14\x0A\x0Cpackage_type\x18\x08 \x01(\x09\x125\x0A\x12effective_severity\x18\x09 \x01(\x0E2\x14.grafeas.v1.SeverityB\x03\xE0A\x03\x12/\x0A\x0Dfile_location\x18\x0A \x03(\x0B2\x18.grafeas.v1.FileLocation\x1A\x84\x03\x0A\x0DVexAssessment\x12\x0F\x0A\x03cve\x18\x01 \x01(\x09B\x02\x18\x01\x12\x18\x0A\x10vulnerability_id\x18\x08 \x01(\x09\x12,\x0A\x0Crelated_uris\x18\x02 \x03(\x0B2\x16.grafeas.v1.RelatedUrl\x12\x11\x0A\x09note_name\x18\x03 \x01(\x09\x12G\x0A\x05state\x18\x04 \x01(\x0E28.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State\x12\x0F\x0A\x07impacts\x18\x05 \x03(\x09\x12T\x0A\x0Cremediations\x18\x06 \x03(\x0B2>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation\x12W\x0A\x0Djustification\x18\x07 \x01(\x0B2@.grafeas.v1.VulnerabilityAssessmentNote.Assessment.JustificationBQ\x0A\x0Dio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xA2\x02\x03GRAb\x06proto3" - , 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 945cbe0f570f..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 bd6c01322566..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AliasContext/Kind.php +++ /dev/null @@ -1,69 +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); - } -} - 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 982291bd74fb..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 string[] $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 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 string[] $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 589d9d200f73..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 6905d1e98b65..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/AttestationNote/Hint.php +++ /dev/null @@ -1,77 +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; - } - -} - 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 63639a2b8e36..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 \Grafeas\V1\Signature[] $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 \Grafeas\V1\Jwt[] $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 RepeatedField<\Grafeas\V1\Signature> - */ - 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 \Grafeas\V1\Signature[] $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 RepeatedField<\Grafeas\V1\Jwt> - */ - 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 \Grafeas\V1\Jwt[] $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 ceeb782933c6..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 4364e06b7e3e..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 c2a9ee998217..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 \Grafeas\V1\Note[] $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 RepeatedField<\Grafeas\V1\Note> - */ - public function getNotes() - { - return $this->notes; - } - - /** - * The notes that were created. - * - * Generated from protobuf field repeated .grafeas.v1.Note notes = 1; - * @param \Grafeas\V1\Note[] $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 96ff243d615e..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 \Grafeas\V1\Occurrence[] $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 RepeatedField<\Grafeas\V1\Occurrence> - */ - 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 \Grafeas\V1\Occurrence[] $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 99b88fbf625f..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 \Grafeas\V1\Occurrence[] $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 RepeatedField<\Grafeas\V1\Occurrence> - */ - public function getOccurrences() - { - return $this->occurrences; - } - - /** - * The occurrences that were created. - * - * Generated from protobuf field repeated .grafeas.v1.Occurrence occurrences = 1; - * @param \Grafeas\V1\Occurrence[] $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 eff0bc9f35af..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 150fa6044114..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 8722bdd3eb2d..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 \Grafeas\V1\Command[] $commands - * Commands requested by the build. - * @type \Grafeas\V1\Artifact[] $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 RepeatedField<\Grafeas\V1\Command> - */ - public function getCommands() - { - return $this->commands; - } - - /** - * Commands requested by the build. - * - * Generated from protobuf field repeated .grafeas.v1.Command commands = 3; - * @param \Grafeas\V1\Command[] $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 RepeatedField<\Grafeas\V1\Artifact> - */ - public function getBuiltArtifacts() - { - return $this->built_artifacts; - } - - /** - * Output of the build. - * - * Generated from protobuf field repeated .grafeas.v1.Artifact built_artifacts = 4; - * @param \Grafeas\V1\Artifact[] $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 76694e901992..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 e5ab16156d43..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 edd78fa2c52c..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS.php +++ /dev/null @@ -1,702 +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; - /** - * Attack Vector (AV). Defined in CVSS v2, v3, v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.AttackVector attack_vector = 4; - */ - protected $attack_vector = 0; - /** - * Attack Complexity (AC). Defined in CVSS v2, v3, v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.AttackComplexity attack_complexity = 5; - */ - protected $attack_complexity = 0; - /** - * Authentication (Au). Defined in CVSS v2. - * - * Generated from protobuf field .grafeas.v1.CVSS.Authentication authentication = 6; - */ - protected $authentication = 0; - /** - * Privileges Required (PR). Defined in CVSS v3, v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7; - */ - protected $privileges_required = 0; - /** - * User Interaction (UI). Defined in CVSS v3, v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.UserInteraction user_interaction = 8; - */ - protected $user_interaction = 0; - /** - * Scope (S). Defined in CVSS v3. - * - * Generated from protobuf field .grafeas.v1.CVSS.Scope scope = 9; - */ - protected $scope = 0; - /** - * Confidentiality Impact (C). Defined in CVSS v2, v3. - * - * Generated from protobuf field .grafeas.v1.CVSS.Impact confidentiality_impact = 10; - */ - protected $confidentiality_impact = 0; - /** - * Integrity Impact (I). Defined in CVSS v2, v3. - * - * Generated from protobuf field .grafeas.v1.CVSS.Impact integrity_impact = 11; - */ - protected $integrity_impact = 0; - /** - * Availability Impact (A). Defined in CVSS v2, v3. - * - * Generated from protobuf field .grafeas.v1.CVSS.Impact availability_impact = 12; - */ - protected $availability_impact = 0; - /** - * Attack Requirements (AT). Defined in CVSS v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.AttackRequirements attack_requirements = 13; - */ - protected $attack_requirements = 0; - /** - * Vulnerable System Confidentiality Impact (VC). Defined in CVSS v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.Impact vulnerable_system_confidentiality_impact = 14; - */ - protected $vulnerable_system_confidentiality_impact = 0; - /** - * Vulnerable System Integrity Impact (VI). Defined in CVSS v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.Impact vulnerable_system_integrity_impact = 15; - */ - protected $vulnerable_system_integrity_impact = 0; - /** - * Vulnerable System Availability Impact (VA). Defined in CVSS v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.Impact vulnerable_system_availability_impact = 16; - */ - protected $vulnerable_system_availability_impact = 0; - /** - * Subsequent System Confidentiality Impact (SC). Defined in CVSS v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.Impact subsequent_system_confidentiality_impact = 17; - */ - protected $subsequent_system_confidentiality_impact = 0; - /** - * Subsequent System Integrity Impact (SI). Defined in CVSS v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.Impact subsequent_system_integrity_impact = 18; - */ - protected $subsequent_system_integrity_impact = 0; - /** - * Subsequent System Availability Impact (SA). Defined in CVSS v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.Impact subsequent_system_availability_impact = 19; - */ - protected $subsequent_system_availability_impact = 0; - /** - * Exploit Maturity (E). Defined in CVSS v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.ExploitMaturity exploit_maturity = 20; - */ - protected $exploit_maturity = 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 - * Attack Vector (AV). Defined in CVSS v2, v3, v4. - * @type int $attack_complexity - * Attack Complexity (AC). Defined in CVSS v2, v3, v4. - * @type int $authentication - * Authentication (Au). Defined in CVSS v2. - * @type int $privileges_required - * Privileges Required (PR). Defined in CVSS v3, v4. - * @type int $user_interaction - * User Interaction (UI). Defined in CVSS v3, v4. - * @type int $scope - * Scope (S). Defined in CVSS v3. - * @type int $confidentiality_impact - * Confidentiality Impact (C). Defined in CVSS v2, v3. - * @type int $integrity_impact - * Integrity Impact (I). Defined in CVSS v2, v3. - * @type int $availability_impact - * Availability Impact (A). Defined in CVSS v2, v3. - * @type int $attack_requirements - * Attack Requirements (AT). Defined in CVSS v4. - * @type int $vulnerable_system_confidentiality_impact - * Vulnerable System Confidentiality Impact (VC). Defined in CVSS v4. - * @type int $vulnerable_system_integrity_impact - * Vulnerable System Integrity Impact (VI). Defined in CVSS v4. - * @type int $vulnerable_system_availability_impact - * Vulnerable System Availability Impact (VA). Defined in CVSS v4. - * @type int $subsequent_system_confidentiality_impact - * Subsequent System Confidentiality Impact (SC). Defined in CVSS v4. - * @type int $subsequent_system_integrity_impact - * Subsequent System Integrity Impact (SI). Defined in CVSS v4. - * @type int $subsequent_system_availability_impact - * Subsequent System Availability Impact (SA). Defined in CVSS v4. - * @type int $exploit_maturity - * Exploit Maturity (E). Defined in CVSS v4. - * } - */ - 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; - } - - /** - * Attack Vector (AV). Defined in CVSS v2, v3, v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.AttackVector attack_vector = 4; - * @return int - */ - public function getAttackVector() - { - return $this->attack_vector; - } - - /** - * Attack Vector (AV). Defined in CVSS v2, v3, v4. - * - * 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; - } - - /** - * Attack Complexity (AC). Defined in CVSS v2, v3, v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.AttackComplexity attack_complexity = 5; - * @return int - */ - public function getAttackComplexity() - { - return $this->attack_complexity; - } - - /** - * Attack Complexity (AC). Defined in CVSS v2, v3, v4. - * - * 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; - } - - /** - * Authentication (Au). Defined in CVSS v2. - * - * Generated from protobuf field .grafeas.v1.CVSS.Authentication authentication = 6; - * @return int - */ - public function getAuthentication() - { - return $this->authentication; - } - - /** - * Authentication (Au). Defined in CVSS v2. - * - * 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; - } - - /** - * Privileges Required (PR). Defined in CVSS v3, v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7; - * @return int - */ - public function getPrivilegesRequired() - { - return $this->privileges_required; - } - - /** - * Privileges Required (PR). Defined in CVSS v3, v4. - * - * 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; - } - - /** - * User Interaction (UI). Defined in CVSS v3, v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.UserInteraction user_interaction = 8; - * @return int - */ - public function getUserInteraction() - { - return $this->user_interaction; - } - - /** - * User Interaction (UI). Defined in CVSS v3, v4. - * - * 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; - } - - /** - * Scope (S). Defined in CVSS v3. - * - * Generated from protobuf field .grafeas.v1.CVSS.Scope scope = 9; - * @return int - */ - public function getScope() - { - return $this->scope; - } - - /** - * Scope (S). Defined in CVSS v3. - * - * 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; - } - - /** - * Confidentiality Impact (C). Defined in CVSS v2, v3. - * - * Generated from protobuf field .grafeas.v1.CVSS.Impact confidentiality_impact = 10; - * @return int - */ - public function getConfidentialityImpact() - { - return $this->confidentiality_impact; - } - - /** - * Confidentiality Impact (C). Defined in CVSS v2, v3. - * - * 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; - } - - /** - * Integrity Impact (I). Defined in CVSS v2, v3. - * - * Generated from protobuf field .grafeas.v1.CVSS.Impact integrity_impact = 11; - * @return int - */ - public function getIntegrityImpact() - { - return $this->integrity_impact; - } - - /** - * Integrity Impact (I). Defined in CVSS v2, v3. - * - * 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; - } - - /** - * Availability Impact (A). Defined in CVSS v2, v3. - * - * Generated from protobuf field .grafeas.v1.CVSS.Impact availability_impact = 12; - * @return int - */ - public function getAvailabilityImpact() - { - return $this->availability_impact; - } - - /** - * Availability Impact (A). Defined in CVSS v2, v3. - * - * 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; - } - - /** - * Attack Requirements (AT). Defined in CVSS v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.AttackRequirements attack_requirements = 13; - * @return int - */ - public function getAttackRequirements() - { - return $this->attack_requirements; - } - - /** - * Attack Requirements (AT). Defined in CVSS v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.AttackRequirements attack_requirements = 13; - * @param int $var - * @return $this - */ - public function setAttackRequirements($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\AttackRequirements::class); - $this->attack_requirements = $var; - - return $this; - } - - /** - * Vulnerable System Confidentiality Impact (VC). Defined in CVSS v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.Impact vulnerable_system_confidentiality_impact = 14; - * @return int - */ - public function getVulnerableSystemConfidentialityImpact() - { - return $this->vulnerable_system_confidentiality_impact; - } - - /** - * Vulnerable System Confidentiality Impact (VC). Defined in CVSS v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.Impact vulnerable_system_confidentiality_impact = 14; - * @param int $var - * @return $this - */ - public function setVulnerableSystemConfidentialityImpact($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\Impact::class); - $this->vulnerable_system_confidentiality_impact = $var; - - return $this; - } - - /** - * Vulnerable System Integrity Impact (VI). Defined in CVSS v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.Impact vulnerable_system_integrity_impact = 15; - * @return int - */ - public function getVulnerableSystemIntegrityImpact() - { - return $this->vulnerable_system_integrity_impact; - } - - /** - * Vulnerable System Integrity Impact (VI). Defined in CVSS v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.Impact vulnerable_system_integrity_impact = 15; - * @param int $var - * @return $this - */ - public function setVulnerableSystemIntegrityImpact($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\Impact::class); - $this->vulnerable_system_integrity_impact = $var; - - return $this; - } - - /** - * Vulnerable System Availability Impact (VA). Defined in CVSS v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.Impact vulnerable_system_availability_impact = 16; - * @return int - */ - public function getVulnerableSystemAvailabilityImpact() - { - return $this->vulnerable_system_availability_impact; - } - - /** - * Vulnerable System Availability Impact (VA). Defined in CVSS v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.Impact vulnerable_system_availability_impact = 16; - * @param int $var - * @return $this - */ - public function setVulnerableSystemAvailabilityImpact($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\Impact::class); - $this->vulnerable_system_availability_impact = $var; - - return $this; - } - - /** - * Subsequent System Confidentiality Impact (SC). Defined in CVSS v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.Impact subsequent_system_confidentiality_impact = 17; - * @return int - */ - public function getSubsequentSystemConfidentialityImpact() - { - return $this->subsequent_system_confidentiality_impact; - } - - /** - * Subsequent System Confidentiality Impact (SC). Defined in CVSS v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.Impact subsequent_system_confidentiality_impact = 17; - * @param int $var - * @return $this - */ - public function setSubsequentSystemConfidentialityImpact($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\Impact::class); - $this->subsequent_system_confidentiality_impact = $var; - - return $this; - } - - /** - * Subsequent System Integrity Impact (SI). Defined in CVSS v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.Impact subsequent_system_integrity_impact = 18; - * @return int - */ - public function getSubsequentSystemIntegrityImpact() - { - return $this->subsequent_system_integrity_impact; - } - - /** - * Subsequent System Integrity Impact (SI). Defined in CVSS v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.Impact subsequent_system_integrity_impact = 18; - * @param int $var - * @return $this - */ - public function setSubsequentSystemIntegrityImpact($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\Impact::class); - $this->subsequent_system_integrity_impact = $var; - - return $this; - } - - /** - * Subsequent System Availability Impact (SA). Defined in CVSS v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.Impact subsequent_system_availability_impact = 19; - * @return int - */ - public function getSubsequentSystemAvailabilityImpact() - { - return $this->subsequent_system_availability_impact; - } - - /** - * Subsequent System Availability Impact (SA). Defined in CVSS v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.Impact subsequent_system_availability_impact = 19; - * @param int $var - * @return $this - */ - public function setSubsequentSystemAvailabilityImpact($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\Impact::class); - $this->subsequent_system_availability_impact = $var; - - return $this; - } - - /** - * Exploit Maturity (E). Defined in CVSS v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.ExploitMaturity exploit_maturity = 20; - * @return int - */ - public function getExploitMaturity() - { - return $this->exploit_maturity; - } - - /** - * Exploit Maturity (E). Defined in CVSS v4. - * - * Generated from protobuf field .grafeas.v1.CVSS.ExploitMaturity exploit_maturity = 20; - * @param int $var - * @return $this - */ - public function setExploitMaturity($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\CVSS\ExploitMaturity::class); - $this->exploit_maturity = $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 2b1d4098457d..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/AttackComplexity.php +++ /dev/null @@ -1,68 +0,0 @@ -grafeas.v1.CVSS.AttackComplexity - */ -class AttackComplexity -{ - /** - * Unspecified. - * - * Generated from protobuf enum ATTACK_COMPLEXITY_UNSPECIFIED = 0; - */ - const ATTACK_COMPLEXITY_UNSPECIFIED = 0; - /** - * Low attack complexity (AC:L). Defined in CVSS v2, v3, v4. - * - * Generated from protobuf enum ATTACK_COMPLEXITY_LOW = 1; - */ - const ATTACK_COMPLEXITY_LOW = 1; - /** - * High attack complexity (AC:H). Defined in CVSS v2, v3, v4. - * - * Generated from protobuf enum ATTACK_COMPLEXITY_HIGH = 2; - */ - const ATTACK_COMPLEXITY_HIGH = 2; - /** - * Medium attack complexity (AC:M). Defined in CVSS v2. - * - * 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); - } -} - 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 4ab65c8844ea..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/AttackVector.php +++ /dev/null @@ -1,75 +0,0 @@ -grafeas.v1.CVSS.AttackVector - */ -class AttackVector -{ - /** - * Unspecified. - * - * Generated from protobuf enum ATTACK_VECTOR_UNSPECIFIED = 0; - */ - const ATTACK_VECTOR_UNSPECIFIED = 0; - /** - * Attack Vector: Network (AV:N). Defined in CVSS v2, v3, v4. - * - * Generated from protobuf enum ATTACK_VECTOR_NETWORK = 1; - */ - const ATTACK_VECTOR_NETWORK = 1; - /** - * Attack Vector: Adjacent (AV:A). Defined in CVSS v2, v3, v4. - * - * Generated from protobuf enum ATTACK_VECTOR_ADJACENT = 2; - */ - const ATTACK_VECTOR_ADJACENT = 2; - /** - * Attack Vector: Local (AV:L). Defined in CVSS v2, v3, v4. - * - * Generated from protobuf enum ATTACK_VECTOR_LOCAL = 3; - */ - const ATTACK_VECTOR_LOCAL = 3; - /** - * Attack Vector: Physical (AV:P). Defined in CVSS v3, v4. - * - * 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); - } -} - 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 f101e48277d5..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/Authentication.php +++ /dev/null @@ -1,68 +0,0 @@ -grafeas.v1.CVSS.Authentication - */ -class Authentication -{ - /** - * Unspecified. - * - * Generated from protobuf enum AUTHENTICATION_UNSPECIFIED = 0; - */ - const AUTHENTICATION_UNSPECIFIED = 0; - /** - * Multiple authentication required (Au:M). Defined in CVSS v2. - * - * Generated from protobuf enum AUTHENTICATION_MULTIPLE = 1; - */ - const AUTHENTICATION_MULTIPLE = 1; - /** - * Single authentication required (Au:S). Defined in CVSS v2. - * - * Generated from protobuf enum AUTHENTICATION_SINGLE = 2; - */ - const AUTHENTICATION_SINGLE = 2; - /** - * No authentication required (Au:N). Defined in CVSS v2. - * - * 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); - } -} - 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 2c1b8d8dbf3c..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/Impact.php +++ /dev/null @@ -1,82 +0,0 @@ -grafeas.v1.CVSS.Impact - */ -class Impact -{ - /** - * Unspecified. - * - * Generated from protobuf enum IMPACT_UNSPECIFIED = 0; - */ - const IMPACT_UNSPECIFIED = 0; - /** - * High impact (H). Defined in CVSS v3, v4. - * - * Generated from protobuf enum IMPACT_HIGH = 1; - */ - const IMPACT_HIGH = 1; - /** - * Low impact (L). Defined in CVSS v3, v4. - * - * Generated from protobuf enum IMPACT_LOW = 2; - */ - const IMPACT_LOW = 2; - /** - * No impact (N). Defined in CVSS v2, v3, v4. - * - * Generated from protobuf enum IMPACT_NONE = 3; - */ - const IMPACT_NONE = 3; - /** - * Partial impact (P). Defined in CVSS v2. - * - * Generated from protobuf enum IMPACT_PARTIAL = 4; - */ - const IMPACT_PARTIAL = 4; - /** - * Complete impact (C). Defined in CVSS v2. - * - * 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); - } -} - 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 3e40a774b3ea..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/PrivilegesRequired.php +++ /dev/null @@ -1,68 +0,0 @@ -grafeas.v1.CVSS.PrivilegesRequired - */ -class PrivilegesRequired -{ - /** - * Unspecified. - * - * Generated from protobuf enum PRIVILEGES_REQUIRED_UNSPECIFIED = 0; - */ - const PRIVILEGES_REQUIRED_UNSPECIFIED = 0; - /** - * No privileges required (PR:N). Defined in CVSS v3, v4. - * - * Generated from protobuf enum PRIVILEGES_REQUIRED_NONE = 1; - */ - const PRIVILEGES_REQUIRED_NONE = 1; - /** - * Low privileges required (PR:L). Defined in CVSS v3, v4. - * - * Generated from protobuf enum PRIVILEGES_REQUIRED_LOW = 2; - */ - const PRIVILEGES_REQUIRED_LOW = 2; - /** - * High privileges required (PR:H). Defined in CVSS v3, v4. - * - * 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); - } -} - 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 2a839cf6ea43..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/Scope.php +++ /dev/null @@ -1,61 +0,0 @@ -grafeas.v1.CVSS.Scope - */ -class Scope -{ - /** - * Unspecified. - * - * Generated from protobuf enum SCOPE_UNSPECIFIED = 0; - */ - const SCOPE_UNSPECIFIED = 0; - /** - * Scope: Unchanged (S:U). Defined in CVSS v3. - * - * Generated from protobuf enum SCOPE_UNCHANGED = 1; - */ - const SCOPE_UNCHANGED = 1; - /** - * Scope: Changed (S:C). Defined in CVSS v3. - * - * 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); - } -} - 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 929a34509dea..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSS/UserInteraction.php +++ /dev/null @@ -1,75 +0,0 @@ -grafeas.v1.CVSS.UserInteraction - */ -class UserInteraction -{ - /** - * Unspecified. - * - * Generated from protobuf enum USER_INTERACTION_UNSPECIFIED = 0; - */ - const USER_INTERACTION_UNSPECIFIED = 0; - /** - * No user interaction required (UI:N). Defined in CVSS v3, v4. - * - * Generated from protobuf enum USER_INTERACTION_NONE = 1; - */ - const USER_INTERACTION_NONE = 1; - /** - * User interaction required (UI:R). Defined in CVSS v3. - * - * Generated from protobuf enum USER_INTERACTION_REQUIRED = 2; - */ - const USER_INTERACTION_REQUIRED = 2; - /** - * Passive user interaction required (UI:P). Defined in CVSS v4. - * - * Generated from protobuf enum USER_INTERACTION_PASSIVE = 3; - */ - const USER_INTERACTION_PASSIVE = 3; - /** - * Active user interaction required (UI:A). Defined in CVSS v4. - * - * Generated from protobuf enum USER_INTERACTION_ACTIVE = 4; - */ - const USER_INTERACTION_ACTIVE = 4; - - private static $valueToName = [ - self::USER_INTERACTION_UNSPECIFIED => 'USER_INTERACTION_UNSPECIFIED', - self::USER_INTERACTION_NONE => 'USER_INTERACTION_NONE', - self::USER_INTERACTION_REQUIRED => 'USER_INTERACTION_REQUIRED', - self::USER_INTERACTION_PASSIVE => 'USER_INTERACTION_PASSIVE', - self::USER_INTERACTION_ACTIVE => 'USER_INTERACTION_ACTIVE', - ]; - - 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/CVSSVersion.php b/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSVersion.php deleted file mode 100644 index 2742277cdc44..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSVersion.php +++ /dev/null @@ -1,68 +0,0 @@ -grafeas.v1.CVSSVersion - */ -class CVSSVersion -{ - /** - * Unspecified. - * - * Generated from protobuf enum CVSS_VERSION_UNSPECIFIED = 0; - */ - const CVSS_VERSION_UNSPECIFIED = 0; - /** - * CVSS v2. - * - * Generated from protobuf enum CVSS_VERSION_2 = 1; - */ - const CVSS_VERSION_2 = 1; - /** - * CVSS v3. - * - * Generated from protobuf enum CVSS_VERSION_3 = 2; - */ - const CVSS_VERSION_3 = 2; - /** - * CVSS v4. - * - * Generated from protobuf enum CVSS_VERSION_4 = 3; - */ - const CVSS_VERSION_4 = 3; - - private static $valueToName = [ - self::CVSS_VERSION_UNSPECIFIED => 'CVSS_VERSION_UNSPECIFIED', - self::CVSS_VERSION_2 => 'CVSS_VERSION_2', - self::CVSS_VERSION_3 => 'CVSS_VERSION_3', - self::CVSS_VERSION_4 => 'CVSS_VERSION_4', - ]; - - 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 343460e357fc..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 7a026343b407..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/AttackComplexity.php +++ /dev/null @@ -1,53 +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); - } -} - 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 682c74c71dd5..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/AttackVector.php +++ /dev/null @@ -1,63 +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); - } -} - 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 41922cb88a95..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/Impact.php +++ /dev/null @@ -1,58 +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); - } -} - 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 1f68ac35c8ce..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/PrivilegesRequired.php +++ /dev/null @@ -1,58 +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); - } -} - 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 5e2dafd1bb11..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/Scope.php +++ /dev/null @@ -1,53 +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); - } -} - 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 8fca75002260..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/CVSSv3/UserInteraction.php +++ /dev/null @@ -1,53 +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); - } -} - 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 737015536da5..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 464bdd3139bc..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 string[] $env - * Environment variables set before running this command. - * @type string[] $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 string[] $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 RepeatedField - */ - public function getEnv() - { - return $this->env; - } - - /** - * Environment variables set before running this command. - * - * Generated from protobuf field repeated string env = 2; - * @param string[] $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 RepeatedField - */ - public function getArgs() - { - return $this->args; - } - - /** - * Command-line arguments used when executing this command. - * - * Generated from protobuf field repeated string args = 3; - * @param string[] $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 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 string[] $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 2fad11887552..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 d88de3c807a3..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 \Grafeas\V1\ComplianceVersion[] $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 RepeatedField<\Grafeas\V1\ComplianceVersion> - */ - 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 \Grafeas\V1\ComplianceVersion[] $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 9ff55a077a5a..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/ComplianceNote/CisBenchmark.php +++ /dev/null @@ -1,87 +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; - } - -} - 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 a1b782ba7404..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 \Grafeas\V1\NonCompliantFile[] $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 RepeatedField<\Grafeas\V1\NonCompliantFile> - */ - public function getNonCompliantFiles() - { - return $this->non_compliant_files; - } - - /** - * Generated from protobuf field repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2; - * @param \Grafeas\V1\NonCompliantFile[] $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 89bd259007f1..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 39c091325ade..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 275b61bc7657..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 d909a0ba6089..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 748f48eff564..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DSSEAttestationNote/DSSEHint.php +++ /dev/null @@ -1,77 +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; - } - -} - 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 e5875ab26a7a..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 bb1b1bace8c5..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 7bcf02943729..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 4f2e8ff65fac..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 string[] $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 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 string[] $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 d04b86b53826..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 string[] $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 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 string[] $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 4cc9bddfa242..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DeploymentOccurrence/Platform.php +++ /dev/null @@ -1,68 +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); - } -} - 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 5b257b36100b..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 0f1fd43fd56e..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 2a2a202a6f1e..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 \Google\Rpc\Status[] $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 \Grafeas\V1\DiscoveryOccurrence\File[] $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 RepeatedField<\Google\Rpc\Status> - */ - 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 \Google\Rpc\Status[] $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 RepeatedField<\Grafeas\V1\DiscoveryOccurrence\File> - */ - 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 \Grafeas\V1\DiscoveryOccurrence\File[] $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 bbb497c199b6..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/AnalysisCompleted.php +++ /dev/null @@ -1,61 +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 string[] $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 RepeatedField - */ - public function getAnalysisType() - { - return $this->analysis_type; - } - - /** - * Generated from protobuf field repeated string analysis_type = 1; - * @param string[] $var - * @return $this - */ - public function setAnalysisType($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->analysis_type = $arr; - - return $this; - } - -} - 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 3708071a7422..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/AnalysisStatus.php +++ /dev/null @@ -1,91 +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); - } -} - 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 7311f8992399..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/ContinuousAnalysis.php +++ /dev/null @@ -1,61 +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); - } -} - 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 e059a4400123..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/File.php +++ /dev/null @@ -1,85 +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; - } - -} - 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 ff4ad0e17529..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/SBOMStatus.php +++ /dev/null @@ -1,105 +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; - } - -} - 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 75c3f3aa25bc..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/SBOMStatus/SBOMState.php +++ /dev/null @@ -1,61 +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); - } -} - 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 a4dd954b4cf3..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/VulnerabilityAttestation.php +++ /dev/null @@ -1,145 +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; - } - -} - 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 dda5724b0c2f..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/DiscoveryOccurrence/VulnerabilityAttestation/VulnerabilityAttestationState.php +++ /dev/null @@ -1,61 +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); - } -} - 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 7968be558b57..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 5b7e2a255d9e..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 \Grafeas\V1\EnvelopeSignature[] $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 RepeatedField<\Grafeas\V1\EnvelopeSignature> - */ - public function getSignatures() - { - return $this->signatures; - } - - /** - * Generated from protobuf field repeated .grafeas.v1.EnvelopeSignature signatures = 3; - * @param \Grafeas\V1\EnvelopeSignature[] $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 32a23542e101..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 91303ea09351..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 9d1afa6cc3e4..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 \Grafeas\V1\Hash[] $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 RepeatedField<\Grafeas\V1\Hash> - */ - public function getFileHash() - { - return $this->file_hash; - } - - /** - * Required. Collection of file hashes. - * - * Generated from protobuf field repeated .grafeas.v1.Hash file_hash = 1; - * @param \Grafeas\V1\Hash[] $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 91aeada12f8b..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/FileLocation.php +++ /dev/null @@ -1,157 +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; - /** - * Line number in the file where the package was found. - * Optional field that only applies to source repository scanning. - * - * Generated from protobuf field int32 line_number = 3; - */ - protected $line_number = 0; - - /** - * 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). - * @type int $line_number - * Line number in the file where the package was found. - * Optional field that only applies to source repository scanning. - * } - */ - 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; - } - - /** - * Line number in the file where the package was found. - * Optional field that only applies to source repository scanning. - * - * Generated from protobuf field int32 line_number = 3; - * @return int - */ - public function getLineNumber() - { - return $this->line_number; - } - - /** - * Line number in the file where the package was found. - * Optional field that only applies to source repository scanning. - * - * Generated from protobuf field int32 line_number = 3; - * @param int $var - * @return $this - */ - public function setLineNumber($var) - { - GPBUtil::checkInt32($var); - $this->line_number = $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 52438cab5cc0..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 string[] $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 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 string[] $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 c51ee3caceab..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 8c205c7e2bbf..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 babb8014fac8..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 cb59741a0e07..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 a8908da8ffb0..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 51f97d5fb758..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 ff9c8a36ff47..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 971d02418e86..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 \Grafeas\V1\Layer[] $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 RepeatedField<\Grafeas\V1\Layer> - */ - 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 \Grafeas\V1\Layer[] $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 e5ee043ea943..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 string[] $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 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 string[] $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 f82d594d353c..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 \Grafeas\V1\Subject[] $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 RepeatedField<\Grafeas\V1\Subject> - */ - public function getSubject() - { - return $this->subject; - } - - /** - * Generated from protobuf field repeated .grafeas.v1.Subject subject = 2; - * @param \Grafeas\V1\Subject[] $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 cbe97fcf307f..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/BuildDefinition.php +++ /dev/null @@ -1,159 +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 \Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor[] $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 RepeatedField<\Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor> - */ - public function getResolvedDependencies() - { - return $this->resolved_dependencies; - } - - /** - * Generated from protobuf field repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor resolved_dependencies = 4; - * @param \Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor[] $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; - } - -} - 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 fd7821a3054d..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/BuildMetadata.php +++ /dev/null @@ -1,132 +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; - } - -} - 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 a69a1ad7c7cb..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/ProvenanceBuilder.php +++ /dev/null @@ -1,112 +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 \Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor[] $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 RepeatedField<\Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor> - */ - public function getBuilderDependencies() - { - return $this->builder_dependencies; - } - - /** - * Generated from protobuf field repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor builder_dependencies = 3; - * @param \Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor[] $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; - } - -} - 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 1a6dcc2c1fe0..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/ResourceDescriptor.php +++ /dev/null @@ -1,220 +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; - } - -} - 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 394d8c8012f3..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/RunDetails.php +++ /dev/null @@ -1,132 +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 \Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor[] $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 RepeatedField<\Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor> - */ - public function getByproducts() - { - return $this->byproducts; - } - - /** - * Generated from protobuf field repeated .grafeas.v1.InTotoSlsaProvenanceV1.ResourceDescriptor byproducts = 3; - * @param \Grafeas\V1\InTotoSlsaProvenanceV1\ResourceDescriptor[] $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; - } - -} - 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 1014880fe0d6..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/InTotoSlsaProvenanceV1/SlsaProvenanceV1.php +++ /dev/null @@ -1,109 +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; - } - -} - 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 b1b543b7b028..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 \Grafeas\V1\Subject[] $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 RepeatedField<\Grafeas\V1\Subject> - */ - public function getSubject() - { - return $this->subject; - } - - /** - * Generated from protobuf field repeated .grafeas.v1.Subject subject = 2; - * @param \Grafeas\V1\Subject[] $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 3a930b5cde3b..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 1d8871570cb7..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 649acb744e7f..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 \Grafeas\V1\BaseImage[] $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 RepeatedField<\Grafeas\V1\BaseImage> - */ - 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 \Grafeas\V1\BaseImage[] $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 a017e8935df4..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 ca2d23f353cd..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 fafa2f85908e..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 \Grafeas\V1\Occurrence[] $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 RepeatedField<\Grafeas\V1\Occurrence> - */ - public function getOccurrences() - { - return $this->occurrences; - } - - /** - * The occurrences attached to the specified note. - * - * Generated from protobuf field repeated .grafeas.v1.Occurrence occurrences = 1; - * @param \Grafeas\V1\Occurrence[] $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 2340b857e6c1..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 7147c8e71721..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 \Grafeas\V1\Note[] $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 string[] $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 RepeatedField<\Grafeas\V1\Note> - */ - public function getNotes() - { - return $this->notes; - } - - /** - * The notes requested. - * - * Generated from protobuf field repeated .grafeas.v1.Note notes = 1; - * @param \Grafeas\V1\Note[] $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 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 string[] $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 0c5e8fcd4f20..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 0fd028e70a7c..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 \Grafeas\V1\Occurrence[] $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 string[] $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 RepeatedField<\Grafeas\V1\Occurrence> - */ - public function getOccurrences() - { - return $this->occurrences; - } - - /** - * The occurrences requested. - * - * Generated from protobuf field repeated .grafeas.v1.Occurrence occurrences = 1; - * @param \Grafeas\V1\Occurrence[] $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 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 string[] $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 d3c52d78b375..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 0f2f5b73d46d..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 5a6e54939241..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 fd403bca269e..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 \Grafeas\V1\RelatedUrl[] $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 string[] $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 RepeatedField<\Grafeas\V1\RelatedUrl> - */ - public function getRelatedUrl() - { - return $this->related_url; - } - - /** - * URLs associated with this note. - * - * Generated from protobuf field repeated .grafeas.v1.RelatedUrl related_url = 5; - * @param \Grafeas\V1\RelatedUrl[] $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 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 string[] $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 426e03ad2768..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 357cd458a4b0..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 \Grafeas\V1\Distribution[] $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 \Grafeas\V1\Digest[] $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 RepeatedField<\Grafeas\V1\Distribution> - */ - 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 \Grafeas\V1\Distribution[] $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 RepeatedField<\Grafeas\V1\Digest> - */ - 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 \Grafeas\V1\Digest[] $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 9528c6efc26e..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 \Grafeas\V1\Location[] $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 RepeatedField<\Grafeas\V1\Location> - */ - 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 \Grafeas\V1\Location[] $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 d6f60eb8e461..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 7febcd531924..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 \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. Since the arguments - * field can greatly vary in structure, depending on the builder and recipe - * type, this is of form "Any". - * @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. 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 RepeatedField<\Google\Protobuf\Any> - */ - 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 \Google\Protobuf\Any[] $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 RepeatedField<\Google\Protobuf\Any> - */ - 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 \Google\Protobuf\Any[] $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 ad2eb7bc9117..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 f84c3d607dfc..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 1bb73b3e47f1..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 e069099eff4a..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 f48701a33eab..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 \Grafeas\V1\EnvelopeSignature[] $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 RepeatedField<\Grafeas\V1\EnvelopeSignature> - */ - public function getSignatures() - { - return $this->signatures; - } - - /** - * The signatures over the payload. - * - * Generated from protobuf field repeated .grafeas.v1.EnvelopeSignature signatures = 3; - * @param \Grafeas\V1\EnvelopeSignature[] $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 5399035b84e6..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 \Grafeas\V1\Subject[] $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 RepeatedField<\Grafeas\V1\Subject> - */ - 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 \Grafeas\V1\Subject[] $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 e3c5ec2a50cb..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 e42536eb3b43..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 8699694aeade..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 eef6c66061ce..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 \Grafeas\V1\SecretLocation[] $locations - * Locations where the secret is detected. - * @type \Grafeas\V1\SecretStatus[] $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 RepeatedField<\Grafeas\V1\SecretLocation> - */ - 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 \Grafeas\V1\SecretLocation[] $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 RepeatedField<\Grafeas\V1\SecretStatus> - */ - 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 \Grafeas\V1\SecretStatus[] $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 7fd48695a060..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 88dab1ca2e6e..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SecretStatus/Status.php +++ /dev/null @@ -1,68 +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); - } -} - 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 66bc0496c7ec..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 3fc3e8da355b..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 \Grafeas\V1\SlsaProvenance\Material[] $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 RepeatedField<\Grafeas\V1\SlsaProvenance\Material> - */ - 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 \Grafeas\V1\SlsaProvenance\Material[] $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 4bca3f3393fa..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/Material.php +++ /dev/null @@ -1,85 +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; - } - -} - 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 08708ccefbca..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaBuilder.php +++ /dev/null @@ -1,58 +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; - } - -} - 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 b1472ae09bf5..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaCompleteness.php +++ /dev/null @@ -1,148 +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; - } - -} - 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 f2c5f122d2bc..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaMetadata.php +++ /dev/null @@ -1,249 +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; - } - -} - 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 4c20bcd6d3ad..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenance/SlsaRecipe.php +++ /dev/null @@ -1,293 +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; - } - -} - 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 0b91ba669ed7..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 \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaMaterial[] $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 RepeatedField<\Grafeas\V1\SlsaProvenanceZeroTwo\SlsaMaterial> - */ - public function getMaterials() - { - return $this->materials; - } - - /** - * Generated from protobuf field repeated .grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial materials = 6; - * @param \Grafeas\V1\SlsaProvenanceZeroTwo\SlsaMaterial[] $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 fe024f7c11d0..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaBuilder.php +++ /dev/null @@ -1,61 +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; - } - -} - 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 d643e1b77b80..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaCompleteness.php +++ /dev/null @@ -1,115 +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; - } - -} - 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 25c90d5884e9..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaConfigSource.php +++ /dev/null @@ -1,115 +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; - } - -} - 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 b5f59a3cc697..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaInvocation.php +++ /dev/null @@ -1,144 +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; - } - -} - 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 bc35b22ef115..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaMaterial.php +++ /dev/null @@ -1,88 +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; - } - -} - 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 13e8b597b2af..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/SlsaProvenanceZeroTwo/SlsaMetadata.php +++ /dev/null @@ -1,198 +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; - } - -} - 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 90999c75ac70..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 \Grafeas\V1\SourceContext[] $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 RepeatedField<\Grafeas\V1\SourceContext> - */ - 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 \Grafeas\V1\SourceContext[] $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 c23eb3cf08ef..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 c46a8424a06a..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 c0fede3655ca..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 131aebe7f974..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 36d6234a2d7d..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 string[] $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 RepeatedField - */ - public function getCve() - { - return $this->cve; - } - - /** - * The cve tied to this Upgrade. - * - * Generated from protobuf field repeated string cve = 4; - * @param string[] $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 f237daa6f70c..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 \Grafeas\V1\UpgradeDistribution[] $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 RepeatedField<\Grafeas\V1\UpgradeDistribution> - */ - 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 \Grafeas\V1\UpgradeDistribution[] $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 9e07aeb69095..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 8c7c6cc6619b..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 1dc694ba000d..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/Version/VersionKind.php +++ /dev/null @@ -1,68 +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); - } -} - 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 2debdc115b14..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 cc1e040a2c41..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment.php +++ /dev/null @@ -1,389 +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 \Grafeas\V1\RelatedUrl[] $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 string[] $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 \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Remediation[] $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 RepeatedField<\Grafeas\V1\RelatedUrl> - */ - 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 \Grafeas\V1\RelatedUrl[] $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 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 string[] $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 RepeatedField<\Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Remediation> - */ - 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 \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Remediation[] $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; - } - -} - 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 631d830979e6..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Justification.php +++ /dev/null @@ -1,102 +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; - } - -} - 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 8a1a57d80a81..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Justification/JustificationType.php +++ /dev/null @@ -1,91 +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); - } -} - 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 c3a4f108cbdd..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Remediation.php +++ /dev/null @@ -1,145 +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; - } - -} - 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 aba39fcf282a..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/Remediation/RemediationType.php +++ /dev/null @@ -1,82 +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); - } -} - 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 d79e0db71de2..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Assessment/State.php +++ /dev/null @@ -1,76 +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); - } -} - 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 a75fef901744..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Product.php +++ /dev/null @@ -1,157 +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"); - } - -} - 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 71457ae23302..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityAssessmentNote/Publisher.php +++ /dev/null @@ -1,162 +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; - } - -} - 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 86c34eb3ab8a..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote.php +++ /dev/null @@ -1,447 +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; - /** - * The full description of the v4 CVSS for this vulnerability. - * - * Generated from protobuf field .grafeas.v1.CVSS cvss_v4 = 10; - */ - protected $cvss_v4 = 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 \Grafeas\V1\VulnerabilityNote\Detail[] $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 \Grafeas\V1\VulnerabilityNote\WindowsDetail[] $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. - * @type \Grafeas\V1\CVSS $cvss_v4 - * The full description of the v4 CVSS for this vulnerability. - * } - */ - 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 RepeatedField<\Grafeas\V1\VulnerabilityNote\Detail> - */ - 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 \Grafeas\V1\VulnerabilityNote\Detail[] $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 RepeatedField<\Grafeas\V1\VulnerabilityNote\WindowsDetail> - */ - 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 \Grafeas\V1\VulnerabilityNote\WindowsDetail[] $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; - } - - /** - * The full description of the v4 CVSS for this vulnerability. - * - * Generated from protobuf field .grafeas.v1.CVSS cvss_v4 = 10; - * @return \Grafeas\V1\CVSS|null - */ - public function getCvssV4() - { - return $this->cvss_v4; - } - - public function hasCvssV4() - { - return isset($this->cvss_v4); - } - - public function clearCvssV4() - { - unset($this->cvss_v4); - } - - /** - * The full description of the v4 CVSS for this vulnerability. - * - * Generated from protobuf field .grafeas.v1.CVSS cvss_v4 = 10; - * @param \Grafeas\V1\CVSS $var - * @return $this - */ - public function setCvssV4($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\CVSS::class); - $this->cvss_v4 = $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 cc8020c5cd01..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote/Detail.php +++ /dev/null @@ -1,642 +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; - } - -} - 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 13a94c23156a..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote/WindowsDetail.php +++ /dev/null @@ -1,183 +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 \Grafeas\V1\VulnerabilityNote\WindowsDetail\KnowledgeBase[] $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 RepeatedField<\Grafeas\V1\VulnerabilityNote\WindowsDetail\KnowledgeBase> - */ - 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 \Grafeas\V1\VulnerabilityNote\WindowsDetail\KnowledgeBase[] $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; - } - -} - 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 ae2fb417bf78..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityNote/WindowsDetail/KnowledgeBase.php +++ /dev/null @@ -1,103 +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; - } - -} - 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 bb29924e3d5b..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityOccurrence.php +++ /dev/null @@ -1,672 +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; - /** - * The cvss v4 score for the vulnerability. - * - * Generated from protobuf field .grafeas.v1.CVSS cvss_v4 = 16; - */ - protected $cvss_v4 = 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 \Grafeas\V1\VulnerabilityOccurrence\PackageIssue[] $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 \Grafeas\V1\RelatedUrl[] $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. - * @type \Grafeas\V1\CVSS $cvss_v4 - * The cvss v4 score for the vulnerability. - * } - */ - 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 RepeatedField<\Grafeas\V1\VulnerabilityOccurrence\PackageIssue> - */ - 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 \Grafeas\V1\VulnerabilityOccurrence\PackageIssue[] $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 RepeatedField<\Grafeas\V1\RelatedUrl> - */ - 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 \Grafeas\V1\RelatedUrl[] $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; - } - - /** - * The cvss v4 score for the vulnerability. - * - * Generated from protobuf field .grafeas.v1.CVSS cvss_v4 = 16; - * @return \Grafeas\V1\CVSS|null - */ - public function getCvssV4() - { - return $this->cvss_v4; - } - - public function hasCvssV4() - { - return isset($this->cvss_v4); - } - - public function clearCvssV4() - { - unset($this->cvss_v4); - } - - /** - * The cvss v4 score for the vulnerability. - * - * Generated from protobuf field .grafeas.v1.CVSS cvss_v4 = 16; - * @param \Grafeas\V1\CVSS $var - * @return $this - */ - public function setCvssV4($var) - { - GPBUtil::checkMessage($var, \Grafeas\V1\CVSS::class); - $this->cvss_v4 = $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 5544b1125237..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityOccurrence/PackageIssue.php +++ /dev/null @@ -1,426 +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 \Grafeas\V1\FileLocation[] $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 RepeatedField<\Grafeas\V1\FileLocation> - */ - 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 \Grafeas\V1\FileLocation[] $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; - } - -} - 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 15ec504814f2..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/VulnerabilityOccurrence/VexAssessment.php +++ /dev/null @@ -1,363 +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 \Grafeas\V1\RelatedUrl[] $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 string[] $impacts - * Contains information about the impact of this vulnerability, - * this will change with time. - * @type \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Remediation[] $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 RepeatedField<\Grafeas\V1\RelatedUrl> - */ - 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 \Grafeas\V1\RelatedUrl[] $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 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 string[] $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 RepeatedField<\Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Remediation> - */ - 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 \Grafeas\V1\VulnerabilityAssessmentNote\Assessment\Remediation[] $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; - } - -} - 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 bfad4c7519b0..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 \Grafeas\V1\WindowsUpdate\Category[] $categories - * The list of categories to which the update belongs. - * @type string[] $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 RepeatedField<\Grafeas\V1\WindowsUpdate\Category> - */ - 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 \Grafeas\V1\WindowsUpdate\Category[] $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 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 string[] $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 3489bad42bf6..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/WindowsUpdate/Category.php +++ /dev/null @@ -1,101 +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; - } - -} - 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 247ec8f020d4..000000000000 --- a/owl-bot-staging/Grafeas/v1/proto/src/Grafeas/V1/WindowsUpdate/Identity.php +++ /dev/null @@ -1,101 +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; - } - -} - 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()); - } -}