UNPKG

@google-cloud/containeranalysis

Version:
1,160 lines (966 loc) 1.59 MB
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. import type {protobuf as $protobuf} from "google-gax"; import Long = require("long"); /** Namespace grafeas. */ export namespace grafeas { /** Namespace v1. */ namespace v1 { /** Severity enum. */ enum Severity { SEVERITY_UNSPECIFIED = 0, MINIMAL = 1, LOW = 2, MEDIUM = 3, HIGH = 4, CRITICAL = 5 } /** Properties of an AttestationNote. */ interface IAttestationNote { /** AttestationNote hint */ hint?: (grafeas.v1.AttestationNote.IHint|null); } /** Represents an AttestationNote. */ class AttestationNote implements IAttestationNote { /** * Constructs a new AttestationNote. * @param [properties] Properties to set */ constructor(properties?: grafeas.v1.IAttestationNote); /** AttestationNote hint. */ public hint?: (grafeas.v1.AttestationNote.IHint|null); /** * Creates a new AttestationNote instance using the specified properties. * @param [properties] Properties to set * @returns AttestationNote instance */ public static create(properties?: grafeas.v1.IAttestationNote): grafeas.v1.AttestationNote; /** * Encodes the specified AttestationNote message. Does not implicitly {@link grafeas.v1.AttestationNote.verify|verify} messages. * @param message AttestationNote message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: grafeas.v1.IAttestationNote, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified AttestationNote message, length delimited. Does not implicitly {@link grafeas.v1.AttestationNote.verify|verify} messages. * @param message AttestationNote message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: grafeas.v1.IAttestationNote, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an AttestationNote message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns AttestationNote * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): grafeas.v1.AttestationNote; /** * Decodes an AttestationNote message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns AttestationNote * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): grafeas.v1.AttestationNote; /** * Verifies an AttestationNote message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates an AttestationNote message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns AttestationNote */ public static fromObject(object: { [k: string]: any }): grafeas.v1.AttestationNote; /** * Creates a plain object from an AttestationNote message. Also converts values to other types if specified. * @param message AttestationNote * @param [options] Conversion options * @returns Plain object */ public static toObject(message: grafeas.v1.AttestationNote, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this AttestationNote to JSON. * @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 { /** Properties of a Hint. */ interface IHint { /** Hint humanReadableName */ humanReadableName?: (string|null); } /** Represents a Hint. */ class Hint implements IHint { /** * Constructs a new Hint. * @param [properties] Properties to set */ constructor(properties?: grafeas.v1.AttestationNote.IHint); /** Hint humanReadableName. */ public humanReadableName: string; /** * Creates a new Hint instance using the specified properties. * @param [properties] Properties to set * @returns Hint instance */ public static create(properties?: grafeas.v1.AttestationNote.IHint): grafeas.v1.AttestationNote.Hint; /** * Encodes the specified Hint message. Does not implicitly {@link grafeas.v1.AttestationNote.Hint.verify|verify} messages. * @param message Hint message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: grafeas.v1.AttestationNote.IHint, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Hint message, length delimited. Does not implicitly {@link grafeas.v1.AttestationNote.Hint.verify|verify} messages. * @param message Hint message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: grafeas.v1.AttestationNote.IHint, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Hint message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Hint * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): grafeas.v1.AttestationNote.Hint; /** * Decodes a Hint message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Hint * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): grafeas.v1.AttestationNote.Hint; /** * Verifies a Hint message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a Hint message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Hint */ public static fromObject(object: { [k: string]: any }): grafeas.v1.AttestationNote.Hint; /** * Creates a plain object from a Hint message. Also converts values to other types if specified. * @param message Hint * @param [options] Conversion options * @returns Plain object */ public static toObject(message: grafeas.v1.AttestationNote.Hint, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Hint to JSON. * @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; } } /** Properties of a Jwt. */ interface IJwt { /** Jwt compactJwt */ compactJwt?: (string|null); } /** Represents a Jwt. */ class Jwt implements IJwt { /** * Constructs a new Jwt. * @param [properties] Properties to set */ constructor(properties?: grafeas.v1.IJwt); /** Jwt compactJwt. */ public compactJwt: string; /** * Creates a new Jwt instance using the specified properties. * @param [properties] Properties to set * @returns Jwt instance */ public static create(properties?: grafeas.v1.IJwt): grafeas.v1.Jwt; /** * Encodes the specified Jwt message. Does not implicitly {@link grafeas.v1.Jwt.verify|verify} messages. * @param message Jwt message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: grafeas.v1.IJwt, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Jwt message, length delimited. Does not implicitly {@link grafeas.v1.Jwt.verify|verify} messages. * @param message Jwt message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: grafeas.v1.IJwt, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Jwt message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Jwt * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): grafeas.v1.Jwt; /** * Decodes a Jwt message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Jwt * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): grafeas.v1.Jwt; /** * Verifies a Jwt message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a Jwt message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Jwt */ public static fromObject(object: { [k: string]: any }): grafeas.v1.Jwt; /** * Creates a plain object from a Jwt message. Also converts values to other types if specified. * @param message Jwt * @param [options] Conversion options * @returns Plain object */ public static toObject(message: grafeas.v1.Jwt, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Jwt to JSON. * @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. */ interface IAttestationOccurrence { /** AttestationOccurrence serializedPayload */ serializedPayload?: (Uint8Array|Buffer|string|null); /** AttestationOccurrence signatures */ signatures?: (grafeas.v1.ISignature[]|null); /** AttestationOccurrence jwts */ jwts?: (grafeas.v1.IJwt[]|null); } /** Represents an AttestationOccurrence. */ class AttestationOccurrence implements IAttestationOccurrence { /** * Constructs a new AttestationOccurrence. * @param [properties] Properties to set */ constructor(properties?: grafeas.v1.IAttestationOccurrence); /** AttestationOccurrence serializedPayload. */ public serializedPayload: (Uint8Array|Buffer|string); /** AttestationOccurrence signatures. */ public signatures: grafeas.v1.ISignature[]; /** AttestationOccurrence jwts. */ public jwts: grafeas.v1.IJwt[]; /** * Creates a new AttestationOccurrence instance using the specified properties. * @param [properties] Properties to set * @returns AttestationOccurrence instance */ public static create(properties?: grafeas.v1.IAttestationOccurrence): grafeas.v1.AttestationOccurrence; /** * Encodes the specified AttestationOccurrence message. Does not implicitly {@link grafeas.v1.AttestationOccurrence.verify|verify} messages. * @param message AttestationOccurrence message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: grafeas.v1.IAttestationOccurrence, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified AttestationOccurrence message, length delimited. Does not implicitly {@link grafeas.v1.AttestationOccurrence.verify|verify} messages. * @param message AttestationOccurrence message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: grafeas.v1.IAttestationOccurrence, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an AttestationOccurrence message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns AttestationOccurrence * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): grafeas.v1.AttestationOccurrence; /** * Decodes an AttestationOccurrence message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns AttestationOccurrence * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): grafeas.v1.AttestationOccurrence; /** * Verifies an AttestationOccurrence message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates an AttestationOccurrence message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns AttestationOccurrence */ public static fromObject(object: { [k: string]: any }): grafeas.v1.AttestationOccurrence; /** * Creates a plain object from an AttestationOccurrence message. Also converts values to other types if specified. * @param message AttestationOccurrence * @param [options] Conversion options * @returns Plain object */ public static toObject(message: grafeas.v1.AttestationOccurrence, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this AttestationOccurrence to JSON. * @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. */ enum NoteKind { NOTE_KIND_UNSPECIFIED = 0, VULNERABILITY = 1, BUILD = 2, IMAGE = 3, PACKAGE = 4, DEPLOYMENT = 5, DISCOVERY = 6, ATTESTATION = 7, UPGRADE = 8, COMPLIANCE = 9, DSSE_ATTESTATION = 10, VULNERABILITY_ASSESSMENT = 11, SBOM_REFERENCE = 12, SECRET = 13 } /** Properties of a RelatedUrl. */ interface IRelatedUrl { /** RelatedUrl url */ url?: (string|null); /** RelatedUrl label */ label?: (string|null); } /** Represents a RelatedUrl. */ class RelatedUrl implements IRelatedUrl { /** * Constructs a new RelatedUrl. * @param [properties] Properties to set */ constructor(properties?: grafeas.v1.IRelatedUrl); /** RelatedUrl url. */ public url: string; /** RelatedUrl label. */ public label: string; /** * Creates a new RelatedUrl instance using the specified properties. * @param [properties] Properties to set * @returns RelatedUrl instance */ public static create(properties?: grafeas.v1.IRelatedUrl): grafeas.v1.RelatedUrl; /** * Encodes the specified RelatedUrl message. Does not implicitly {@link grafeas.v1.RelatedUrl.verify|verify} messages. * @param message RelatedUrl message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: grafeas.v1.IRelatedUrl, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified RelatedUrl message, length delimited. Does not implicitly {@link grafeas.v1.RelatedUrl.verify|verify} messages. * @param message RelatedUrl message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: grafeas.v1.IRelatedUrl, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a RelatedUrl message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns RelatedUrl * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): grafeas.v1.RelatedUrl; /** * Decodes a RelatedUrl message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns RelatedUrl * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): grafeas.v1.RelatedUrl; /** * Verifies a RelatedUrl message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a RelatedUrl message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns RelatedUrl */ public static fromObject(object: { [k: string]: any }): grafeas.v1.RelatedUrl; /** * Creates a plain object from a RelatedUrl message. Also converts values to other types if specified. * @param message RelatedUrl * @param [options] Conversion options * @returns Plain object */ public static toObject(message: grafeas.v1.RelatedUrl, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this RelatedUrl to JSON. * @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. */ interface ISignature { /** Signature signature */ signature?: (Uint8Array|Buffer|string|null); /** Signature publicKeyId */ publicKeyId?: (string|null); } /** Represents a Signature. */ class Signature implements ISignature { /** * Constructs a new Signature. * @param [properties] Properties to set */ constructor(properties?: grafeas.v1.ISignature); /** Signature signature. */ public signature: (Uint8Array|Buffer|string); /** Signature publicKeyId. */ public publicKeyId: string; /** * Creates a new Signature instance using the specified properties. * @param [properties] Properties to set * @returns Signature instance */ public static create(properties?: grafeas.v1.ISignature): grafeas.v1.Signature; /** * Encodes the specified Signature message. Does not implicitly {@link grafeas.v1.Signature.verify|verify} messages. * @param message Signature message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: grafeas.v1.ISignature, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Signature message, length delimited. Does not implicitly {@link grafeas.v1.Signature.verify|verify} messages. * @param message Signature message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: grafeas.v1.ISignature, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Signature message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Signature * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): grafeas.v1.Signature; /** * Decodes a Signature message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Signature * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): grafeas.v1.Signature; /** * Verifies a Signature message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a Signature message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Signature */ public static fromObject(object: { [k: string]: any }): grafeas.v1.Signature; /** * Creates a plain object from a Signature message. Also converts values to other types if specified. * @param message Signature * @param [options] Conversion options * @returns Plain object */ public static toObject(message: grafeas.v1.Signature, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Signature to JSON. * @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. */ interface IEnvelope { /** Envelope payload */ payload?: (Uint8Array|Buffer|string|null); /** Envelope payloadType */ payloadType?: (string|null); /** Envelope signatures */ signatures?: (grafeas.v1.IEnvelopeSignature[]|null); } /** Represents an Envelope. */ class Envelope implements IEnvelope { /** * Constructs a new Envelope. * @param [properties] Properties to set */ constructor(properties?: grafeas.v1.IEnvelope); /** Envelope payload. */ public payload: (Uint8Array|Buffer|string); /** Envelope payloadType. */ public payloadType: string; /** Envelope signatures. */ public signatures: grafeas.v1.IEnvelopeSignature[]; /** * Creates a new Envelope instance using the specified properties. * @param [properties] Properties to set * @returns Envelope instance */ public static create(properties?: grafeas.v1.IEnvelope): grafeas.v1.Envelope; /** * Encodes the specified Envelope message. Does not implicitly {@link grafeas.v1.Envelope.verify|verify} messages. * @param message Envelope message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: grafeas.v1.IEnvelope, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Envelope message, length delimited. Does not implicitly {@link grafeas.v1.Envelope.verify|verify} messages. * @param message Envelope message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: grafeas.v1.IEnvelope, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an Envelope message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Envelope * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): grafeas.v1.Envelope; /** * Decodes an Envelope message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Envelope * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): grafeas.v1.Envelope; /** * Verifies an Envelope message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates an Envelope message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Envelope */ public static fromObject(object: { [k: string]: any }): grafeas.v1.Envelope; /** * Creates a plain object from an Envelope message. Also converts values to other types if specified. * @param message Envelope * @param [options] Conversion options * @returns Plain object */ public static toObject(message: grafeas.v1.Envelope, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Envelope to JSON. * @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. */ interface IEnvelopeSignature { /** EnvelopeSignature sig */ sig?: (Uint8Array|Buffer|string|null); /** EnvelopeSignature keyid */ keyid?: (string|null); } /** Represents an EnvelopeSignature. */ class EnvelopeSignature implements IEnvelopeSignature { /** * Constructs a new EnvelopeSignature. * @param [properties] Properties to set */ constructor(properties?: grafeas.v1.IEnvelopeSignature); /** EnvelopeSignature sig. */ public sig: (Uint8Array|Buffer|string); /** EnvelopeSignature keyid. */ public keyid: string; /** * Creates a new EnvelopeSignature instance using the specified properties. * @param [properties] Properties to set * @returns EnvelopeSignature instance */ public static create(properties?: grafeas.v1.IEnvelopeSignature): grafeas.v1.EnvelopeSignature; /** * Encodes the specified EnvelopeSignature message. Does not implicitly {@link grafeas.v1.EnvelopeSignature.verify|verify} messages. * @param message EnvelopeSignature message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: grafeas.v1.IEnvelopeSignature, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified EnvelopeSignature message, length delimited. Does not implicitly {@link grafeas.v1.EnvelopeSignature.verify|verify} messages. * @param message EnvelopeSignature message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: grafeas.v1.IEnvelopeSignature, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an EnvelopeSignature message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns EnvelopeSignature * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): grafeas.v1.EnvelopeSignature; /** * Decodes an EnvelopeSignature message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns EnvelopeSignature * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): grafeas.v1.EnvelopeSignature; /** * Verifies an EnvelopeSignature message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates an EnvelopeSignature message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns EnvelopeSignature */ public static fromObject(object: { [k: string]: any }): grafeas.v1.EnvelopeSignature; /** * Creates a plain object from an EnvelopeSignature message. Also converts values to other types if specified. * @param message EnvelopeSignature * @param [options] Conversion options * @returns Plain object */ public static toObject(message: grafeas.v1.EnvelopeSignature, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this EnvelopeSignature to JSON. * @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. */ interface IFileLocation { /** FileLocation filePath */ filePath?: (string|null); /** FileLocation layerDetails */ layerDetails?: (grafeas.v1.ILayerDetails|null); } /** Represents a FileLocation. */ class FileLocation implements IFileLocation { /** * Constructs a new FileLocation. * @param [properties] Properties to set */ constructor(properties?: grafeas.v1.IFileLocation); /** FileLocation filePath. */ public filePath: string; /** FileLocation layerDetails. */ public layerDetails?: (grafeas.v1.ILayerDetails|null); /** * Creates a new FileLocation instance using the specified properties. * @param [properties] Properties to set * @returns FileLocation instance */ public static create(properties?: grafeas.v1.IFileLocation): grafeas.v1.FileLocation; /** * Encodes the specified FileLocation message. Does not implicitly {@link grafeas.v1.FileLocation.verify|verify} messages. * @param message FileLocation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: grafeas.v1.IFileLocation, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified FileLocation message, length delimited. Does not implicitly {@link grafeas.v1.FileLocation.verify|verify} messages. * @param message FileLocation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: grafeas.v1.IFileLocation, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a FileLocation message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns FileLocation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): grafeas.v1.FileLocation; /** * Decodes a FileLocation message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns FileLocation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): grafeas.v1.FileLocation; /** * Verifies a FileLocation message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a FileLocation message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns FileLocation */ public static fromObject(object: { [k: string]: any }): grafeas.v1.FileLocation; /** * Creates a plain object from a FileLocation message. Also converts values to other types if specified. * @param message FileLocation * @param [options] Conversion options * @returns Plain object */ public static toObject(message: grafeas.v1.FileLocation, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this FileLocation to JSON. * @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 BaseImage. */ interface IBaseImage { /** BaseImage name */ name?: (string|null); /** BaseImage repository */ repository?: (string|null); /** BaseImage layerCount */ layerCount?: (number|null); } /** Represents a BaseImage. */ class BaseImage implements IBaseImage { /** * Constructs a new BaseImage. * @param [properties] Properties to set */ constructor(properties?: grafeas.v1.IBaseImage); /** BaseImage name. */ public name: string; /** BaseImage repository. */ public repository: string; /** BaseImage layerCount. */ public layerCount: number; /** * Creates a new BaseImage instance using the specified properties. * @param [properties] Properties to set * @returns BaseImage instance */ public static create(properties?: grafeas.v1.IBaseImage): grafeas.v1.BaseImage; /** * Encodes the specified BaseImage message. Does not implicitly {@link grafeas.v1.BaseImage.verify|verify} messages. * @param message BaseImage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: grafeas.v1.IBaseImage, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified BaseImage message, length delimited. Does not implicitly {@link grafeas.v1.BaseImage.verify|verify} messages. * @param message BaseImage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: grafeas.v1.IBaseImage, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a BaseImage message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns BaseImage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): grafeas.v1.BaseImage; /** * Decodes a BaseImage message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns BaseImage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): grafeas.v1.BaseImage; /** * Verifies a BaseImage message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a BaseImage message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns BaseImage */ public static fromObject(object: { [k: string]: any }): grafeas.v1.BaseImage; /** * Creates a plain object from a BaseImage message. Also converts values to other types if specified. * @param message BaseImage * @param [options] Conversion options * @returns Plain object */ public static toObject(message: grafeas.v1.BaseImage, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this BaseImage to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for BaseImage * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a LayerDetails. */ interface ILayerDetails { /** LayerDetails index */ index?: (number|null); /** LayerDetails diffId */ diffId?: (string|null); /** LayerDetails chainId */ chainId?: (string|null); /** LayerDetails command */ command?: (string|null); /** LayerDetails baseImages */ baseImages?: (grafeas.v1.IBaseImage[]|null); } /** Represents a LayerDetails. */ class LayerDetails implements ILayerDetails { /** * Constructs a new LayerDetails. * @param [properties] Properties to set */ constructor(properties?: grafeas.v1.ILayerDetails); /** LayerDetails index. */ public index: number; /** LayerDetails diffId. */ public diffId: string; /** LayerDetails chainId. */ public chainId: string; /** LayerDetails command. */ public command: string; /** LayerDetails baseImages. */ public baseImages: grafeas.v1.IBaseImage[]; /** * Creates a new LayerDetails instance using the specified properties. * @param [properties] Properties to set * @returns LayerDetails instance */ public static create(properties?: grafeas.v1.ILayerDetails): grafeas.v1.LayerDetails; /** * Encodes the specified LayerDetails message. Does not implicitly {@link grafeas.v1.LayerDetails.verify|verify} messages. * @param message LayerDetails message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: grafeas.v1.ILayerDetails, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified LayerDetails message, length delimited. Does not implicitly {@link grafeas.v1.LayerDetails.verify|verify} messages. * @param message LayerDetails message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: grafeas.v1.ILayerDetails, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a LayerDetails message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns LayerDetails * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): grafeas.v1.LayerDetails;