• 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/discovery.proto
19 
20 package io.grafeas.v1;
21 
22 public interface DiscoveryOccurrenceOrBuilder
23     extends
24     // @@protoc_insertion_point(interface_extends:grafeas.v1.DiscoveryOccurrence)
25     com.google.protobuf.MessageOrBuilder {
26 
27   /**
28    *
29    *
30    * <pre>
31    * Whether the resource is continuously analyzed.
32    * </pre>
33    *
34    * <code>.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis continuous_analysis = 1;</code>
35    *
36    * @return The enum numeric value on the wire for continuousAnalysis.
37    */
getContinuousAnalysisValue()38   int getContinuousAnalysisValue();
39   /**
40    *
41    *
42    * <pre>
43    * Whether the resource is continuously analyzed.
44    * </pre>
45    *
46    * <code>.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis continuous_analysis = 1;</code>
47    *
48    * @return The continuousAnalysis.
49    */
getContinuousAnalysis()50   io.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis getContinuousAnalysis();
51 
52   /**
53    *
54    *
55    * <pre>
56    * The status of discovery for the resource.
57    * </pre>
58    *
59    * <code>.grafeas.v1.DiscoveryOccurrence.AnalysisStatus analysis_status = 2;</code>
60    *
61    * @return The enum numeric value on the wire for analysisStatus.
62    */
getAnalysisStatusValue()63   int getAnalysisStatusValue();
64   /**
65    *
66    *
67    * <pre>
68    * The status of discovery for the resource.
69    * </pre>
70    *
71    * <code>.grafeas.v1.DiscoveryOccurrence.AnalysisStatus analysis_status = 2;</code>
72    *
73    * @return The analysisStatus.
74    */
getAnalysisStatus()75   io.grafeas.v1.DiscoveryOccurrence.AnalysisStatus getAnalysisStatus();
76 
77   /**
78    * <code>.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7;</code>
79    *
80    * @return Whether the analysisCompleted field is set.
81    */
hasAnalysisCompleted()82   boolean hasAnalysisCompleted();
83   /**
84    * <code>.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7;</code>
85    *
86    * @return The analysisCompleted.
87    */
getAnalysisCompleted()88   io.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted getAnalysisCompleted();
89   /** <code>.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted analysis_completed = 7;</code> */
getAnalysisCompletedOrBuilder()90   io.grafeas.v1.DiscoveryOccurrence.AnalysisCompletedOrBuilder getAnalysisCompletedOrBuilder();
91 
92   /**
93    *
94    *
95    * <pre>
96    * Indicates any errors encountered during analysis of a resource. There
97    * could be 0 or more of these errors.
98    * </pre>
99    *
100    * <code>repeated .google.rpc.Status analysis_error = 8;</code>
101    */
getAnalysisErrorList()102   java.util.List<com.google.rpc.Status> getAnalysisErrorList();
103   /**
104    *
105    *
106    * <pre>
107    * Indicates any errors encountered during analysis of a resource. There
108    * could be 0 or more of these errors.
109    * </pre>
110    *
111    * <code>repeated .google.rpc.Status analysis_error = 8;</code>
112    */
getAnalysisError(int index)113   com.google.rpc.Status getAnalysisError(int index);
114   /**
115    *
116    *
117    * <pre>
118    * Indicates any errors encountered during analysis of a resource. There
119    * could be 0 or more of these errors.
120    * </pre>
121    *
122    * <code>repeated .google.rpc.Status analysis_error = 8;</code>
123    */
getAnalysisErrorCount()124   int getAnalysisErrorCount();
125   /**
126    *
127    *
128    * <pre>
129    * Indicates any errors encountered during analysis of a resource. There
130    * could be 0 or more of these errors.
131    * </pre>
132    *
133    * <code>repeated .google.rpc.Status analysis_error = 8;</code>
134    */
getAnalysisErrorOrBuilderList()135   java.util.List<? extends com.google.rpc.StatusOrBuilder> getAnalysisErrorOrBuilderList();
136   /**
137    *
138    *
139    * <pre>
140    * Indicates any errors encountered during analysis of a resource. There
141    * could be 0 or more of these errors.
142    * </pre>
143    *
144    * <code>repeated .google.rpc.Status analysis_error = 8;</code>
145    */
getAnalysisErrorOrBuilder(int index)146   com.google.rpc.StatusOrBuilder getAnalysisErrorOrBuilder(int index);
147 
148   /**
149    *
150    *
151    * <pre>
152    * When an error is encountered this will contain a LocalizedMessage under
153    * details to show to the user. The LocalizedMessage is output only and
154    * populated by the API.
155    * </pre>
156    *
157    * <code>.google.rpc.Status analysis_status_error = 3;</code>
158    *
159    * @return Whether the analysisStatusError field is set.
160    */
hasAnalysisStatusError()161   boolean hasAnalysisStatusError();
162   /**
163    *
164    *
165    * <pre>
166    * When an error is encountered this will contain a LocalizedMessage under
167    * details to show to the user. The LocalizedMessage is output only and
168    * populated by the API.
169    * </pre>
170    *
171    * <code>.google.rpc.Status analysis_status_error = 3;</code>
172    *
173    * @return The analysisStatusError.
174    */
getAnalysisStatusError()175   com.google.rpc.Status getAnalysisStatusError();
176   /**
177    *
178    *
179    * <pre>
180    * When an error is encountered this will contain a LocalizedMessage under
181    * details to show to the user. The LocalizedMessage is output only and
182    * populated by the API.
183    * </pre>
184    *
185    * <code>.google.rpc.Status analysis_status_error = 3;</code>
186    */
getAnalysisStatusErrorOrBuilder()187   com.google.rpc.StatusOrBuilder getAnalysisStatusErrorOrBuilder();
188 
189   /**
190    *
191    *
192    * <pre>
193    * The CPE of the resource being scanned.
194    * </pre>
195    *
196    * <code>string cpe = 4;</code>
197    *
198    * @return The cpe.
199    */
getCpe()200   java.lang.String getCpe();
201   /**
202    *
203    *
204    * <pre>
205    * The CPE of the resource being scanned.
206    * </pre>
207    *
208    * <code>string cpe = 4;</code>
209    *
210    * @return The bytes for cpe.
211    */
getCpeBytes()212   com.google.protobuf.ByteString getCpeBytes();
213 
214   /**
215    *
216    *
217    * <pre>
218    * The last time this resource was scanned.
219    * </pre>
220    *
221    * <code>.google.protobuf.Timestamp last_scan_time = 5;</code>
222    *
223    * @return Whether the lastScanTime field is set.
224    */
hasLastScanTime()225   boolean hasLastScanTime();
226   /**
227    *
228    *
229    * <pre>
230    * The last time this resource was scanned.
231    * </pre>
232    *
233    * <code>.google.protobuf.Timestamp last_scan_time = 5;</code>
234    *
235    * @return The lastScanTime.
236    */
getLastScanTime()237   com.google.protobuf.Timestamp getLastScanTime();
238   /**
239    *
240    *
241    * <pre>
242    * The last time this resource was scanned.
243    * </pre>
244    *
245    * <code>.google.protobuf.Timestamp last_scan_time = 5;</code>
246    */
getLastScanTimeOrBuilder()247   com.google.protobuf.TimestampOrBuilder getLastScanTimeOrBuilder();
248 
249   /**
250    *
251    *
252    * <pre>
253    * The time occurrences related to this discovery occurrence were archived.
254    * </pre>
255    *
256    * <code>.google.protobuf.Timestamp archive_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
257    * </code>
258    *
259    * @return Whether the archiveTime field is set.
260    */
hasArchiveTime()261   boolean hasArchiveTime();
262   /**
263    *
264    *
265    * <pre>
266    * The time occurrences related to this discovery occurrence were archived.
267    * </pre>
268    *
269    * <code>.google.protobuf.Timestamp archive_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
270    * </code>
271    *
272    * @return The archiveTime.
273    */
getArchiveTime()274   com.google.protobuf.Timestamp getArchiveTime();
275   /**
276    *
277    *
278    * <pre>
279    * The time occurrences related to this discovery occurrence were archived.
280    * </pre>
281    *
282    * <code>.google.protobuf.Timestamp archive_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
283    * </code>
284    */
getArchiveTimeOrBuilder()285   com.google.protobuf.TimestampOrBuilder getArchiveTimeOrBuilder();
286 }
287