diff --git a/packages/grafeas/protos/protos.d.ts b/packages/grafeas/protos/protos.d.ts index 253890ff9ef..88208fdc37f 100644 --- a/packages/grafeas/protos/protos.d.ts +++ b/packages/grafeas/protos/protos.d.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -import * as Long from "long"; +import Long = require("long"); import {protobuf as $protobuf} from "google-gax"; /** Namespace grafeas. */ export namespace grafeas { @@ -108,6 +108,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AttestationNote + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace AttestationNote { @@ -200,6 +207,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Hint + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } @@ -291,6 +305,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Jwt + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AttestationOccurrence. */ @@ -393,6 +414,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AttestationOccurrence + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** NoteKind enum. */ @@ -504,6 +532,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RelatedUrl + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a Signature. */ @@ -600,6 +635,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Signature + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an Envelope. */ @@ -702,6 +744,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Envelope + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an EnvelopeSignature. */ @@ -798,6 +847,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnvelopeSignature + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a FileLocation. */ @@ -888,6 +944,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FileLocation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a License. */ @@ -984,6 +1047,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for License + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a Digest. */ @@ -1080,6 +1150,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Digest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a BuildNote. */ @@ -1170,6 +1247,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BuildNote + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a BuildOccurrence. */ @@ -1278,6 +1362,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BuildOccurrence + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a Recipe. */ @@ -1392,6 +1483,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Recipe + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a Completeness. */ @@ -1494,6 +1592,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Completeness + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a Metadata. */ @@ -1608,6 +1713,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Metadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a BuilderConfig. */ @@ -1698,6 +1810,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BuilderConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an InTotoProvenance. */ @@ -1806,6 +1925,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InTotoProvenance + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an InTotoStatement. */ @@ -1929,6 +2055,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InTotoStatement + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a Subject. */ @@ -2025,6 +2158,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Subject + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SlsaProvenance. */ @@ -2133,6 +2273,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SlsaProvenance + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace SlsaProvenance { @@ -2249,6 +2396,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SlsaRecipe + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SlsaCompleteness. */ @@ -2351,6 +2505,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SlsaCompleteness + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SlsaMetadata. */ @@ -2465,6 +2626,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SlsaMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SlsaBuilder. */ @@ -2555,6 +2723,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SlsaBuilder + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a Material. */ @@ -2651,6 +2826,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Material + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } @@ -2772,6 +2954,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SlsaProvenanceZeroTwo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace SlsaProvenanceZeroTwo { @@ -2864,6 +3053,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SlsaBuilder + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SlsaMaterial. */ @@ -2960,6 +3156,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SlsaMaterial + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SlsaInvocation. */ @@ -3062,6 +3265,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SlsaInvocation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SlsaConfigSource. */ @@ -3164,6 +3374,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SlsaConfigSource + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SlsaMetadata. */ @@ -3278,6 +3495,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SlsaMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SlsaCompleteness. */ @@ -3380,6 +3604,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SlsaCompleteness + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } @@ -3543,6 +3774,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BuildProvenance + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a Source. */ @@ -3651,6 +3889,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Source + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a FileHashes. */ @@ -3741,6 +3986,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FileHashes + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a Hash. */ @@ -3837,6 +4089,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Hash + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a Command. */ @@ -3957,6 +4216,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Command + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an Artifact. */ @@ -4059,6 +4325,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Artifact + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SourceContext. */ @@ -4170,6 +4443,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SourceContext + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AliasContext. */ @@ -4266,6 +4546,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AliasContext + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace AliasContext { @@ -4382,6 +4669,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CloudRepoSourceContext + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GerritSourceContext. */ @@ -4493,6 +4787,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GerritSourceContext + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GitSourceContext. */ @@ -4589,6 +4890,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GitSourceContext + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a RepoId. */ @@ -4688,6 +4996,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RepoId + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ProjectRepoId. */ @@ -4784,6 +5099,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ProjectRepoId + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ComplianceNote. */ @@ -4913,6 +5235,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ComplianceNote + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace ComplianceNote { @@ -5011,6 +5340,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CisBenchmark + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } @@ -5114,6 +5450,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ComplianceVersion + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ComplianceOccurrence. */ @@ -5210,6 +5553,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ComplianceOccurrence + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a NonCompliantFile. */ @@ -5312,6 +5662,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NonCompliantFile + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Severity enum. */ @@ -5472,6 +5829,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CVSSv3 + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace CVSSv3 { @@ -5677,6 +6041,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CVSS + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace CVSS { @@ -5824,6 +6195,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeploymentNote + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DeploymentOccurrence. */ @@ -5950,6 +6328,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeploymentOccurrence + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace DeploymentOccurrence { @@ -6051,6 +6436,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DiscoveryNote + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DiscoveryOccurrence. */ @@ -6171,6 +6563,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DiscoveryOccurrence + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace DiscoveryOccurrence { @@ -6281,6 +6680,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DSSEAttestationNote + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace DSSEAttestationNote { @@ -6373,6 +6779,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DSSEHint + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } @@ -6473,6 +6886,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DSSEAttestationOccurrence + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Represents a Grafeas */ @@ -6695,98 +7115,98 @@ export namespace grafeas { namespace Grafeas { /** - * Callback as used by {@link grafeas.v1.Grafeas#getOccurrence}. + * Callback as used by {@link grafeas.v1.Grafeas|getOccurrence}. * @param error Error, if any * @param [response] Occurrence */ type GetOccurrenceCallback = (error: (Error|null), response?: grafeas.v1.Occurrence) => void; /** - * Callback as used by {@link grafeas.v1.Grafeas#listOccurrences}. + * Callback as used by {@link grafeas.v1.Grafeas|listOccurrences}. * @param error Error, if any * @param [response] ListOccurrencesResponse */ type ListOccurrencesCallback = (error: (Error|null), response?: grafeas.v1.ListOccurrencesResponse) => void; /** - * Callback as used by {@link grafeas.v1.Grafeas#deleteOccurrence}. + * Callback as used by {@link grafeas.v1.Grafeas|deleteOccurrence}. * @param error Error, if any * @param [response] Empty */ type DeleteOccurrenceCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link grafeas.v1.Grafeas#createOccurrence}. + * Callback as used by {@link grafeas.v1.Grafeas|createOccurrence}. * @param error Error, if any * @param [response] Occurrence */ type CreateOccurrenceCallback = (error: (Error|null), response?: grafeas.v1.Occurrence) => void; /** - * Callback as used by {@link grafeas.v1.Grafeas#batchCreateOccurrences}. + * Callback as used by {@link grafeas.v1.Grafeas|batchCreateOccurrences}. * @param error Error, if any * @param [response] BatchCreateOccurrencesResponse */ type BatchCreateOccurrencesCallback = (error: (Error|null), response?: grafeas.v1.BatchCreateOccurrencesResponse) => void; /** - * Callback as used by {@link grafeas.v1.Grafeas#updateOccurrence}. + * Callback as used by {@link grafeas.v1.Grafeas|updateOccurrence}. * @param error Error, if any * @param [response] Occurrence */ type UpdateOccurrenceCallback = (error: (Error|null), response?: grafeas.v1.Occurrence) => void; /** - * Callback as used by {@link grafeas.v1.Grafeas#getOccurrenceNote}. + * Callback as used by {@link grafeas.v1.Grafeas|getOccurrenceNote}. * @param error Error, if any * @param [response] Note */ type GetOccurrenceNoteCallback = (error: (Error|null), response?: grafeas.v1.Note) => void; /** - * Callback as used by {@link grafeas.v1.Grafeas#getNote}. + * Callback as used by {@link grafeas.v1.Grafeas|getNote}. * @param error Error, if any * @param [response] Note */ type GetNoteCallback = (error: (Error|null), response?: grafeas.v1.Note) => void; /** - * Callback as used by {@link grafeas.v1.Grafeas#listNotes}. + * Callback as used by {@link grafeas.v1.Grafeas|listNotes}. * @param error Error, if any * @param [response] ListNotesResponse */ type ListNotesCallback = (error: (Error|null), response?: grafeas.v1.ListNotesResponse) => void; /** - * Callback as used by {@link grafeas.v1.Grafeas#deleteNote}. + * Callback as used by {@link grafeas.v1.Grafeas|deleteNote}. * @param error Error, if any * @param [response] Empty */ type DeleteNoteCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link grafeas.v1.Grafeas#createNote}. + * Callback as used by {@link grafeas.v1.Grafeas|createNote}. * @param error Error, if any * @param [response] Note */ type CreateNoteCallback = (error: (Error|null), response?: grafeas.v1.Note) => void; /** - * Callback as used by {@link grafeas.v1.Grafeas#batchCreateNotes}. + * Callback as used by {@link grafeas.v1.Grafeas|batchCreateNotes}. * @param error Error, if any * @param [response] BatchCreateNotesResponse */ type BatchCreateNotesCallback = (error: (Error|null), response?: grafeas.v1.BatchCreateNotesResponse) => void; /** - * Callback as used by {@link grafeas.v1.Grafeas#updateNote}. + * Callback as used by {@link grafeas.v1.Grafeas|updateNote}. * @param error Error, if any * @param [response] Note */ type UpdateNoteCallback = (error: (Error|null), response?: grafeas.v1.Note) => void; /** - * Callback as used by {@link grafeas.v1.Grafeas#listNoteOccurrences}. + * Callback as used by {@link grafeas.v1.Grafeas|listNoteOccurrences}. * @param error Error, if any * @param [response] ListNoteOccurrencesResponse */ @@ -6986,6 +7406,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Occurrence + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a Note. */ @@ -7187,6 +7614,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Note + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetOccurrenceRequest. */ @@ -7277,6 +7711,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetOccurrenceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListOccurrencesRequest. */ @@ -7385,6 +7826,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListOccurrencesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListOccurrencesResponse. */ @@ -7481,6 +7929,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListOccurrencesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DeleteOccurrenceRequest. */ @@ -7571,6 +8026,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteOccurrenceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CreateOccurrenceRequest. */ @@ -7667,6 +8129,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateOccurrenceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an UpdateOccurrenceRequest. */ @@ -7769,6 +8238,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateOccurrenceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetNoteRequest. */ @@ -7859,6 +8335,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetNoteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetOccurrenceNoteRequest. */ @@ -7949,6 +8432,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetOccurrenceNoteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListNotesRequest. */ @@ -8057,6 +8547,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListNotesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListNotesResponse. */ @@ -8153,6 +8650,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListNotesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DeleteNoteRequest. */ @@ -8243,6 +8747,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteNoteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CreateNoteRequest. */ @@ -8345,6 +8856,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateNoteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an UpdateNoteRequest. */ @@ -8447,6 +8965,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateNoteRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListNoteOccurrencesRequest. */ @@ -8555,6 +9080,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListNoteOccurrencesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListNoteOccurrencesResponse. */ @@ -8651,6 +9183,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListNoteOccurrencesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a BatchCreateNotesRequest. */ @@ -8747,6 +9286,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BatchCreateNotesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a BatchCreateNotesResponse. */ @@ -8837,6 +9383,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BatchCreateNotesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a BatchCreateOccurrencesRequest. */ @@ -8933,6 +9486,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BatchCreateOccurrencesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a BatchCreateOccurrencesResponse. */ @@ -9023,6 +9583,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BatchCreateOccurrencesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a Layer. */ @@ -9119,6 +9686,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Layer + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a Fingerprint. */ @@ -9221,6 +9795,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Fingerprint + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an ImageNote. */ @@ -9317,6 +9898,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ImageNote + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an ImageOccurrence. */ @@ -9425,6 +10013,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ImageOccurrence + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Architecture enum. */ @@ -9552,6 +10147,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Distribution + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a Location. */ @@ -9654,6 +10256,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Location + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a PackageNote. */ @@ -9804,6 +10413,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PackageNote + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a PackageOccurrence. */ @@ -9930,6 +10546,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PackageOccurrence + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a Version. */ @@ -10050,6 +10673,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Version + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace Version { @@ -10169,6 +10799,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpgradeNote + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an UpgradeDistribution. */ @@ -10277,6 +10914,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpgradeDistribution + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a WindowsUpdate. */ @@ -10403,6 +11047,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WindowsUpdate + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace WindowsUpdate { @@ -10501,6 +11152,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Identity + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a Category. */ @@ -10597,6 +11255,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Category + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } @@ -10706,6 +11371,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpgradeOccurrence + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a VulnerabilityNote. */ @@ -10826,6 +11498,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VulnerabilityNote + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace VulnerabilityNote { @@ -10996,6 +11675,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Detail + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a WindowsDetail. */ @@ -11104,6 +11790,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WindowsDetail + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace WindowsDetail { @@ -11202,6 +11895,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for KnowledgeBase + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } } @@ -11348,6 +12048,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VulnerabilityOccurrence + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace VulnerabilityOccurrence { @@ -11494,6 +12201,13 @@ export namespace grafeas { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PackageIssue + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } } @@ -11599,6 +12313,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Any + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a Timestamp. */ @@ -11695,6 +12416,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Timestamp + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a Struct. */ @@ -11785,6 +12513,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Struct + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a Value. */ @@ -11908,6 +12643,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Value + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** NullValue enum. */ @@ -12003,6 +12745,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListValue + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a FileDescriptorSet. */ @@ -12093,6 +12842,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FileDescriptorSet + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a FileDescriptorProto. */ @@ -12133,6 +12889,9 @@ export namespace google { /** FileDescriptorProto syntax */ syntax?: (string|null); + + /** FileDescriptorProto edition */ + edition?: (string|null); } /** Represents a FileDescriptorProto. */ @@ -12180,6 +12939,9 @@ export namespace google { /** FileDescriptorProto syntax. */ public syntax: string; + /** FileDescriptorProto edition. */ + public edition: string; + /** * Creates a new FileDescriptorProto instance using the specified properties. * @param [properties] Properties to set @@ -12249,6 +13011,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FileDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DescriptorProto. */ @@ -12393,6 +13162,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace DescriptorProto { @@ -12497,6 +13273,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExtensionRange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ReservedRange. */ @@ -12593,6 +13376,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReservedRange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } @@ -12684,6 +13474,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExtensionRangeOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a FieldDescriptorProto. */ @@ -12834,6 +13631,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FieldDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace FieldDescriptorProto { @@ -12962,6 +13766,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OneofDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an EnumDescriptorProto. */ @@ -13076,6 +13887,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnumDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace EnumDescriptorProto { @@ -13174,6 +13992,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnumReservedRange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } @@ -13277,6 +14102,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnumValueDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ServiceDescriptorProto. */ @@ -13379,6 +14211,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ServiceDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a MethodDescriptorProto. */ @@ -13499,6 +14338,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MethodDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a FileOptions. */ @@ -13712,6 +14558,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FileOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace FileOptions { @@ -13839,6 +14692,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MessageOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a FieldOptions. */ @@ -13856,6 +14716,9 @@ export namespace google { /** FieldOptions lazy */ lazy?: (boolean|null); + /** FieldOptions unverifiedLazy */ + unverifiedLazy?: (boolean|null); + /** FieldOptions deprecated */ deprecated?: (boolean|null); @@ -13893,6 +14756,9 @@ export namespace google { /** FieldOptions lazy. */ public lazy: boolean; + /** FieldOptions unverifiedLazy. */ + public unverifiedLazy: boolean; + /** FieldOptions deprecated. */ public deprecated: boolean; @@ -13971,6 +14837,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FieldOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace FieldOptions { @@ -14078,6 +14951,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OneofOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an EnumOptions. */ @@ -14180,6 +15060,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnumOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an EnumValueOptions. */ @@ -14276,6 +15163,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnumValueOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ServiceOptions. */ @@ -14378,6 +15272,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ServiceOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a MethodOptions. */ @@ -14486,6 +15387,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MethodOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace MethodOptions { @@ -14622,6 +15530,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UninterpretedOption + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace UninterpretedOption { @@ -14720,6 +15635,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NamePart + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } @@ -14811,6 +15733,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SourceCodeInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace SourceCodeInfo { @@ -14927,6 +15856,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Location + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } @@ -15018,6 +15954,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GeneratedCodeInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace GeneratedCodeInfo { @@ -15036,6 +15979,9 @@ export namespace google { /** Annotation end */ end?: (number|null); + + /** Annotation semantic */ + semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null); } /** Represents an Annotation. */ @@ -15059,6 +16005,9 @@ export namespace google { /** Annotation end. */ public end: number; + /** Annotation semantic. */ + public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic); + /** * Creates a new Annotation instance using the specified properties. * @param [properties] Properties to set @@ -15128,6 +16077,23 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Annotation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Annotation { + + /** Semantic enum. */ + enum Semantic { + NONE = 0, + SET = 1, + ALIAS = 2 + } } } @@ -15213,6 +16179,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Empty + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a FieldMask. */ @@ -15303,6 +16276,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FieldMask + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } @@ -15415,6 +16395,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Http + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a HttpRule. */ @@ -15562,6 +16549,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HttpRule + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CustomHttpPattern. */ @@ -15658,6 +16652,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CustomHttpPattern + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ResourceDescriptor. */ @@ -15784,6 +16785,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ResourceDescriptor + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace ResourceDescriptor { @@ -15896,6 +16904,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ResourceReference + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } @@ -16002,6 +17017,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Status + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } } diff --git a/packages/grafeas/protos/protos.js b/packages/grafeas/protos/protos.js index 362205d9ffa..21c5124aecc 100644 --- a/packages/grafeas/protos/protos.js +++ b/packages/grafeas/protos/protos.js @@ -140,9 +140,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.hint = $root.grafeas.v1.AttestationNote.Hint.decode(reader, reader.uint32()); - break; + case 1: { + message.hint = $root.grafeas.v1.AttestationNote.Hint.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -237,6 +238,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AttestationNote + * @function getTypeUrl + * @memberof grafeas.v1.AttestationNote + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AttestationNote.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.AttestationNote"; + }; + AttestationNote.Hint = (function() { /** @@ -329,9 +345,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.humanReadableName = reader.string(); - break; + case 1: { + message.humanReadableName = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -421,6 +438,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Hint + * @function getTypeUrl + * @memberof grafeas.v1.AttestationNote.Hint + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Hint.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.AttestationNote.Hint"; + }; + return Hint; })(); @@ -519,9 +551,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.compactJwt = reader.string(); - break; + case 1: { + message.compactJwt = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -611,6 +644,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Jwt + * @function getTypeUrl + * @memberof grafeas.v1.Jwt + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Jwt.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.Jwt"; + }; + return Jwt; })(); @@ -732,19 +780,22 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.serializedPayload = reader.bytes(); - break; - case 2: - if (!(message.signatures && message.signatures.length)) - message.signatures = []; - message.signatures.push($root.grafeas.v1.Signature.decode(reader, reader.uint32())); - break; - case 3: - if (!(message.jwts && message.jwts.length)) - message.jwts = []; - message.jwts.push($root.grafeas.v1.Jwt.decode(reader, reader.uint32())); - break; + case 1: { + message.serializedPayload = reader.bytes(); + break; + } + case 2: { + if (!(message.signatures && message.signatures.length)) + message.signatures = []; + message.signatures.push($root.grafeas.v1.Signature.decode(reader, reader.uint32())); + break; + } + case 3: { + if (!(message.jwts && message.jwts.length)) + message.jwts = []; + message.jwts.push($root.grafeas.v1.Jwt.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -819,7 +870,7 @@ if (object.serializedPayload != null) if (typeof object.serializedPayload === "string") $util.base64.decode(object.serializedPayload, message.serializedPayload = $util.newBuffer($util.base64.length(object.serializedPayload)), 0); - else if (object.serializedPayload.length) + else if (object.serializedPayload.length >= 0) message.serializedPayload = object.serializedPayload; if (object.signatures) { if (!Array.isArray(object.signatures)) @@ -895,6 +946,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AttestationOccurrence + * @function getTypeUrl + * @memberof grafeas.v1.AttestationOccurrence + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AttestationOccurrence.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.AttestationOccurrence"; + }; + return AttestationOccurrence; })(); @@ -1033,12 +1099,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.url = reader.string(); - break; - case 2: - message.label = reader.string(); - break; + case 1: { + message.url = reader.string(); + break; + } + case 2: { + message.label = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -1137,6 +1205,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for RelatedUrl + * @function getTypeUrl + * @memberof grafeas.v1.RelatedUrl + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RelatedUrl.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.RelatedUrl"; + }; + return RelatedUrl; })(); @@ -1243,12 +1326,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.signature = reader.bytes(); - break; - case 2: - message.publicKeyId = reader.string(); - break; + case 1: { + message.signature = reader.bytes(); + break; + } + case 2: { + message.publicKeyId = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -1308,7 +1393,7 @@ if (object.signature != null) if (typeof object.signature === "string") $util.base64.decode(object.signature, message.signature = $util.newBuffer($util.base64.length(object.signature)), 0); - else if (object.signature.length) + else if (object.signature.length >= 0) message.signature = object.signature; if (object.publicKeyId != null) message.publicKeyId = String(object.publicKeyId); @@ -1356,6 +1441,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Signature + * @function getTypeUrl + * @memberof grafeas.v1.Signature + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Signature.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.Signature"; + }; + return Signature; })(); @@ -1475,17 +1575,20 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.payload = reader.bytes(); - break; - case 2: - message.payloadType = reader.string(); - break; - case 3: - if (!(message.signatures && message.signatures.length)) - message.signatures = []; - message.signatures.push($root.grafeas.v1.EnvelopeSignature.decode(reader, reader.uint32())); - break; + case 1: { + message.payload = reader.bytes(); + break; + } + case 2: { + message.payloadType = reader.string(); + break; + } + case 3: { + if (!(message.signatures && message.signatures.length)) + message.signatures = []; + message.signatures.push($root.grafeas.v1.EnvelopeSignature.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -1554,7 +1657,7 @@ if (object.payload != null) if (typeof object.payload === "string") $util.base64.decode(object.payload, message.payload = $util.newBuffer($util.base64.length(object.payload)), 0); - else if (object.payload.length) + else if (object.payload.length >= 0) message.payload = object.payload; if (object.payloadType != null) message.payloadType = String(object.payloadType); @@ -1619,6 +1722,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Envelope + * @function getTypeUrl + * @memberof grafeas.v1.Envelope + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Envelope.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.Envelope"; + }; + return Envelope; })(); @@ -1725,12 +1843,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.sig = reader.bytes(); - break; - case 2: - message.keyid = reader.string(); - break; + case 1: { + message.sig = reader.bytes(); + break; + } + case 2: { + message.keyid = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -1790,7 +1910,7 @@ if (object.sig != null) if (typeof object.sig === "string") $util.base64.decode(object.sig, message.sig = $util.newBuffer($util.base64.length(object.sig)), 0); - else if (object.sig.length) + else if (object.sig.length >= 0) message.sig = object.sig; if (object.keyid != null) message.keyid = String(object.keyid); @@ -1838,6 +1958,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for EnvelopeSignature + * @function getTypeUrl + * @memberof grafeas.v1.EnvelopeSignature + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnvelopeSignature.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.EnvelopeSignature"; + }; + return EnvelopeSignature; })(); @@ -1933,9 +2068,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.filePath = reader.string(); - break; + case 1: { + message.filePath = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -2025,6 +2161,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for FileLocation + * @function getTypeUrl + * @memberof grafeas.v1.FileLocation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileLocation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.FileLocation"; + }; + return FileLocation; })(); @@ -2131,12 +2282,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.expression = reader.string(); - break; - case 2: - message.comments = reader.string(); - break; + case 1: { + message.expression = reader.string(); + break; + } + case 2: { + message.comments = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -2235,6 +2388,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for License + * @function getTypeUrl + * @memberof grafeas.v1.License + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + License.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.License"; + }; + return License; })(); @@ -2341,12 +2509,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.algo = reader.string(); - break; - case 2: - message.digestBytes = reader.bytes(); - break; + case 1: { + message.algo = reader.string(); + break; + } + case 2: { + message.digestBytes = reader.bytes(); + break; + } default: reader.skipType(tag & 7); break; @@ -2408,7 +2578,7 @@ if (object.digestBytes != null) if (typeof object.digestBytes === "string") $util.base64.decode(object.digestBytes, message.digestBytes = $util.newBuffer($util.base64.length(object.digestBytes)), 0); - else if (object.digestBytes.length) + else if (object.digestBytes.length >= 0) message.digestBytes = object.digestBytes; return message; }; @@ -2454,6 +2624,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Digest + * @function getTypeUrl + * @memberof grafeas.v1.Digest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Digest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.Digest"; + }; + return Digest; })(); @@ -2549,9 +2734,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.builderVersion = reader.string(); - break; + case 1: { + message.builderVersion = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -2641,6 +2827,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for BuildNote + * @function getTypeUrl + * @memberof grafeas.v1.BuildNote + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BuildNote.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.BuildNote"; + }; + return BuildNote; })(); @@ -2769,18 +2970,22 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.provenance = $root.grafeas.v1.BuildProvenance.decode(reader, reader.uint32()); - break; - case 2: - message.provenanceBytes = reader.string(); - break; - case 3: - message.intotoProvenance = $root.grafeas.v1.InTotoProvenance.decode(reader, reader.uint32()); - break; - case 4: - message.intotoStatement = $root.grafeas.v1.InTotoStatement.decode(reader, reader.uint32()); - break; + case 1: { + message.provenance = $root.grafeas.v1.BuildProvenance.decode(reader, reader.uint32()); + break; + } + case 2: { + message.provenanceBytes = reader.string(); + break; + } + case 3: { + message.intotoProvenance = $root.grafeas.v1.InTotoProvenance.decode(reader, reader.uint32()); + break; + } + case 4: { + message.intotoStatement = $root.grafeas.v1.InTotoStatement.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -2910,6 +3115,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for BuildOccurrence + * @function getTypeUrl + * @memberof grafeas.v1.BuildOccurrence + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BuildOccurrence.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.BuildOccurrence"; + }; + return BuildOccurrence; })(); @@ -3053,25 +3273,30 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.type = reader.string(); - break; - case 2: - message.definedInMaterial = reader.int64(); - break; - case 3: - message.entryPoint = reader.string(); - break; - case 4: - if (!(message["arguments"] && message["arguments"].length)) - message["arguments"] = []; - message["arguments"].push($root.google.protobuf.Any.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.environment && message.environment.length)) - message.environment = []; - message.environment.push($root.google.protobuf.Any.decode(reader, reader.uint32())); - break; + case 1: { + message.type = reader.string(); + break; + } + case 2: { + message.definedInMaterial = reader.int64(); + break; + } + case 3: { + message.entryPoint = reader.string(); + break; + } + case 4: { + if (!(message["arguments"] && message["arguments"].length)) + message["arguments"] = []; + message["arguments"].push($root.google.protobuf.Any.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.environment && message.environment.length)) + message.environment = []; + message.environment.push($root.google.protobuf.Any.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -3244,6 +3469,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Recipe + * @function getTypeUrl + * @memberof grafeas.v1.Recipe + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Recipe.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.Recipe"; + }; + return Recipe; })(); @@ -3361,15 +3601,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message["arguments"] = reader.bool(); - break; - case 2: - message.environment = reader.bool(); - break; - case 3: - message.materials = reader.bool(); - break; + case 1: { + message["arguments"] = reader.bool(); + break; + } + case 2: { + message.environment = reader.bool(); + break; + } + case 3: { + message.materials = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -3476,6 +3719,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Completeness + * @function getTypeUrl + * @memberof grafeas.v1.Completeness + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Completeness.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.Completeness"; + }; + return Completeness; })(); @@ -3615,21 +3873,26 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.buildInvocationId = reader.string(); - break; - case 2: - message.buildStartedOn = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 3: - message.buildFinishedOn = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.completeness = $root.grafeas.v1.Completeness.decode(reader, reader.uint32()); - break; - case 5: - message.reproducible = reader.bool(); - break; + case 1: { + message.buildInvocationId = reader.string(); + break; + } + case 2: { + message.buildStartedOn = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.buildFinishedOn = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 4: { + message.completeness = $root.grafeas.v1.Completeness.decode(reader, reader.uint32()); + break; + } + case 5: { + message.reproducible = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -3767,6 +4030,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Metadata + * @function getTypeUrl + * @memberof grafeas.v1.Metadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Metadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.Metadata"; + }; + return Metadata; })(); @@ -3862,9 +4140,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; + case 1: { + message.id = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -3954,6 +4233,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for BuilderConfig + * @function getTypeUrl + * @memberof grafeas.v1.BuilderConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BuilderConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.BuilderConfig"; + }; + return BuilderConfig; })(); @@ -4084,20 +4378,24 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.builderConfig = $root.grafeas.v1.BuilderConfig.decode(reader, reader.uint32()); - break; - case 2: - message.recipe = $root.grafeas.v1.Recipe.decode(reader, reader.uint32()); - break; - case 3: - message.metadata = $root.grafeas.v1.Metadata.decode(reader, reader.uint32()); - break; - case 4: - if (!(message.materials && message.materials.length)) - message.materials = []; - message.materials.push(reader.string()); - break; + case 1: { + message.builderConfig = $root.grafeas.v1.BuilderConfig.decode(reader, reader.uint32()); + break; + } + case 2: { + message.recipe = $root.grafeas.v1.Recipe.decode(reader, reader.uint32()); + break; + } + case 3: { + message.metadata = $root.grafeas.v1.Metadata.decode(reader, reader.uint32()); + break; + } + case 4: { + if (!(message.materials && message.materials.length)) + message.materials = []; + message.materials.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -4240,6 +4538,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for InTotoProvenance + * @function getTypeUrl + * @memberof grafeas.v1.InTotoProvenance + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InTotoProvenance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.InTotoProvenance"; + }; + return InTotoProvenance; })(); @@ -4406,26 +4719,32 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.type = reader.string(); - break; - case 2: - if (!(message.subject && message.subject.length)) - message.subject = []; - message.subject.push($root.grafeas.v1.Subject.decode(reader, reader.uint32())); - break; - case 3: - message.predicateType = reader.string(); - break; - case 4: - message.provenance = $root.grafeas.v1.InTotoProvenance.decode(reader, reader.uint32()); - break; - case 5: - message.slsaProvenance = $root.grafeas.v1.SlsaProvenance.decode(reader, reader.uint32()); - break; - case 6: - message.slsaProvenanceZeroTwo = $root.grafeas.v1.SlsaProvenanceZeroTwo.decode(reader, reader.uint32()); - break; + case 1: { + message.type = reader.string(); + break; + } + case 2: { + if (!(message.subject && message.subject.length)) + message.subject = []; + message.subject.push($root.grafeas.v1.Subject.decode(reader, reader.uint32())); + break; + } + case 3: { + message.predicateType = reader.string(); + break; + } + case 4: { + message.provenance = $root.grafeas.v1.InTotoProvenance.decode(reader, reader.uint32()); + break; + } + case 5: { + message.slsaProvenance = $root.grafeas.v1.SlsaProvenance.decode(reader, reader.uint32()); + break; + } + case 6: { + message.slsaProvenanceZeroTwo = $root.grafeas.v1.SlsaProvenanceZeroTwo.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -4609,6 +4928,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for InTotoStatement + * @function getTypeUrl + * @memberof grafeas.v1.InTotoStatement + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InTotoStatement.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.InTotoStatement"; + }; + return InTotoStatement; })(); @@ -4717,31 +5051,33 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - if (message.digest === $util.emptyObject) - message.digest = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (message.digest === $util.emptyObject) + message.digest = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } } + message.digest[key] = value; + break; } - message.digest[key] = value; - break; default: reader.skipType(tag & 7); break; @@ -4854,6 +5190,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Subject + * @function getTypeUrl + * @memberof grafeas.v1.Subject + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Subject.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.Subject"; + }; + return Subject; })(); @@ -4984,20 +5335,24 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.builder = $root.grafeas.v1.SlsaProvenance.SlsaBuilder.decode(reader, reader.uint32()); - break; - case 2: - message.recipe = $root.grafeas.v1.SlsaProvenance.SlsaRecipe.decode(reader, reader.uint32()); - break; - case 3: - message.metadata = $root.grafeas.v1.SlsaProvenance.SlsaMetadata.decode(reader, reader.uint32()); - break; - case 4: - if (!(message.materials && message.materials.length)) - message.materials = []; - message.materials.push($root.grafeas.v1.SlsaProvenance.Material.decode(reader, reader.uint32())); - break; + case 1: { + message.builder = $root.grafeas.v1.SlsaProvenance.SlsaBuilder.decode(reader, reader.uint32()); + break; + } + case 2: { + message.recipe = $root.grafeas.v1.SlsaProvenance.SlsaRecipe.decode(reader, reader.uint32()); + break; + } + case 3: { + message.metadata = $root.grafeas.v1.SlsaProvenance.SlsaMetadata.decode(reader, reader.uint32()); + break; + } + case 4: { + if (!(message.materials && message.materials.length)) + message.materials = []; + message.materials.push($root.grafeas.v1.SlsaProvenance.Material.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -5145,6 +5500,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SlsaProvenance + * @function getTypeUrl + * @memberof grafeas.v1.SlsaProvenance + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SlsaProvenance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.SlsaProvenance"; + }; + SlsaProvenance.SlsaRecipe = (function() { /** @@ -5281,21 +5651,26 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.type = reader.string(); - break; - case 2: - message.definedInMaterial = reader.int64(); - break; - case 3: - message.entryPoint = reader.string(); - break; - case 4: - message["arguments"] = $root.google.protobuf.Any.decode(reader, reader.uint32()); - break; - case 5: - message.environment = $root.google.protobuf.Any.decode(reader, reader.uint32()); - break; + case 1: { + message.type = reader.string(); + break; + } + case 2: { + message.definedInMaterial = reader.int64(); + break; + } + case 3: { + message.entryPoint = reader.string(); + break; + } + case 4: { + message["arguments"] = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + } + case 5: { + message.environment = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -5442,6 +5817,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SlsaRecipe + * @function getTypeUrl + * @memberof grafeas.v1.SlsaProvenance.SlsaRecipe + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SlsaRecipe.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.SlsaProvenance.SlsaRecipe"; + }; + return SlsaRecipe; })(); @@ -5559,15 +5949,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message["arguments"] = reader.bool(); - break; - case 2: - message.environment = reader.bool(); - break; - case 3: - message.materials = reader.bool(); - break; + case 1: { + message["arguments"] = reader.bool(); + break; + } + case 2: { + message.environment = reader.bool(); + break; + } + case 3: { + message.materials = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -5674,6 +6067,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SlsaCompleteness + * @function getTypeUrl + * @memberof grafeas.v1.SlsaProvenance.SlsaCompleteness + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SlsaCompleteness.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.SlsaProvenance.SlsaCompleteness"; + }; + return SlsaCompleteness; })(); @@ -5813,21 +6221,26 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.buildInvocationId = reader.string(); - break; - case 2: - message.buildStartedOn = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 3: - message.buildFinishedOn = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.completeness = $root.grafeas.v1.SlsaProvenance.SlsaCompleteness.decode(reader, reader.uint32()); - break; - case 5: - message.reproducible = reader.bool(); - break; + case 1: { + message.buildInvocationId = reader.string(); + break; + } + case 2: { + message.buildStartedOn = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.buildFinishedOn = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 4: { + message.completeness = $root.grafeas.v1.SlsaProvenance.SlsaCompleteness.decode(reader, reader.uint32()); + break; + } + case 5: { + message.reproducible = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -5965,6 +6378,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SlsaMetadata + * @function getTypeUrl + * @memberof grafeas.v1.SlsaProvenance.SlsaMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SlsaMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.SlsaProvenance.SlsaMetadata"; + }; + return SlsaMetadata; })(); @@ -6060,9 +6488,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; + case 1: { + message.id = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -6152,6 +6581,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SlsaBuilder + * @function getTypeUrl + * @memberof grafeas.v1.SlsaProvenance.SlsaBuilder + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SlsaBuilder.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.SlsaProvenance.SlsaBuilder"; + }; + return SlsaBuilder; })(); @@ -6260,31 +6704,33 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.uri = reader.string(); - break; - case 2: - if (message.digest === $util.emptyObject) - message.digest = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; + case 1: { + message.uri = reader.string(); + break; + } + case 2: { + if (message.digest === $util.emptyObject) + message.digest = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } } + message.digest[key] = value; + break; } - message.digest[key] = value; - break; default: reader.skipType(tag & 7); break; @@ -6397,6 +6843,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Material + * @function getTypeUrl + * @memberof grafeas.v1.SlsaProvenance.Material + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Material.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.SlsaProvenance.Material"; + }; + return Material; })(); @@ -6552,26 +7013,32 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.builder = $root.grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder.decode(reader, reader.uint32()); - break; - case 2: - message.buildType = reader.string(); - break; - case 3: - message.invocation = $root.grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation.decode(reader, reader.uint32()); - break; - case 4: - message.buildConfig = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 5: - message.metadata = $root.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata.decode(reader, reader.uint32()); - break; - case 6: - if (!(message.materials && message.materials.length)) - message.materials = []; - message.materials.push($root.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial.decode(reader, reader.uint32())); - break; + case 1: { + message.builder = $root.grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder.decode(reader, reader.uint32()); + break; + } + case 2: { + message.buildType = reader.string(); + break; + } + case 3: { + message.invocation = $root.grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation.decode(reader, reader.uint32()); + break; + } + case 4: { + message.buildConfig = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } + case 5: { + message.metadata = $root.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata.decode(reader, reader.uint32()); + break; + } + case 6: { + if (!(message.materials && message.materials.length)) + message.materials = []; + message.materials.push($root.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -6740,6 +7207,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SlsaProvenanceZeroTwo + * @function getTypeUrl + * @memberof grafeas.v1.SlsaProvenanceZeroTwo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SlsaProvenanceZeroTwo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.SlsaProvenanceZeroTwo"; + }; + SlsaProvenanceZeroTwo.SlsaBuilder = (function() { /** @@ -6832,9 +7314,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; + case 1: { + message.id = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -6924,6 +7407,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SlsaBuilder + * @function getTypeUrl + * @memberof grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SlsaBuilder.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder"; + }; + return SlsaBuilder; })(); @@ -7032,31 +7530,33 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.uri = reader.string(); - break; - case 2: - if (message.digest === $util.emptyObject) - message.digest = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; + case 1: { + message.uri = reader.string(); + break; + } + case 2: { + if (message.digest === $util.emptyObject) + message.digest = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } } + message.digest[key] = value; + break; } - message.digest[key] = value; - break; default: reader.skipType(tag & 7); break; @@ -7169,6 +7669,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SlsaMaterial + * @function getTypeUrl + * @memberof grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SlsaMaterial.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial"; + }; + return SlsaMaterial; })(); @@ -7286,15 +7801,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.configSource = $root.grafeas.v1.SlsaProvenanceZeroTwo.SlsaConfigSource.decode(reader, reader.uint32()); - break; - case 2: - message.parameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 3: - message.environment = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; + case 1: { + message.configSource = $root.grafeas.v1.SlsaProvenanceZeroTwo.SlsaConfigSource.decode(reader, reader.uint32()); + break; + } + case 2: { + message.parameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } + case 3: { + message.environment = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -7416,6 +7934,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SlsaInvocation + * @function getTypeUrl + * @memberof grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SlsaInvocation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation"; + }; + return SlsaInvocation; })(); @@ -7535,34 +8068,37 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.uri = reader.string(); - break; - case 2: - if (message.digest === $util.emptyObject) - message.digest = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; + case 1: { + message.uri = reader.string(); + break; + } + case 2: { + if (message.digest === $util.emptyObject) + message.digest = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } } + message.digest[key] = value; + break; + } + case 3: { + message.entryPoint = reader.string(); + break; } - message.digest[key] = value; - break; - case 3: - message.entryPoint = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -7684,6 +8220,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SlsaConfigSource + * @function getTypeUrl + * @memberof grafeas.v1.SlsaProvenanceZeroTwo.SlsaConfigSource + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SlsaConfigSource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.SlsaProvenanceZeroTwo.SlsaConfigSource"; + }; + return SlsaConfigSource; })(); @@ -7823,21 +8374,26 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.buildInvocationId = reader.string(); - break; - case 2: - message.buildStartedOn = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 3: - message.buildFinishedOn = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.completeness = $root.grafeas.v1.SlsaProvenanceZeroTwo.SlsaCompleteness.decode(reader, reader.uint32()); - break; - case 5: - message.reproducible = reader.bool(); - break; + case 1: { + message.buildInvocationId = reader.string(); + break; + } + case 2: { + message.buildStartedOn = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.buildFinishedOn = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 4: { + message.completeness = $root.grafeas.v1.SlsaProvenanceZeroTwo.SlsaCompleteness.decode(reader, reader.uint32()); + break; + } + case 5: { + message.reproducible = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -7975,6 +8531,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SlsaMetadata + * @function getTypeUrl + * @memberof grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SlsaMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata"; + }; + return SlsaMetadata; })(); @@ -8092,15 +8663,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parameters = reader.bool(); - break; - case 2: - message.environment = reader.bool(); - break; - case 3: - message.materials = reader.bool(); - break; + case 1: { + message.parameters = reader.bool(); + break; + } + case 2: { + message.environment = reader.bool(); + break; + } + case 3: { + message.materials = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -8207,6 +8781,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SlsaCompleteness + * @function getTypeUrl + * @memberof grafeas.v1.SlsaProvenanceZeroTwo.SlsaCompleteness + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SlsaCompleteness.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.SlsaProvenanceZeroTwo.SlsaCompleteness"; + }; + return SlsaCompleteness; })(); @@ -8443,68 +9032,81 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.projectId = reader.string(); - break; - case 3: - if (!(message.commands && message.commands.length)) - message.commands = []; - message.commands.push($root.grafeas.v1.Command.decode(reader, reader.uint32())); - break; - case 4: - if (!(message.builtArtifacts && message.builtArtifacts.length)) - message.builtArtifacts = []; - message.builtArtifacts.push($root.grafeas.v1.Artifact.decode(reader, reader.uint32())); - break; - case 5: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 6: - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 7: - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 8: - message.creator = reader.string(); - break; - case 9: - message.logsUri = reader.string(); - break; - case 10: - message.sourceProvenance = $root.grafeas.v1.Source.decode(reader, reader.uint32()); - break; - case 11: - message.triggerId = reader.string(); - break; - case 12: - if (message.buildOptions === $util.emptyObject) - message.buildOptions = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; + case 1: { + message.id = reader.string(); + break; + } + case 2: { + message.projectId = reader.string(); + break; + } + case 3: { + if (!(message.commands && message.commands.length)) + message.commands = []; + message.commands.push($root.grafeas.v1.Command.decode(reader, reader.uint32())); + break; + } + case 4: { + if (!(message.builtArtifacts && message.builtArtifacts.length)) + message.builtArtifacts = []; + message.builtArtifacts.push($root.grafeas.v1.Artifact.decode(reader, reader.uint32())); + break; + } + case 5: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 7: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 8: { + message.creator = reader.string(); + break; + } + case 9: { + message.logsUri = reader.string(); + break; + } + case 10: { + message.sourceProvenance = $root.grafeas.v1.Source.decode(reader, reader.uint32()); + break; + } + case 11: { + message.triggerId = reader.string(); + break; + } + case 12: { + if (message.buildOptions === $util.emptyObject) + message.buildOptions = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } } + message.buildOptions[key] = value; + break; + } + case 13: { + message.builderVersion = reader.string(); + break; } - message.buildOptions[key] = value; - break; - case 13: - message.builderVersion = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -8762,6 +9364,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for BuildProvenance + * @function getTypeUrl + * @memberof grafeas.v1.BuildProvenance + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BuildProvenance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.BuildProvenance"; + }; + return BuildProvenance; })(); @@ -8896,39 +9513,43 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.artifactStorageSourceUri = reader.string(); - break; - case 2: - if (message.fileHashes === $util.emptyObject) - message.fileHashes = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.grafeas.v1.FileHashes.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; + case 1: { + message.artifactStorageSourceUri = reader.string(); + break; + } + case 2: { + if (message.fileHashes === $util.emptyObject) + message.fileHashes = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.grafeas.v1.FileHashes.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } } + message.fileHashes[key] = value; + break; + } + case 3: { + message.context = $root.grafeas.v1.SourceContext.decode(reader, reader.uint32()); + break; + } + case 4: { + if (!(message.additionalContexts && message.additionalContexts.length)) + message.additionalContexts = []; + message.additionalContexts.push($root.grafeas.v1.SourceContext.decode(reader, reader.uint32())); + break; } - message.fileHashes[key] = value; - break; - case 3: - message.context = $root.grafeas.v1.SourceContext.decode(reader, reader.uint32()); - break; - case 4: - if (!(message.additionalContexts && message.additionalContexts.length)) - message.additionalContexts = []; - message.additionalContexts.push($root.grafeas.v1.SourceContext.decode(reader, reader.uint32())); - break; default: reader.skipType(tag & 7); break; @@ -9086,6 +9707,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Source + * @function getTypeUrl + * @memberof grafeas.v1.Source + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Source.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.Source"; + }; + return Source; })(); @@ -9183,11 +9819,12 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.fileHash && message.fileHash.length)) - message.fileHash = []; - message.fileHash.push($root.grafeas.v1.Hash.decode(reader, reader.uint32())); - break; + case 1: { + if (!(message.fileHash && message.fileHash.length)) + message.fileHash = []; + message.fileHash.push($root.grafeas.v1.Hash.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -9294,6 +9931,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for FileHashes + * @function getTypeUrl + * @memberof grafeas.v1.FileHashes + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileHashes.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.FileHashes"; + }; + return FileHashes; })(); @@ -9400,12 +10052,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.type = reader.string(); - break; - case 2: - message.value = reader.bytes(); - break; + case 1: { + message.type = reader.string(); + break; + } + case 2: { + message.value = reader.bytes(); + break; + } default: reader.skipType(tag & 7); break; @@ -9467,7 +10121,7 @@ if (object.value != null) if (typeof object.value === "string") $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); - else if (object.value.length) + else if (object.value.length >= 0) message.value = object.value; return message; }; @@ -9513,6 +10167,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Hash + * @function getTypeUrl + * @memberof grafeas.v1.Hash + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Hash.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.Hash"; + }; + return Hash; })(); @@ -9669,30 +10338,36 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - if (!(message.env && message.env.length)) - message.env = []; - message.env.push(reader.string()); - break; - case 3: - if (!(message.args && message.args.length)) - message.args = []; - message.args.push(reader.string()); - break; - case 4: - message.dir = reader.string(); - break; - case 5: - message.id = reader.string(); - break; - case 6: - if (!(message.waitFor && message.waitFor.length)) - message.waitFor = []; - message.waitFor.push(reader.string()); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.env && message.env.length)) + message.env = []; + message.env.push(reader.string()); + break; + } + case 3: { + if (!(message.args && message.args.length)) + message.args = []; + message.args.push(reader.string()); + break; + } + case 4: { + message.dir = reader.string(); + break; + } + case 5: { + message.id = reader.string(); + break; + } + case 6: { + if (!(message.waitFor && message.waitFor.length)) + message.waitFor = []; + message.waitFor.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -9861,6 +10536,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Command + * @function getTypeUrl + * @memberof grafeas.v1.Command + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Command.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.Command"; + }; + return Command; })(); @@ -9980,17 +10670,20 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.checksum = reader.string(); - break; - case 2: - message.id = reader.string(); - break; - case 3: - if (!(message.names && message.names.length)) - message.names = []; - message.names.push(reader.string()); - break; + case 1: { + message.checksum = reader.string(); + break; + } + case 2: { + message.id = reader.string(); + break; + } + case 3: { + if (!(message.names && message.names.length)) + message.names = []; + message.names.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -10110,6 +10803,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Artifact + * @function getTypeUrl + * @memberof grafeas.v1.Artifact + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Artifact.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.Artifact"; + }; + return Artifact; })(); @@ -10254,37 +10962,41 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.cloudRepo = $root.grafeas.v1.CloudRepoSourceContext.decode(reader, reader.uint32()); - break; - case 2: - message.gerrit = $root.grafeas.v1.GerritSourceContext.decode(reader, reader.uint32()); - break; - case 3: - message.git = $root.grafeas.v1.GitSourceContext.decode(reader, reader.uint32()); - break; - case 4: - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; + case 1: { + message.cloudRepo = $root.grafeas.v1.CloudRepoSourceContext.decode(reader, reader.uint32()); + break; + } + case 2: { + message.gerrit = $root.grafeas.v1.GerritSourceContext.decode(reader, reader.uint32()); + break; + } + case 3: { + message.git = $root.grafeas.v1.GitSourceContext.decode(reader, reader.uint32()); + break; + } + case 4: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } } + message.labels[key] = value; + break; } - message.labels[key] = value; - break; default: reader.skipType(tag & 7); break; @@ -10447,6 +11159,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SourceContext + * @function getTypeUrl + * @memberof grafeas.v1.SourceContext + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SourceContext.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.SourceContext"; + }; + return SourceContext; })(); @@ -10553,12 +11280,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.kind = reader.int32(); - break; - case 2: - message.name = reader.string(); - break; + case 1: { + message.kind = reader.int32(); + break; + } + case 2: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -10680,6 +11409,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AliasContext + * @function getTypeUrl + * @memberof grafeas.v1.AliasContext + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AliasContext.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.AliasContext"; + }; + /** * Kind enum. * @name grafeas.v1.AliasContext.Kind @@ -10829,15 +11573,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.repoId = $root.grafeas.v1.RepoId.decode(reader, reader.uint32()); - break; - case 2: - message.revisionId = reader.string(); - break; - case 3: - message.aliasContext = $root.grafeas.v1.AliasContext.decode(reader, reader.uint32()); - break; + case 1: { + message.repoId = $root.grafeas.v1.RepoId.decode(reader, reader.uint32()); + break; + } + case 2: { + message.revisionId = reader.string(); + break; + } + case 3: { + message.aliasContext = $root.grafeas.v1.AliasContext.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -10965,6 +11712,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CloudRepoSourceContext + * @function getTypeUrl + * @memberof grafeas.v1.CloudRepoSourceContext + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CloudRepoSourceContext.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.CloudRepoSourceContext"; + }; + return CloudRepoSourceContext; })(); @@ -11107,18 +11869,22 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.hostUri = reader.string(); - break; - case 2: - message.gerritProject = reader.string(); - break; - case 3: - message.revisionId = reader.string(); - break; - case 4: - message.aliasContext = $root.grafeas.v1.AliasContext.decode(reader, reader.uint32()); - break; + case 1: { + message.hostUri = reader.string(); + break; + } + case 2: { + message.gerritProject = reader.string(); + break; + } + case 3: { + message.revisionId = reader.string(); + break; + } + case 4: { + message.aliasContext = $root.grafeas.v1.AliasContext.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -11250,6 +12016,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GerritSourceContext + * @function getTypeUrl + * @memberof grafeas.v1.GerritSourceContext + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GerritSourceContext.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.GerritSourceContext"; + }; + return GerritSourceContext; })(); @@ -11356,12 +12137,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.url = reader.string(); - break; - case 2: - message.revisionId = reader.string(); - break; + case 1: { + message.url = reader.string(); + break; + } + case 2: { + message.revisionId = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -11460,6 +12243,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GitSourceContext + * @function getTypeUrl + * @memberof grafeas.v1.GitSourceContext + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GitSourceContext.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.GitSourceContext"; + }; + return GitSourceContext; })(); @@ -11580,12 +12378,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.projectRepoId = $root.grafeas.v1.ProjectRepoId.decode(reader, reader.uint32()); - break; - case 2: - message.uid = reader.string(); - break; + case 1: { + message.projectRepoId = $root.grafeas.v1.ProjectRepoId.decode(reader, reader.uint32()); + break; + } + case 2: { + message.uid = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -11699,6 +12499,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for RepoId + * @function getTypeUrl + * @memberof grafeas.v1.RepoId + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RepoId.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.RepoId"; + }; + return RepoId; })(); @@ -11805,12 +12620,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.projectId = reader.string(); - break; - case 2: - message.repoName = reader.string(); - break; + case 1: { + message.projectId = reader.string(); + break; + } + case 2: { + message.repoName = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -11909,6 +12726,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ProjectRepoId + * @function getTypeUrl + * @memberof grafeas.v1.ProjectRepoId + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ProjectRepoId.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.ProjectRepoId"; + }; + return ProjectRepoId; })(); @@ -12086,29 +12918,36 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - if (!(message.version && message.version.length)) - message.version = []; - message.version.push($root.grafeas.v1.ComplianceVersion.decode(reader, reader.uint32())); - break; - case 4: - message.rationale = reader.string(); - break; - case 5: - message.remediation = reader.string(); - break; - case 6: - message.cisBenchmark = $root.grafeas.v1.ComplianceNote.CisBenchmark.decode(reader, reader.uint32()); - break; - case 7: - message.scanInstructions = reader.bytes(); - break; + case 1: { + message.title = reader.string(); + break; + } + case 2: { + message.description = reader.string(); + break; + } + case 3: { + if (!(message.version && message.version.length)) + message.version = []; + message.version.push($root.grafeas.v1.ComplianceVersion.decode(reader, reader.uint32())); + break; + } + case 4: { + message.rationale = reader.string(); + break; + } + case 5: { + message.remediation = reader.string(); + break; + } + case 6: { + message.cisBenchmark = $root.grafeas.v1.ComplianceNote.CisBenchmark.decode(reader, reader.uint32()); + break; + } + case 7: { + message.scanInstructions = reader.bytes(); + break; + } default: reader.skipType(tag & 7); break; @@ -12218,7 +13057,7 @@ if (object.scanInstructions != null) if (typeof object.scanInstructions === "string") $util.base64.decode(object.scanInstructions, message.scanInstructions = $util.newBuffer($util.base64.length(object.scanInstructions)), 0); - else if (object.scanInstructions.length) + else if (object.scanInstructions.length >= 0) message.scanInstructions = object.scanInstructions; return message; }; @@ -12285,6 +13124,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ComplianceNote + * @function getTypeUrl + * @memberof grafeas.v1.ComplianceNote + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ComplianceNote.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.ComplianceNote"; + }; + ComplianceNote.CisBenchmark = (function() { /** @@ -12388,12 +13242,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.profileLevel = reader.int32(); - break; - case 2: - message.severity = reader.int32(); - break; + case 1: { + message.profileLevel = reader.int32(); + break; + } + case 2: { + message.severity = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -12525,6 +13381,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CisBenchmark + * @function getTypeUrl + * @memberof grafeas.v1.ComplianceNote.CisBenchmark + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CisBenchmark.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.ComplianceNote.CisBenchmark"; + }; + return CisBenchmark; })(); @@ -12645,15 +13516,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.cpeUri = reader.string(); - break; - case 3: - message.benchmarkDocument = reader.string(); - break; - case 2: - message.version = reader.string(); - break; + case 1: { + message.cpeUri = reader.string(); + break; + } + case 3: { + message.benchmarkDocument = reader.string(); + break; + } + case 2: { + message.version = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -12760,6 +13634,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ComplianceVersion + * @function getTypeUrl + * @memberof grafeas.v1.ComplianceVersion + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ComplianceVersion.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.ComplianceVersion"; + }; + return ComplianceVersion; })(); @@ -12868,14 +13757,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: - if (!(message.nonCompliantFiles && message.nonCompliantFiles.length)) - message.nonCompliantFiles = []; - message.nonCompliantFiles.push($root.grafeas.v1.NonCompliantFile.decode(reader, reader.uint32())); - break; - case 3: - message.nonComplianceReason = reader.string(); - break; + case 2: { + if (!(message.nonCompliantFiles && message.nonCompliantFiles.length)) + message.nonCompliantFiles = []; + message.nonCompliantFiles.push($root.grafeas.v1.NonCompliantFile.decode(reader, reader.uint32())); + break; + } + case 3: { + message.nonComplianceReason = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -12991,6 +13882,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ComplianceOccurrence + * @function getTypeUrl + * @memberof grafeas.v1.ComplianceOccurrence + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ComplianceOccurrence.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.ComplianceOccurrence"; + }; + return ComplianceOccurrence; })(); @@ -13108,15 +14014,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.path = reader.string(); - break; - case 2: - message.displayCommand = reader.string(); - break; - case 3: - message.reason = reader.string(); - break; + case 1: { + message.path = reader.string(); + break; + } + case 2: { + message.displayCommand = reader.string(); + break; + } + case 3: { + message.reason = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -13223,6 +14132,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for NonCompliantFile + * @function getTypeUrl + * @memberof grafeas.v1.NonCompliantFile + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NonCompliantFile.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.NonCompliantFile"; + }; + return NonCompliantFile; })(); @@ -13450,39 +14374,50 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.baseScore = reader.float(); - break; - case 2: - message.exploitabilityScore = reader.float(); - break; - case 3: - message.impactScore = reader.float(); - break; - case 5: - message.attackVector = reader.int32(); - break; - case 6: - message.attackComplexity = reader.int32(); - break; - case 7: - message.privilegesRequired = reader.int32(); - break; - case 8: - message.userInteraction = reader.int32(); - break; - case 9: - message.scope = reader.int32(); - break; - case 10: - message.confidentialityImpact = reader.int32(); - break; - case 11: - message.integrityImpact = reader.int32(); - break; - case 12: - message.availabilityImpact = reader.int32(); - break; + case 1: { + message.baseScore = reader.float(); + break; + } + case 2: { + message.exploitabilityScore = reader.float(); + break; + } + case 3: { + message.impactScore = reader.float(); + break; + } + case 5: { + message.attackVector = reader.int32(); + break; + } + case 6: { + message.attackComplexity = reader.int32(); + break; + } + case 7: { + message.privilegesRequired = reader.int32(); + break; + } + case 8: { + message.userInteraction = reader.int32(); + break; + } + case 9: { + message.scope = reader.int32(); + break; + } + case 10: { + message.confidentialityImpact = reader.int32(); + break; + } + case 11: { + message.integrityImpact = reader.int32(); + break; + } + case 12: { + message.availabilityImpact = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -13827,6 +14762,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CVSSv3 + * @function getTypeUrl + * @memberof grafeas.v1.CVSSv3 + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CVSSv3.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.CVSSv3"; + }; + /** * AttackVector enum. * @name grafeas.v1.CVSSv3.AttackVector @@ -14147,42 +15097,54 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.baseScore = reader.float(); - break; - case 2: - message.exploitabilityScore = reader.float(); - break; - case 3: - message.impactScore = reader.float(); - break; - case 4: - message.attackVector = reader.int32(); - break; - case 5: - message.attackComplexity = reader.int32(); - break; - case 6: - message.authentication = reader.int32(); - break; - case 7: - message.privilegesRequired = reader.int32(); - break; - case 8: - message.userInteraction = reader.int32(); - break; - case 9: - message.scope = reader.int32(); - break; - case 10: - message.confidentialityImpact = reader.int32(); - break; - case 11: - message.integrityImpact = reader.int32(); - break; - case 12: - message.availabilityImpact = reader.int32(); - break; + case 1: { + message.baseScore = reader.float(); + break; + } + case 2: { + message.exploitabilityScore = reader.float(); + break; + } + case 3: { + message.impactScore = reader.float(); + break; + } + case 4: { + message.attackVector = reader.int32(); + break; + } + case 5: { + message.attackComplexity = reader.int32(); + break; + } + case 6: { + message.authentication = reader.int32(); + break; + } + case 7: { + message.privilegesRequired = reader.int32(); + break; + } + case 8: { + message.userInteraction = reader.int32(); + break; + } + case 9: { + message.scope = reader.int32(); + break; + } + case 10: { + message.confidentialityImpact = reader.int32(); + break; + } + case 11: { + message.integrityImpact = reader.int32(); + break; + } + case 12: { + message.availabilityImpact = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -14558,6 +15520,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CVSS + * @function getTypeUrl + * @memberof grafeas.v1.CVSS + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CVSS.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.CVSS"; + }; + /** * AttackVector enum. * @name grafeas.v1.CVSS.AttackVector @@ -14777,11 +15754,12 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.resourceUri && message.resourceUri.length)) - message.resourceUri = []; - message.resourceUri.push(reader.string()); - break; + case 1: { + if (!(message.resourceUri && message.resourceUri.length)) + message.resourceUri = []; + message.resourceUri.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -14883,6 +15861,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DeploymentNote + * @function getTypeUrl + * @memberof grafeas.v1.DeploymentNote + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeploymentNote.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.DeploymentNote"; + }; + return DeploymentNote; })(); @@ -15046,29 +16039,36 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.userEmail = reader.string(); - break; - case 2: - message.deployTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 3: - message.undeployTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.config = reader.string(); - break; - case 5: - message.address = reader.string(); - break; - case 6: - if (!(message.resourceUri && message.resourceUri.length)) - message.resourceUri = []; - message.resourceUri.push(reader.string()); - break; - case 7: - message.platform = reader.int32(); - break; + case 1: { + message.userEmail = reader.string(); + break; + } + case 2: { + message.deployTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.undeployTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 4: { + message.config = reader.string(); + break; + } + case 5: { + message.address = reader.string(); + break; + } + case 6: { + if (!(message.resourceUri && message.resourceUri.length)) + message.resourceUri = []; + message.resourceUri.push(reader.string()); + break; + } + case 7: { + message.platform = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -15253,6 +16253,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DeploymentOccurrence + * @function getTypeUrl + * @memberof grafeas.v1.DeploymentOccurrence + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeploymentOccurrence.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.DeploymentOccurrence"; + }; + /** * Platform enum. * @name grafeas.v1.DeploymentOccurrence.Platform @@ -15366,9 +16381,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.analysisKind = reader.int32(); - break; + case 1: { + message.analysisKind = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -15516,6 +16532,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DiscoveryNote + * @function getTypeUrl + * @memberof grafeas.v1.DiscoveryNote + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DiscoveryNote.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.DiscoveryNote"; + }; + return DiscoveryNote; })(); @@ -15666,24 +16697,30 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.continuousAnalysis = reader.int32(); - break; - case 2: - message.analysisStatus = reader.int32(); - break; - case 3: - message.analysisStatusError = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - case 4: - message.cpe = reader.string(); - break; - case 5: - message.lastScanTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 6: - message.archiveTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; + case 1: { + message.continuousAnalysis = reader.int32(); + break; + } + case 2: { + message.analysisStatus = reader.int32(); + break; + } + case 3: { + message.analysisStatusError = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + case 4: { + message.cpe = reader.string(); + break; + } + case 5: { + message.lastScanTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.archiveTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -15880,6 +16917,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DiscoveryOccurrence + * @function getTypeUrl + * @memberof grafeas.v1.DiscoveryOccurrence + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DiscoveryOccurrence.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.DiscoveryOccurrence"; + }; + /** * ContinuousAnalysis enum. * @name grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis @@ -16013,9 +17065,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.hint = $root.grafeas.v1.DSSEAttestationNote.DSSEHint.decode(reader, reader.uint32()); - break; + case 1: { + message.hint = $root.grafeas.v1.DSSEAttestationNote.DSSEHint.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -16110,6 +17163,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DSSEAttestationNote + * @function getTypeUrl + * @memberof grafeas.v1.DSSEAttestationNote + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DSSEAttestationNote.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.DSSEAttestationNote"; + }; + DSSEAttestationNote.DSSEHint = (function() { /** @@ -16202,9 +17270,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.humanReadableName = reader.string(); - break; + case 1: { + message.humanReadableName = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -16294,6 +17363,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DSSEHint + * @function getTypeUrl + * @memberof grafeas.v1.DSSEAttestationNote.DSSEHint + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DSSEHint.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.DSSEAttestationNote.DSSEHint"; + }; + return DSSEHint; })(); @@ -16417,12 +17501,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.envelope = $root.grafeas.v1.Envelope.decode(reader, reader.uint32()); - break; - case 2: - message.statement = $root.grafeas.v1.InTotoStatement.decode(reader, reader.uint32()); - break; + case 1: { + message.envelope = $root.grafeas.v1.Envelope.decode(reader, reader.uint32()); + break; + } + case 2: { + message.statement = $root.grafeas.v1.InTotoStatement.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -16536,6 +17622,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DSSEAttestationOccurrence + * @function getTypeUrl + * @memberof grafeas.v1.DSSEAttestationOccurrence + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DSSEAttestationOccurrence.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.DSSEAttestationOccurrence"; + }; + return DSSEAttestationOccurrence; })(); @@ -16572,7 +17673,7 @@ }; /** - * Callback as used by {@link grafeas.v1.Grafeas#getOccurrence}. + * Callback as used by {@link grafeas.v1.Grafeas|getOccurrence}. * @memberof grafeas.v1.Grafeas * @typedef GetOccurrenceCallback * @type {function} @@ -16605,7 +17706,7 @@ */ /** - * Callback as used by {@link grafeas.v1.Grafeas#listOccurrences}. + * Callback as used by {@link grafeas.v1.Grafeas|listOccurrences}. * @memberof grafeas.v1.Grafeas * @typedef ListOccurrencesCallback * @type {function} @@ -16638,7 +17739,7 @@ */ /** - * Callback as used by {@link grafeas.v1.Grafeas#deleteOccurrence}. + * Callback as used by {@link grafeas.v1.Grafeas|deleteOccurrence}. * @memberof grafeas.v1.Grafeas * @typedef DeleteOccurrenceCallback * @type {function} @@ -16671,7 +17772,7 @@ */ /** - * Callback as used by {@link grafeas.v1.Grafeas#createOccurrence}. + * Callback as used by {@link grafeas.v1.Grafeas|createOccurrence}. * @memberof grafeas.v1.Grafeas * @typedef CreateOccurrenceCallback * @type {function} @@ -16704,7 +17805,7 @@ */ /** - * Callback as used by {@link grafeas.v1.Grafeas#batchCreateOccurrences}. + * Callback as used by {@link grafeas.v1.Grafeas|batchCreateOccurrences}. * @memberof grafeas.v1.Grafeas * @typedef BatchCreateOccurrencesCallback * @type {function} @@ -16737,7 +17838,7 @@ */ /** - * Callback as used by {@link grafeas.v1.Grafeas#updateOccurrence}. + * Callback as used by {@link grafeas.v1.Grafeas|updateOccurrence}. * @memberof grafeas.v1.Grafeas * @typedef UpdateOccurrenceCallback * @type {function} @@ -16770,7 +17871,7 @@ */ /** - * Callback as used by {@link grafeas.v1.Grafeas#getOccurrenceNote}. + * Callback as used by {@link grafeas.v1.Grafeas|getOccurrenceNote}. * @memberof grafeas.v1.Grafeas * @typedef GetOccurrenceNoteCallback * @type {function} @@ -16803,7 +17904,7 @@ */ /** - * Callback as used by {@link grafeas.v1.Grafeas#getNote}. + * Callback as used by {@link grafeas.v1.Grafeas|getNote}. * @memberof grafeas.v1.Grafeas * @typedef GetNoteCallback * @type {function} @@ -16836,7 +17937,7 @@ */ /** - * Callback as used by {@link grafeas.v1.Grafeas#listNotes}. + * Callback as used by {@link grafeas.v1.Grafeas|listNotes}. * @memberof grafeas.v1.Grafeas * @typedef ListNotesCallback * @type {function} @@ -16869,7 +17970,7 @@ */ /** - * Callback as used by {@link grafeas.v1.Grafeas#deleteNote}. + * Callback as used by {@link grafeas.v1.Grafeas|deleteNote}. * @memberof grafeas.v1.Grafeas * @typedef DeleteNoteCallback * @type {function} @@ -16902,7 +18003,7 @@ */ /** - * Callback as used by {@link grafeas.v1.Grafeas#createNote}. + * Callback as used by {@link grafeas.v1.Grafeas|createNote}. * @memberof grafeas.v1.Grafeas * @typedef CreateNoteCallback * @type {function} @@ -16935,7 +18036,7 @@ */ /** - * Callback as used by {@link grafeas.v1.Grafeas#batchCreateNotes}. + * Callback as used by {@link grafeas.v1.Grafeas|batchCreateNotes}. * @memberof grafeas.v1.Grafeas * @typedef BatchCreateNotesCallback * @type {function} @@ -16968,7 +18069,7 @@ */ /** - * Callback as used by {@link grafeas.v1.Grafeas#updateNote}. + * Callback as used by {@link grafeas.v1.Grafeas|updateNote}. * @memberof grafeas.v1.Grafeas * @typedef UpdateNoteCallback * @type {function} @@ -17001,7 +18102,7 @@ */ /** - * Callback as used by {@link grafeas.v1.Grafeas#listNoteOccurrences}. + * Callback as used by {@link grafeas.v1.Grafeas|listNoteOccurrences}. * @memberof grafeas.v1.Grafeas * @typedef ListNoteOccurrencesCallback * @type {function} @@ -17329,60 +18430,78 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.resourceUri = reader.string(); - break; - case 3: - message.noteName = reader.string(); - break; - case 4: - message.kind = reader.int32(); - break; - case 5: - message.remediation = reader.string(); - break; - case 6: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 7: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 8: - message.vulnerability = $root.grafeas.v1.VulnerabilityOccurrence.decode(reader, reader.uint32()); - break; - case 9: - message.build = $root.grafeas.v1.BuildOccurrence.decode(reader, reader.uint32()); - break; - case 10: - message.image = $root.grafeas.v1.ImageOccurrence.decode(reader, reader.uint32()); - break; - case 11: - message["package"] = $root.grafeas.v1.PackageOccurrence.decode(reader, reader.uint32()); - break; - case 12: - message.deployment = $root.grafeas.v1.DeploymentOccurrence.decode(reader, reader.uint32()); - break; - case 13: - message.discovery = $root.grafeas.v1.DiscoveryOccurrence.decode(reader, reader.uint32()); - break; - case 14: - message.attestation = $root.grafeas.v1.AttestationOccurrence.decode(reader, reader.uint32()); - break; - case 15: - message.upgrade = $root.grafeas.v1.UpgradeOccurrence.decode(reader, reader.uint32()); - break; - case 16: - message.compliance = $root.grafeas.v1.ComplianceOccurrence.decode(reader, reader.uint32()); - break; - case 17: - message.dsseAttestation = $root.grafeas.v1.DSSEAttestationOccurrence.decode(reader, reader.uint32()); - break; - case 18: - message.envelope = $root.grafeas.v1.Envelope.decode(reader, reader.uint32()); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.resourceUri = reader.string(); + break; + } + case 3: { + message.noteName = reader.string(); + break; + } + case 4: { + message.kind = reader.int32(); + break; + } + case 5: { + message.remediation = reader.string(); + break; + } + case 6: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 7: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 8: { + message.vulnerability = $root.grafeas.v1.VulnerabilityOccurrence.decode(reader, reader.uint32()); + break; + } + case 9: { + message.build = $root.grafeas.v1.BuildOccurrence.decode(reader, reader.uint32()); + break; + } + case 10: { + message.image = $root.grafeas.v1.ImageOccurrence.decode(reader, reader.uint32()); + break; + } + case 11: { + message["package"] = $root.grafeas.v1.PackageOccurrence.decode(reader, reader.uint32()); + break; + } + case 12: { + message.deployment = $root.grafeas.v1.DeploymentOccurrence.decode(reader, reader.uint32()); + break; + } + case 13: { + message.discovery = $root.grafeas.v1.DiscoveryOccurrence.decode(reader, reader.uint32()); + break; + } + case 14: { + message.attestation = $root.grafeas.v1.AttestationOccurrence.decode(reader, reader.uint32()); + break; + } + case 15: { + message.upgrade = $root.grafeas.v1.UpgradeOccurrence.decode(reader, reader.uint32()); + break; + } + case 16: { + message.compliance = $root.grafeas.v1.ComplianceOccurrence.decode(reader, reader.uint32()); + break; + } + case 17: { + message.dsseAttestation = $root.grafeas.v1.DSSEAttestationOccurrence.decode(reader, reader.uint32()); + break; + } + case 18: { + message.envelope = $root.grafeas.v1.Envelope.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -17801,6 +18920,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Occurrence + * @function getTypeUrl + * @memberof grafeas.v1.Occurrence + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Occurrence.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.Occurrence"; + }; + return Occurrence; })(); @@ -18112,67 +19246,86 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.shortDescription = reader.string(); - break; - case 3: - message.longDescription = reader.string(); - break; - case 4: - message.kind = reader.int32(); - break; - case 5: - if (!(message.relatedUrl && message.relatedUrl.length)) - message.relatedUrl = []; - message.relatedUrl.push($root.grafeas.v1.RelatedUrl.decode(reader, reader.uint32())); - break; - case 6: - message.expirationTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 7: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 8: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 9: - if (!(message.relatedNoteNames && message.relatedNoteNames.length)) - message.relatedNoteNames = []; - message.relatedNoteNames.push(reader.string()); - break; - case 10: - message.vulnerability = $root.grafeas.v1.VulnerabilityNote.decode(reader, reader.uint32()); - break; - case 11: - message.build = $root.grafeas.v1.BuildNote.decode(reader, reader.uint32()); - break; - case 12: - message.image = $root.grafeas.v1.ImageNote.decode(reader, reader.uint32()); - break; - case 13: - message["package"] = $root.grafeas.v1.PackageNote.decode(reader, reader.uint32()); - break; - case 14: - message.deployment = $root.grafeas.v1.DeploymentNote.decode(reader, reader.uint32()); - break; - case 15: - message.discovery = $root.grafeas.v1.DiscoveryNote.decode(reader, reader.uint32()); - break; - case 16: - message.attestation = $root.grafeas.v1.AttestationNote.decode(reader, reader.uint32()); - break; - case 17: - message.upgrade = $root.grafeas.v1.UpgradeNote.decode(reader, reader.uint32()); - break; - case 18: - message.compliance = $root.grafeas.v1.ComplianceNote.decode(reader, reader.uint32()); - break; - case 19: - message.dsseAttestation = $root.grafeas.v1.DSSEAttestationNote.decode(reader, reader.uint32()); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.shortDescription = reader.string(); + break; + } + case 3: { + message.longDescription = reader.string(); + break; + } + case 4: { + message.kind = reader.int32(); + break; + } + case 5: { + if (!(message.relatedUrl && message.relatedUrl.length)) + message.relatedUrl = []; + message.relatedUrl.push($root.grafeas.v1.RelatedUrl.decode(reader, reader.uint32())); + break; + } + case 6: { + message.expirationTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 7: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 8: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 9: { + if (!(message.relatedNoteNames && message.relatedNoteNames.length)) + message.relatedNoteNames = []; + message.relatedNoteNames.push(reader.string()); + break; + } + case 10: { + message.vulnerability = $root.grafeas.v1.VulnerabilityNote.decode(reader, reader.uint32()); + break; + } + case 11: { + message.build = $root.grafeas.v1.BuildNote.decode(reader, reader.uint32()); + break; + } + case 12: { + message.image = $root.grafeas.v1.ImageNote.decode(reader, reader.uint32()); + break; + } + case 13: { + message["package"] = $root.grafeas.v1.PackageNote.decode(reader, reader.uint32()); + break; + } + case 14: { + message.deployment = $root.grafeas.v1.DeploymentNote.decode(reader, reader.uint32()); + break; + } + case 15: { + message.discovery = $root.grafeas.v1.DiscoveryNote.decode(reader, reader.uint32()); + break; + } + case 16: { + message.attestation = $root.grafeas.v1.AttestationNote.decode(reader, reader.uint32()); + break; + } + case 17: { + message.upgrade = $root.grafeas.v1.UpgradeNote.decode(reader, reader.uint32()); + break; + } + case 18: { + message.compliance = $root.grafeas.v1.ComplianceNote.decode(reader, reader.uint32()); + break; + } + case 19: { + message.dsseAttestation = $root.grafeas.v1.DSSEAttestationNote.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -18630,6 +19783,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Note + * @function getTypeUrl + * @memberof grafeas.v1.Note + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Note.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.Note"; + }; + return Note; })(); @@ -18725,9 +19893,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -18817,6 +19986,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetOccurrenceRequest + * @function getTypeUrl + * @memberof grafeas.v1.GetOccurrenceRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetOccurrenceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.GetOccurrenceRequest"; + }; + return GetOccurrenceRequest; })(); @@ -18945,18 +20129,22 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.filter = reader.string(); - break; - case 3: - message.pageSize = reader.int32(); - break; - case 4: - message.pageToken = reader.string(); - break; + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -19071,6 +20259,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListOccurrencesRequest + * @function getTypeUrl + * @memberof grafeas.v1.ListOccurrencesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListOccurrencesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.ListOccurrencesRequest"; + }; + return ListOccurrencesRequest; })(); @@ -19179,14 +20382,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.occurrences && message.occurrences.length)) - message.occurrences = []; - message.occurrences.push($root.grafeas.v1.Occurrence.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; + case 1: { + if (!(message.occurrences && message.occurrences.length)) + message.occurrences = []; + message.occurrences.push($root.grafeas.v1.Occurrence.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -19302,6 +20507,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListOccurrencesResponse + * @function getTypeUrl + * @memberof grafeas.v1.ListOccurrencesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListOccurrencesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.ListOccurrencesResponse"; + }; + return ListOccurrencesResponse; })(); @@ -19397,9 +20617,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -19489,6 +20710,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DeleteOccurrenceRequest + * @function getTypeUrl + * @memberof grafeas.v1.DeleteOccurrenceRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteOccurrenceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.DeleteOccurrenceRequest"; + }; + return DeleteOccurrenceRequest; })(); @@ -19595,12 +20831,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.occurrence = $root.grafeas.v1.Occurrence.decode(reader, reader.uint32()); - break; + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.occurrence = $root.grafeas.v1.Occurrence.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -19704,6 +20942,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CreateOccurrenceRequest + * @function getTypeUrl + * @memberof grafeas.v1.CreateOccurrenceRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateOccurrenceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.CreateOccurrenceRequest"; + }; + return CreateOccurrenceRequest; })(); @@ -19821,15 +21074,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.occurrence = $root.grafeas.v1.Occurrence.decode(reader, reader.uint32()); - break; - case 3: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.occurrence = $root.grafeas.v1.Occurrence.decode(reader, reader.uint32()); + break; + } + case 3: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -19946,6 +21202,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpdateOccurrenceRequest + * @function getTypeUrl + * @memberof grafeas.v1.UpdateOccurrenceRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateOccurrenceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.UpdateOccurrenceRequest"; + }; + return UpdateOccurrenceRequest; })(); @@ -20041,9 +21312,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -20133,6 +21405,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetNoteRequest + * @function getTypeUrl + * @memberof grafeas.v1.GetNoteRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetNoteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.GetNoteRequest"; + }; + return GetNoteRequest; })(); @@ -20228,9 +21515,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -20320,6 +21608,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetOccurrenceNoteRequest + * @function getTypeUrl + * @memberof grafeas.v1.GetOccurrenceNoteRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetOccurrenceNoteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.GetOccurrenceNoteRequest"; + }; + return GetOccurrenceNoteRequest; })(); @@ -20448,18 +21751,22 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.filter = reader.string(); - break; - case 3: - message.pageSize = reader.int32(); - break; - case 4: - message.pageToken = reader.string(); - break; + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -20574,6 +21881,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListNotesRequest + * @function getTypeUrl + * @memberof grafeas.v1.ListNotesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListNotesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.ListNotesRequest"; + }; + return ListNotesRequest; })(); @@ -20682,14 +22004,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.notes && message.notes.length)) - message.notes = []; - message.notes.push($root.grafeas.v1.Note.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; + case 1: { + if (!(message.notes && message.notes.length)) + message.notes = []; + message.notes.push($root.grafeas.v1.Note.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -20805,6 +22129,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListNotesResponse + * @function getTypeUrl + * @memberof grafeas.v1.ListNotesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListNotesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.ListNotesResponse"; + }; + return ListNotesResponse; })(); @@ -20900,9 +22239,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -20992,6 +22332,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DeleteNoteRequest + * @function getTypeUrl + * @memberof grafeas.v1.DeleteNoteRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteNoteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.DeleteNoteRequest"; + }; + return DeleteNoteRequest; })(); @@ -21109,15 +22464,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.noteId = reader.string(); - break; - case 3: - message.note = $root.grafeas.v1.Note.decode(reader, reader.uint32()); - break; + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.noteId = reader.string(); + break; + } + case 3: { + message.note = $root.grafeas.v1.Note.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -21229,6 +22587,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CreateNoteRequest + * @function getTypeUrl + * @memberof grafeas.v1.CreateNoteRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateNoteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.CreateNoteRequest"; + }; + return CreateNoteRequest; })(); @@ -21346,15 +22719,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.note = $root.grafeas.v1.Note.decode(reader, reader.uint32()); - break; - case 3: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.note = $root.grafeas.v1.Note.decode(reader, reader.uint32()); + break; + } + case 3: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -21471,6 +22847,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpdateNoteRequest + * @function getTypeUrl + * @memberof grafeas.v1.UpdateNoteRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateNoteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.UpdateNoteRequest"; + }; + return UpdateNoteRequest; })(); @@ -21599,18 +22990,22 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.filter = reader.string(); - break; - case 3: - message.pageSize = reader.int32(); - break; - case 4: - message.pageToken = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -21725,6 +23120,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListNoteOccurrencesRequest + * @function getTypeUrl + * @memberof grafeas.v1.ListNoteOccurrencesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListNoteOccurrencesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.ListNoteOccurrencesRequest"; + }; + return ListNoteOccurrencesRequest; })(); @@ -21833,14 +23243,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.occurrences && message.occurrences.length)) - message.occurrences = []; - message.occurrences.push($root.grafeas.v1.Occurrence.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; + case 1: { + if (!(message.occurrences && message.occurrences.length)) + message.occurrences = []; + message.occurrences.push($root.grafeas.v1.Occurrence.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -21956,6 +23368,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListNoteOccurrencesResponse + * @function getTypeUrl + * @memberof grafeas.v1.ListNoteOccurrencesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListNoteOccurrencesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.ListNoteOccurrencesResponse"; + }; + return ListNoteOccurrencesResponse; })(); @@ -22066,31 +23493,33 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - if (message.notes === $util.emptyObject) - message.notes = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.grafeas.v1.Note.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + if (message.notes === $util.emptyObject) + message.notes = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.grafeas.v1.Note.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } } + message.notes[key] = value; + break; } - message.notes[key] = value; - break; default: reader.skipType(tag & 7); break; @@ -22208,6 +23637,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for BatchCreateNotesRequest + * @function getTypeUrl + * @memberof grafeas.v1.BatchCreateNotesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BatchCreateNotesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.BatchCreateNotesRequest"; + }; + return BatchCreateNotesRequest; })(); @@ -22305,11 +23749,12 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.notes && message.notes.length)) - message.notes = []; - message.notes.push($root.grafeas.v1.Note.decode(reader, reader.uint32())); - break; + case 1: { + if (!(message.notes && message.notes.length)) + message.notes = []; + message.notes.push($root.grafeas.v1.Note.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -22416,6 +23861,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for BatchCreateNotesResponse + * @function getTypeUrl + * @memberof grafeas.v1.BatchCreateNotesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BatchCreateNotesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.BatchCreateNotesResponse"; + }; + return BatchCreateNotesResponse; })(); @@ -22524,14 +23984,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - if (!(message.occurrences && message.occurrences.length)) - message.occurrences = []; - message.occurrences.push($root.grafeas.v1.Occurrence.decode(reader, reader.uint32())); - break; + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + if (!(message.occurrences && message.occurrences.length)) + message.occurrences = []; + message.occurrences.push($root.grafeas.v1.Occurrence.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -22647,6 +24109,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for BatchCreateOccurrencesRequest + * @function getTypeUrl + * @memberof grafeas.v1.BatchCreateOccurrencesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BatchCreateOccurrencesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.BatchCreateOccurrencesRequest"; + }; + return BatchCreateOccurrencesRequest; })(); @@ -22744,11 +24221,12 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.occurrences && message.occurrences.length)) - message.occurrences = []; - message.occurrences.push($root.grafeas.v1.Occurrence.decode(reader, reader.uint32())); - break; + case 1: { + if (!(message.occurrences && message.occurrences.length)) + message.occurrences = []; + message.occurrences.push($root.grafeas.v1.Occurrence.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -22855,6 +24333,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for BatchCreateOccurrencesResponse + * @function getTypeUrl + * @memberof grafeas.v1.BatchCreateOccurrencesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BatchCreateOccurrencesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.BatchCreateOccurrencesResponse"; + }; + return BatchCreateOccurrencesResponse; })(); @@ -22961,12 +24454,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.directive = reader.string(); - break; - case 2: - message["arguments"] = reader.string(); - break; + case 1: { + message.directive = reader.string(); + break; + } + case 2: { + message["arguments"] = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -23065,6 +24560,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Layer + * @function getTypeUrl + * @memberof grafeas.v1.Layer + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Layer.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.Layer"; + }; + return Layer; })(); @@ -23184,17 +24694,20 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.v1Name = reader.string(); - break; - case 2: - if (!(message.v2Blob && message.v2Blob.length)) - message.v2Blob = []; - message.v2Blob.push(reader.string()); - break; - case 3: - message.v2Name = reader.string(); - break; + case 1: { + message.v1Name = reader.string(); + break; + } + case 2: { + if (!(message.v2Blob && message.v2Blob.length)) + message.v2Blob = []; + message.v2Blob.push(reader.string()); + break; + } + case 3: { + message.v2Name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -23314,6 +24827,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Fingerprint + * @function getTypeUrl + * @memberof grafeas.v1.Fingerprint + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Fingerprint.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.Fingerprint"; + }; + return Fingerprint; })(); @@ -23420,12 +24948,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.resourceUrl = reader.string(); - break; - case 2: - message.fingerprint = $root.grafeas.v1.Fingerprint.decode(reader, reader.uint32()); - break; + case 1: { + message.resourceUrl = reader.string(); + break; + } + case 2: { + message.fingerprint = $root.grafeas.v1.Fingerprint.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -23529,6 +25059,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ImageNote + * @function getTypeUrl + * @memberof grafeas.v1.ImageNote + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ImageNote.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.ImageNote"; + }; + return ImageNote; })(); @@ -23659,20 +25204,24 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.fingerprint = $root.grafeas.v1.Fingerprint.decode(reader, reader.uint32()); - break; - case 2: - message.distance = reader.int32(); - break; - case 3: - if (!(message.layerInfo && message.layerInfo.length)) - message.layerInfo = []; - message.layerInfo.push($root.grafeas.v1.Layer.decode(reader, reader.uint32())); - break; - case 4: - message.baseResourceUrl = reader.string(); - break; + case 1: { + message.fingerprint = $root.grafeas.v1.Fingerprint.decode(reader, reader.uint32()); + break; + } + case 2: { + message.distance = reader.int32(); + break; + } + case 3: { + if (!(message.layerInfo && message.layerInfo.length)) + message.layerInfo = []; + message.layerInfo.push($root.grafeas.v1.Layer.decode(reader, reader.uint32())); + break; + } + case 4: { + message.baseResourceUrl = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -23810,6 +25359,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ImageOccurrence + * @function getTypeUrl + * @memberof grafeas.v1.ImageOccurrence + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ImageOccurrence.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.ImageOccurrence"; + }; + return ImageOccurrence; })(); @@ -23976,24 +25540,30 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.cpeUri = reader.string(); - break; - case 2: - message.architecture = reader.int32(); - break; - case 3: - message.latestVersion = $root.grafeas.v1.Version.decode(reader, reader.uint32()); - break; - case 4: - message.maintainer = reader.string(); - break; - case 5: - message.url = reader.string(); - break; - case 6: - message.description = reader.string(); - break; + case 1: { + message.cpeUri = reader.string(); + break; + } + case 2: { + message.architecture = reader.int32(); + break; + } + case 3: { + message.latestVersion = $root.grafeas.v1.Version.decode(reader, reader.uint32()); + break; + } + case 4: { + message.maintainer = reader.string(); + break; + } + case 5: { + message.url = reader.string(); + break; + } + case 6: { + message.description = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -24147,6 +25717,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Distribution + * @function getTypeUrl + * @memberof grafeas.v1.Distribution + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Distribution.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.Distribution"; + }; + return Distribution; })(); @@ -24264,15 +25849,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.cpeUri = reader.string(); - break; - case 2: - message.version = $root.grafeas.v1.Version.decode(reader, reader.uint32()); - break; - case 3: - message.path = reader.string(); - break; + case 1: { + message.cpeUri = reader.string(); + break; + } + case 2: { + message.version = $root.grafeas.v1.Version.decode(reader, reader.uint32()); + break; + } + case 3: { + message.path = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -24384,6 +25972,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Location + * @function getTypeUrl + * @memberof grafeas.v1.Location + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Location.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.Location"; + }; + return Location; })(); @@ -24593,43 +26196,54 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 10: - if (!(message.distribution && message.distribution.length)) - message.distribution = []; - message.distribution.push($root.grafeas.v1.Distribution.decode(reader, reader.uint32())); - break; - case 11: - message.packageType = reader.string(); - break; - case 12: - message.cpeUri = reader.string(); - break; - case 13: - message.architecture = reader.int32(); - break; - case 14: - message.version = $root.grafeas.v1.Version.decode(reader, reader.uint32()); - break; - case 15: - message.maintainer = reader.string(); - break; - case 16: - message.url = reader.string(); - break; - case 17: - message.description = reader.string(); - break; - case 18: - message.license = $root.grafeas.v1.License.decode(reader, reader.uint32()); - break; - case 19: - if (!(message.digest && message.digest.length)) - message.digest = []; - message.digest.push($root.grafeas.v1.Digest.decode(reader, reader.uint32())); - break; + case 1: { + message.name = reader.string(); + break; + } + case 10: { + if (!(message.distribution && message.distribution.length)) + message.distribution = []; + message.distribution.push($root.grafeas.v1.Distribution.decode(reader, reader.uint32())); + break; + } + case 11: { + message.packageType = reader.string(); + break; + } + case 12: { + message.cpeUri = reader.string(); + break; + } + case 13: { + message.architecture = reader.int32(); + break; + } + case 14: { + message.version = $root.grafeas.v1.Version.decode(reader, reader.uint32()); + break; + } + case 15: { + message.maintainer = reader.string(); + break; + } + case 16: { + message.url = reader.string(); + break; + } + case 17: { + message.description = reader.string(); + break; + } + case 18: { + message.license = $root.grafeas.v1.License.decode(reader, reader.uint32()); + break; + } + case 19: { + if (!(message.digest && message.digest.length)) + message.digest = []; + message.digest.push($root.grafeas.v1.Digest.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -24864,6 +26478,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for PackageNote + * @function getTypeUrl + * @memberof grafeas.v1.PackageNote + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PackageNote.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.PackageNote"; + }; + return PackageNote; })(); @@ -25027,29 +26656,36 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - if (!(message.location && message.location.length)) - message.location = []; - message.location.push($root.grafeas.v1.Location.decode(reader, reader.uint32())); - break; - case 3: - message.packageType = reader.string(); - break; - case 4: - message.cpeUri = reader.string(); - break; - case 5: - message.architecture = reader.int32(); - break; - case 6: - message.license = $root.grafeas.v1.License.decode(reader, reader.uint32()); - break; - case 7: - message.version = $root.grafeas.v1.Version.decode(reader, reader.uint32()); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.location && message.location.length)) + message.location = []; + message.location.push($root.grafeas.v1.Location.decode(reader, reader.uint32())); + break; + } + case 3: { + message.packageType = reader.string(); + break; + } + case 4: { + message.cpeUri = reader.string(); + break; + } + case 5: { + message.architecture = reader.int32(); + break; + } + case 6: { + message.license = $root.grafeas.v1.License.decode(reader, reader.uint32()); + break; + } + case 7: { + message.version = $root.grafeas.v1.Version.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -25234,6 +26870,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for PackageOccurrence + * @function getTypeUrl + * @memberof grafeas.v1.PackageOccurrence + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PackageOccurrence.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.PackageOccurrence"; + }; + return PackageOccurrence; })(); @@ -25384,24 +27035,30 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.epoch = reader.int32(); - break; - case 2: - message.name = reader.string(); - break; - case 3: - message.revision = reader.string(); - break; - case 6: - message.inclusive = reader.bool(); - break; - case 4: - message.kind = reader.int32(); - break; - case 5: - message.fullName = reader.string(); - break; + case 1: { + message.epoch = reader.int32(); + break; + } + case 2: { + message.name = reader.string(); + break; + } + case 3: { + message.revision = reader.string(); + break; + } + case 6: { + message.inclusive = reader.bool(); + break; + } + case 4: { + message.kind = reader.int32(); + break; + } + case 5: { + message.fullName = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -25555,6 +27212,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Version + * @function getTypeUrl + * @memberof grafeas.v1.Version + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Version.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.Version"; + }; + /** * VersionKind enum. * @name grafeas.v1.Version.VersionKind @@ -25703,20 +27375,24 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message["package"] = reader.string(); - break; - case 2: - message.version = $root.grafeas.v1.Version.decode(reader, reader.uint32()); - break; - case 3: - if (!(message.distributions && message.distributions.length)) - message.distributions = []; - message.distributions.push($root.grafeas.v1.UpgradeDistribution.decode(reader, reader.uint32())); - break; - case 4: - message.windowsUpdate = $root.grafeas.v1.WindowsUpdate.decode(reader, reader.uint32()); - break; + case 1: { + message["package"] = reader.string(); + break; + } + case 2: { + message.version = $root.grafeas.v1.Version.decode(reader, reader.uint32()); + break; + } + case 3: { + if (!(message.distributions && message.distributions.length)) + message.distributions = []; + message.distributions.push($root.grafeas.v1.UpgradeDistribution.decode(reader, reader.uint32())); + break; + } + case 4: { + message.windowsUpdate = $root.grafeas.v1.WindowsUpdate.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -25859,6 +27535,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpgradeNote + * @function getTypeUrl + * @memberof grafeas.v1.UpgradeNote + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpgradeNote.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.UpgradeNote"; + }; + return UpgradeNote; })(); @@ -25989,20 +27680,24 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.cpeUri = reader.string(); - break; - case 2: - message.classification = reader.string(); - break; - case 3: - message.severity = reader.string(); - break; - case 4: - if (!(message.cve && message.cve.length)) - message.cve = []; - message.cve.push(reader.string()); - break; + case 1: { + message.cpeUri = reader.string(); + break; + } + case 2: { + message.classification = reader.string(); + break; + } + case 3: { + message.severity = reader.string(); + break; + } + case 4: { + if (!(message.cve && message.cve.length)) + message.cve = []; + message.cve.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -26130,6 +27825,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpgradeDistribution + * @function getTypeUrl + * @memberof grafeas.v1.UpgradeDistribution + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpgradeDistribution.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.UpgradeDistribution"; + }; + return UpgradeDistribution; })(); @@ -26295,31 +28005,38 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.identity = $root.grafeas.v1.WindowsUpdate.Identity.decode(reader, reader.uint32()); - break; - case 2: - message.title = reader.string(); - break; - case 3: - message.description = reader.string(); - break; - case 4: - if (!(message.categories && message.categories.length)) - message.categories = []; - message.categories.push($root.grafeas.v1.WindowsUpdate.Category.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.kbArticleIds && message.kbArticleIds.length)) - message.kbArticleIds = []; - message.kbArticleIds.push(reader.string()); - break; - case 6: - message.supportUrl = reader.string(); - break; - case 7: - message.lastPublishedTimestamp = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; + case 1: { + message.identity = $root.grafeas.v1.WindowsUpdate.Identity.decode(reader, reader.uint32()); + break; + } + case 2: { + message.title = reader.string(); + break; + } + case 3: { + message.description = reader.string(); + break; + } + case 4: { + if (!(message.categories && message.categories.length)) + message.categories = []; + message.categories.push($root.grafeas.v1.WindowsUpdate.Category.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.kbArticleIds && message.kbArticleIds.length)) + message.kbArticleIds = []; + message.kbArticleIds.push(reader.string()); + break; + } + case 6: { + message.supportUrl = reader.string(); + break; + } + case 7: { + message.lastPublishedTimestamp = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -26499,6 +28216,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for WindowsUpdate + * @function getTypeUrl + * @memberof grafeas.v1.WindowsUpdate + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + WindowsUpdate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.WindowsUpdate"; + }; + WindowsUpdate.Identity = (function() { /** @@ -26602,12 +28334,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.updateId = reader.string(); - break; - case 2: - message.revision = reader.int32(); - break; + case 1: { + message.updateId = reader.string(); + break; + } + case 2: { + message.revision = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -26706,6 +28440,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Identity + * @function getTypeUrl + * @memberof grafeas.v1.WindowsUpdate.Identity + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Identity.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.WindowsUpdate.Identity"; + }; + return Identity; })(); @@ -26812,12 +28561,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.categoryId = reader.string(); - break; - case 2: - message.name = reader.string(); - break; + case 1: { + message.categoryId = reader.string(); + break; + } + case 2: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -26916,6 +28667,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Category + * @function getTypeUrl + * @memberof grafeas.v1.WindowsUpdate.Category + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Category.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.WindowsUpdate.Category"; + }; + return Category; })(); @@ -27047,18 +28813,22 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message["package"] = reader.string(); - break; - case 3: - message.parsedVersion = $root.grafeas.v1.Version.decode(reader, reader.uint32()); - break; - case 4: - message.distribution = $root.grafeas.v1.UpgradeDistribution.decode(reader, reader.uint32()); - break; - case 5: - message.windowsUpdate = $root.grafeas.v1.WindowsUpdate.decode(reader, reader.uint32()); - break; + case 1: { + message["package"] = reader.string(); + break; + } + case 3: { + message.parsedVersion = $root.grafeas.v1.Version.decode(reader, reader.uint32()); + break; + } + case 4: { + message.distribution = $root.grafeas.v1.UpgradeDistribution.decode(reader, reader.uint32()); + break; + } + case 5: { + message.windowsUpdate = $root.grafeas.v1.WindowsUpdate.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -27188,6 +28958,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpgradeOccurrence + * @function getTypeUrl + * @memberof grafeas.v1.UpgradeOccurrence + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpgradeOccurrence.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.UpgradeOccurrence"; + }; + return UpgradeOccurrence; })(); @@ -27342,28 +29127,34 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.cvssScore = reader.float(); - break; - case 2: - message.severity = reader.int32(); - break; - case 3: - if (!(message.details && message.details.length)) - message.details = []; - message.details.push($root.grafeas.v1.VulnerabilityNote.Detail.decode(reader, reader.uint32())); - break; - case 4: - message.cvssV3 = $root.grafeas.v1.CVSSv3.decode(reader, reader.uint32()); - break; - case 5: - if (!(message.windowsDetails && message.windowsDetails.length)) - message.windowsDetails = []; - message.windowsDetails.push($root.grafeas.v1.VulnerabilityNote.WindowsDetail.decode(reader, reader.uint32())); - break; - case 6: - message.sourceUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; + case 1: { + message.cvssScore = reader.float(); + break; + } + case 2: { + message.severity = reader.int32(); + break; + } + case 3: { + if (!(message.details && message.details.length)) + message.details = []; + message.details.push($root.grafeas.v1.VulnerabilityNote.Detail.decode(reader, reader.uint32())); + break; + } + case 4: { + message.cvssV3 = $root.grafeas.v1.CVSSv3.decode(reader, reader.uint32()); + break; + } + case 5: { + if (!(message.windowsDetails && message.windowsDetails.length)) + message.windowsDetails = []; + message.windowsDetails.push($root.grafeas.v1.VulnerabilityNote.WindowsDetail.decode(reader, reader.uint32())); + break; + } + case 6: { + message.sourceUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -27573,6 +29364,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for VulnerabilityNote + * @function getTypeUrl + * @memberof grafeas.v1.VulnerabilityNote + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VulnerabilityNote.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.VulnerabilityNote"; + }; + VulnerabilityNote.Detail = (function() { /** @@ -27808,48 +29614,62 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.severityName = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - message.packageType = reader.string(); - break; - case 4: - message.affectedCpeUri = reader.string(); - break; - case 5: - message.affectedPackage = reader.string(); - break; - case 6: - message.affectedVersionStart = $root.grafeas.v1.Version.decode(reader, reader.uint32()); - break; - case 7: - message.affectedVersionEnd = $root.grafeas.v1.Version.decode(reader, reader.uint32()); - break; - case 8: - message.fixedCpeUri = reader.string(); - break; - case 9: - message.fixedPackage = reader.string(); - break; - case 10: - message.fixedVersion = $root.grafeas.v1.Version.decode(reader, reader.uint32()); - break; - case 11: - message.isObsolete = reader.bool(); - break; - case 12: - message.sourceUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 13: - message.source = reader.string(); - break; - case 14: - message.vendor = reader.string(); - break; + case 1: { + message.severityName = reader.string(); + break; + } + case 2: { + message.description = reader.string(); + break; + } + case 3: { + message.packageType = reader.string(); + break; + } + case 4: { + message.affectedCpeUri = reader.string(); + break; + } + case 5: { + message.affectedPackage = reader.string(); + break; + } + case 6: { + message.affectedVersionStart = $root.grafeas.v1.Version.decode(reader, reader.uint32()); + break; + } + case 7: { + message.affectedVersionEnd = $root.grafeas.v1.Version.decode(reader, reader.uint32()); + break; + } + case 8: { + message.fixedCpeUri = reader.string(); + break; + } + case 9: { + message.fixedPackage = reader.string(); + break; + } + case 10: { + message.fixedVersion = $root.grafeas.v1.Version.decode(reader, reader.uint32()); + break; + } + case 11: { + message.isObsolete = reader.bool(); + break; + } + case 12: { + message.sourceUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 13: { + message.source = reader.string(); + break; + } + case 14: { + message.vendor = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -28064,6 +29884,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Detail + * @function getTypeUrl + * @memberof grafeas.v1.VulnerabilityNote.Detail + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Detail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.VulnerabilityNote.Detail"; + }; + return Detail; })(); @@ -28194,20 +30029,24 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.cpeUri = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - case 3: - message.description = reader.string(); - break; - case 4: - if (!(message.fixingKbs && message.fixingKbs.length)) - message.fixingKbs = []; - message.fixingKbs.push($root.grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase.decode(reader, reader.uint32())); - break; + case 1: { + message.cpeUri = reader.string(); + break; + } + case 2: { + message.name = reader.string(); + break; + } + case 3: { + message.description = reader.string(); + break; + } + case 4: { + if (!(message.fixingKbs && message.fixingKbs.length)) + message.fixingKbs = []; + message.fixingKbs.push($root.grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -28340,6 +30179,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for WindowsDetail + * @function getTypeUrl + * @memberof grafeas.v1.VulnerabilityNote.WindowsDetail + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + WindowsDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.VulnerabilityNote.WindowsDetail"; + }; + WindowsDetail.KnowledgeBase = (function() { /** @@ -28443,12 +30297,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.url = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.url = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -28547,6 +30403,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for KnowledgeBase + * @function getTypeUrl + * @memberof grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + KnowledgeBase.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase"; + }; + return KnowledgeBase; })(); @@ -28751,40 +30622,50 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.type = reader.string(); - break; - case 2: - message.severity = reader.int32(); - break; - case 3: - message.cvssScore = reader.float(); - break; - case 10: - message.cvssv3 = $root.grafeas.v1.CVSS.decode(reader, reader.uint32()); - break; - case 4: - if (!(message.packageIssue && message.packageIssue.length)) - message.packageIssue = []; - message.packageIssue.push($root.grafeas.v1.VulnerabilityOccurrence.PackageIssue.decode(reader, reader.uint32())); - break; - case 5: - message.shortDescription = reader.string(); - break; - case 6: - message.longDescription = reader.string(); - break; - case 7: - if (!(message.relatedUrls && message.relatedUrls.length)) - message.relatedUrls = []; - message.relatedUrls.push($root.grafeas.v1.RelatedUrl.decode(reader, reader.uint32())); - break; - case 8: - message.effectiveSeverity = reader.int32(); - break; - case 9: - message.fixAvailable = reader.bool(); - break; + case 1: { + message.type = reader.string(); + break; + } + case 2: { + message.severity = reader.int32(); + break; + } + case 3: { + message.cvssScore = reader.float(); + break; + } + case 10: { + message.cvssv3 = $root.grafeas.v1.CVSS.decode(reader, reader.uint32()); + break; + } + case 4: { + if (!(message.packageIssue && message.packageIssue.length)) + message.packageIssue = []; + message.packageIssue.push($root.grafeas.v1.VulnerabilityOccurrence.PackageIssue.decode(reader, reader.uint32())); + break; + } + case 5: { + message.shortDescription = reader.string(); + break; + } + case 6: { + message.longDescription = reader.string(); + break; + } + case 7: { + if (!(message.relatedUrls && message.relatedUrls.length)) + message.relatedUrls = []; + message.relatedUrls.push($root.grafeas.v1.RelatedUrl.decode(reader, reader.uint32())); + break; + } + case 8: { + message.effectiveSeverity = reader.int32(); + break; + } + case 9: { + message.fixAvailable = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -29054,6 +30935,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for VulnerabilityOccurrence + * @function getTypeUrl + * @memberof grafeas.v1.VulnerabilityOccurrence + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VulnerabilityOccurrence.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.VulnerabilityOccurrence"; + }; + VulnerabilityOccurrence.PackageIssue = (function() { /** @@ -29247,38 +31143,48 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.affectedCpeUri = reader.string(); - break; - case 2: - message.affectedPackage = reader.string(); - break; - case 3: - message.affectedVersion = $root.grafeas.v1.Version.decode(reader, reader.uint32()); - break; - case 4: - message.fixedCpeUri = reader.string(); - break; - case 5: - message.fixedPackage = reader.string(); - break; - case 6: - message.fixedVersion = $root.grafeas.v1.Version.decode(reader, reader.uint32()); - break; - case 7: - message.fixAvailable = reader.bool(); - break; - case 8: - message.packageType = reader.string(); - break; - case 9: - message.effectiveSeverity = reader.int32(); - break; - case 10: - if (!(message.fileLocation && message.fileLocation.length)) - message.fileLocation = []; - message.fileLocation.push($root.grafeas.v1.FileLocation.decode(reader, reader.uint32())); - break; + case 1: { + message.affectedCpeUri = reader.string(); + break; + } + case 2: { + message.affectedPackage = reader.string(); + break; + } + case 3: { + message.affectedVersion = $root.grafeas.v1.Version.decode(reader, reader.uint32()); + break; + } + case 4: { + message.fixedCpeUri = reader.string(); + break; + } + case 5: { + message.fixedPackage = reader.string(); + break; + } + case 6: { + message.fixedVersion = $root.grafeas.v1.Version.decode(reader, reader.uint32()); + break; + } + case 7: { + message.fixAvailable = reader.bool(); + break; + } + case 8: { + message.packageType = reader.string(); + break; + } + case 9: { + message.effectiveSeverity = reader.int32(); + break; + } + case 10: { + if (!(message.fileLocation && message.fileLocation.length)) + message.fileLocation = []; + message.fileLocation.push($root.grafeas.v1.FileLocation.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -29502,6 +31408,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for PackageIssue + * @function getTypeUrl + * @memberof grafeas.v1.VulnerabilityOccurrence.PackageIssue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PackageIssue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/grafeas.v1.VulnerabilityOccurrence.PackageIssue"; + }; + return PackageIssue; })(); @@ -29635,12 +31556,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.type_url = reader.string(); - break; - case 2: - message.value = reader.bytes(); - break; + case 1: { + message.type_url = reader.string(); + break; + } + case 2: { + message.value = reader.bytes(); + break; + } default: reader.skipType(tag & 7); break; @@ -29702,7 +31625,7 @@ if (object.value != null) if (typeof object.value === "string") $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); - else if (object.value.length) + else if (object.value.length >= 0) message.value = object.value; return message; }; @@ -29748,6 +31671,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Any + * @function getTypeUrl + * @memberof google.protobuf.Any + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Any.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Any"; + }; + return Any; })(); @@ -29854,12 +31792,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.seconds = reader.int64(); - break; - case 2: - message.nanos = reader.int32(); - break; + case 1: { + message.seconds = reader.int64(); + break; + } + case 2: { + message.nanos = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -29972,6 +31912,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Timestamp + * @function getTypeUrl + * @memberof google.protobuf.Timestamp + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Timestamp.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Timestamp"; + }; + return Timestamp; })(); @@ -30071,28 +32026,29 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (message.fields === $util.emptyObject) - message.fields = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; + case 1: { + if (message.fields === $util.emptyObject) + message.fields = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } } + message.fields[key] = value; + break; } - message.fields[key] = value; - break; default: reader.skipType(tag & 7); break; @@ -30201,6 +32157,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Struct + * @function getTypeUrl + * @memberof google.protobuf.Struct + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Struct.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Struct"; + }; + return Struct; })(); @@ -30365,24 +32336,30 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.nullValue = reader.int32(); - break; - case 2: - message.numberValue = reader.double(); - break; - case 3: - message.stringValue = reader.string(); - break; - case 4: - message.boolValue = reader.bool(); - break; - case 5: - message.structValue = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 6: - message.listValue = $root.google.protobuf.ListValue.decode(reader, reader.uint32()); - break; + case 1: { + message.nullValue = reader.int32(); + break; + } + case 2: { + message.numberValue = reader.double(); + break; + } + case 3: { + message.stringValue = reader.string(); + break; + } + case 4: { + message.boolValue = reader.bool(); + break; + } + case 5: { + message.structValue = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } + case 6: { + message.listValue = $root.google.protobuf.ListValue.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -30566,6 +32543,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Value + * @function getTypeUrl + * @memberof google.protobuf.Value + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Value"; + }; + return Value; })(); @@ -30675,11 +32667,12 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.values && message.values.length)) - message.values = []; - message.values.push($root.google.protobuf.Value.decode(reader, reader.uint32())); - break; + case 1: { + if (!(message.values && message.values.length)) + message.values = []; + message.values.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -30786,6 +32779,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListValue + * @function getTypeUrl + * @memberof google.protobuf.ListValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ListValue"; + }; + return ListValue; })(); @@ -30883,11 +32891,12 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.file && message.file.length)) - message.file = []; - message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); - break; + case 1: { + if (!(message.file && message.file.length)) + message.file = []; + message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -30994,6 +33003,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for FileDescriptorSet + * @function getTypeUrl + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileDescriptorSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FileDescriptorSet"; + }; + return FileDescriptorSet; })(); @@ -31015,6 +33039,7 @@ * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo * @property {string|null} [syntax] FileDescriptorProto syntax + * @property {string|null} [edition] FileDescriptorProto edition */ /** @@ -31135,6 +33160,14 @@ */ FileDescriptorProto.prototype.syntax = ""; + /** + * FileDescriptorProto edition. + * @member {string} edition + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.edition = ""; + /** * Creates a new FileDescriptorProto instance using the specified properties. * @function create @@ -31190,6 +33223,8 @@ writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]); if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax")) writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); + if (message.edition != null && Object.hasOwnProperty.call(message, "edition")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.edition); return writer; }; @@ -31224,66 +33259,82 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message["package"] = reader.string(); - break; - case 3: - if (!(message.dependency && message.dependency.length)) - message.dependency = []; - message.dependency.push(reader.string()); - break; - case 10: - if (!(message.publicDependency && message.publicDependency.length)) - message.publicDependency = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message["package"] = reader.string(); + break; + } + case 3: { + if (!(message.dependency && message.dependency.length)) + message.dependency = []; + message.dependency.push(reader.string()); + break; + } + case 10: { + if (!(message.publicDependency && message.publicDependency.length)) + message.publicDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.publicDependency.push(reader.int32()); + } else message.publicDependency.push(reader.int32()); - } else - message.publicDependency.push(reader.int32()); - break; - case 11: - if (!(message.weakDependency && message.weakDependency.length)) - message.weakDependency = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) + break; + } + case 11: { + if (!(message.weakDependency && message.weakDependency.length)) + message.weakDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.weakDependency.push(reader.int32()); + } else message.weakDependency.push(reader.int32()); - } else - message.weakDependency.push(reader.int32()); - break; - case 4: - if (!(message.messageType && message.messageType.length)) - message.messageType = []; - message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.enumType && message.enumType.length)) - message.enumType = []; - message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); - break; - case 6: - if (!(message.service && message.service.length)) - message.service = []; - message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); - break; - case 7: - if (!(message.extension && message.extension.length)) - message.extension = []; - message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 8: - message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); - break; - case 9: - message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); - break; - case 12: - message.syntax = reader.string(); - break; + break; + } + case 4: { + if (!(message.messageType && message.messageType.length)) + message.messageType = []; + message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 6: { + if (!(message.service && message.service.length)) + message.service = []; + message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 7: { + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 8: { + message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); + break; + } + case 9: { + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); + break; + } + case 12: { + message.syntax = reader.string(); + break; + } + case 13: { + message.edition = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -31395,6 +33446,9 @@ if (message.syntax != null && message.hasOwnProperty("syntax")) if (!$util.isString(message.syntax)) return "syntax: string expected"; + if (message.edition != null && message.hasOwnProperty("edition")) + if (!$util.isString(message.edition)) + return "edition: string expected"; return null; }; @@ -31487,6 +33541,8 @@ } if (object.syntax != null) message.syntax = String(object.syntax); + if (object.edition != null) + message.edition = String(object.edition); return message; }; @@ -31518,6 +33574,7 @@ object.options = null; object.sourceCodeInfo = null; object.syntax = ""; + object.edition = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -31564,6 +33621,8 @@ } if (message.syntax != null && message.hasOwnProperty("syntax")) object.syntax = message.syntax; + if (message.edition != null && message.hasOwnProperty("edition")) + object.edition = message.edition; return object; }; @@ -31578,6 +33637,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for FileDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FileDescriptorProto"; + }; + return FileDescriptorProto; })(); @@ -31788,52 +33862,62 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - if (!(message.field && message.field.length)) - message.field = []; - message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 6: - if (!(message.extension && message.extension.length)) - message.extension = []; - message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 3: - if (!(message.nestedType && message.nestedType.length)) - message.nestedType = []; - message.nestedType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); - break; - case 4: - if (!(message.enumType && message.enumType.length)) - message.enumType = []; - message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.extensionRange && message.extensionRange.length)) - message.extensionRange = []; - message.extensionRange.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); - break; - case 8: - if (!(message.oneofDecl && message.oneofDecl.length)) - message.oneofDecl = []; - message.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); - break; - case 7: - message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); - break; - case 9: - if (!(message.reservedRange && message.reservedRange.length)) - message.reservedRange = []; - message.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); - break; - case 10: - if (!(message.reservedName && message.reservedName.length)) - message.reservedName = []; - message.reservedName.push(reader.string()); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.field && message.field.length)) + message.field = []; + message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 6: { + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 3: { + if (!(message.nestedType && message.nestedType.length)) + message.nestedType = []; + message.nestedType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + } + case 4: { + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.extensionRange && message.extensionRange.length)) + message.extensionRange = []; + message.extensionRange.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); + break; + } + case 8: { + if (!(message.oneofDecl && message.oneofDecl.length)) + message.oneofDecl = []; + message.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 7: { + message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); + break; + } + case 9: { + if (!(message.reservedRange && message.reservedRange.length)) + message.reservedRange = []; + message.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); + break; + } + case 10: { + if (!(message.reservedName && message.reservedName.length)) + message.reservedName = []; + message.reservedName.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -32134,6 +34218,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DescriptorProto"; + }; + DescriptorProto.ExtensionRange = (function() { /** @@ -32248,15 +34347,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.start = reader.int32(); - break; - case 2: - message.end = reader.int32(); - break; - case 3: - message.options = $root.google.protobuf.ExtensionRangeOptions.decode(reader, reader.uint32()); - break; + case 1: { + message.start = reader.int32(); + break; + } + case 2: { + message.end = reader.int32(); + break; + } + case 3: { + message.options = $root.google.protobuf.ExtensionRangeOptions.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -32368,6 +34470,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ExtensionRange + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExtensionRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DescriptorProto.ExtensionRange"; + }; + return ExtensionRange; })(); @@ -32474,12 +34591,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.start = reader.int32(); - break; - case 2: - message.end = reader.int32(); - break; + case 1: { + message.start = reader.int32(); + break; + } + case 2: { + message.end = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -32578,6 +34697,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ReservedRange + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReservedRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DescriptorProto.ReservedRange"; + }; + return ReservedRange; })(); @@ -32678,11 +34812,12 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -32789,6 +34924,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ExtensionRangeOptions + * @function getTypeUrl + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExtensionRangeOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions"; + }; + return ExtensionRangeOptions; })(); @@ -32994,39 +35144,50 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 3: - message.number = reader.int32(); - break; - case 4: - message.label = reader.int32(); - break; - case 5: - message.type = reader.int32(); - break; - case 6: - message.typeName = reader.string(); - break; - case 2: - message.extendee = reader.string(); - break; - case 7: - message.defaultValue = reader.string(); - break; - case 9: - message.oneofIndex = reader.int32(); - break; - case 10: - message.jsonName = reader.string(); - break; - case 8: - message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); - break; - case 17: - message.proto3Optional = reader.bool(); - break; + case 1: { + message.name = reader.string(); + break; + } + case 3: { + message.number = reader.int32(); + break; + } + case 4: { + message.label = reader.int32(); + break; + } + case 5: { + message.type = reader.int32(); + break; + } + case 6: { + message.typeName = reader.string(); + break; + } + case 2: { + message.extendee = reader.string(); + break; + } + case 7: { + message.defaultValue = reader.string(); + break; + } + case 9: { + message.oneofIndex = reader.int32(); + break; + } + case 10: { + message.jsonName = reader.string(); + break; + } + case 8: { + message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); + break; + } + case 17: { + message.proto3Optional = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -33313,6 +35474,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for FieldDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FieldDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FieldDescriptorProto"; + }; + /** * Type enum. * @name google.protobuf.FieldDescriptorProto.Type @@ -33481,12 +35657,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -33590,6 +35768,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for OneofDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OneofDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.OneofDescriptorProto"; + }; + return OneofDescriptorProto; })(); @@ -33735,27 +35928,32 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - if (!(message.value && message.value.length)) - message.value = []; - message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); - break; - case 3: - message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); - break; - case 4: - if (!(message.reservedRange && message.reservedRange.length)) - message.reservedRange = []; - message.reservedRange.push($root.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.reservedName && message.reservedName.length)) - message.reservedName = []; - message.reservedName.push(reader.string()); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.value && message.value.length)) + message.value = []; + message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 3: { + message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); + break; + } + case 4: { + if (!(message.reservedRange && message.reservedRange.length)) + message.reservedRange = []; + message.reservedRange.push($root.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.reservedName && message.reservedName.length)) + message.reservedName = []; + message.reservedName.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -33931,6 +36129,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for EnumDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumDescriptorProto"; + }; + EnumDescriptorProto.EnumReservedRange = (function() { /** @@ -34034,12 +36247,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.start = reader.int32(); - break; - case 2: - message.end = reader.int32(); - break; + case 1: { + message.start = reader.int32(); + break; + } + case 2: { + message.end = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -34138,6 +36353,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for EnumReservedRange + * @function getTypeUrl + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumReservedRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumDescriptorProto.EnumReservedRange"; + }; + return EnumReservedRange; })(); @@ -34258,15 +36488,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.number = reader.int32(); - break; - case 3: - message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.number = reader.int32(); + break; + } + case 3: { + message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -34378,6 +36611,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for EnumValueDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumValueDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumValueDescriptorProto"; + }; + return EnumValueDescriptorProto; })(); @@ -34497,17 +36745,20 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - if (!(message.method && message.method.length)) - message.method = []; - message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); - break; - case 3: - message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.method && message.method.length)) + message.method = []; + message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 3: { + message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -34637,6 +36888,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ServiceDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ServiceDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ServiceDescriptorProto"; + }; + return ServiceDescriptorProto; })(); @@ -34787,24 +37053,30 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.inputType = reader.string(); - break; - case 3: - message.outputType = reader.string(); - break; - case 4: - message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); - break; - case 5: - message.clientStreaming = reader.bool(); - break; - case 6: - message.serverStreaming = reader.bool(); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.inputType = reader.string(); + break; + } + case 3: { + message.outputType = reader.string(); + break; + } + case 4: { + message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); + break; + } + case 5: { + message.clientStreaming = reader.bool(); + break; + } + case 6: { + message.serverStreaming = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -34940,6 +37212,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for MethodDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MethodDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.MethodDescriptorProto"; + }; + return MethodDescriptorProto; })(); @@ -35270,76 +37557,98 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.javaPackage = reader.string(); - break; - case 8: - message.javaOuterClassname = reader.string(); - break; - case 10: - message.javaMultipleFiles = reader.bool(); - break; - case 20: - message.javaGenerateEqualsAndHash = reader.bool(); - break; - case 27: - message.javaStringCheckUtf8 = reader.bool(); - break; - case 9: - message.optimizeFor = reader.int32(); - break; - case 11: - message.goPackage = reader.string(); - break; - case 16: - message.ccGenericServices = reader.bool(); - break; - case 17: - message.javaGenericServices = reader.bool(); - break; - case 18: - message.pyGenericServices = reader.bool(); - break; - case 42: - message.phpGenericServices = reader.bool(); - break; - case 23: - message.deprecated = reader.bool(); - break; - case 31: - message.ccEnableArenas = reader.bool(); - break; - case 36: - message.objcClassPrefix = reader.string(); - break; - case 37: - message.csharpNamespace = reader.string(); - break; - case 39: - message.swiftPrefix = reader.string(); - break; - case 40: - message.phpClassPrefix = reader.string(); - break; - case 41: - message.phpNamespace = reader.string(); - break; - case 44: - message.phpMetadataNamespace = reader.string(); - break; - case 45: - message.rubyPackage = reader.string(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 1053: - if (!(message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length)) - message[".google.api.resourceDefinition"] = []; - message[".google.api.resourceDefinition"].push($root.google.api.ResourceDescriptor.decode(reader, reader.uint32())); - break; + case 1: { + message.javaPackage = reader.string(); + break; + } + case 8: { + message.javaOuterClassname = reader.string(); + break; + } + case 10: { + message.javaMultipleFiles = reader.bool(); + break; + } + case 20: { + message.javaGenerateEqualsAndHash = reader.bool(); + break; + } + case 27: { + message.javaStringCheckUtf8 = reader.bool(); + break; + } + case 9: { + message.optimizeFor = reader.int32(); + break; + } + case 11: { + message.goPackage = reader.string(); + break; + } + case 16: { + message.ccGenericServices = reader.bool(); + break; + } + case 17: { + message.javaGenericServices = reader.bool(); + break; + } + case 18: { + message.pyGenericServices = reader.bool(); + break; + } + case 42: { + message.phpGenericServices = reader.bool(); + break; + } + case 23: { + message.deprecated = reader.bool(); + break; + } + case 31: { + message.ccEnableArenas = reader.bool(); + break; + } + case 36: { + message.objcClassPrefix = reader.string(); + break; + } + case 37: { + message.csharpNamespace = reader.string(); + break; + } + case 39: { + message.swiftPrefix = reader.string(); + break; + } + case 40: { + message.phpClassPrefix = reader.string(); + break; + } + case 41: { + message.phpNamespace = reader.string(); + break; + } + case 44: { + message.phpMetadataNamespace = reader.string(); + break; + } + case 45: { + message.rubyPackage = reader.string(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1053: { + if (!(message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length)) + message[".google.api.resourceDefinition"] = []; + message[".google.api.resourceDefinition"].push($root.google.api.ResourceDescriptor.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -35652,6 +37961,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for FileOptions + * @function getTypeUrl + * @memberof google.protobuf.FileOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FileOptions"; + }; + /** * OptimizeMode enum. * @name google.protobuf.FileOptions.OptimizeMode @@ -35820,26 +38144,32 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.messageSetWireFormat = reader.bool(); - break; - case 2: - message.noStandardDescriptorAccessor = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 7: - message.mapEntry = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 1053: - message[".google.api.resource"] = $root.google.api.ResourceDescriptor.decode(reader, reader.uint32()); - break; + case 1: { + message.messageSetWireFormat = reader.bool(); + break; + } + case 2: { + message.noStandardDescriptorAccessor = reader.bool(); + break; + } + case 3: { + message.deprecated = reader.bool(); + break; + } + case 7: { + message.mapEntry = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1053: { + message[".google.api.resource"] = $root.google.api.ResourceDescriptor.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -35993,6 +38323,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for MessageOptions + * @function getTypeUrl + * @memberof google.protobuf.MessageOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MessageOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.MessageOptions"; + }; + return MessageOptions; })(); @@ -36006,6 +38351,7 @@ * @property {boolean|null} [packed] FieldOptions packed * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype * @property {boolean|null} [lazy] FieldOptions lazy + * @property {boolean|null} [unverifiedLazy] FieldOptions unverifiedLazy * @property {boolean|null} [deprecated] FieldOptions deprecated * @property {boolean|null} [weak] FieldOptions weak * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption @@ -36062,6 +38408,14 @@ */ FieldOptions.prototype.lazy = false; + /** + * FieldOptions unverifiedLazy. + * @member {boolean} unverifiedLazy + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.unverifiedLazy = false; + /** * FieldOptions deprecated. * @member {boolean} deprecated @@ -36138,6 +38492,8 @@ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); + if (message.unverifiedLazy != null && Object.hasOwnProperty.call(message, "unverifiedLazy")) + writer.uint32(/* id 15, wireType 0 =*/120).bool(message.unverifiedLazy); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); @@ -36183,42 +38539,55 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.ctype = reader.int32(); - break; - case 2: - message.packed = reader.bool(); - break; - case 6: - message.jstype = reader.int32(); - break; - case 5: - message.lazy = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 10: - message.weak = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 1052: - if (!(message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length)) - message[".google.api.fieldBehavior"] = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) + case 1: { + message.ctype = reader.int32(); + break; + } + case 2: { + message.packed = reader.bool(); + break; + } + case 6: { + message.jstype = reader.int32(); + break; + } + case 5: { + message.lazy = reader.bool(); + break; + } + case 15: { + message.unverifiedLazy = reader.bool(); + break; + } + case 3: { + message.deprecated = reader.bool(); + break; + } + case 10: { + message.weak = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1052: { + if (!(message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length)) + message[".google.api.fieldBehavior"] = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message[".google.api.fieldBehavior"].push(reader.int32()); + } else message[".google.api.fieldBehavior"].push(reader.int32()); - } else - message[".google.api.fieldBehavior"].push(reader.int32()); - break; - case 1055: - message[".google.api.resourceReference"] = $root.google.api.ResourceReference.decode(reader, reader.uint32()); - break; + break; + } + case 1055: { + message[".google.api.resourceReference"] = $root.google.api.ResourceReference.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -36278,6 +38647,9 @@ if (message.lazy != null && message.hasOwnProperty("lazy")) if (typeof message.lazy !== "boolean") return "lazy: boolean expected"; + if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) + if (typeof message.unverifiedLazy !== "boolean") + return "unverifiedLazy: boolean expected"; if (message.deprecated != null && message.hasOwnProperty("deprecated")) if (typeof message.deprecated !== "boolean") return "deprecated: boolean expected"; @@ -36363,6 +38735,8 @@ } if (object.lazy != null) message.lazy = Boolean(object.lazy); + if (object.unverifiedLazy != null) + message.unverifiedLazy = Boolean(object.unverifiedLazy); if (object.deprecated != null) message.deprecated = Boolean(object.deprecated); if (object.weak != null) @@ -36450,6 +38824,7 @@ object.lazy = false; object.jstype = options.enums === String ? "JS_NORMAL" : 0; object.weak = false; + object.unverifiedLazy = false; object[".google.api.resourceReference"] = null; } if (message.ctype != null && message.hasOwnProperty("ctype")) @@ -36464,6 +38839,8 @@ object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; if (message.weak != null && message.hasOwnProperty("weak")) object.weak = message.weak; + if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) + object.unverifiedLazy = message.unverifiedLazy; if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) @@ -36490,6 +38867,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for FieldOptions + * @function getTypeUrl + * @memberof google.protobuf.FieldOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FieldOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FieldOptions"; + }; + /** * CType enum. * @name google.protobuf.FieldOptions.CType @@ -36619,11 +39011,12 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -36730,6 +39123,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for OneofOptions + * @function getTypeUrl + * @memberof google.protobuf.OneofOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OneofOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.OneofOptions"; + }; + return OneofOptions; })(); @@ -36849,17 +39257,20 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: - message.allowAlias = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; + case 2: { + message.allowAlias = reader.bool(); + break; + } + case 3: { + message.deprecated = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -36984,6 +39395,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for EnumOptions + * @function getTypeUrl + * @memberof google.protobuf.EnumOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumOptions"; + }; + return EnumOptions; })(); @@ -37092,14 +39518,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.deprecated = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; + case 1: { + message.deprecated = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -37215,6 +39643,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for EnumValueOptions + * @function getTypeUrl + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumValueOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumValueOptions"; + }; + return EnumValueOptions; })(); @@ -37345,20 +39788,24 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 33: - message.deprecated = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 1049: - message[".google.api.defaultHost"] = reader.string(); - break; - case 1050: - message[".google.api.oauthScopes"] = reader.string(); - break; + case 33: { + message.deprecated = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1049: { + message[".google.api.defaultHost"] = reader.string(); + break; + } + case 1050: { + message[".google.api.oauthScopes"] = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -37491,6 +39938,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ServiceOptions + * @function getTypeUrl + * @memberof google.protobuf.ServiceOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ServiceOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ServiceOptions"; + }; + return ServiceOptions; })(); @@ -37634,25 +40096,30 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 33: - message.deprecated = reader.bool(); - break; - case 34: - message.idempotencyLevel = reader.int32(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 72295728: - message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); - break; - case 1051: - if (!(message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length)) - message[".google.api.methodSignature"] = []; - message[".google.api.methodSignature"].push(reader.string()); - break; + case 33: { + message.deprecated = reader.bool(); + break; + } + case 34: { + message.idempotencyLevel = reader.int32(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 72295728: { + message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); + break; + } + case 1051: { + if (!(message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length)) + message[".google.api.methodSignature"] = []; + message[".google.api.methodSignature"].push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -37829,6 +40296,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for MethodOptions + * @function getTypeUrl + * @memberof google.protobuf.MethodOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MethodOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.MethodOptions"; + }; + /** * IdempotencyLevel enum. * @name google.protobuf.MethodOptions.IdempotencyLevel @@ -38008,29 +40490,36 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: - if (!(message.name && message.name.length)) - message.name = []; - message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); - break; - case 3: - message.identifierValue = reader.string(); - break; - case 4: - message.positiveIntValue = reader.uint64(); - break; - case 5: - message.negativeIntValue = reader.int64(); - break; - case 6: - message.doubleValue = reader.double(); - break; - case 7: - message.stringValue = reader.bytes(); - break; - case 8: - message.aggregateValue = reader.string(); - break; + case 2: { + if (!(message.name && message.name.length)) + message.name = []; + message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); + break; + } + case 3: { + message.identifierValue = reader.string(); + break; + } + case 4: { + message.positiveIntValue = reader.uint64(); + break; + } + case 5: { + message.negativeIntValue = reader.int64(); + break; + } + case 6: { + message.doubleValue = reader.double(); + break; + } + case 7: { + message.stringValue = reader.bytes(); + break; + } + case 8: { + message.aggregateValue = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -38143,7 +40632,7 @@ if (object.stringValue != null) if (typeof object.stringValue === "string") $util.base64.decode(object.stringValue, message.stringValue = $util.newBuffer($util.base64.length(object.stringValue)), 0); - else if (object.stringValue.length) + else if (object.stringValue.length >= 0) message.stringValue = object.stringValue; if (object.aggregateValue != null) message.aggregateValue = String(object.aggregateValue); @@ -38224,6 +40713,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UninterpretedOption + * @function getTypeUrl + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UninterpretedOption.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.UninterpretedOption"; + }; + UninterpretedOption.NamePart = (function() { /** @@ -38325,12 +40829,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.namePart = reader.string(); - break; - case 2: - message.isExtension = reader.bool(); - break; + case 1: { + message.namePart = reader.string(); + break; + } + case 2: { + message.isExtension = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -38431,6 +40937,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for NamePart + * @function getTypeUrl + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NamePart.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.UninterpretedOption.NamePart"; + }; + return NamePart; })(); @@ -38531,11 +41052,12 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.location && message.location.length)) - message.location = []; - message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); - break; + case 1: { + if (!(message.location && message.location.length)) + message.location = []; + message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -38642,6 +41164,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SourceCodeInfo + * @function getTypeUrl + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SourceCodeInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.SourceCodeInfo"; + }; + SourceCodeInfo.Location = (function() { /** @@ -38790,37 +41327,42 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.path && message.path.length)) - message.path = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) + case 1: { + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else message.path.push(reader.int32()); - } else - message.path.push(reader.int32()); - break; - case 2: - if (!(message.span && message.span.length)) - message.span = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) + break; + } + case 2: { + if (!(message.span && message.span.length)) + message.span = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.span.push(reader.int32()); + } else message.span.push(reader.int32()); - } else - message.span.push(reader.int32()); - break; - case 3: - message.leadingComments = reader.string(); - break; - case 4: - message.trailingComments = reader.string(); - break; - case 6: - if (!(message.leadingDetachedComments && message.leadingDetachedComments.length)) - message.leadingDetachedComments = []; - message.leadingDetachedComments.push(reader.string()); - break; + break; + } + case 3: { + message.leadingComments = reader.string(); + break; + } + case 4: { + message.trailingComments = reader.string(); + break; + } + case 6: { + if (!(message.leadingDetachedComments && message.leadingDetachedComments.length)) + message.leadingDetachedComments = []; + message.leadingDetachedComments.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -38981,6 +41523,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Location + * @function getTypeUrl + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Location.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.SourceCodeInfo.Location"; + }; + return Location; })(); @@ -39081,11 +41638,12 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.annotation && message.annotation.length)) - message.annotation = []; - message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); - break; + case 1: { + if (!(message.annotation && message.annotation.length)) + message.annotation = []; + message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -39192,6 +41750,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GeneratedCodeInfo + * @function getTypeUrl + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GeneratedCodeInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.GeneratedCodeInfo"; + }; + GeneratedCodeInfo.Annotation = (function() { /** @@ -39202,6 +41775,7 @@ * @property {string|null} [sourceFile] Annotation sourceFile * @property {number|null} [begin] Annotation begin * @property {number|null} [end] Annotation end + * @property {google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null} [semantic] Annotation semantic */ /** @@ -39252,6 +41826,14 @@ */ Annotation.prototype.end = 0; + /** + * Annotation semantic. + * @member {google.protobuf.GeneratedCodeInfo.Annotation.Semantic} semantic + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.semantic = 0; + /** * Creates a new Annotation instance using the specified properties. * @function create @@ -39288,6 +41870,8 @@ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); if (message.end != null && Object.hasOwnProperty.call(message, "end")) writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); + if (message.semantic != null && Object.hasOwnProperty.call(message, "semantic")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.semantic); return writer; }; @@ -39322,25 +41906,33 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.path && message.path.length)) - message.path = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) + case 1: { + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else message.path.push(reader.int32()); - } else - message.path.push(reader.int32()); - break; - case 2: - message.sourceFile = reader.string(); - break; - case 3: - message.begin = reader.int32(); - break; - case 4: - message.end = reader.int32(); - break; + break; + } + case 2: { + message.sourceFile = reader.string(); + break; + } + case 3: { + message.begin = reader.int32(); + break; + } + case 4: { + message.end = reader.int32(); + break; + } + case 5: { + message.semantic = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -39392,6 +41984,15 @@ if (message.end != null && message.hasOwnProperty("end")) if (!$util.isInteger(message.end)) return "end: integer expected"; + if (message.semantic != null && message.hasOwnProperty("semantic")) + switch (message.semantic) { + default: + return "semantic: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; @@ -39420,6 +42021,20 @@ message.begin = object.begin | 0; if (object.end != null) message.end = object.end | 0; + switch (object.semantic) { + case "NONE": + case 0: + message.semantic = 0; + break; + case "SET": + case 1: + message.semantic = 1; + break; + case "ALIAS": + case 2: + message.semantic = 2; + break; + } return message; }; @@ -39442,6 +42057,7 @@ object.sourceFile = ""; object.begin = 0; object.end = 0; + object.semantic = options.enums === String ? "NONE" : 0; } if (message.path && message.path.length) { object.path = []; @@ -39454,6 +42070,8 @@ object.begin = message.begin; if (message.end != null && message.hasOwnProperty("end")) object.end = message.end; + if (message.semantic != null && message.hasOwnProperty("semantic")) + object.semantic = options.enums === String ? $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] : message.semantic; return object; }; @@ -39468,6 +42086,37 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Annotation + * @function getTypeUrl + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Annotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.GeneratedCodeInfo.Annotation"; + }; + + /** + * Semantic enum. + * @name google.protobuf.GeneratedCodeInfo.Annotation.Semantic + * @enum {number} + * @property {number} NONE=0 NONE value + * @property {number} SET=1 SET value + * @property {number} ALIAS=2 ALIAS value + */ + Annotation.Semantic = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NONE"] = 0; + values[valuesById[1] = "SET"] = 1; + values[valuesById[2] = "ALIAS"] = 2; + return values; + })(); + return Annotation; })(); @@ -39631,6 +42280,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Empty + * @function getTypeUrl + * @memberof google.protobuf.Empty + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Empty.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Empty"; + }; + return Empty; })(); @@ -39728,11 +42392,12 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.paths && message.paths.length)) - message.paths = []; - message.paths.push(reader.string()); - break; + case 1: { + if (!(message.paths && message.paths.length)) + message.paths = []; + message.paths.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -39834,6 +42499,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for FieldMask + * @function getTypeUrl + * @memberof google.protobuf.FieldMask + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FieldMask.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FieldMask"; + }; + return FieldMask; })(); @@ -39980,14 +42660,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.rules && message.rules.length)) - message.rules = []; - message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); - break; - case 2: - message.fullyDecodeReservedExpansion = reader.bool(); - break; + case 1: { + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + } + case 2: { + message.fullyDecodeReservedExpansion = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -40103,6 +42785,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Http + * @function getTypeUrl + * @memberof google.api.Http + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Http.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.Http"; + }; + return Http; })(); @@ -40313,38 +43010,48 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.selector = reader.string(); - break; - case 2: - message.get = reader.string(); - break; - case 3: - message.put = reader.string(); - break; - case 4: - message.post = reader.string(); - break; - case 5: - message["delete"] = reader.string(); - break; - case 6: - message.patch = reader.string(); - break; - case 8: - message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); - break; - case 7: - message.body = reader.string(); - break; - case 12: - message.responseBody = reader.string(); - break; - case 11: - if (!(message.additionalBindings && message.additionalBindings.length)) - message.additionalBindings = []; - message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); - break; + case 1: { + message.selector = reader.string(); + break; + } + case 2: { + message.get = reader.string(); + break; + } + case 3: { + message.put = reader.string(); + break; + } + case 4: { + message.post = reader.string(); + break; + } + case 5: { + message["delete"] = reader.string(); + break; + } + case 6: { + message.patch = reader.string(); + break; + } + case 8: { + message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); + break; + } + case 7: { + message.body = reader.string(); + break; + } + case 12: { + message.responseBody = reader.string(); + break; + } + case 11: { + if (!(message.additionalBindings && message.additionalBindings.length)) + message.additionalBindings = []; + message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -40566,6 +43273,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for HttpRule + * @function getTypeUrl + * @memberof google.api.HttpRule + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HttpRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.HttpRule"; + }; + return HttpRule; })(); @@ -40672,12 +43394,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.kind = reader.string(); - break; - case 2: - message.path = reader.string(); - break; + case 1: { + message.kind = reader.string(); + break; + } + case 2: { + message.path = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -40776,6 +43500,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CustomHttpPattern + * @function getTypeUrl + * @memberof google.api.CustomHttpPattern + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CustomHttpPattern.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.CustomHttpPattern"; + }; + return CustomHttpPattern; })(); @@ -40944,36 +43683,43 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.type = reader.string(); - break; - case 2: - if (!(message.pattern && message.pattern.length)) - message.pattern = []; - message.pattern.push(reader.string()); - break; - case 3: - message.nameField = reader.string(); - break; - case 4: - message.history = reader.int32(); - break; - case 5: - message.plural = reader.string(); - break; - case 6: - message.singular = reader.string(); - break; - case 10: - if (!(message.style && message.style.length)) - message.style = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) + case 1: { + message.type = reader.string(); + break; + } + case 2: { + if (!(message.pattern && message.pattern.length)) + message.pattern = []; + message.pattern.push(reader.string()); + break; + } + case 3: { + message.nameField = reader.string(); + break; + } + case 4: { + message.history = reader.int32(); + break; + } + case 5: { + message.plural = reader.string(); + break; + } + case 6: { + message.singular = reader.string(); + break; + } + case 10: { + if (!(message.style && message.style.length)) + message.style = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.style.push(reader.int32()); + } else message.style.push(reader.int32()); - } else - message.style.push(reader.int32()); - break; + break; + } default: reader.skipType(tag & 7); break; @@ -41171,6 +43917,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ResourceDescriptor + * @function getTypeUrl + * @memberof google.api.ResourceDescriptor + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResourceDescriptor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.ResourceDescriptor"; + }; + /** * History enum. * @name google.api.ResourceDescriptor.History @@ -41307,12 +44068,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.type = reader.string(); - break; - case 2: - message.childType = reader.string(); - break; + case 1: { + message.type = reader.string(); + break; + } + case 2: { + message.childType = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -41411,6 +44174,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ResourceReference + * @function getTypeUrl + * @memberof google.api.ResourceReference + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResourceReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.ResourceReference"; + }; + return ResourceReference; })(); @@ -41542,17 +44320,20 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.code = reader.int32(); - break; - case 2: - message.message = reader.string(); - break; - case 3: - if (!(message.details && message.details.length)) - message.details = []; - message.details.push($root.google.protobuf.Any.decode(reader, reader.uint32())); - break; + case 1: { + message.code = reader.int32(); + break; + } + case 2: { + message.message = reader.string(); + break; + } + case 3: { + if (!(message.details && message.details.length)) + message.details = []; + message.details.push($root.google.protobuf.Any.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -41677,6 +44458,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Status + * @function getTypeUrl + * @memberof google.rpc.Status + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Status.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.rpc.Status"; + }; + return Status; })(); diff --git a/packages/grafeas/protos/protos.json b/packages/grafeas/protos/protos.json index 446e6cafe84..af5ac232529 100644 --- a/packages/grafeas/protos/protos.json +++ b/packages/grafeas/protos/protos.json @@ -2889,6 +2889,10 @@ "syntax": { "type": "string", "id": 12 + }, + "edition": { + "type": "string", + "id": 13 } } }, @@ -3417,6 +3421,13 @@ "default": false } }, + "unverifiedLazy": { + "type": "bool", + "id": 15, + "options": { + "default": false + } + }, "deprecated": { "type": "bool", "id": 3, @@ -3709,6 +3720,19 @@ "end": { "type": "int32", "id": 4 + }, + "semantic": { + "type": "Semantic", + "id": 5 + } + }, + "nested": { + "Semantic": { + "values": { + "NONE": 0, + "SET": 1, + "ALIAS": 2 + } } } }