@google-cloud/containeranalysis 6.2.0 → 6.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -328,7 +328,7 @@ export namespace grafeas {
328
328
  interface IAttestationOccurrence {
329
329
 
330
330
  /** AttestationOccurrence serializedPayload */
331
- serializedPayload?: (Uint8Array|string|null);
331
+ serializedPayload?: (Uint8Array|Buffer|string|null);
332
332
 
333
333
  /** AttestationOccurrence signatures */
334
334
  signatures?: (grafeas.v1.ISignature[]|null);
@@ -347,7 +347,7 @@ export namespace grafeas {
347
347
  constructor(properties?: grafeas.v1.IAttestationOccurrence);
348
348
 
349
349
  /** AttestationOccurrence serializedPayload. */
350
- public serializedPayload: (Uint8Array|string);
350
+ public serializedPayload: (Uint8Array|Buffer|string);
351
351
 
352
352
  /** AttestationOccurrence signatures. */
353
353
  public signatures: grafeas.v1.ISignature[];
@@ -447,7 +447,8 @@ export namespace grafeas {
447
447
  COMPLIANCE = 9,
448
448
  DSSE_ATTESTATION = 10,
449
449
  VULNERABILITY_ASSESSMENT = 11,
450
- SBOM_REFERENCE = 12
450
+ SBOM_REFERENCE = 12,
451
+ SECRET = 13
451
452
  }
452
453
 
453
454
  /** Properties of a RelatedUrl. */
@@ -557,7 +558,7 @@ export namespace grafeas {
557
558
  interface ISignature {
558
559
 
559
560
  /** Signature signature */
560
- signature?: (Uint8Array|string|null);
561
+ signature?: (Uint8Array|Buffer|string|null);
561
562
 
562
563
  /** Signature publicKeyId */
563
564
  publicKeyId?: (string|null);
@@ -573,7 +574,7 @@ export namespace grafeas {
573
574
  constructor(properties?: grafeas.v1.ISignature);
574
575
 
575
576
  /** Signature signature. */
576
- public signature: (Uint8Array|string);
577
+ public signature: (Uint8Array|Buffer|string);
577
578
 
578
579
  /** Signature publicKeyId. */
579
580
  public publicKeyId: string;
@@ -660,7 +661,7 @@ export namespace grafeas {
660
661
  interface IEnvelope {
661
662
 
662
663
  /** Envelope payload */
663
- payload?: (Uint8Array|string|null);
664
+ payload?: (Uint8Array|Buffer|string|null);
664
665
 
665
666
  /** Envelope payloadType */
666
667
  payloadType?: (string|null);
@@ -679,7 +680,7 @@ export namespace grafeas {
679
680
  constructor(properties?: grafeas.v1.IEnvelope);
680
681
 
681
682
  /** Envelope payload. */
682
- public payload: (Uint8Array|string);
683
+ public payload: (Uint8Array|Buffer|string);
683
684
 
684
685
  /** Envelope payloadType. */
685
686
  public payloadType: string;
@@ -769,7 +770,7 @@ export namespace grafeas {
769
770
  interface IEnvelopeSignature {
770
771
 
771
772
  /** EnvelopeSignature sig */
772
- sig?: (Uint8Array|string|null);
773
+ sig?: (Uint8Array|Buffer|string|null);
773
774
 
774
775
  /** EnvelopeSignature keyid */
775
776
  keyid?: (string|null);
@@ -785,7 +786,7 @@ export namespace grafeas {
785
786
  constructor(properties?: grafeas.v1.IEnvelopeSignature);
786
787
 
787
788
  /** EnvelopeSignature sig. */
788
- public sig: (Uint8Array|string);
789
+ public sig: (Uint8Array|Buffer|string);
789
790
 
790
791
  /** EnvelopeSignature keyid. */
791
792
  public keyid: string;
@@ -873,6 +874,9 @@ export namespace grafeas {
873
874
 
874
875
  /** FileLocation filePath */
875
876
  filePath?: (string|null);
877
+
878
+ /** FileLocation layerDetails */
879
+ layerDetails?: (grafeas.v1.ILayerDetails|null);
876
880
  }
877
881
 
878
882
  /** Represents a FileLocation. */
@@ -887,6 +891,9 @@ export namespace grafeas {
887
891
  /** FileLocation filePath. */
888
892
  public filePath: string;
889
893
 
894
+ /** FileLocation layerDetails. */
895
+ public layerDetails?: (grafeas.v1.ILayerDetails|null);
896
+
890
897
  /**
891
898
  * Creates a new FileLocation instance using the specified properties.
892
899
  * @param [properties] Properties to set
@@ -965,6 +972,236 @@ export namespace grafeas {
965
972
  public static getTypeUrl(typeUrlPrefix?: string): string;
966
973
  }
967
974
 
975
+ /** Properties of a BaseImage. */
976
+ interface IBaseImage {
977
+
978
+ /** BaseImage name */
979
+ name?: (string|null);
980
+
981
+ /** BaseImage repository */
982
+ repository?: (string|null);
983
+
984
+ /** BaseImage layerCount */
985
+ layerCount?: (number|null);
986
+ }
987
+
988
+ /** Represents a BaseImage. */
989
+ class BaseImage implements IBaseImage {
990
+
991
+ /**
992
+ * Constructs a new BaseImage.
993
+ * @param [properties] Properties to set
994
+ */
995
+ constructor(properties?: grafeas.v1.IBaseImage);
996
+
997
+ /** BaseImage name. */
998
+ public name: string;
999
+
1000
+ /** BaseImage repository. */
1001
+ public repository: string;
1002
+
1003
+ /** BaseImage layerCount. */
1004
+ public layerCount: number;
1005
+
1006
+ /**
1007
+ * Creates a new BaseImage instance using the specified properties.
1008
+ * @param [properties] Properties to set
1009
+ * @returns BaseImage instance
1010
+ */
1011
+ public static create(properties?: grafeas.v1.IBaseImage): grafeas.v1.BaseImage;
1012
+
1013
+ /**
1014
+ * Encodes the specified BaseImage message. Does not implicitly {@link grafeas.v1.BaseImage.verify|verify} messages.
1015
+ * @param message BaseImage message or plain object to encode
1016
+ * @param [writer] Writer to encode to
1017
+ * @returns Writer
1018
+ */
1019
+ public static encode(message: grafeas.v1.IBaseImage, writer?: $protobuf.Writer): $protobuf.Writer;
1020
+
1021
+ /**
1022
+ * Encodes the specified BaseImage message, length delimited. Does not implicitly {@link grafeas.v1.BaseImage.verify|verify} messages.
1023
+ * @param message BaseImage message or plain object to encode
1024
+ * @param [writer] Writer to encode to
1025
+ * @returns Writer
1026
+ */
1027
+ public static encodeDelimited(message: grafeas.v1.IBaseImage, writer?: $protobuf.Writer): $protobuf.Writer;
1028
+
1029
+ /**
1030
+ * Decodes a BaseImage message from the specified reader or buffer.
1031
+ * @param reader Reader or buffer to decode from
1032
+ * @param [length] Message length if known beforehand
1033
+ * @returns BaseImage
1034
+ * @throws {Error} If the payload is not a reader or valid buffer
1035
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1036
+ */
1037
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): grafeas.v1.BaseImage;
1038
+
1039
+ /**
1040
+ * Decodes a BaseImage message from the specified reader or buffer, length delimited.
1041
+ * @param reader Reader or buffer to decode from
1042
+ * @returns BaseImage
1043
+ * @throws {Error} If the payload is not a reader or valid buffer
1044
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1045
+ */
1046
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): grafeas.v1.BaseImage;
1047
+
1048
+ /**
1049
+ * Verifies a BaseImage message.
1050
+ * @param message Plain object to verify
1051
+ * @returns `null` if valid, otherwise the reason why it is not
1052
+ */
1053
+ public static verify(message: { [k: string]: any }): (string|null);
1054
+
1055
+ /**
1056
+ * Creates a BaseImage message from a plain object. Also converts values to their respective internal types.
1057
+ * @param object Plain object
1058
+ * @returns BaseImage
1059
+ */
1060
+ public static fromObject(object: { [k: string]: any }): grafeas.v1.BaseImage;
1061
+
1062
+ /**
1063
+ * Creates a plain object from a BaseImage message. Also converts values to other types if specified.
1064
+ * @param message BaseImage
1065
+ * @param [options] Conversion options
1066
+ * @returns Plain object
1067
+ */
1068
+ public static toObject(message: grafeas.v1.BaseImage, options?: $protobuf.IConversionOptions): { [k: string]: any };
1069
+
1070
+ /**
1071
+ * Converts this BaseImage to JSON.
1072
+ * @returns JSON object
1073
+ */
1074
+ public toJSON(): { [k: string]: any };
1075
+
1076
+ /**
1077
+ * Gets the default type url for BaseImage
1078
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1079
+ * @returns The default type url
1080
+ */
1081
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1082
+ }
1083
+
1084
+ /** Properties of a LayerDetails. */
1085
+ interface ILayerDetails {
1086
+
1087
+ /** LayerDetails index */
1088
+ index?: (number|null);
1089
+
1090
+ /** LayerDetails diffId */
1091
+ diffId?: (string|null);
1092
+
1093
+ /** LayerDetails chainId */
1094
+ chainId?: (string|null);
1095
+
1096
+ /** LayerDetails command */
1097
+ command?: (string|null);
1098
+
1099
+ /** LayerDetails baseImages */
1100
+ baseImages?: (grafeas.v1.IBaseImage[]|null);
1101
+ }
1102
+
1103
+ /** Represents a LayerDetails. */
1104
+ class LayerDetails implements ILayerDetails {
1105
+
1106
+ /**
1107
+ * Constructs a new LayerDetails.
1108
+ * @param [properties] Properties to set
1109
+ */
1110
+ constructor(properties?: grafeas.v1.ILayerDetails);
1111
+
1112
+ /** LayerDetails index. */
1113
+ public index: number;
1114
+
1115
+ /** LayerDetails diffId. */
1116
+ public diffId: string;
1117
+
1118
+ /** LayerDetails chainId. */
1119
+ public chainId: string;
1120
+
1121
+ /** LayerDetails command. */
1122
+ public command: string;
1123
+
1124
+ /** LayerDetails baseImages. */
1125
+ public baseImages: grafeas.v1.IBaseImage[];
1126
+
1127
+ /**
1128
+ * Creates a new LayerDetails instance using the specified properties.
1129
+ * @param [properties] Properties to set
1130
+ * @returns LayerDetails instance
1131
+ */
1132
+ public static create(properties?: grafeas.v1.ILayerDetails): grafeas.v1.LayerDetails;
1133
+
1134
+ /**
1135
+ * Encodes the specified LayerDetails message. Does not implicitly {@link grafeas.v1.LayerDetails.verify|verify} messages.
1136
+ * @param message LayerDetails message or plain object to encode
1137
+ * @param [writer] Writer to encode to
1138
+ * @returns Writer
1139
+ */
1140
+ public static encode(message: grafeas.v1.ILayerDetails, writer?: $protobuf.Writer): $protobuf.Writer;
1141
+
1142
+ /**
1143
+ * Encodes the specified LayerDetails message, length delimited. Does not implicitly {@link grafeas.v1.LayerDetails.verify|verify} messages.
1144
+ * @param message LayerDetails message or plain object to encode
1145
+ * @param [writer] Writer to encode to
1146
+ * @returns Writer
1147
+ */
1148
+ public static encodeDelimited(message: grafeas.v1.ILayerDetails, writer?: $protobuf.Writer): $protobuf.Writer;
1149
+
1150
+ /**
1151
+ * Decodes a LayerDetails message from the specified reader or buffer.
1152
+ * @param reader Reader or buffer to decode from
1153
+ * @param [length] Message length if known beforehand
1154
+ * @returns LayerDetails
1155
+ * @throws {Error} If the payload is not a reader or valid buffer
1156
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1157
+ */
1158
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): grafeas.v1.LayerDetails;
1159
+
1160
+ /**
1161
+ * Decodes a LayerDetails message from the specified reader or buffer, length delimited.
1162
+ * @param reader Reader or buffer to decode from
1163
+ * @returns LayerDetails
1164
+ * @throws {Error} If the payload is not a reader or valid buffer
1165
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1166
+ */
1167
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): grafeas.v1.LayerDetails;
1168
+
1169
+ /**
1170
+ * Verifies a LayerDetails message.
1171
+ * @param message Plain object to verify
1172
+ * @returns `null` if valid, otherwise the reason why it is not
1173
+ */
1174
+ public static verify(message: { [k: string]: any }): (string|null);
1175
+
1176
+ /**
1177
+ * Creates a LayerDetails message from a plain object. Also converts values to their respective internal types.
1178
+ * @param object Plain object
1179
+ * @returns LayerDetails
1180
+ */
1181
+ public static fromObject(object: { [k: string]: any }): grafeas.v1.LayerDetails;
1182
+
1183
+ /**
1184
+ * Creates a plain object from a LayerDetails message. Also converts values to other types if specified.
1185
+ * @param message LayerDetails
1186
+ * @param [options] Conversion options
1187
+ * @returns Plain object
1188
+ */
1189
+ public static toObject(message: grafeas.v1.LayerDetails, options?: $protobuf.IConversionOptions): { [k: string]: any };
1190
+
1191
+ /**
1192
+ * Converts this LayerDetails to JSON.
1193
+ * @returns JSON object
1194
+ */
1195
+ public toJSON(): { [k: string]: any };
1196
+
1197
+ /**
1198
+ * Gets the default type url for LayerDetails
1199
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1200
+ * @returns The default type url
1201
+ */
1202
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1203
+ }
1204
+
968
1205
  /** Properties of a License. */
969
1206
  interface ILicense {
970
1207
 
@@ -1075,7 +1312,7 @@ export namespace grafeas {
1075
1312
  algo?: (string|null);
1076
1313
 
1077
1314
  /** Digest digestBytes */
1078
- digestBytes?: (Uint8Array|string|null);
1315
+ digestBytes?: (Uint8Array|Buffer|string|null);
1079
1316
  }
1080
1317
 
1081
1318
  /** Represents a Digest. */
@@ -1091,7 +1328,7 @@ export namespace grafeas {
1091
1328
  public algo: string;
1092
1329
 
1093
1330
  /** Digest digestBytes. */
1094
- public digestBytes: (Uint8Array|string);
1331
+ public digestBytes: (Uint8Array|Buffer|string);
1095
1332
 
1096
1333
  /**
1097
1334
  * Creates a new Digest instance using the specified properties.
@@ -2533,7 +2770,7 @@ export namespace grafeas {
2533
2770
  digest?: ({ [k: string]: string }|null);
2534
2771
 
2535
2772
  /** ResourceDescriptor content */
2536
- content?: (Uint8Array|string|null);
2773
+ content?: (Uint8Array|Buffer|string|null);
2537
2774
 
2538
2775
  /** ResourceDescriptor downloadLocation */
2539
2776
  downloadLocation?: (string|null);
@@ -2564,7 +2801,7 @@ export namespace grafeas {
2564
2801
  public digest: { [k: string]: string };
2565
2802
 
2566
2803
  /** ResourceDescriptor content. */
2567
- public content: (Uint8Array|string);
2804
+ public content: (Uint8Array|Buffer|string);
2568
2805
 
2569
2806
  /** ResourceDescriptor downloadLocation. */
2570
2807
  public downloadLocation: string;
@@ -4816,7 +5053,7 @@ export namespace grafeas {
4816
5053
  type?: (string|null);
4817
5054
 
4818
5055
  /** Hash value */
4819
- value?: (Uint8Array|string|null);
5056
+ value?: (Uint8Array|Buffer|string|null);
4820
5057
  }
4821
5058
 
4822
5059
  /** Represents a Hash. */
@@ -4832,7 +5069,7 @@ export namespace grafeas {
4832
5069
  public type: string;
4833
5070
 
4834
5071
  /** Hash value. */
4835
- public value: (Uint8Array|string);
5072
+ public value: (Uint8Array|Buffer|string);
4836
5073
 
4837
5074
  /**
4838
5075
  * Creates a new Hash instance using the specified properties.
@@ -5944,7 +6181,7 @@ export namespace grafeas {
5944
6181
  cisBenchmark?: (grafeas.v1.ComplianceNote.ICisBenchmark|null);
5945
6182
 
5946
6183
  /** ComplianceNote scanInstructions */
5947
- scanInstructions?: (Uint8Array|string|null);
6184
+ scanInstructions?: (Uint8Array|Buffer|string|null);
5948
6185
 
5949
6186
  /** ComplianceNote impact */
5950
6187
  impact?: (string|null);
@@ -5978,7 +6215,7 @@ export namespace grafeas {
5978
6215
  public cisBenchmark?: (grafeas.v1.ComplianceNote.ICisBenchmark|null);
5979
6216
 
5980
6217
  /** ComplianceNote scanInstructions. */
5981
- public scanInstructions: (Uint8Array|string);
6218
+ public scanInstructions: (Uint8Array|Buffer|string);
5982
6219
 
5983
6220
  /** ComplianceNote impact. */
5984
6221
  public impact?: (string|null);
@@ -8453,6 +8690,9 @@ export namespace grafeas {
8453
8690
  /** Occurrence sbomReference */
8454
8691
  sbomReference?: (grafeas.v1.ISBOMReferenceOccurrence|null);
8455
8692
 
8693
+ /** Occurrence secret */
8694
+ secret?: (grafeas.v1.ISecretOccurrence|null);
8695
+
8456
8696
  /** Occurrence envelope */
8457
8697
  envelope?: (grafeas.v1.IEnvelope|null);
8458
8698
  }
@@ -8520,11 +8760,14 @@ export namespace grafeas {
8520
8760
  /** Occurrence sbomReference. */
8521
8761
  public sbomReference?: (grafeas.v1.ISBOMReferenceOccurrence|null);
8522
8762
 
8763
+ /** Occurrence secret. */
8764
+ public secret?: (grafeas.v1.ISecretOccurrence|null);
8765
+
8523
8766
  /** Occurrence envelope. */
8524
8767
  public envelope?: (grafeas.v1.IEnvelope|null);
8525
8768
 
8526
8769
  /** Occurrence details. */
8527
- public details?: ("vulnerability"|"build"|"image"|"package"|"deployment"|"discovery"|"attestation"|"upgrade"|"compliance"|"dsseAttestation"|"sbomReference");
8770
+ public details?: ("vulnerability"|"build"|"image"|"package"|"deployment"|"discovery"|"attestation"|"upgrade"|"compliance"|"dsseAttestation"|"sbomReference"|"secret");
8528
8771
 
8529
8772
  /**
8530
8773
  * Creates a new Occurrence instance using the specified properties.
@@ -8669,6 +8912,9 @@ export namespace grafeas {
8669
8912
 
8670
8913
  /** Note sbomReference */
8671
8914
  sbomReference?: (grafeas.v1.ISBOMReferenceNote|null);
8915
+
8916
+ /** Note secret */
8917
+ secret?: (grafeas.v1.ISecretNote|null);
8672
8918
  }
8673
8919
 
8674
8920
  /** Represents a Note. */
@@ -8743,8 +8989,11 @@ export namespace grafeas {
8743
8989
  /** Note sbomReference. */
8744
8990
  public sbomReference?: (grafeas.v1.ISBOMReferenceNote|null);
8745
8991
 
8992
+ /** Note secret. */
8993
+ public secret?: (grafeas.v1.ISecretNote|null);
8994
+
8746
8995
  /** Note type. */
8747
- public type?: ("vulnerability"|"build"|"image"|"package"|"deployment"|"discovery"|"attestation"|"upgrade"|"compliance"|"dsseAttestation"|"vulnerabilityAssessment"|"sbomReference");
8996
+ public type?: ("vulnerability"|"build"|"image"|"package"|"deployment"|"discovery"|"attestation"|"upgrade"|"compliance"|"dsseAttestation"|"vulnerabilityAssessment"|"sbomReference"|"secret");
8748
8997
 
8749
8998
  /**
8750
8999
  * Creates a new Note instance using the specified properties.
@@ -12336,6 +12585,433 @@ export namespace grafeas {
12336
12585
  public static getTypeUrl(typeUrlPrefix?: string): string;
12337
12586
  }
12338
12587
 
12588
+ /** Properties of a SecretNote. */
12589
+ interface ISecretNote {
12590
+ }
12591
+
12592
+ /** Represents a SecretNote. */
12593
+ class SecretNote implements ISecretNote {
12594
+
12595
+ /**
12596
+ * Constructs a new SecretNote.
12597
+ * @param [properties] Properties to set
12598
+ */
12599
+ constructor(properties?: grafeas.v1.ISecretNote);
12600
+
12601
+ /**
12602
+ * Creates a new SecretNote instance using the specified properties.
12603
+ * @param [properties] Properties to set
12604
+ * @returns SecretNote instance
12605
+ */
12606
+ public static create(properties?: grafeas.v1.ISecretNote): grafeas.v1.SecretNote;
12607
+
12608
+ /**
12609
+ * Encodes the specified SecretNote message. Does not implicitly {@link grafeas.v1.SecretNote.verify|verify} messages.
12610
+ * @param message SecretNote message or plain object to encode
12611
+ * @param [writer] Writer to encode to
12612
+ * @returns Writer
12613
+ */
12614
+ public static encode(message: grafeas.v1.ISecretNote, writer?: $protobuf.Writer): $protobuf.Writer;
12615
+
12616
+ /**
12617
+ * Encodes the specified SecretNote message, length delimited. Does not implicitly {@link grafeas.v1.SecretNote.verify|verify} messages.
12618
+ * @param message SecretNote message or plain object to encode
12619
+ * @param [writer] Writer to encode to
12620
+ * @returns Writer
12621
+ */
12622
+ public static encodeDelimited(message: grafeas.v1.ISecretNote, writer?: $protobuf.Writer): $protobuf.Writer;
12623
+
12624
+ /**
12625
+ * Decodes a SecretNote message from the specified reader or buffer.
12626
+ * @param reader Reader or buffer to decode from
12627
+ * @param [length] Message length if known beforehand
12628
+ * @returns SecretNote
12629
+ * @throws {Error} If the payload is not a reader or valid buffer
12630
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
12631
+ */
12632
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): grafeas.v1.SecretNote;
12633
+
12634
+ /**
12635
+ * Decodes a SecretNote message from the specified reader or buffer, length delimited.
12636
+ * @param reader Reader or buffer to decode from
12637
+ * @returns SecretNote
12638
+ * @throws {Error} If the payload is not a reader or valid buffer
12639
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
12640
+ */
12641
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): grafeas.v1.SecretNote;
12642
+
12643
+ /**
12644
+ * Verifies a SecretNote message.
12645
+ * @param message Plain object to verify
12646
+ * @returns `null` if valid, otherwise the reason why it is not
12647
+ */
12648
+ public static verify(message: { [k: string]: any }): (string|null);
12649
+
12650
+ /**
12651
+ * Creates a SecretNote message from a plain object. Also converts values to their respective internal types.
12652
+ * @param object Plain object
12653
+ * @returns SecretNote
12654
+ */
12655
+ public static fromObject(object: { [k: string]: any }): grafeas.v1.SecretNote;
12656
+
12657
+ /**
12658
+ * Creates a plain object from a SecretNote message. Also converts values to other types if specified.
12659
+ * @param message SecretNote
12660
+ * @param [options] Conversion options
12661
+ * @returns Plain object
12662
+ */
12663
+ public static toObject(message: grafeas.v1.SecretNote, options?: $protobuf.IConversionOptions): { [k: string]: any };
12664
+
12665
+ /**
12666
+ * Converts this SecretNote to JSON.
12667
+ * @returns JSON object
12668
+ */
12669
+ public toJSON(): { [k: string]: any };
12670
+
12671
+ /**
12672
+ * Gets the default type url for SecretNote
12673
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
12674
+ * @returns The default type url
12675
+ */
12676
+ public static getTypeUrl(typeUrlPrefix?: string): string;
12677
+ }
12678
+
12679
+ /** Properties of a SecretOccurrence. */
12680
+ interface ISecretOccurrence {
12681
+
12682
+ /** SecretOccurrence kind */
12683
+ kind?: (grafeas.v1.SecretKind|keyof typeof grafeas.v1.SecretKind|null);
12684
+
12685
+ /** SecretOccurrence locations */
12686
+ locations?: (grafeas.v1.ISecretLocation[]|null);
12687
+
12688
+ /** SecretOccurrence statuses */
12689
+ statuses?: (grafeas.v1.ISecretStatus[]|null);
12690
+ }
12691
+
12692
+ /** Represents a SecretOccurrence. */
12693
+ class SecretOccurrence implements ISecretOccurrence {
12694
+
12695
+ /**
12696
+ * Constructs a new SecretOccurrence.
12697
+ * @param [properties] Properties to set
12698
+ */
12699
+ constructor(properties?: grafeas.v1.ISecretOccurrence);
12700
+
12701
+ /** SecretOccurrence kind. */
12702
+ public kind: (grafeas.v1.SecretKind|keyof typeof grafeas.v1.SecretKind);
12703
+
12704
+ /** SecretOccurrence locations. */
12705
+ public locations: grafeas.v1.ISecretLocation[];
12706
+
12707
+ /** SecretOccurrence statuses. */
12708
+ public statuses: grafeas.v1.ISecretStatus[];
12709
+
12710
+ /**
12711
+ * Creates a new SecretOccurrence instance using the specified properties.
12712
+ * @param [properties] Properties to set
12713
+ * @returns SecretOccurrence instance
12714
+ */
12715
+ public static create(properties?: grafeas.v1.ISecretOccurrence): grafeas.v1.SecretOccurrence;
12716
+
12717
+ /**
12718
+ * Encodes the specified SecretOccurrence message. Does not implicitly {@link grafeas.v1.SecretOccurrence.verify|verify} messages.
12719
+ * @param message SecretOccurrence message or plain object to encode
12720
+ * @param [writer] Writer to encode to
12721
+ * @returns Writer
12722
+ */
12723
+ public static encode(message: grafeas.v1.ISecretOccurrence, writer?: $protobuf.Writer): $protobuf.Writer;
12724
+
12725
+ /**
12726
+ * Encodes the specified SecretOccurrence message, length delimited. Does not implicitly {@link grafeas.v1.SecretOccurrence.verify|verify} messages.
12727
+ * @param message SecretOccurrence message or plain object to encode
12728
+ * @param [writer] Writer to encode to
12729
+ * @returns Writer
12730
+ */
12731
+ public static encodeDelimited(message: grafeas.v1.ISecretOccurrence, writer?: $protobuf.Writer): $protobuf.Writer;
12732
+
12733
+ /**
12734
+ * Decodes a SecretOccurrence message from the specified reader or buffer.
12735
+ * @param reader Reader or buffer to decode from
12736
+ * @param [length] Message length if known beforehand
12737
+ * @returns SecretOccurrence
12738
+ * @throws {Error} If the payload is not a reader or valid buffer
12739
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
12740
+ */
12741
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): grafeas.v1.SecretOccurrence;
12742
+
12743
+ /**
12744
+ * Decodes a SecretOccurrence message from the specified reader or buffer, length delimited.
12745
+ * @param reader Reader or buffer to decode from
12746
+ * @returns SecretOccurrence
12747
+ * @throws {Error} If the payload is not a reader or valid buffer
12748
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
12749
+ */
12750
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): grafeas.v1.SecretOccurrence;
12751
+
12752
+ /**
12753
+ * Verifies a SecretOccurrence message.
12754
+ * @param message Plain object to verify
12755
+ * @returns `null` if valid, otherwise the reason why it is not
12756
+ */
12757
+ public static verify(message: { [k: string]: any }): (string|null);
12758
+
12759
+ /**
12760
+ * Creates a SecretOccurrence message from a plain object. Also converts values to their respective internal types.
12761
+ * @param object Plain object
12762
+ * @returns SecretOccurrence
12763
+ */
12764
+ public static fromObject(object: { [k: string]: any }): grafeas.v1.SecretOccurrence;
12765
+
12766
+ /**
12767
+ * Creates a plain object from a SecretOccurrence message. Also converts values to other types if specified.
12768
+ * @param message SecretOccurrence
12769
+ * @param [options] Conversion options
12770
+ * @returns Plain object
12771
+ */
12772
+ public static toObject(message: grafeas.v1.SecretOccurrence, options?: $protobuf.IConversionOptions): { [k: string]: any };
12773
+
12774
+ /**
12775
+ * Converts this SecretOccurrence to JSON.
12776
+ * @returns JSON object
12777
+ */
12778
+ public toJSON(): { [k: string]: any };
12779
+
12780
+ /**
12781
+ * Gets the default type url for SecretOccurrence
12782
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
12783
+ * @returns The default type url
12784
+ */
12785
+ public static getTypeUrl(typeUrlPrefix?: string): string;
12786
+ }
12787
+
12788
+ /** Properties of a SecretLocation. */
12789
+ interface ISecretLocation {
12790
+
12791
+ /** SecretLocation fileLocation */
12792
+ fileLocation?: (grafeas.v1.IFileLocation|null);
12793
+ }
12794
+
12795
+ /** Represents a SecretLocation. */
12796
+ class SecretLocation implements ISecretLocation {
12797
+
12798
+ /**
12799
+ * Constructs a new SecretLocation.
12800
+ * @param [properties] Properties to set
12801
+ */
12802
+ constructor(properties?: grafeas.v1.ISecretLocation);
12803
+
12804
+ /** SecretLocation fileLocation. */
12805
+ public fileLocation?: (grafeas.v1.IFileLocation|null);
12806
+
12807
+ /** SecretLocation location. */
12808
+ public location?: "fileLocation";
12809
+
12810
+ /**
12811
+ * Creates a new SecretLocation instance using the specified properties.
12812
+ * @param [properties] Properties to set
12813
+ * @returns SecretLocation instance
12814
+ */
12815
+ public static create(properties?: grafeas.v1.ISecretLocation): grafeas.v1.SecretLocation;
12816
+
12817
+ /**
12818
+ * Encodes the specified SecretLocation message. Does not implicitly {@link grafeas.v1.SecretLocation.verify|verify} messages.
12819
+ * @param message SecretLocation message or plain object to encode
12820
+ * @param [writer] Writer to encode to
12821
+ * @returns Writer
12822
+ */
12823
+ public static encode(message: grafeas.v1.ISecretLocation, writer?: $protobuf.Writer): $protobuf.Writer;
12824
+
12825
+ /**
12826
+ * Encodes the specified SecretLocation message, length delimited. Does not implicitly {@link grafeas.v1.SecretLocation.verify|verify} messages.
12827
+ * @param message SecretLocation message or plain object to encode
12828
+ * @param [writer] Writer to encode to
12829
+ * @returns Writer
12830
+ */
12831
+ public static encodeDelimited(message: grafeas.v1.ISecretLocation, writer?: $protobuf.Writer): $protobuf.Writer;
12832
+
12833
+ /**
12834
+ * Decodes a SecretLocation message from the specified reader or buffer.
12835
+ * @param reader Reader or buffer to decode from
12836
+ * @param [length] Message length if known beforehand
12837
+ * @returns SecretLocation
12838
+ * @throws {Error} If the payload is not a reader or valid buffer
12839
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
12840
+ */
12841
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): grafeas.v1.SecretLocation;
12842
+
12843
+ /**
12844
+ * Decodes a SecretLocation message from the specified reader or buffer, length delimited.
12845
+ * @param reader Reader or buffer to decode from
12846
+ * @returns SecretLocation
12847
+ * @throws {Error} If the payload is not a reader or valid buffer
12848
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
12849
+ */
12850
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): grafeas.v1.SecretLocation;
12851
+
12852
+ /**
12853
+ * Verifies a SecretLocation message.
12854
+ * @param message Plain object to verify
12855
+ * @returns `null` if valid, otherwise the reason why it is not
12856
+ */
12857
+ public static verify(message: { [k: string]: any }): (string|null);
12858
+
12859
+ /**
12860
+ * Creates a SecretLocation message from a plain object. Also converts values to their respective internal types.
12861
+ * @param object Plain object
12862
+ * @returns SecretLocation
12863
+ */
12864
+ public static fromObject(object: { [k: string]: any }): grafeas.v1.SecretLocation;
12865
+
12866
+ /**
12867
+ * Creates a plain object from a SecretLocation message. Also converts values to other types if specified.
12868
+ * @param message SecretLocation
12869
+ * @param [options] Conversion options
12870
+ * @returns Plain object
12871
+ */
12872
+ public static toObject(message: grafeas.v1.SecretLocation, options?: $protobuf.IConversionOptions): { [k: string]: any };
12873
+
12874
+ /**
12875
+ * Converts this SecretLocation to JSON.
12876
+ * @returns JSON object
12877
+ */
12878
+ public toJSON(): { [k: string]: any };
12879
+
12880
+ /**
12881
+ * Gets the default type url for SecretLocation
12882
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
12883
+ * @returns The default type url
12884
+ */
12885
+ public static getTypeUrl(typeUrlPrefix?: string): string;
12886
+ }
12887
+
12888
+ /** Properties of a SecretStatus. */
12889
+ interface ISecretStatus {
12890
+
12891
+ /** SecretStatus status */
12892
+ status?: (grafeas.v1.SecretStatus.Status|keyof typeof grafeas.v1.SecretStatus.Status|null);
12893
+
12894
+ /** SecretStatus updateTime */
12895
+ updateTime?: (google.protobuf.ITimestamp|null);
12896
+
12897
+ /** SecretStatus message */
12898
+ message?: (string|null);
12899
+ }
12900
+
12901
+ /** Represents a SecretStatus. */
12902
+ class SecretStatus implements ISecretStatus {
12903
+
12904
+ /**
12905
+ * Constructs a new SecretStatus.
12906
+ * @param [properties] Properties to set
12907
+ */
12908
+ constructor(properties?: grafeas.v1.ISecretStatus);
12909
+
12910
+ /** SecretStatus status. */
12911
+ public status: (grafeas.v1.SecretStatus.Status|keyof typeof grafeas.v1.SecretStatus.Status);
12912
+
12913
+ /** SecretStatus updateTime. */
12914
+ public updateTime?: (google.protobuf.ITimestamp|null);
12915
+
12916
+ /** SecretStatus message. */
12917
+ public message: string;
12918
+
12919
+ /**
12920
+ * Creates a new SecretStatus instance using the specified properties.
12921
+ * @param [properties] Properties to set
12922
+ * @returns SecretStatus instance
12923
+ */
12924
+ public static create(properties?: grafeas.v1.ISecretStatus): grafeas.v1.SecretStatus;
12925
+
12926
+ /**
12927
+ * Encodes the specified SecretStatus message. Does not implicitly {@link grafeas.v1.SecretStatus.verify|verify} messages.
12928
+ * @param message SecretStatus message or plain object to encode
12929
+ * @param [writer] Writer to encode to
12930
+ * @returns Writer
12931
+ */
12932
+ public static encode(message: grafeas.v1.ISecretStatus, writer?: $protobuf.Writer): $protobuf.Writer;
12933
+
12934
+ /**
12935
+ * Encodes the specified SecretStatus message, length delimited. Does not implicitly {@link grafeas.v1.SecretStatus.verify|verify} messages.
12936
+ * @param message SecretStatus message or plain object to encode
12937
+ * @param [writer] Writer to encode to
12938
+ * @returns Writer
12939
+ */
12940
+ public static encodeDelimited(message: grafeas.v1.ISecretStatus, writer?: $protobuf.Writer): $protobuf.Writer;
12941
+
12942
+ /**
12943
+ * Decodes a SecretStatus message from the specified reader or buffer.
12944
+ * @param reader Reader or buffer to decode from
12945
+ * @param [length] Message length if known beforehand
12946
+ * @returns SecretStatus
12947
+ * @throws {Error} If the payload is not a reader or valid buffer
12948
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
12949
+ */
12950
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): grafeas.v1.SecretStatus;
12951
+
12952
+ /**
12953
+ * Decodes a SecretStatus message from the specified reader or buffer, length delimited.
12954
+ * @param reader Reader or buffer to decode from
12955
+ * @returns SecretStatus
12956
+ * @throws {Error} If the payload is not a reader or valid buffer
12957
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
12958
+ */
12959
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): grafeas.v1.SecretStatus;
12960
+
12961
+ /**
12962
+ * Verifies a SecretStatus message.
12963
+ * @param message Plain object to verify
12964
+ * @returns `null` if valid, otherwise the reason why it is not
12965
+ */
12966
+ public static verify(message: { [k: string]: any }): (string|null);
12967
+
12968
+ /**
12969
+ * Creates a SecretStatus message from a plain object. Also converts values to their respective internal types.
12970
+ * @param object Plain object
12971
+ * @returns SecretStatus
12972
+ */
12973
+ public static fromObject(object: { [k: string]: any }): grafeas.v1.SecretStatus;
12974
+
12975
+ /**
12976
+ * Creates a plain object from a SecretStatus message. Also converts values to other types if specified.
12977
+ * @param message SecretStatus
12978
+ * @param [options] Conversion options
12979
+ * @returns Plain object
12980
+ */
12981
+ public static toObject(message: grafeas.v1.SecretStatus, options?: $protobuf.IConversionOptions): { [k: string]: any };
12982
+
12983
+ /**
12984
+ * Converts this SecretStatus to JSON.
12985
+ * @returns JSON object
12986
+ */
12987
+ public toJSON(): { [k: string]: any };
12988
+
12989
+ /**
12990
+ * Gets the default type url for SecretStatus
12991
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
12992
+ * @returns The default type url
12993
+ */
12994
+ public static getTypeUrl(typeUrlPrefix?: string): string;
12995
+ }
12996
+
12997
+ namespace SecretStatus {
12998
+
12999
+ /** Status enum. */
13000
+ enum Status {
13001
+ STATUS_UNSPECIFIED = 0,
13002
+ UNKNOWN = 1,
13003
+ VALID = 2,
13004
+ INVALID = 3
13005
+ }
13006
+ }
13007
+
13008
+ /** SecretKind enum. */
13009
+ enum SecretKind {
13010
+ SECRET_KIND_UNSPECIFIED = 0,
13011
+ SECRET_KIND_UNKNOWN = 1,
13012
+ SECRET_KIND_GCP_SERVICE_ACCOUNT_KEY = 2
13013
+ }
13014
+
12339
13015
  /** Properties of an UpgradeNote. */
12340
13016
  interface IUpgradeNote {
12341
13017
 
@@ -14916,7 +15592,7 @@ export namespace grafeas {
14916
15592
  contentType?: (grafeas.v1beta1.attestation.GenericSignedAttestation.ContentType|keyof typeof grafeas.v1beta1.attestation.GenericSignedAttestation.ContentType|null);
14917
15593
 
14918
15594
  /** GenericSignedAttestation serializedPayload */
14919
- serializedPayload?: (Uint8Array|string|null);
15595
+ serializedPayload?: (Uint8Array|Buffer|string|null);
14920
15596
 
14921
15597
  /** GenericSignedAttestation signatures */
14922
15598
  signatures?: (grafeas.v1beta1.ISignature[]|null);
@@ -14935,7 +15611,7 @@ export namespace grafeas {
14935
15611
  public contentType: (grafeas.v1beta1.attestation.GenericSignedAttestation.ContentType|keyof typeof grafeas.v1beta1.attestation.GenericSignedAttestation.ContentType);
14936
15612
 
14937
15613
  /** GenericSignedAttestation serializedPayload. */
14938
- public serializedPayload: (Uint8Array|string);
15614
+ public serializedPayload: (Uint8Array|Buffer|string);
14939
15615
 
14940
15616
  /** GenericSignedAttestation signatures. */
14941
15617
  public signatures: grafeas.v1beta1.ISignature[];
@@ -15547,7 +16223,7 @@ export namespace grafeas {
15547
16223
  interface ISignature {
15548
16224
 
15549
16225
  /** Signature signature */
15550
- signature?: (Uint8Array|string|null);
16226
+ signature?: (Uint8Array|Buffer|string|null);
15551
16227
 
15552
16228
  /** Signature publicKeyId */
15553
16229
  publicKeyId?: (string|null);
@@ -15563,7 +16239,7 @@ export namespace grafeas {
15563
16239
  constructor(properties?: grafeas.v1beta1.ISignature);
15564
16240
 
15565
16241
  /** Signature signature. */
15566
- public signature: (Uint8Array|string);
16242
+ public signature: (Uint8Array|Buffer|string);
15567
16243
 
15568
16244
  /** Signature publicKeyId. */
15569
16245
  public publicKeyId: string;
@@ -15759,7 +16435,7 @@ export namespace grafeas {
15759
16435
  publicKey?: (string|null);
15760
16436
 
15761
16437
  /** BuildSignature signature */
15762
- signature?: (Uint8Array|string|null);
16438
+ signature?: (Uint8Array|Buffer|string|null);
15763
16439
 
15764
16440
  /** BuildSignature keyId */
15765
16441
  keyId?: (string|null);
@@ -15781,7 +16457,7 @@ export namespace grafeas {
15781
16457
  public publicKey: string;
15782
16458
 
15783
16459
  /** BuildSignature signature. */
15784
- public signature: (Uint8Array|string);
16460
+ public signature: (Uint8Array|Buffer|string);
15785
16461
 
15786
16462
  /** BuildSignature keyId. */
15787
16463
  public keyId: string;
@@ -16372,7 +17048,7 @@ export namespace grafeas {
16372
17048
  type?: (grafeas.v1beta1.provenance.Hash.HashType|keyof typeof grafeas.v1beta1.provenance.Hash.HashType|null);
16373
17049
 
16374
17050
  /** Hash value */
16375
- value?: (Uint8Array|string|null);
17051
+ value?: (Uint8Array|Buffer|string|null);
16376
17052
  }
16377
17053
 
16378
17054
  /** Represents a Hash. */
@@ -16388,7 +17064,7 @@ export namespace grafeas {
16388
17064
  public type: (grafeas.v1beta1.provenance.Hash.HashType|keyof typeof grafeas.v1beta1.provenance.Hash.HashType);
16389
17065
 
16390
17066
  /** Hash value. */
16391
- public value: (Uint8Array|string);
17067
+ public value: (Uint8Array|Buffer|string);
16392
17068
 
16393
17069
  /**
16394
17070
  * Creates a new Hash instance using the specified properties.
@@ -25630,6 +26306,9 @@ export namespace google {
25630
26306
 
25631
26307
  /** Publishing protoReferenceDocumentationUri */
25632
26308
  protoReferenceDocumentationUri?: (string|null);
26309
+
26310
+ /** Publishing restReferenceDocumentationUri */
26311
+ restReferenceDocumentationUri?: (string|null);
25633
26312
  }
25634
26313
 
25635
26314
  /** Represents a Publishing. */
@@ -25671,6 +26350,9 @@ export namespace google {
25671
26350
  /** Publishing protoReferenceDocumentationUri. */
25672
26351
  public protoReferenceDocumentationUri: string;
25673
26352
 
26353
+ /** Publishing restReferenceDocumentationUri. */
26354
+ public restReferenceDocumentationUri: string;
26355
+
25674
26356
  /**
25675
26357
  * Creates a new Publishing instance using the specified properties.
25676
26358
  * @param [properties] Properties to set
@@ -29888,6 +30570,9 @@ export namespace google {
29888
30570
 
29889
30571
  /** ServiceOptions .google.api.oauthScopes */
29890
30572
  ".google.api.oauthScopes"?: (string|null);
30573
+
30574
+ /** ServiceOptions .google.api.apiVersion */
30575
+ ".google.api.apiVersion"?: (string|null);
29891
30576
  }
29892
30577
 
29893
30578
  /** Represents a ServiceOptions. */
@@ -30136,7 +30821,7 @@ export namespace google {
30136
30821
  doubleValue?: (number|null);
30137
30822
 
30138
30823
  /** UninterpretedOption stringValue */
30139
- stringValue?: (Uint8Array|string|null);
30824
+ stringValue?: (Uint8Array|Buffer|string|null);
30140
30825
 
30141
30826
  /** UninterpretedOption aggregateValue */
30142
30827
  aggregateValue?: (string|null);
@@ -30167,7 +30852,7 @@ export namespace google {
30167
30852
  public doubleValue: number;
30168
30853
 
30169
30854
  /** UninterpretedOption stringValue. */
30170
- public stringValue: (Uint8Array|string);
30855
+ public stringValue: (Uint8Array|Buffer|string);
30171
30856
 
30172
30857
  /** UninterpretedOption aggregateValue. */
30173
30858
  public aggregateValue: string;
@@ -31403,7 +32088,7 @@ export namespace google {
31403
32088
  type_url?: (string|null);
31404
32089
 
31405
32090
  /** Any value */
31406
- value?: (Uint8Array|string|null);
32091
+ value?: (Uint8Array|Buffer|string|null);
31407
32092
  }
31408
32093
 
31409
32094
  /** Represents an Any. */
@@ -31419,7 +32104,7 @@ export namespace google {
31419
32104
  public type_url: string;
31420
32105
 
31421
32106
  /** Any value. */
31422
- public value: (Uint8Array|string);
32107
+ public value: (Uint8Array|Buffer|string);
31423
32108
 
31424
32109
  /**
31425
32110
  * Creates a new Any instance using the specified properties.
@@ -32638,7 +33323,7 @@ export namespace google {
32638
33323
  auditConfigs?: (google.iam.v1.IAuditConfig[]|null);
32639
33324
 
32640
33325
  /** Policy etag */
32641
- etag?: (Uint8Array|string|null);
33326
+ etag?: (Uint8Array|Buffer|string|null);
32642
33327
  }
32643
33328
 
32644
33329
  /** Represents a Policy. */
@@ -32660,7 +33345,7 @@ export namespace google {
32660
33345
  public auditConfigs: google.iam.v1.IAuditConfig[];
32661
33346
 
32662
33347
  /** Policy etag. */
32663
- public etag: (Uint8Array|string);
33348
+ public etag: (Uint8Array|Buffer|string);
32664
33349
 
32665
33350
  /**
32666
33351
  * Creates a new Policy instance using the specified properties.