• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
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 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/devtools/containeranalysis/v1beta1/grafeas/grafeas.proto
18 
19 package io.grafeas.v1beta1;
20 
21 public interface OccurrenceOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:grafeas.v1beta1.Occurrence)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * Output only. The name of the occurrence in the form of
31    * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
32    * </pre>
33    *
34    * <code>string name = 1;</code>
35    *
36    * @return The name.
37    */
getName()38   java.lang.String getName();
39   /**
40    *
41    *
42    * <pre>
43    * Output only. The name of the occurrence in the form of
44    * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
45    * </pre>
46    *
47    * <code>string name = 1;</code>
48    *
49    * @return The bytes for name.
50    */
getNameBytes()51   com.google.protobuf.ByteString getNameBytes();
52 
53   /**
54    *
55    *
56    * <pre>
57    * Required. Immutable. The resource for which the occurrence applies.
58    * </pre>
59    *
60    * <code>.grafeas.v1beta1.Resource resource = 2;</code>
61    *
62    * @return Whether the resource field is set.
63    */
hasResource()64   boolean hasResource();
65   /**
66    *
67    *
68    * <pre>
69    * Required. Immutable. The resource for which the occurrence applies.
70    * </pre>
71    *
72    * <code>.grafeas.v1beta1.Resource resource = 2;</code>
73    *
74    * @return The resource.
75    */
getResource()76   io.grafeas.v1beta1.Resource getResource();
77   /**
78    *
79    *
80    * <pre>
81    * Required. Immutable. The resource for which the occurrence applies.
82    * </pre>
83    *
84    * <code>.grafeas.v1beta1.Resource resource = 2;</code>
85    */
getResourceOrBuilder()86   io.grafeas.v1beta1.ResourceOrBuilder getResourceOrBuilder();
87 
88   /**
89    *
90    *
91    * <pre>
92    * Required. Immutable. The analysis note associated with this occurrence, in
93    * the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be
94    * used as a filter in list requests.
95    * </pre>
96    *
97    * <code>string note_name = 3;</code>
98    *
99    * @return The noteName.
100    */
getNoteName()101   java.lang.String getNoteName();
102   /**
103    *
104    *
105    * <pre>
106    * Required. Immutable. The analysis note associated with this occurrence, in
107    * the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be
108    * used as a filter in list requests.
109    * </pre>
110    *
111    * <code>string note_name = 3;</code>
112    *
113    * @return The bytes for noteName.
114    */
getNoteNameBytes()115   com.google.protobuf.ByteString getNoteNameBytes();
116 
117   /**
118    *
119    *
120    * <pre>
121    * Output only. This explicitly denotes which of the occurrence details are
122    * specified. This field can be used as a filter in list requests.
123    * </pre>
124    *
125    * <code>.grafeas.v1beta1.NoteKind kind = 4;</code>
126    *
127    * @return The enum numeric value on the wire for kind.
128    */
getKindValue()129   int getKindValue();
130   /**
131    *
132    *
133    * <pre>
134    * Output only. This explicitly denotes which of the occurrence details are
135    * specified. This field can be used as a filter in list requests.
136    * </pre>
137    *
138    * <code>.grafeas.v1beta1.NoteKind kind = 4;</code>
139    *
140    * @return The kind.
141    */
getKind()142   io.grafeas.v1beta1.common.NoteKind getKind();
143 
144   /**
145    *
146    *
147    * <pre>
148    * A description of actions that can be taken to remedy the note.
149    * </pre>
150    *
151    * <code>string remediation = 5;</code>
152    *
153    * @return The remediation.
154    */
getRemediation()155   java.lang.String getRemediation();
156   /**
157    *
158    *
159    * <pre>
160    * A description of actions that can be taken to remedy the note.
161    * </pre>
162    *
163    * <code>string remediation = 5;</code>
164    *
165    * @return The bytes for remediation.
166    */
getRemediationBytes()167   com.google.protobuf.ByteString getRemediationBytes();
168 
169   /**
170    *
171    *
172    * <pre>
173    * Output only. The time this occurrence was created.
174    * </pre>
175    *
176    * <code>.google.protobuf.Timestamp create_time = 6;</code>
177    *
178    * @return Whether the createTime field is set.
179    */
hasCreateTime()180   boolean hasCreateTime();
181   /**
182    *
183    *
184    * <pre>
185    * Output only. The time this occurrence was created.
186    * </pre>
187    *
188    * <code>.google.protobuf.Timestamp create_time = 6;</code>
189    *
190    * @return The createTime.
191    */
getCreateTime()192   com.google.protobuf.Timestamp getCreateTime();
193   /**
194    *
195    *
196    * <pre>
197    * Output only. The time this occurrence was created.
198    * </pre>
199    *
200    * <code>.google.protobuf.Timestamp create_time = 6;</code>
201    */
getCreateTimeOrBuilder()202   com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();
203 
204   /**
205    *
206    *
207    * <pre>
208    * Output only. The time this occurrence was last updated.
209    * </pre>
210    *
211    * <code>.google.protobuf.Timestamp update_time = 7;</code>
212    *
213    * @return Whether the updateTime field is set.
214    */
hasUpdateTime()215   boolean hasUpdateTime();
216   /**
217    *
218    *
219    * <pre>
220    * Output only. The time this occurrence was last updated.
221    * </pre>
222    *
223    * <code>.google.protobuf.Timestamp update_time = 7;</code>
224    *
225    * @return The updateTime.
226    */
getUpdateTime()227   com.google.protobuf.Timestamp getUpdateTime();
228   /**
229    *
230    *
231    * <pre>
232    * Output only. The time this occurrence was last updated.
233    * </pre>
234    *
235    * <code>.google.protobuf.Timestamp update_time = 7;</code>
236    */
getUpdateTimeOrBuilder()237   com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
238 
239   /**
240    *
241    *
242    * <pre>
243    * Describes a security vulnerability.
244    * </pre>
245    *
246    * <code>.grafeas.v1beta1.vulnerability.Details vulnerability = 8;</code>
247    *
248    * @return Whether the vulnerability field is set.
249    */
hasVulnerability()250   boolean hasVulnerability();
251   /**
252    *
253    *
254    * <pre>
255    * Describes a security vulnerability.
256    * </pre>
257    *
258    * <code>.grafeas.v1beta1.vulnerability.Details vulnerability = 8;</code>
259    *
260    * @return The vulnerability.
261    */
getVulnerability()262   io.grafeas.v1beta1.vulnerability.Details getVulnerability();
263   /**
264    *
265    *
266    * <pre>
267    * Describes a security vulnerability.
268    * </pre>
269    *
270    * <code>.grafeas.v1beta1.vulnerability.Details vulnerability = 8;</code>
271    */
getVulnerabilityOrBuilder()272   io.grafeas.v1beta1.vulnerability.DetailsOrBuilder getVulnerabilityOrBuilder();
273 
274   /**
275    *
276    *
277    * <pre>
278    * Describes a verifiable build.
279    * </pre>
280    *
281    * <code>.grafeas.v1beta1.build.Details build = 9;</code>
282    *
283    * @return Whether the build field is set.
284    */
hasBuild()285   boolean hasBuild();
286   /**
287    *
288    *
289    * <pre>
290    * Describes a verifiable build.
291    * </pre>
292    *
293    * <code>.grafeas.v1beta1.build.Details build = 9;</code>
294    *
295    * @return The build.
296    */
getBuild()297   io.grafeas.v1beta1.build.Details getBuild();
298   /**
299    *
300    *
301    * <pre>
302    * Describes a verifiable build.
303    * </pre>
304    *
305    * <code>.grafeas.v1beta1.build.Details build = 9;</code>
306    */
getBuildOrBuilder()307   io.grafeas.v1beta1.build.DetailsOrBuilder getBuildOrBuilder();
308 
309   /**
310    *
311    *
312    * <pre>
313    * Describes how this resource derives from the basis in the associated
314    * note.
315    * </pre>
316    *
317    * <code>.grafeas.v1beta1.image.Details derived_image = 10;</code>
318    *
319    * @return Whether the derivedImage field is set.
320    */
hasDerivedImage()321   boolean hasDerivedImage();
322   /**
323    *
324    *
325    * <pre>
326    * Describes how this resource derives from the basis in the associated
327    * note.
328    * </pre>
329    *
330    * <code>.grafeas.v1beta1.image.Details derived_image = 10;</code>
331    *
332    * @return The derivedImage.
333    */
getDerivedImage()334   io.grafeas.v1beta1.image.Details getDerivedImage();
335   /**
336    *
337    *
338    * <pre>
339    * Describes how this resource derives from the basis in the associated
340    * note.
341    * </pre>
342    *
343    * <code>.grafeas.v1beta1.image.Details derived_image = 10;</code>
344    */
getDerivedImageOrBuilder()345   io.grafeas.v1beta1.image.DetailsOrBuilder getDerivedImageOrBuilder();
346 
347   /**
348    *
349    *
350    * <pre>
351    * Describes the installation of a package on the linked resource.
352    * </pre>
353    *
354    * <code>.grafeas.v1beta1.package.Details installation = 11;</code>
355    *
356    * @return Whether the installation field is set.
357    */
hasInstallation()358   boolean hasInstallation();
359   /**
360    *
361    *
362    * <pre>
363    * Describes the installation of a package on the linked resource.
364    * </pre>
365    *
366    * <code>.grafeas.v1beta1.package.Details installation = 11;</code>
367    *
368    * @return The installation.
369    */
getInstallation()370   io.grafeas.v1beta1.pkg.Details getInstallation();
371   /**
372    *
373    *
374    * <pre>
375    * Describes the installation of a package on the linked resource.
376    * </pre>
377    *
378    * <code>.grafeas.v1beta1.package.Details installation = 11;</code>
379    */
getInstallationOrBuilder()380   io.grafeas.v1beta1.pkg.DetailsOrBuilder getInstallationOrBuilder();
381 
382   /**
383    *
384    *
385    * <pre>
386    * Describes the deployment of an artifact on a runtime.
387    * </pre>
388    *
389    * <code>.grafeas.v1beta1.deployment.Details deployment = 12;</code>
390    *
391    * @return Whether the deployment field is set.
392    */
hasDeployment()393   boolean hasDeployment();
394   /**
395    *
396    *
397    * <pre>
398    * Describes the deployment of an artifact on a runtime.
399    * </pre>
400    *
401    * <code>.grafeas.v1beta1.deployment.Details deployment = 12;</code>
402    *
403    * @return The deployment.
404    */
getDeployment()405   io.grafeas.v1beta1.deployment.Details getDeployment();
406   /**
407    *
408    *
409    * <pre>
410    * Describes the deployment of an artifact on a runtime.
411    * </pre>
412    *
413    * <code>.grafeas.v1beta1.deployment.Details deployment = 12;</code>
414    */
getDeploymentOrBuilder()415   io.grafeas.v1beta1.deployment.DetailsOrBuilder getDeploymentOrBuilder();
416 
417   /**
418    *
419    *
420    * <pre>
421    * Describes when a resource was discovered.
422    * </pre>
423    *
424    * <code>.grafeas.v1beta1.discovery.Details discovered = 13;</code>
425    *
426    * @return Whether the discovered field is set.
427    */
hasDiscovered()428   boolean hasDiscovered();
429   /**
430    *
431    *
432    * <pre>
433    * Describes when a resource was discovered.
434    * </pre>
435    *
436    * <code>.grafeas.v1beta1.discovery.Details discovered = 13;</code>
437    *
438    * @return The discovered.
439    */
getDiscovered()440   io.grafeas.v1beta1.discovery.Details getDiscovered();
441   /**
442    *
443    *
444    * <pre>
445    * Describes when a resource was discovered.
446    * </pre>
447    *
448    * <code>.grafeas.v1beta1.discovery.Details discovered = 13;</code>
449    */
getDiscoveredOrBuilder()450   io.grafeas.v1beta1.discovery.DetailsOrBuilder getDiscoveredOrBuilder();
451 
452   /**
453    *
454    *
455    * <pre>
456    * Describes an attestation of an artifact.
457    * </pre>
458    *
459    * <code>.grafeas.v1beta1.attestation.Details attestation = 14;</code>
460    *
461    * @return Whether the attestation field is set.
462    */
hasAttestation()463   boolean hasAttestation();
464   /**
465    *
466    *
467    * <pre>
468    * Describes an attestation of an artifact.
469    * </pre>
470    *
471    * <code>.grafeas.v1beta1.attestation.Details attestation = 14;</code>
472    *
473    * @return The attestation.
474    */
getAttestation()475   io.grafeas.v1beta1.attestation.Details getAttestation();
476   /**
477    *
478    *
479    * <pre>
480    * Describes an attestation of an artifact.
481    * </pre>
482    *
483    * <code>.grafeas.v1beta1.attestation.Details attestation = 14;</code>
484    */
getAttestationOrBuilder()485   io.grafeas.v1beta1.attestation.DetailsOrBuilder getAttestationOrBuilder();
486 
getDetailsCase()487   public io.grafeas.v1beta1.Occurrence.DetailsCase getDetailsCase();
488 }
489