• 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/cloud/securitycenter/v1/security_health_analytics_custom_config.proto
18 
19 package com.google.cloud.securitycenter.v1;
20 
21 public interface CustomConfigOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.CustomConfig)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * The CEL expression to evaluate to produce findings. When the expression
31    * evaluates to true against a resource, a finding is generated.
32    * </pre>
33    *
34    * <code>.google.type.Expr predicate = 1;</code>
35    *
36    * @return Whether the predicate field is set.
37    */
hasPredicate()38   boolean hasPredicate();
39   /**
40    *
41    *
42    * <pre>
43    * The CEL expression to evaluate to produce findings. When the expression
44    * evaluates to true against a resource, a finding is generated.
45    * </pre>
46    *
47    * <code>.google.type.Expr predicate = 1;</code>
48    *
49    * @return The predicate.
50    */
getPredicate()51   com.google.type.Expr getPredicate();
52   /**
53    *
54    *
55    * <pre>
56    * The CEL expression to evaluate to produce findings. When the expression
57    * evaluates to true against a resource, a finding is generated.
58    * </pre>
59    *
60    * <code>.google.type.Expr predicate = 1;</code>
61    */
getPredicateOrBuilder()62   com.google.type.ExprOrBuilder getPredicateOrBuilder();
63 
64   /**
65    *
66    *
67    * <pre>
68    * Custom output properties.
69    * </pre>
70    *
71    * <code>.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2;</code>
72    *
73    * @return Whether the customOutput field is set.
74    */
hasCustomOutput()75   boolean hasCustomOutput();
76   /**
77    *
78    *
79    * <pre>
80    * Custom output properties.
81    * </pre>
82    *
83    * <code>.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2;</code>
84    *
85    * @return The customOutput.
86    */
getCustomOutput()87   com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec getCustomOutput();
88   /**
89    *
90    *
91    * <pre>
92    * Custom output properties.
93    * </pre>
94    *
95    * <code>.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpec custom_output = 2;</code>
96    */
97   com.google.cloud.securitycenter.v1.CustomConfig.CustomOutputSpecOrBuilder
getCustomOutputOrBuilder()98       getCustomOutputOrBuilder();
99 
100   /**
101    *
102    *
103    * <pre>
104    * The resource types that the custom module operates on. Each custom module
105    * can specify up to 5 resource types.
106    * </pre>
107    *
108    * <code>.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector resource_selector = 3;
109    * </code>
110    *
111    * @return Whether the resourceSelector field is set.
112    */
hasResourceSelector()113   boolean hasResourceSelector();
114   /**
115    *
116    *
117    * <pre>
118    * The resource types that the custom module operates on. Each custom module
119    * can specify up to 5 resource types.
120    * </pre>
121    *
122    * <code>.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector resource_selector = 3;
123    * </code>
124    *
125    * @return The resourceSelector.
126    */
getResourceSelector()127   com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector getResourceSelector();
128   /**
129    *
130    *
131    * <pre>
132    * The resource types that the custom module operates on. Each custom module
133    * can specify up to 5 resource types.
134    * </pre>
135    *
136    * <code>.google.cloud.securitycenter.v1.CustomConfig.ResourceSelector resource_selector = 3;
137    * </code>
138    */
139   com.google.cloud.securitycenter.v1.CustomConfig.ResourceSelectorOrBuilder
getResourceSelectorOrBuilder()140       getResourceSelectorOrBuilder();
141 
142   /**
143    *
144    *
145    * <pre>
146    * The severity to assign to findings generated by the module.
147    * </pre>
148    *
149    * <code>.google.cloud.securitycenter.v1.CustomConfig.Severity severity = 4;</code>
150    *
151    * @return The enum numeric value on the wire for severity.
152    */
getSeverityValue()153   int getSeverityValue();
154   /**
155    *
156    *
157    * <pre>
158    * The severity to assign to findings generated by the module.
159    * </pre>
160    *
161    * <code>.google.cloud.securitycenter.v1.CustomConfig.Severity severity = 4;</code>
162    *
163    * @return The severity.
164    */
getSeverity()165   com.google.cloud.securitycenter.v1.CustomConfig.Severity getSeverity();
166 
167   /**
168    *
169    *
170    * <pre>
171    * Text that describes the vulnerability or misconfiguration that the custom
172    * module detects. This explanation is returned with each finding instance to
173    * help investigators understand the detected issue. The text must be enclosed
174    * in quotation marks.
175    * </pre>
176    *
177    * <code>string description = 5;</code>
178    *
179    * @return The description.
180    */
getDescription()181   java.lang.String getDescription();
182   /**
183    *
184    *
185    * <pre>
186    * Text that describes the vulnerability or misconfiguration that the custom
187    * module detects. This explanation is returned with each finding instance to
188    * help investigators understand the detected issue. The text must be enclosed
189    * in quotation marks.
190    * </pre>
191    *
192    * <code>string description = 5;</code>
193    *
194    * @return The bytes for description.
195    */
getDescriptionBytes()196   com.google.protobuf.ByteString getDescriptionBytes();
197 
198   /**
199    *
200    *
201    * <pre>
202    * An explanation of the recommended steps that security teams can take to
203    * resolve the detected issue. This explanation is returned with each finding
204    * generated by this module in the `nextSteps` property of the finding JSON.
205    * </pre>
206    *
207    * <code>string recommendation = 6;</code>
208    *
209    * @return The recommendation.
210    */
getRecommendation()211   java.lang.String getRecommendation();
212   /**
213    *
214    *
215    * <pre>
216    * An explanation of the recommended steps that security teams can take to
217    * resolve the detected issue. This explanation is returned with each finding
218    * generated by this module in the `nextSteps` property of the finding JSON.
219    * </pre>
220    *
221    * <code>string recommendation = 6;</code>
222    *
223    * @return The bytes for recommendation.
224    */
getRecommendationBytes()225   com.google.protobuf.ByteString getRecommendationBytes();
226 }
227