• 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/privacy/dlp/v2/dlp.proto
18 
19 package com.google.privacy.dlp.v2;
20 
21 public interface JobTriggerOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.JobTrigger)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * Unique resource name for the triggeredJob, assigned by the service when the
31    * triggeredJob is created, for example
32    * `projects/dlp-test-project/jobTriggers/53234423`.
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    * Unique resource name for the triggeredJob, assigned by the service when the
45    * triggeredJob is created, for example
46    * `projects/dlp-test-project/jobTriggers/53234423`.
47    * </pre>
48    *
49    * <code>string name = 1;</code>
50    *
51    * @return The bytes for name.
52    */
getNameBytes()53   com.google.protobuf.ByteString getNameBytes();
54 
55   /**
56    *
57    *
58    * <pre>
59    * Display name (max 100 chars)
60    * </pre>
61    *
62    * <code>string display_name = 2;</code>
63    *
64    * @return The displayName.
65    */
getDisplayName()66   java.lang.String getDisplayName();
67   /**
68    *
69    *
70    * <pre>
71    * Display name (max 100 chars)
72    * </pre>
73    *
74    * <code>string display_name = 2;</code>
75    *
76    * @return The bytes for displayName.
77    */
getDisplayNameBytes()78   com.google.protobuf.ByteString getDisplayNameBytes();
79 
80   /**
81    *
82    *
83    * <pre>
84    * User provided description (max 256 chars)
85    * </pre>
86    *
87    * <code>string description = 3;</code>
88    *
89    * @return The description.
90    */
getDescription()91   java.lang.String getDescription();
92   /**
93    *
94    *
95    * <pre>
96    * User provided description (max 256 chars)
97    * </pre>
98    *
99    * <code>string description = 3;</code>
100    *
101    * @return The bytes for description.
102    */
getDescriptionBytes()103   com.google.protobuf.ByteString getDescriptionBytes();
104 
105   /**
106    *
107    *
108    * <pre>
109    * For inspect jobs, a snapshot of the configuration.
110    * </pre>
111    *
112    * <code>.google.privacy.dlp.v2.InspectJobConfig inspect_job = 4;</code>
113    *
114    * @return Whether the inspectJob field is set.
115    */
hasInspectJob()116   boolean hasInspectJob();
117   /**
118    *
119    *
120    * <pre>
121    * For inspect jobs, a snapshot of the configuration.
122    * </pre>
123    *
124    * <code>.google.privacy.dlp.v2.InspectJobConfig inspect_job = 4;</code>
125    *
126    * @return The inspectJob.
127    */
getInspectJob()128   com.google.privacy.dlp.v2.InspectJobConfig getInspectJob();
129   /**
130    *
131    *
132    * <pre>
133    * For inspect jobs, a snapshot of the configuration.
134    * </pre>
135    *
136    * <code>.google.privacy.dlp.v2.InspectJobConfig inspect_job = 4;</code>
137    */
getInspectJobOrBuilder()138   com.google.privacy.dlp.v2.InspectJobConfigOrBuilder getInspectJobOrBuilder();
139 
140   /**
141    *
142    *
143    * <pre>
144    * A list of triggers which will be OR'ed together. Only one in the list
145    * needs to trigger for a job to be started. The list may contain only
146    * a single Schedule trigger and must have at least one object.
147    * </pre>
148    *
149    * <code>repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;</code>
150    */
getTriggersList()151   java.util.List<com.google.privacy.dlp.v2.JobTrigger.Trigger> getTriggersList();
152   /**
153    *
154    *
155    * <pre>
156    * A list of triggers which will be OR'ed together. Only one in the list
157    * needs to trigger for a job to be started. The list may contain only
158    * a single Schedule trigger and must have at least one object.
159    * </pre>
160    *
161    * <code>repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;</code>
162    */
getTriggers(int index)163   com.google.privacy.dlp.v2.JobTrigger.Trigger getTriggers(int index);
164   /**
165    *
166    *
167    * <pre>
168    * A list of triggers which will be OR'ed together. Only one in the list
169    * needs to trigger for a job to be started. The list may contain only
170    * a single Schedule trigger and must have at least one object.
171    * </pre>
172    *
173    * <code>repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;</code>
174    */
getTriggersCount()175   int getTriggersCount();
176   /**
177    *
178    *
179    * <pre>
180    * A list of triggers which will be OR'ed together. Only one in the list
181    * needs to trigger for a job to be started. The list may contain only
182    * a single Schedule trigger and must have at least one object.
183    * </pre>
184    *
185    * <code>repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;</code>
186    */
187   java.util.List<? extends com.google.privacy.dlp.v2.JobTrigger.TriggerOrBuilder>
getTriggersOrBuilderList()188       getTriggersOrBuilderList();
189   /**
190    *
191    *
192    * <pre>
193    * A list of triggers which will be OR'ed together. Only one in the list
194    * needs to trigger for a job to be started. The list may contain only
195    * a single Schedule trigger and must have at least one object.
196    * </pre>
197    *
198    * <code>repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;</code>
199    */
getTriggersOrBuilder(int index)200   com.google.privacy.dlp.v2.JobTrigger.TriggerOrBuilder getTriggersOrBuilder(int index);
201 
202   /**
203    *
204    *
205    * <pre>
206    * Output only. A stream of errors encountered when the trigger was activated. Repeated
207    * errors may result in the JobTrigger automatically being paused.
208    * Will return the last 100 errors. Whenever the JobTrigger is modified
209    * this list will be cleared.
210    * </pre>
211    *
212    * <code>
213    * repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
214    * </code>
215    */
getErrorsList()216   java.util.List<com.google.privacy.dlp.v2.Error> getErrorsList();
217   /**
218    *
219    *
220    * <pre>
221    * Output only. A stream of errors encountered when the trigger was activated. Repeated
222    * errors may result in the JobTrigger automatically being paused.
223    * Will return the last 100 errors. Whenever the JobTrigger is modified
224    * this list will be cleared.
225    * </pre>
226    *
227    * <code>
228    * repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
229    * </code>
230    */
getErrors(int index)231   com.google.privacy.dlp.v2.Error getErrors(int index);
232   /**
233    *
234    *
235    * <pre>
236    * Output only. A stream of errors encountered when the trigger was activated. Repeated
237    * errors may result in the JobTrigger automatically being paused.
238    * Will return the last 100 errors. Whenever the JobTrigger is modified
239    * this list will be cleared.
240    * </pre>
241    *
242    * <code>
243    * repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
244    * </code>
245    */
getErrorsCount()246   int getErrorsCount();
247   /**
248    *
249    *
250    * <pre>
251    * Output only. A stream of errors encountered when the trigger was activated. Repeated
252    * errors may result in the JobTrigger automatically being paused.
253    * Will return the last 100 errors. Whenever the JobTrigger is modified
254    * this list will be cleared.
255    * </pre>
256    *
257    * <code>
258    * repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
259    * </code>
260    */
getErrorsOrBuilderList()261   java.util.List<? extends com.google.privacy.dlp.v2.ErrorOrBuilder> getErrorsOrBuilderList();
262   /**
263    *
264    *
265    * <pre>
266    * Output only. A stream of errors encountered when the trigger was activated. Repeated
267    * errors may result in the JobTrigger automatically being paused.
268    * Will return the last 100 errors. Whenever the JobTrigger is modified
269    * this list will be cleared.
270    * </pre>
271    *
272    * <code>
273    * repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
274    * </code>
275    */
getErrorsOrBuilder(int index)276   com.google.privacy.dlp.v2.ErrorOrBuilder getErrorsOrBuilder(int index);
277 
278   /**
279    *
280    *
281    * <pre>
282    * Output only. The creation timestamp of a triggeredJob.
283    * </pre>
284    *
285    * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
286    * </code>
287    *
288    * @return Whether the createTime field is set.
289    */
hasCreateTime()290   boolean hasCreateTime();
291   /**
292    *
293    *
294    * <pre>
295    * Output only. The creation timestamp of a triggeredJob.
296    * </pre>
297    *
298    * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
299    * </code>
300    *
301    * @return The createTime.
302    */
getCreateTime()303   com.google.protobuf.Timestamp getCreateTime();
304   /**
305    *
306    *
307    * <pre>
308    * Output only. The creation timestamp of a triggeredJob.
309    * </pre>
310    *
311    * <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
312    * </code>
313    */
getCreateTimeOrBuilder()314   com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();
315 
316   /**
317    *
318    *
319    * <pre>
320    * Output only. The last update timestamp of a triggeredJob.
321    * </pre>
322    *
323    * <code>.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
324    * </code>
325    *
326    * @return Whether the updateTime field is set.
327    */
hasUpdateTime()328   boolean hasUpdateTime();
329   /**
330    *
331    *
332    * <pre>
333    * Output only. The last update timestamp of a triggeredJob.
334    * </pre>
335    *
336    * <code>.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
337    * </code>
338    *
339    * @return The updateTime.
340    */
getUpdateTime()341   com.google.protobuf.Timestamp getUpdateTime();
342   /**
343    *
344    *
345    * <pre>
346    * Output only. The last update timestamp of a triggeredJob.
347    * </pre>
348    *
349    * <code>.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
350    * </code>
351    */
getUpdateTimeOrBuilder()352   com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
353 
354   /**
355    *
356    *
357    * <pre>
358    * Output only. The timestamp of the last time this trigger executed.
359    * </pre>
360    *
361    * <code>
362    * .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
363    * </code>
364    *
365    * @return Whether the lastRunTime field is set.
366    */
hasLastRunTime()367   boolean hasLastRunTime();
368   /**
369    *
370    *
371    * <pre>
372    * Output only. The timestamp of the last time this trigger executed.
373    * </pre>
374    *
375    * <code>
376    * .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
377    * </code>
378    *
379    * @return The lastRunTime.
380    */
getLastRunTime()381   com.google.protobuf.Timestamp getLastRunTime();
382   /**
383    *
384    *
385    * <pre>
386    * Output only. The timestamp of the last time this trigger executed.
387    * </pre>
388    *
389    * <code>
390    * .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
391    * </code>
392    */
getLastRunTimeOrBuilder()393   com.google.protobuf.TimestampOrBuilder getLastRunTimeOrBuilder();
394 
395   /**
396    *
397    *
398    * <pre>
399    * Required. A status for this trigger.
400    * </pre>
401    *
402    * <code>
403    * .google.privacy.dlp.v2.JobTrigger.Status status = 10 [(.google.api.field_behavior) = REQUIRED];
404    * </code>
405    *
406    * @return The enum numeric value on the wire for status.
407    */
getStatusValue()408   int getStatusValue();
409   /**
410    *
411    *
412    * <pre>
413    * Required. A status for this trigger.
414    * </pre>
415    *
416    * <code>
417    * .google.privacy.dlp.v2.JobTrigger.Status status = 10 [(.google.api.field_behavior) = REQUIRED];
418    * </code>
419    *
420    * @return The status.
421    */
getStatus()422   com.google.privacy.dlp.v2.JobTrigger.Status getStatus();
423 
getJobCase()424   public com.google.privacy.dlp.v2.JobTrigger.JobCase getJobCase();
425 }
426