• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2019 The Grafeas Authors. All rights reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 // Generated by the protocol buffer compiler.  DO NOT EDIT!
18 // source: grafeas/v1/grafeas.proto
19 
20 package io.grafeas.v1;
21 
22 public interface NoteOrBuilder
23     extends
24     // @@protoc_insertion_point(interface_extends:grafeas.v1.Note)
25     com.google.protobuf.MessageOrBuilder {
26 
27   /**
28    *
29    *
30    * <pre>
31    * Output only. The name of the note in the form of
32    * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
33    * </pre>
34    *
35    * <code>string name = 1;</code>
36    *
37    * @return The name.
38    */
getName()39   java.lang.String getName();
40   /**
41    *
42    *
43    * <pre>
44    * Output only. The name of the note in the form of
45    * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
46    * </pre>
47    *
48    * <code>string name = 1;</code>
49    *
50    * @return The bytes for name.
51    */
getNameBytes()52   com.google.protobuf.ByteString getNameBytes();
53 
54   /**
55    *
56    *
57    * <pre>
58    * A one sentence description of this note.
59    * </pre>
60    *
61    * <code>string short_description = 2;</code>
62    *
63    * @return The shortDescription.
64    */
getShortDescription()65   java.lang.String getShortDescription();
66   /**
67    *
68    *
69    * <pre>
70    * A one sentence description of this note.
71    * </pre>
72    *
73    * <code>string short_description = 2;</code>
74    *
75    * @return The bytes for shortDescription.
76    */
getShortDescriptionBytes()77   com.google.protobuf.ByteString getShortDescriptionBytes();
78 
79   /**
80    *
81    *
82    * <pre>
83    * A detailed description of this note.
84    * </pre>
85    *
86    * <code>string long_description = 3;</code>
87    *
88    * @return The longDescription.
89    */
getLongDescription()90   java.lang.String getLongDescription();
91   /**
92    *
93    *
94    * <pre>
95    * A detailed description of this note.
96    * </pre>
97    *
98    * <code>string long_description = 3;</code>
99    *
100    * @return The bytes for longDescription.
101    */
getLongDescriptionBytes()102   com.google.protobuf.ByteString getLongDescriptionBytes();
103 
104   /**
105    *
106    *
107    * <pre>
108    * Output only. The type of analysis. This field can be used as a filter in
109    * list requests.
110    * </pre>
111    *
112    * <code>.grafeas.v1.NoteKind kind = 4;</code>
113    *
114    * @return The enum numeric value on the wire for kind.
115    */
getKindValue()116   int getKindValue();
117   /**
118    *
119    *
120    * <pre>
121    * Output only. The type of analysis. This field can be used as a filter in
122    * list requests.
123    * </pre>
124    *
125    * <code>.grafeas.v1.NoteKind kind = 4;</code>
126    *
127    * @return The kind.
128    */
getKind()129   io.grafeas.v1.NoteKind getKind();
130 
131   /**
132    *
133    *
134    * <pre>
135    * URLs associated with this note.
136    * </pre>
137    *
138    * <code>repeated .grafeas.v1.RelatedUrl related_url = 5;</code>
139    */
getRelatedUrlList()140   java.util.List<io.grafeas.v1.RelatedUrl> getRelatedUrlList();
141   /**
142    *
143    *
144    * <pre>
145    * URLs associated with this note.
146    * </pre>
147    *
148    * <code>repeated .grafeas.v1.RelatedUrl related_url = 5;</code>
149    */
getRelatedUrl(int index)150   io.grafeas.v1.RelatedUrl getRelatedUrl(int index);
151   /**
152    *
153    *
154    * <pre>
155    * URLs associated with this note.
156    * </pre>
157    *
158    * <code>repeated .grafeas.v1.RelatedUrl related_url = 5;</code>
159    */
getRelatedUrlCount()160   int getRelatedUrlCount();
161   /**
162    *
163    *
164    * <pre>
165    * URLs associated with this note.
166    * </pre>
167    *
168    * <code>repeated .grafeas.v1.RelatedUrl related_url = 5;</code>
169    */
getRelatedUrlOrBuilderList()170   java.util.List<? extends io.grafeas.v1.RelatedUrlOrBuilder> getRelatedUrlOrBuilderList();
171   /**
172    *
173    *
174    * <pre>
175    * URLs associated with this note.
176    * </pre>
177    *
178    * <code>repeated .grafeas.v1.RelatedUrl related_url = 5;</code>
179    */
getRelatedUrlOrBuilder(int index)180   io.grafeas.v1.RelatedUrlOrBuilder getRelatedUrlOrBuilder(int index);
181 
182   /**
183    *
184    *
185    * <pre>
186    * Time of expiration for this note. Empty if note does not expire.
187    * </pre>
188    *
189    * <code>.google.protobuf.Timestamp expiration_time = 6;</code>
190    *
191    * @return Whether the expirationTime field is set.
192    */
hasExpirationTime()193   boolean hasExpirationTime();
194   /**
195    *
196    *
197    * <pre>
198    * Time of expiration for this note. Empty if note does not expire.
199    * </pre>
200    *
201    * <code>.google.protobuf.Timestamp expiration_time = 6;</code>
202    *
203    * @return The expirationTime.
204    */
getExpirationTime()205   com.google.protobuf.Timestamp getExpirationTime();
206   /**
207    *
208    *
209    * <pre>
210    * Time of expiration for this note. Empty if note does not expire.
211    * </pre>
212    *
213    * <code>.google.protobuf.Timestamp expiration_time = 6;</code>
214    */
getExpirationTimeOrBuilder()215   com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder();
216 
217   /**
218    *
219    *
220    * <pre>
221    * Output only. The time this note was created. This field can be used as a
222    * filter in list requests.
223    * </pre>
224    *
225    * <code>.google.protobuf.Timestamp create_time = 7;</code>
226    *
227    * @return Whether the createTime field is set.
228    */
hasCreateTime()229   boolean hasCreateTime();
230   /**
231    *
232    *
233    * <pre>
234    * Output only. The time this note was created. This field can be used as a
235    * filter in list requests.
236    * </pre>
237    *
238    * <code>.google.protobuf.Timestamp create_time = 7;</code>
239    *
240    * @return The createTime.
241    */
getCreateTime()242   com.google.protobuf.Timestamp getCreateTime();
243   /**
244    *
245    *
246    * <pre>
247    * Output only. The time this note was created. This field can be used as a
248    * filter in list requests.
249    * </pre>
250    *
251    * <code>.google.protobuf.Timestamp create_time = 7;</code>
252    */
getCreateTimeOrBuilder()253   com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();
254 
255   /**
256    *
257    *
258    * <pre>
259    * Output only. The time this note was last updated. This field can be used as
260    * a filter in list requests.
261    * </pre>
262    *
263    * <code>.google.protobuf.Timestamp update_time = 8;</code>
264    *
265    * @return Whether the updateTime field is set.
266    */
hasUpdateTime()267   boolean hasUpdateTime();
268   /**
269    *
270    *
271    * <pre>
272    * Output only. The time this note was last updated. This field can be used as
273    * a filter in list requests.
274    * </pre>
275    *
276    * <code>.google.protobuf.Timestamp update_time = 8;</code>
277    *
278    * @return The updateTime.
279    */
getUpdateTime()280   com.google.protobuf.Timestamp getUpdateTime();
281   /**
282    *
283    *
284    * <pre>
285    * Output only. The time this note was last updated. This field can be used as
286    * a filter in list requests.
287    * </pre>
288    *
289    * <code>.google.protobuf.Timestamp update_time = 8;</code>
290    */
getUpdateTimeOrBuilder()291   com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
292 
293   /**
294    *
295    *
296    * <pre>
297    * Other notes related to this note.
298    * </pre>
299    *
300    * <code>repeated string related_note_names = 9;</code>
301    *
302    * @return A list containing the relatedNoteNames.
303    */
getRelatedNoteNamesList()304   java.util.List<java.lang.String> getRelatedNoteNamesList();
305   /**
306    *
307    *
308    * <pre>
309    * Other notes related to this note.
310    * </pre>
311    *
312    * <code>repeated string related_note_names = 9;</code>
313    *
314    * @return The count of relatedNoteNames.
315    */
getRelatedNoteNamesCount()316   int getRelatedNoteNamesCount();
317   /**
318    *
319    *
320    * <pre>
321    * Other notes related to this note.
322    * </pre>
323    *
324    * <code>repeated string related_note_names = 9;</code>
325    *
326    * @param index The index of the element to return.
327    * @return The relatedNoteNames at the given index.
328    */
getRelatedNoteNames(int index)329   java.lang.String getRelatedNoteNames(int index);
330   /**
331    *
332    *
333    * <pre>
334    * Other notes related to this note.
335    * </pre>
336    *
337    * <code>repeated string related_note_names = 9;</code>
338    *
339    * @param index The index of the value to return.
340    * @return The bytes of the relatedNoteNames at the given index.
341    */
getRelatedNoteNamesBytes(int index)342   com.google.protobuf.ByteString getRelatedNoteNamesBytes(int index);
343 
344   /**
345    *
346    *
347    * <pre>
348    * A note describing a package vulnerability.
349    * </pre>
350    *
351    * <code>.grafeas.v1.VulnerabilityNote vulnerability = 10;</code>
352    *
353    * @return Whether the vulnerability field is set.
354    */
hasVulnerability()355   boolean hasVulnerability();
356   /**
357    *
358    *
359    * <pre>
360    * A note describing a package vulnerability.
361    * </pre>
362    *
363    * <code>.grafeas.v1.VulnerabilityNote vulnerability = 10;</code>
364    *
365    * @return The vulnerability.
366    */
getVulnerability()367   io.grafeas.v1.VulnerabilityNote getVulnerability();
368   /**
369    *
370    *
371    * <pre>
372    * A note describing a package vulnerability.
373    * </pre>
374    *
375    * <code>.grafeas.v1.VulnerabilityNote vulnerability = 10;</code>
376    */
getVulnerabilityOrBuilder()377   io.grafeas.v1.VulnerabilityNoteOrBuilder getVulnerabilityOrBuilder();
378 
379   /**
380    *
381    *
382    * <pre>
383    * A note describing build provenance for a verifiable build.
384    * </pre>
385    *
386    * <code>.grafeas.v1.BuildNote build = 11;</code>
387    *
388    * @return Whether the build field is set.
389    */
hasBuild()390   boolean hasBuild();
391   /**
392    *
393    *
394    * <pre>
395    * A note describing build provenance for a verifiable build.
396    * </pre>
397    *
398    * <code>.grafeas.v1.BuildNote build = 11;</code>
399    *
400    * @return The build.
401    */
getBuild()402   io.grafeas.v1.BuildNote getBuild();
403   /**
404    *
405    *
406    * <pre>
407    * A note describing build provenance for a verifiable build.
408    * </pre>
409    *
410    * <code>.grafeas.v1.BuildNote build = 11;</code>
411    */
getBuildOrBuilder()412   io.grafeas.v1.BuildNoteOrBuilder getBuildOrBuilder();
413 
414   /**
415    *
416    *
417    * <pre>
418    * A note describing a base image.
419    * </pre>
420    *
421    * <code>.grafeas.v1.ImageNote image = 12;</code>
422    *
423    * @return Whether the image field is set.
424    */
hasImage()425   boolean hasImage();
426   /**
427    *
428    *
429    * <pre>
430    * A note describing a base image.
431    * </pre>
432    *
433    * <code>.grafeas.v1.ImageNote image = 12;</code>
434    *
435    * @return The image.
436    */
getImage()437   io.grafeas.v1.ImageNote getImage();
438   /**
439    *
440    *
441    * <pre>
442    * A note describing a base image.
443    * </pre>
444    *
445    * <code>.grafeas.v1.ImageNote image = 12;</code>
446    */
getImageOrBuilder()447   io.grafeas.v1.ImageNoteOrBuilder getImageOrBuilder();
448 
449   /**
450    *
451    *
452    * <pre>
453    * A note describing a package hosted by various package managers.
454    * </pre>
455    *
456    * <code>.grafeas.v1.PackageNote package = 13;</code>
457    *
458    * @return Whether the package field is set.
459    */
hasPackage()460   boolean hasPackage();
461   /**
462    *
463    *
464    * <pre>
465    * A note describing a package hosted by various package managers.
466    * </pre>
467    *
468    * <code>.grafeas.v1.PackageNote package = 13;</code>
469    *
470    * @return The package.
471    */
getPackage()472   io.grafeas.v1.PackageNote getPackage();
473   /**
474    *
475    *
476    * <pre>
477    * A note describing a package hosted by various package managers.
478    * </pre>
479    *
480    * <code>.grafeas.v1.PackageNote package = 13;</code>
481    */
getPackageOrBuilder()482   io.grafeas.v1.PackageNoteOrBuilder getPackageOrBuilder();
483 
484   /**
485    *
486    *
487    * <pre>
488    * A note describing something that can be deployed.
489    * </pre>
490    *
491    * <code>.grafeas.v1.DeploymentNote deployment = 14;</code>
492    *
493    * @return Whether the deployment field is set.
494    */
hasDeployment()495   boolean hasDeployment();
496   /**
497    *
498    *
499    * <pre>
500    * A note describing something that can be deployed.
501    * </pre>
502    *
503    * <code>.grafeas.v1.DeploymentNote deployment = 14;</code>
504    *
505    * @return The deployment.
506    */
getDeployment()507   io.grafeas.v1.DeploymentNote getDeployment();
508   /**
509    *
510    *
511    * <pre>
512    * A note describing something that can be deployed.
513    * </pre>
514    *
515    * <code>.grafeas.v1.DeploymentNote deployment = 14;</code>
516    */
getDeploymentOrBuilder()517   io.grafeas.v1.DeploymentNoteOrBuilder getDeploymentOrBuilder();
518 
519   /**
520    *
521    *
522    * <pre>
523    * A note describing the initial analysis of a resource.
524    * </pre>
525    *
526    * <code>.grafeas.v1.DiscoveryNote discovery = 15;</code>
527    *
528    * @return Whether the discovery field is set.
529    */
hasDiscovery()530   boolean hasDiscovery();
531   /**
532    *
533    *
534    * <pre>
535    * A note describing the initial analysis of a resource.
536    * </pre>
537    *
538    * <code>.grafeas.v1.DiscoveryNote discovery = 15;</code>
539    *
540    * @return The discovery.
541    */
getDiscovery()542   io.grafeas.v1.DiscoveryNote getDiscovery();
543   /**
544    *
545    *
546    * <pre>
547    * A note describing the initial analysis of a resource.
548    * </pre>
549    *
550    * <code>.grafeas.v1.DiscoveryNote discovery = 15;</code>
551    */
getDiscoveryOrBuilder()552   io.grafeas.v1.DiscoveryNoteOrBuilder getDiscoveryOrBuilder();
553 
554   /**
555    *
556    *
557    * <pre>
558    * A note describing an attestation role.
559    * </pre>
560    *
561    * <code>.grafeas.v1.AttestationNote attestation = 16;</code>
562    *
563    * @return Whether the attestation field is set.
564    */
hasAttestation()565   boolean hasAttestation();
566   /**
567    *
568    *
569    * <pre>
570    * A note describing an attestation role.
571    * </pre>
572    *
573    * <code>.grafeas.v1.AttestationNote attestation = 16;</code>
574    *
575    * @return The attestation.
576    */
getAttestation()577   io.grafeas.v1.AttestationNote getAttestation();
578   /**
579    *
580    *
581    * <pre>
582    * A note describing an attestation role.
583    * </pre>
584    *
585    * <code>.grafeas.v1.AttestationNote attestation = 16;</code>
586    */
getAttestationOrBuilder()587   io.grafeas.v1.AttestationNoteOrBuilder getAttestationOrBuilder();
588 
589   /**
590    *
591    *
592    * <pre>
593    * A note describing available package upgrades.
594    * </pre>
595    *
596    * <code>.grafeas.v1.UpgradeNote upgrade = 17;</code>
597    *
598    * @return Whether the upgrade field is set.
599    */
hasUpgrade()600   boolean hasUpgrade();
601   /**
602    *
603    *
604    * <pre>
605    * A note describing available package upgrades.
606    * </pre>
607    *
608    * <code>.grafeas.v1.UpgradeNote upgrade = 17;</code>
609    *
610    * @return The upgrade.
611    */
getUpgrade()612   io.grafeas.v1.UpgradeNote getUpgrade();
613   /**
614    *
615    *
616    * <pre>
617    * A note describing available package upgrades.
618    * </pre>
619    *
620    * <code>.grafeas.v1.UpgradeNote upgrade = 17;</code>
621    */
getUpgradeOrBuilder()622   io.grafeas.v1.UpgradeNoteOrBuilder getUpgradeOrBuilder();
623 
624   /**
625    *
626    *
627    * <pre>
628    * A note describing a compliance check.
629    * </pre>
630    *
631    * <code>.grafeas.v1.ComplianceNote compliance = 18;</code>
632    *
633    * @return Whether the compliance field is set.
634    */
hasCompliance()635   boolean hasCompliance();
636   /**
637    *
638    *
639    * <pre>
640    * A note describing a compliance check.
641    * </pre>
642    *
643    * <code>.grafeas.v1.ComplianceNote compliance = 18;</code>
644    *
645    * @return The compliance.
646    */
getCompliance()647   io.grafeas.v1.ComplianceNote getCompliance();
648   /**
649    *
650    *
651    * <pre>
652    * A note describing a compliance check.
653    * </pre>
654    *
655    * <code>.grafeas.v1.ComplianceNote compliance = 18;</code>
656    */
getComplianceOrBuilder()657   io.grafeas.v1.ComplianceNoteOrBuilder getComplianceOrBuilder();
658 
659   /**
660    *
661    *
662    * <pre>
663    * A note describing a dsse attestation note.
664    * </pre>
665    *
666    * <code>.grafeas.v1.DSSEAttestationNote dsse_attestation = 19;</code>
667    *
668    * @return Whether the dsseAttestation field is set.
669    */
hasDsseAttestation()670   boolean hasDsseAttestation();
671   /**
672    *
673    *
674    * <pre>
675    * A note describing a dsse attestation note.
676    * </pre>
677    *
678    * <code>.grafeas.v1.DSSEAttestationNote dsse_attestation = 19;</code>
679    *
680    * @return The dsseAttestation.
681    */
getDsseAttestation()682   io.grafeas.v1.DSSEAttestationNote getDsseAttestation();
683   /**
684    *
685    *
686    * <pre>
687    * A note describing a dsse attestation note.
688    * </pre>
689    *
690    * <code>.grafeas.v1.DSSEAttestationNote dsse_attestation = 19;</code>
691    */
getDsseAttestationOrBuilder()692   io.grafeas.v1.DSSEAttestationNoteOrBuilder getDsseAttestationOrBuilder();
693 
694   /**
695    *
696    *
697    * <pre>
698    * A note describing a vulnerability assessment.
699    * </pre>
700    *
701    * <code>.grafeas.v1.VulnerabilityAssessmentNote vulnerability_assessment = 20;</code>
702    *
703    * @return Whether the vulnerabilityAssessment field is set.
704    */
hasVulnerabilityAssessment()705   boolean hasVulnerabilityAssessment();
706   /**
707    *
708    *
709    * <pre>
710    * A note describing a vulnerability assessment.
711    * </pre>
712    *
713    * <code>.grafeas.v1.VulnerabilityAssessmentNote vulnerability_assessment = 20;</code>
714    *
715    * @return The vulnerabilityAssessment.
716    */
getVulnerabilityAssessment()717   io.grafeas.v1.VulnerabilityAssessmentNote getVulnerabilityAssessment();
718   /**
719    *
720    *
721    * <pre>
722    * A note describing a vulnerability assessment.
723    * </pre>
724    *
725    * <code>.grafeas.v1.VulnerabilityAssessmentNote vulnerability_assessment = 20;</code>
726    */
getVulnerabilityAssessmentOrBuilder()727   io.grafeas.v1.VulnerabilityAssessmentNoteOrBuilder getVulnerabilityAssessmentOrBuilder();
728 
getTypeCase()729   public io.grafeas.v1.Note.TypeCase getTypeCase();
730 }
731